Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

Settings redesign (#995)

neo7732cda071880f0
diff --git a/screenpipe-app-tauri/app/providers.tsx b/screenpipe-app-tauri/app/providers.tsx
index 306bee1af..12fda4eb0 100644
--- a/screenpipe-app-tauri/app/providers.tsx
+++ b/screenpipe-app-tauri/app/providers.tsx
@@ -7,6 +7,8 @@ import { initOpenTelemetry } from "@/lib/opentelemetry";
import { OnboardingProvider } from "@/lib/hooks/use-onboarding";
import { ChangelogDialogProvider } from "@/lib/hooks/use-changelog-dialog";
import { forwardRef } from "react";
+import { store } from "@/lib/hooks/use-settings";
+import { StoreProvider } from "easy-peasy";
export const Providers = forwardRef<HTMLDivElement, { children: React.ReactNode }>(
({ children }, ref) => {
@@ -23,14 +25,15 @@ export const Providers = forwardRef<HTMLDivElement, { children: React.ReactNode
}
}, []);
- return (
+ return (
+ <StoreProvider store={store}>
<OnboardingProvider>
<ChangelogDialogProvider>
<PostHogProvider client={posthog}>{children}</PostHogProvider>
</ChangelogDialogProvider>
</OnboardingProvider>
- );
- }
-);
+ </StoreProvider>
+ );
+});
Providers.displayName = "Providers";
diff --git a/screenpipe-app-tauri/bun.lockb b/screenpipe-app-tauri/bun.lockb
index c42805e66..1da664b74 100755
Binary files a/screenpipe-app-tauri/bun.lockb and b/screenpipe-app-tauri/bun.lockb differ
diff --git a/screenpipe-app-tauri/components/dev-mode-settings.tsx b/screenpipe-app-tauri/components/dev-mode-settings.tsx
index 018e19e37..0a4f6c5f3 100644
--- a/screenpipe-app-tauri/components/dev-mode-settings.tsx
+++ b/screenpipe-app-tauri/components/dev-mode-settings.tsx
@@ -114,12 +114,10 @@ const getDebuggingCommands = (os: string | null, dataDir: string) => {
};
export const DevModeSettings = ({ localDataDir }: { localDataDir: string }) => {
- const { settings, updateSettings, localSettings, setLocalSettings } =
- useSettings();
+ const { settings, updateSettings } = useSettings();
const handleDevModeToggle = async (checked: boolean) => {
try {
await updateSettings({ devMode: checked });
- setLocalSettings((prev) => ({ ...prev, devMode: checked }));
} catch (error) {
console.error("failed to update dev mode:", error);
toast({
@@ -207,12 +205,12 @@ export const DevModeSettings = ({ localDataDir }: { localDataDir: string }) => {
<Label htmlFor="dev-mode">enable dev mode</Label>
<Switch
id="dev-mode"
- checked={localSettings.devMode}
+ checked={settings.devMode}
onCheckedChange={handleDevModeToggle}
/>
</div>
<div className="absolute top-2 right-2">
- <CliCommandDialog localSettings={localSettings} />
+ <CliCommandDialog localSettings={settings} />
</div>
</div>
<p className="text-sm text-muted-foreground mb-4">
diff --git a/screenpipe-app-tauri/components/header.tsx b/screenpipe-app-tauri/components/header.tsx
index d9ba1e8a8..e9c19a020 100644
--- a/screenpipe-app-tauri/components/header.tsx
+++ b/screenpipe-app-tauri/components/header.tsx
@@ -22,6 +22,7 @@ import {
Book,
User,
Fingerprint,
+ Settings2,
} from "lucide-react";
import { open } from "@tauri-apps/plugin-shell";
import {
@@ -47,6 +48,7 @@ import {
} from "@/components/ui/tooltip";
import { Calendar } from "lucide-react";
import { useUser } from "@/lib/hooks/use-user";
+import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog";
export default function Header() {
const [showInbox, setShowInbox] = useState(false);
@@ -123,7 +125,6 @@ export default function Header() {
const { setShowOnboarding } = useOnboarding();
const { setShowChangelogDialog } = useChangelogDialog();
-
return (
<div>
{isLoading ? (
@@ -162,16 +163,23 @@ export default function Header() {
<DropdownMenuLabel>account</DropdownMenuLabel>
<DropdownMenuSeparator />
<DropdownMenuGroup>
- <DropdownMenuItem
- className="cursor-pointer p-0"
- onClick={(e) => {
- e.preventDefault();
- e.stopPropagation();
- setShowSettings(true);
- }}
- >
- <Settings />
- </DropdownMenuItem>
+ <Dialog>
+ <DialogTrigger asChild>
+ <DropdownMenuItem
+ onSelect={(e) => e.preventDefault()}
+ className="cursor-pointer p-1.5"
+ >
+ <Settings2 className="mr-2 h-4 w-4" />
+ <span>Settings</span>
+ </DropdownMenuItem>
+ </DialogTrigger>
+ <DialogContent
+ className="max-w-[80vw] w-full max-h-[80vh] h-full overflow-hidden p-0 [&>button]:hidden"
+ onClick={(e) => e.stopPropagation()}
+ >
+ <Settings />
+ </DialogContent>
+ </Dialog>
</DropdownMenuGroup>
<DropdownMenuSeparator />
<DropdownMenuGroup>
diff --git a/screenpipe-app-tauri/components/recording-settings.tsx b/screenpipe-app-tauri/components/recording-settings.tsx
index b4a32d84c..72a75b0e7 100644
--- a/screenpipe-app-tauri/components/recording-settings.tsx
+++ b/screenpipe-app-tauri/components/recording-settings.tsx
@@ -11,7 +11,6 @@ import {
} from "./ui/select";
import { Button } from "@/components/ui/button";
import { Popover, PopoverContent, PopoverTrigger } from "./ui/popover";
-import { SqlAutocompleteInput } from "./sql-autocomplete-input";
import {
Check,
ChevronsUpDown,
@@ -22,10 +21,11 @@ import {
Monitor,
Folder,
AppWindowMac,
- X,
EyeOff,
+ Key,
+ Terminal,
} from "lucide-react";
-import { cn, getCliPath } from "@/lib/utils";
+import { cn } from "@/lib/utils";
import {
Command,
CommandInput,
@@ -34,7 +34,7 @@ import {
CommandGroup,
CommandItem,
} from "./ui/command";
-import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
+import { Card, CardContent, CardTitle } from "@/components/ui/card";
import {
Settings,
useSettings,
@@ -61,10 +61,14 @@ import { Language } from "@/lib/language";
import { open } from "@tauri-apps/plugin-dialog";
import { exists } from "@tauri-apps/plugin-fs";
import { Command as ShellCommand } from "@tauri-apps/plugin-shell";
-import { CliCommandDialog } from "./cli-command-dialog";
import { ToastAction } from "@/components/ui/toast";
import { useUser } from "@/lib/hooks/use-user";
import { open as openUrl } from "@tauri-apps/plugin-shell";
+import { Separator } from "./ui/separator";
+import { MultiSelect } from "@/components/ui/multi-select";
+import { Alert, AlertDescription, AlertTitle } from "./ui/alert";
+import { useSqlAutocomplete } from "@/lib/hooks/use-sql-autocomplete";
+
type PermissionsStatus = {
screenRecording: string;
microphone: string;
@@ -84,13 +88,7 @@ interface MonitorDevice {
height: number;
}
-export function RecordingSettings({
- localSettings,
- setLocalSettings,
-}: {
- localSettings: Settings;
- setLocalSettings: (settings: Settings) => void;
-}) {
+export function RecordingSettings() {
const { settings, updateSettings, getDataDir } = useSettings();
const [openAudioDevices, setOpenAudioDevices] = React.useState(false);
const [openMonitors, setOpenMonitors] = React.useState(false);
@@ -102,6 +100,9 @@ export function RecordingSettings({
const [windowsForIgnore, setWindowsForIgnore] = useState("");
const [windowsForInclude, setWindowsForInclude] = useState("");
+ const { items: windowItems, isLoading: isWindowItemsLoading } =
+ useSqlAutocomplete("window");
+
const [availableMonitors, setAvailableMonitors] = useState<MonitorDevice[]>(
[]
);
@@ -117,6 +118,35 @@ export function RecordingSettings({
const [showApiKey, setShowApiKey] = useState(false);
const { user } = useUser();
const { credits } = user || {};
+ // Add new state to track if settings have changed
+ const [hasUnsavedChanges, setHasUnsavedChanges] = useState(false);
+
+ // Modify setLocalSettings to track changes
+ const handleSettingsChange = (
+ newSettings: Partial<Settings>,
+ restart: boolean = true
+ ) => {
+ updateSettings(newSettings);
+ if (restart) {
+ setHasUnsavedChanges(true);
+ }
+ };
+
+ // Show toast when settings change
+ useEffect(() => {
+ if (hasUnsavedChanges && !settings.devMode) {
+ toast({
+ title: "settings changed",
+ description: "restart required to apply changes",
+ action: (
+ <ToastAction altText="restart now" onClick={handleUpdate}>
+ restart now
+ </ToastAction>
+ ),
+ duration: 50000,
+ });
+ }
+ }, [hasUnsavedChanges]);
useEffect(() => {
const checkPlatform = async () => {
@@ -154,20 +184,20 @@ export function RecordingSettings({
console.log("audioDevices", audioDevices);
setAvailableAudioDevices(audioDevices);
- console.log("localSettings", localSettings);
+ console.log("settings", settings);
// Update monitors
const availableMonitorIds = monitors.map((monitor) =>
monitor.id.toString()
);
- let updatedMonitorIds = localSettings.monitorIds.filter((id) =>
+ let updatedMonitorIds = settings.monitorIds.filter((id) =>
availableMonitorIds.includes(id)
);
if (
updatedMonitorIds.length === 0 ||
- (localSettings.monitorIds.length === 1 &&
- localSettings.monitorIds[0] === "default" &&
+ (settings.monitorIds.length === 1 &&
+ settings.monitorIds[0] === "default" &&
monitors.length > 0)
) {
updatedMonitorIds = [
@@ -179,14 +209,14 @@ export function RecordingSettings({
const availableAudioDeviceNames = audioDevices.map(
(device) => device.name
);
- let updatedAudioDevices = localSettings.audioDevices.filter((device) =>
+ let updatedAudioDevices = settings.audioDevices.filter((device) =>
availableAudioDeviceNames.includes(device)
);
if (
updatedAudioDevices.length === 0 ||
- (localSettings.audioDevices.length === 1 &&
- localSettings.audioDevices[0] === "default" &&
+ (settings.audioDevices.length === 1 &&
+ settings.audioDevices[0] === "default" &&
audioDevices.length > 0)
) {
updatedAudioDevices = audioDevices
@@ -194,18 +224,20 @@ export function RecordingSettings({
.map((device) => device.name);
}
- setLocalSettings({
- ...localSettings,
- monitorIds: updatedMonitorIds,
- audioDevices: updatedAudioDevices,
- });
+ handleSettingsChange(
+ {
+ monitorIds: updatedMonitorIds,
+ audioDevices: updatedAudioDevices,
+ },
+ false
+ );
} catch (error) {
console.error("Failed to load devices:", error);
}
};
loadDevices();
- }, [settings]);
+ }, []);
const handleUpdate = async () => {
setIsUpdating(true);
@@ -215,34 +247,9 @@ export function RecordingSettings({
});
try {
- console.log("localSettings", localSettings);
- // Only update specific fields
- const settingsToUpdate = {
- audioTranscriptionEngine: localSettings.audioTranscriptionEngine,
- ocrEngine: localSettings.ocrEngine,
- monitorIds: localSettings.monitorIds,
- audioDevices: localSettings.audioDevices,
- usePiiRemoval: localSettings.usePiiRemoval,
- disableAudio: localSettings.disableAudio,
- ignoredWindows: localSettings.ignoredWindows,
- includedWindows: localSettings.includedWindows,
- deepgramApiKey: localSettings.deepgramApiKey,
- fps: localSettings.fps,
- vadSensitivity: localSettings.vadSensitivity,
- audioChunkDuration: localSettings.audioChunkDuration,
- analyticsEnabled: localSettings.analyticsEnabled,
- useChineseMirror: localSettings.useChineseMirror,
- languages: localSettings.languages,
- enableBeta: localSettings.enableBeta,
- enableFrameCache: localSettings.enableFrameCache,
- enableUiMonitoring: localSettings.enableUiMonitoring,
- dataDir: localSettings.dataDir,
- port: localSettings.port,
- };
- console.log("Settings to update:", settingsToUpdate);
- await updateSettings(settingsToUpdate);
-
- if (!localSettings.analyticsEnabled) {
+ console.log("settings", settings);
+
+ if (!settings.analyticsEnabled) {
posthog.capture("telemetry", {
enabled: false,
});
@@ -290,14 +297,13 @@ export function RecordingSettings({
const lowerCaseValue = value.toLowerCase();
if (
value &&
- !localSettings.ignoredWindows
+ !settings.ignoredWindows
.map((w) => w.toLowerCase())
.includes(lowerCaseValue)
) {
- setLocalSettings({
- ...localSettings,
- ignoredWindows: [...localSettings.ignoredWindows, value],
- includedWindows: localSettings.includedWindows.filter(
+ handleSettingsChange({
+ ignoredWindows: [...settings.ignoredWindows, value],
+ includedWindows: settings.includedWindows.filter(
(w) => w.toLowerCase() !== lowerCaseValue
),
});
@@ -305,9 +311,8 @@ export function RecordingSettings({
};
const handleRemoveIgnoredWindow = (value: string) => {
- setLocalSettings({
- ...localSettings,
- ignoredWindows: localSettings.ignoredWindows.filter((w) => w !== value),
+ handleSettingsChange({
+ ignoredWindows: settings.ignoredWindows.filter((w) => w !== value),
});
};
@@ -315,14 +320,13 @@ export function RecordingSettings({
const lowerCaseValue = value.toLowerCase();
if (
value &&
- !localSettings.includedWindows
+ !settings.includedWindows
.map((w) => w.toLowerCase())
.includes(lowerCaseValue)
) {
- setLocalSettings({
- ...localSettings,
- includedWindows: [...localSettings.includedWindows, value],
- ignoredWindows: localSettings.ignoredWindows.filter(
+ handleSettingsChange({
+ includedWindows: [...settings.includedWindows, value],
+ ignoredWindows: settings.ignoredWindows.filter(
(w) => w.toLowerCase() !== lowerCaseValue
),
});
@@ -330,9 +334,8 @@ export function RecordingSettings({
};
const handleRemoveIncludedWindow = (value: string) => {
- setLocalSettings({
- ...localSettings,
- includedWindows: localSettings.includedWindows.filter((w) => w !== value),
+ handleSettingsChange({
+ includedWindows: settings.includedWindows.filter((w) => w !== value),
});
};
@@ -343,53 +346,52 @@ export function RecordingSettings({
}
if (value === "screenpipe-cloud") {
- setLocalSettings({
- ...localSettings,
+ handleSettingsChange({
audioTranscriptionEngine: value,
});
} else {
- setLocalSettings({ ...localSettings, audioTranscriptionEngine: value });
+ handleSettingsChange({ audioTranscriptionEngine: value });
}
};
const handleOcrModelChange = (value: string) => {
- setLocalSettings({ ...localSettings, ocrEngine: value });
+ handleSettingsChange({ ocrEngine: value });
};
const handleMonitorChange = (currentValue: string) => {
- const updatedMonitors = localSettings.monitorIds.includes(currentValue)
- ? localSettings.monitorIds.filter((id) => id !== currentValue)
- : [...localSettings.monitorIds, currentValue];
+ const updatedMonitors = settings.monitorIds.includes(currentValue)
+ ? settings.monitorIds.filter((id) => id !== currentValue)
+ : [...settings.monitorIds, currentValue];
- setLocalSettings({ ...localSettings, monitorIds: updatedMonitors });
+ handleSettingsChange({ monitorIds: updatedMonitors });
};
const handleLanguageChange = (currentValue: Language) => {
- const updatedLanguages = localSettings.languages.includes(currentValue)
- ? localSettings.languages.filter((id) => id !== currentValue)
- : [...localSettings.languages, currentValue];
+ const updatedLanguages = settings.languages.includes(currentValue)
+ ? settings.languages.filter((id) => id !== currentValue)
+ : [...settings.languages, currentValue];
- setLocalSettings({ ...localSettings, languages: updatedLanguages });
+ handleSettingsChange({ languages: updatedLanguages });
};
const handleAudioDeviceChange = (currentValue: string) => {
- const updatedDevices = localSettings.audioDevices.includes(currentValue)
- ? localSettings.audioDevices.filter((device) => device !== currentValue)
- : [...localSettings.audioDevices, currentValue];
+ const updatedDevices = settings.audioDevices.includes(currentValue)
+ ? settings.audioDevices.filter((device) => device !== currentValue)
+ : [...settings.audioDevices, currentValue];
- setLocalSettings({ ...localSettings, audioDevices: updatedDevices });
+ handleSettingsChange({ audioDevices: updatedDevices });
};
const handlePiiRemovalChange = (checked: boolean) => {
- setLocalSettings({ ...localSettings, usePiiRemoval: checked });
+ handleSettingsChange({ usePiiRemoval: checked });
};
const handleDisableAudioChange = (checked: boolean) => {
- setLocalSettings({ ...localSettings, disableAudio: checked });
+ handleSettingsChange({ disableAudio: checked });
};
const handleFpsChange = (value: number[]) => {
- setLocalSettings({ ...localSettings, fps: value[0] });
+ handleSettingsChange({ fps: value[0] });
};
const handleVadSensitivityChange = (value: number[]) => {
@@ -398,8 +400,7 @@ export function RecordingSettings({
1: "medium",
0: "low",
};
- setLocalSettings({
- ...localSettings,
+ handleSettingsChange({
vadSensitivity: sensitivityMap[value[0]],
});
};
@@ -414,7 +415,7 @@ export function RecordingSettings({
};
const handleAudioChunkDurationChange = (value: number[]) => {
- setLocalSettings({ ...localSettings, audioChunkDuration: value[0] });
+ handleSettingsChange({ audioChunkDuration: value[0] });
};
const renderOcrEngineOptions = () => {
@@ -436,11 +437,11 @@ export function RecordingSettings({
const handleAnalyticsToggle = (checked: boolean) => {
const newValue = checked;
- setLocalSettings({ ...localSettings, analyticsEnabled: newValue });
+ handleSettingsChange({ analyticsEnabled: newValue });
};
const handleChineseMirrorToggle = async (checked: boolean) => {
- setLocalSettings({ ...localSettings, useChineseMirror: checked });
+ handleSettingsChange({ useChineseMirror: checked });
if (checked) {
// Trigger setup when the toggle is turned on
await runSetup();
@@ -474,7 +475,7 @@ export function RecordingSettings({
// TODO: check permission of selected dir for server to write into
if (selected) {
- setLocalSettings({ ...localSettings, dataDir: selected });
+ handleSettingsChange({ dataDir: selected });
} else {
console.log("canceled");
}
@@ -494,7 +495,7 @@ export function RecordingSettings({
e: React.ChangeEvent<HTMLInputElement>
) => {
const newValue = e.target.value;
- setLocalSettings({ ...localSettings, dataDir: newValue });
+ handleSettingsChange({ dataDir: newValue });
};
const handleDataDirInputBlur = () => {
@@ -514,7 +515,7 @@ export function RecordingSettings({
const validateDataDirInput = async () => {
try {
- if (await exists(localSettings.dataDir)) {
+ if (await exists(settings.dataDir)) {
return;
}
} catch (err) {}
@@ -526,7 +527,7 @@ export function RecordingSettings({
duration: 3000,
});
- setLocalSettings({ ...localSettings, dataDir: settings.dataDir });
+ handleSettingsChange({ dataDir: settings.dataDir });
};
const runSetup = async () => {
@@ -578,15 +579,14 @@ export function RecordingSettings({
variant: "destructive",
});
// Revert the toggle if setup fails
- setLocalSettings({ ...localSettings, useChineseMirror: false });
+ handleSettingsChange({ useChineseMirror: false });
} finally {
setIsSetupRunning(false);
}
};
const handleFrameCacheToggle = (checked: boolean) => {
- setLocalSettings({
- ...localSettings,
+ handleSettingsChange({
enableFrameCache: checked,
});
};
@@ -618,10 +618,7 @@ export function RecordingSettings({
}
// Just update the local setting - the update button will handle the restart
- setLocalSettings({
- ...localSettings,
- enableUiMonitoring: checked,
- });
+ handleSettingsChange({ enableUiMonitoring: checked });
} catch (error) {
console.error("failed to toggle ui monitoring:", error);
toast({
@@ -631,486 +628,215 @@ export function RecordingSettings({
});
}
};
+ const handleIgnoredWindowsChange = (values: string[]) => {
+ // Convert all values to lowercase for comparison
+ const lowerCaseValues = values.map(v => v.toLowerCase());
+ const currentLowerCase = settings.ignoredWindows.map(v => v.toLowerCase());
+
+ // Find added values (in values but not in current)
+ const addedValues = values.filter(v => !currentLowerCase.includes(v.toLowerCase()));
+ // Find removed values (in current but not in values)
+ const removedValues = settings.ignoredWindows.filter(v => !lowerCaseValues.includes(v.toLowerCase()));
+
+ if (addedValues.length > 0) {
+ // Handle adding new value
+ const newValue = addedValues[0];
+ handleSettingsChange({
+ ignoredWindows: [...settings.ignoredWindows, newValue],
+ // Remove from included windows if present
+ includedWindows: settings.includedWindows.filter(
+ w => w.toLowerCase() !== newValue.toLowerCase()
+ ),
+ });
+ } else if (removedValues.length > 0) {
+ // Handle removing value
+ const removedValue = removedValues[0];
+ handleSettingsChange({
+ ignoredWindows: settings.ignoredWindows.filter(w => w !== removedValue),
+ });
+ }
+ };
+
+ const handleIncludedWindowsChange = (values: string[]) => {
+ // Convert all values to lowercase for comparison
+ const lowerCaseValues = values.map(v => v.toLowerCase());
+ const currentLowerCase = settings.includedWindows.map(v => v.toLowerCase());
+
+ // Find added values (in values but not in current)
+ const addedValues = values.filter(v => !currentLowerCase.includes(v.toLowerCase()));
+ // Find removed values (in current but not in values)
+ const removedValues = settings.includedWindows.filter(v => !lowerCaseValues.includes(v.toLowerCase()));
+
+ if (addedValues.length > 0) {
+ // Handle adding new value
+ const newValue = addedValues[0];
+ handleSettingsChange({
+ includedWindows: [...settings.includedWindows, newValue],
+ // Remove from ignored windows if present
+ ignoredWindows: settings.ignoredWindows.filter(
+ w => w.toLowerCase() !== newValue.toLowerCase()
+ ),
+ });
+ } else if (removedValues.length > 0) {
+ // Handle removing value
+ const removedValue = removedValues[0];
+ handleSettingsChange({
+ includedWindows: settings.includedWindows.filter(w => w !== removedValue),
+ });
+ }
+ };
return (
- <>
- <div className="relative">
- {settings.devMode || (!isUpdating && isDisabled) ? (
- <Card className="p-16 shadow-lg w-fit absolute bottom-1/4 left-1/2 -translate-x-1/2 -translate-y-1/2 z-10 text-center font-bold text-xl mb-4 ">
- <CardTitle>
- make sure to turn off dev mode and start screenpipe recorder first
- (go to status)
- </CardTitle>
- </Card>
- ) : (
- <></>
+ <div className="w-full space-y-6 py-4">
+ <h1 className="text-2xl font-bold mb-4">Recording</h1>
+ {settings.devMode || (!isUpdating && isDisabled) ? (
+ <Alert>
+ <Terminal className="h-4 w-4" />
+ <AlertTitle>Heads up!</AlertTitle>
+ <AlertDescription>
+ Make sure to turn off dev mode and start screenpipe recorder first
+ (go to status)
+ </AlertDescription>
+ </Alert>
+ ) : (
+ <></>
+ )}
+ <div
+ className={cn(
+ isDisabled && "opacity-50 pointer-events-none cursor-not-allowed"
)}
- <Card className={cn(isDisabled && "opacity-50 pointer-events-none")}>
- <CardHeader>
- <div className="flex justify-between items-center">
- <CardTitle className="text-center">recording settings</CardTitle>
- <div className="flex space-x-2">
- <div className="flex flex-col space-y-2">
- <Button
- onClick={handleUpdate}
- disabled={settings.devMode || isUpdating}
- >
- {isUpdating ? "updating..." : "save and restart"}
- </Button>
- {settings.devMode ? (
- <span className="text-xs text-gray-500 text-center">
- not available in dev mode, use CLI args in this case
- </span>
- ) : (
- <span className="text-xs text-gray-500 text-center">
- this will restart screenpipe recording process with new
- settings
- </span>
- )}
- </div>
- <CliCommandDialog localSettings={localSettings} />
- </div>
- </div>
- </CardHeader>
- <CardContent className="space-y-4">
- <div className="flex flex-col space-y-2">
- <Label
- htmlFor="audioTranscriptionModel"
- className="flex items-center space-x-2"
- >
- <Mic className="h-4 w-4" />
- <span>audio transcription model</span>
- </Label>
- <Select
- onValueChange={handleAudioTranscriptionModelChange}
- value={localSettings.audioTranscriptionEngine}
- >
- <SelectTrigger>
- <SelectValue placeholder="select audio transcription engine" />
- </SelectTrigger>
- <SelectContent>
- <SelectItem value="screenpipe-cloud">
- <div className="flex items-center justify-between w-full space-x-2">
- <span>screenpipe cloud</span>
- <div className="flex items-center gap-2">
- <Badge variant="secondary">cloud</Badge>
- {!credits?.amount && (
- <Badge variant="outline" className="text-xs">
- get credits
- </Badge>
- )}
- </div>
- </div>
- </SelectItem>
- <SelectItem value="deepgram">
- <div className="flex items-center justify-between w-full space-x-2">
- <span>deepgram</span>
- <Badge variant="secondary">cloud</Badge>
- </div>
- </SelectItem>
- <SelectItem value="whisper-tiny">whisper-tiny</SelectItem>
- <SelectItem value="whisper-large">whisper-large</SelectItem>
- <SelectItem value="whisper-large-v3-turbo">
- whisper-large-turbo
- </SelectItem>
- </SelectContent>
- </Select>
-
- {localSettings.audioTranscriptionEngine === "deepgram" && (
- <div className="mt-2">
- <div className="flex items-center gap-4">
- <Label
- htmlFor="deepgramApiKey"
- className="min-w-[80px] text-right"
- >
- api key
- </Label>
- <div className="flex-grow relative">
- <Input
- id="deepgramApiKey"
- type={showApiKey ? "text" : "password"}
- value={localSettings.deepgramApiKey}
- onChange={(e) => {
- const newValue = e.target.value;
- setLocalSettings({
- ...localSettings,
- deepgramApiKey: newValue,
- });
- updateSettings({ deepgramApiKey: newValue });
- }}
- className="pr-10 w-full"
- placeholder="enter your deepgram api key"
- autoCorrect="off"
- autoCapitalize="off"
- autoComplete="off"
- />
- <Button
- type="button"
- variant="ghost"
- size="icon"
- className="absolute right-0 top-0 h-full"
- onClick={() => setShowApiKey(!showApiKey)}
- >
- {showApiKey ? (
- <EyeOff className="h-4 w-4" />
- ) : (
- <Eye className="h-4 w-4" />
- )}
- </Button>
- </div>
- </div>
- <p className="mt-2 text-sm text-center text-muted-foreground">
- don&apos;t have an api key? get one from{" "}
- <a
- href="https://console.deepgram.com/"
- target="_blank"
- rel="noopener noreferrer"
- className="text-primary hover:underline"
- >
- deepgram&apos;s website
- </a>{" "}
- or use screenpipe cloud
- </p>
- </div>
- )}
- </div>
-
- <div className="flex flex-col space-y-2">
- <Label htmlFor="ocrModel" className="flex items-center space-x-2">
- <Eye className="h-4 w-4" />
- <span>ocr model</span>
- </Label>
- <Select
- onValueChange={handleOcrModelChange}
- defaultValue={localSettings.ocrEngine}
- >
- <SelectTrigger>
- <SelectValue placeholder="select ocr engine" />
- </SelectTrigger>
- <SelectContent>{renderOcrEngineOptions()}</SelectContent>
- </Select>
- </div>
-
- <div className="flex flex-col space-y-2">
- <Label
- htmlFor="monitorIds"
- className="flex items-center space-x-2"
- >
- <Monitor className="h-4 w-4" />
- <span>monitors</span>
- </Label>
- <Popover open={openMonitors} onOpenChange={setOpenMonitors}>
- <PopoverTrigger asChild>
- <Button
- variant="outline"
- role="combobox"
- aria-expanded={openMonitors}
- className="w-full justify-between"
- >
- {localSettings.monitorIds.length > 0
- ? `${localSettings.monitorIds.length} monitor(s) selected`
- : "select monitors"}
- <ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />
- </Button>
- </PopoverTrigger>
- <PopoverContent className="w-full p-0">
- <Command>
- <CommandInput placeholder="search monitors..." />
- <CommandList>
- <CommandEmpty>no monitor found.</CommandEmpty>
- <CommandGroup>
- {availableMonitors.map((monitor) => (
- <CommandItem
- key={monitor.id}
- value={monitor.id}
- onSelect={() =>
- handleMonitorChange(monitor.id.toString())
- }
- >
- <div className="flex items-center">
- <Check
- className={cn(
- "mr-2 h-4 w-4",
- localSettings.monitorIds.includes(
- monitor.id.toString()
- )
- ? "opacity-100"
- : "opacity-0"
- )}
- />
- {/* not selectable */}
- <span
- style={{
- userSelect: "none",
- WebkitUserSelect: "none",
- MozUserSelect: "none",
- msUserSelect: "none",
- }}
- >
- {monitor.id}. {monitor.name}{" "}
- {monitor.is_default ? "(default)" : ""} -{" "}
- {monitor.width}x{monitor.height}
- </span>
- </div>
- </CommandItem>
- ))}
- </CommandGroup>
- </CommandList>
- </Command>
- </PopoverContent>
- </Popover>
- </div>
- <div className="flex flex-col space-y-2">
- <Label
- htmlFor="audioDevices"
- className="flex items-center space-x-2"
- >
- <Mic className="h-4 w-4" />
- <span>audio devices</span>
- </Label>
- <Popover
- open={openAudioDevices}
- onOpenChange={setOpenAudioDevices}
- >
- <PopoverTrigger asChild>
- <Button
- variant="outline"
- role="combobox"
- aria-expanded={openAudioDevices}
- className="w-full justify-between"
- >
- {localSettings.audioDevices.length > 0
- ? `${localSettings.audioDevices.length} device(s) selected`
- : "select audio devices"}
- <ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />
- </Button>
- </PopoverTrigger>
- <PopoverContent className="w-full p-0">
- <Command>
- <CommandInput placeholder="search audio devices..." />
- <CommandList>
- <CommandEmpty>no audio device found.</CommandEmpty>
- <CommandGroup>
- {availableAudioDevices.map((device) => (
- <CommandItem
- key={device.name}
- value={device.name}
- onSelect={handleAudioDeviceChange}
- >
- <div className="flex items-center">
- <Check
- className={cn(
- "mr-2 h-4 w-4",
- localSettings.audioDevices.includes(
- device.name
- )
- ? "opacity-100"
- : "opacity-0"
- )}
- />
- <span
- style={{
- userSelect: "none",
- WebkitUserSelect: "none",
- MozUserSelect: "none",
- msUserSelect: "none",
- }}
- >
- {device.name}{" "}
- {device.is_default ? "(default)" : ""}
- </span>
- </div>
- </CommandItem>
- ))}
- </CommandGroup>
- </CommandList>
- </Command>
- </PopoverContent>
- </Popover>
- </div>
-
- <div className="flex flex-col space-y-2">
- <Label
- htmlFor="languages"
- className="flex items-center space-x-2"
- >
- <Languages className="h-4 w-4" />
- <span>languages</span>
- </Label>
- <Popover open={openLanguages} onOpenChange={setOpenLanguages}>
- <PopoverTrigger asChild>
- <Button
- variant="outline"
- role="combobox"
- aria-expanded={openLanguages}
- className="w-full justify-between"
- >
- {localSettings.languages.length > 0
- ? `${localSettings.languages.join(", ")}`
- : "select languages"}
- <ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />
- </Button>
- </PopoverTrigger>
- <PopoverContent className="w-full p-0">
- <Command>
- <CommandInput placeholder="search languages..." />
- <CommandList>
- <CommandEmpty>no language found.</CommandEmpty>
- <CommandGroup>
- {Object.entries(Language).map(([language, id]) => (
- <CommandItem
- key={language}
- value={language}
- onSelect={() => handleLanguageChange(id)}
- >
- <div className="flex items-center">
- <Check
- className={cn(
- "mr-2 h-4 w-4",
- localSettings.languages.includes(id)
- ? "opacity-100"
- : "opacity-0"
- )}
- />
- {/* not selectable */}
- <span
- style={{
- userSelect: "none",
- WebkitUserSelect: "none",
- MozUserSelect: "none",
- msUserSelect: "none",
- }}
- >
- {language}
- </span>
- </div>
- </CommandItem>
- ))}
- </CommandGroup>
- </CommandList>
- </Command>
- </PopoverContent>
- </Popover>
- </div>
-
- <div className="flex flex-col space-y-2">
- <Label
- htmlFor="monitorIds"
- className="flex items-center space-x-2"
- >
- <Folder className="h-4 w-4" />
- <span>data directory</span>
- </Label>
-
- {!dataDirInputVisible ? (
+ >
+ <h4 className="text-lg font-semibold my-4">Video</h4>
+ <div className="flex flex-col space-y-6">
+ <div className="flex flex-col space-y-2">
+ <Label htmlFor="monitorIds" className="flex items-center space-x-2">
+ <Monitor className="h-4 w-4" />
+ <span>Monitors</span>
+ </Label>
+ <Popover open={openMonitors} onOpenChange={setOpenMonitors}>
+ <PopoverTrigger asChild>
<Button
variant="outline"
role="combobox"
+ aria-expanded={openMonitors}
className="w-full justify-between"
- onClick={handleDataDirChange}
>
- <div className="inline-block flex gap-4">
- {!!settings.dataDir
- ? "change directory"
- : "select directory"}
- {localSettings.dataDir === settings.dataDir ? (
- <span className="text-muted-foreground text-sm">
- {" "}
- current at: {settings.dataDir || "default directory"}
- </span>
- ) : (
- <span className="text-muted-foreground text-sm">
- {" "}
- change to:{" "}
- {localSettings.dataDir || "default directory"}
- </span>
- )}
- </div>
+ {settings.monitorIds.length > 0
+ ? `${settings.monitorIds.length} monitor(s) selected`
+ : "select monitors"}
<ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />
</Button>
- ) : (
- <Input
- id="dataDir"
- type="text"
- autoFocus={true}
- value={localSettings.dataDir}
- onChange={handleDataDirInputChange}
- onBlur={handleDataDirInputBlur}
- onKeyDown={handleDataDirInputKeyDown}
- ></Input>
- )}
- </div>
-
- <div className="flex flex-col space-y-2">
- <div className="flex items-center space-x-2">
- <Switch
- id="piiRemoval"
- checked={localSettings.usePiiRemoval}
- onCheckedChange={handlePiiRemovalChange}
- />
- <Label
- htmlFor="piiRemoval"
- className="flex items-center space-x-2"
- >
- <span>remove personal information (PII)</span>
- <Badge variant="outline" className="ml-2">
- experimental
- </Badge>
- <TooltipProvider>
- <Tooltip>
- <TooltipTrigger>
- <HelpCircle className="h-4 w-4 cursor-default" />
- </TooltipTrigger>
- <TooltipContent>
- <p>
- removes sensitive information like credit card
- numbers, emails, and phone numbers from OCR text
- <br />
- before saving to the database or returning in search
- results
- </p>
- </TooltipContent>
- </Tooltip>
- </TooltipProvider>
- </Label>
- </div>
- </div>
-
- <div className="flex flex-col space-y-2">
- <div className="flex items-center space-x-2">
- <Switch
- id="disableAudio"
- checked={localSettings.disableAudio}
- onCheckedChange={handleDisableAudioChange}
+ </PopoverTrigger>
+ <PopoverContent className="w-full p-0">
+ <Command>
+ <CommandInput placeholder="search monitors..." />
+ <CommandList>
+ <CommandEmpty>no monitor found.</CommandEmpty>
+ <CommandGroup>
+ {availableMonitors.map((monitor) => (
+ <CommandItem
+ key={monitor.id}
+ value={monitor.id}
+ onSelect={() =>
+ handleMonitorChange(monitor.id.toString())
+ }
+ >
+ <div className="flex items-center">
+ <Check
+ className={cn(
+ "mr-2 h-4 w-4",
+ settings.monitorIds.includes(
+ monitor.id.toString()
+ )
+ ? "opacity-100"
+ : "opacity-0"
+ )}
+ />
+ {/* not selectable */}
+ <span
+ style={{
+ userSelect: "none",
+ WebkitUserSelect: "none",
+ MozUserSelect: "none",
+ msUserSelect: "none",
+ }}
+ >
+ {monitor.id}. {monitor.name}{" "}
+ {monitor.is_default ? "(default)" : ""} -{" "}
+ {monitor.width}x{monitor.height}
+ </span>
+ </div>
+ </CommandItem>
+ ))}
+ </CommandGroup>
+ </CommandList>
+ </Command>
+ </PopoverContent>
+ </Popover>
+ </div>
+
+ <div className="flex flex-col space-y-2">
+ <Label htmlFor="ocrModel" className="flex items-center space-x-2">
+ <Eye className="h-4 w-4" />
+ <span>OCR Model</span>
+ </Label>
+ <Select
+ onValueChange={handleOcrModelChange}
+ defaultValue={settings.ocrEngine}
+ >
+ <SelectTrigger>
+ <SelectValue
+ className="capitalize"
+ placeholder="select ocr engine"
/>
- <Label
- htmlFor="disableAudio"
- className="flex items-center space-x-2"
- >
- <span>disable audio recording</span>
- <TooltipProvider>
- <Tooltip>
- <TooltipTrigger>
- <HelpCircle className="h-4 w-4 cursor-default" />
- </TooltipTrigger>
- <TooltipContent>
- <p>
- useful if you don&apos;t need audio or if you have
- memory/CPU issues
- </p>
- </TooltipContent>
- </Tooltip>
- </TooltipProvider>
- </Label>
- </div>
+ </SelectTrigger>
+ <SelectContent className="capitalize">
+ {renderOcrEngineOptions()}
+ </SelectContent>
+ </Select>
+ </div>
+ <div className="flex flex-col space-y-2">
+ <Label htmlFor="fps" className="flex items-center space-x-2">
+ <span>Frames per second (FPS)</span>
+ <TooltipProvider>
+ <Tooltip>
+ <TooltipTrigger>
+ <HelpCircle className="h-4 w-4 cursor-default" />
+ </TooltipTrigger>
+ <TooltipContent side="right">
+ <p>
+ adjust the recording frame rate. lower values save
+ <br />
+ resources, higher values provide smoother recordings, less
+ likely to miss activity.
+ <br />
+ (we do not use resources if your screen does not change
+ much)
+ </p>
+ </TooltipContent>
+ </Tooltip>
+ </TooltipProvider>
+ </Label>
+ <div className="flex items-center space-x-4">
+ <Slider
+ id="fps"
+ min={0.1}
+ max={10}
+ step={0.1}
+ value={[settings.fps]}
+ onValueChange={handleFpsChange}
+ className="flex-grow"
+ />
+ <span className="w-12 text-right">{settings.fps.toFixed(1)}</span>
</div>
-
+ </div>
+ <div className="space-y-6">
<div className="flex flex-col space-y-2">
<Label
htmlFor="ignoredWindows"
className="flex items-center space-x-2"
>
- <span>ignored windows</span>
+ <span>Ignored Windows</span>
<TooltipProvider>
<Tooltip>
<TooltipTrigger>
@@ -1130,47 +856,18 @@ export function RecordingSettings({
</Tooltip>
</TooltipProvider>
</Label>
- <div className="flex flex-wrap gap-2 mb-2">
- {localSettings.ignoredWindows.map((window) => (
- <Badge
- key={window}
- variant="secondary"
- className="flex items-center gap-1"
- >
- {window}
- <X
- className="h-3 w-3 cursor-pointer"
- onClick={() => handleRemoveIgnoredWindow(window)}
- />
- </Badge>
- ))}
- </div>
- <div className="flex gap-2">
- <SqlAutocompleteInput
- id="ignoredWindows"
- type="window"
- icon={<AppWindowMac className="h-4 w-4" />}
- value={windowsForIgnore}
- onChange={(value) => setWindowsForIgnore(value)}
- placeholder="add windows to ignore"
- className="flex-grow"
- onKeyDown={(e) => {
- if (e.key === "Enter") {
- e.preventDefault();
- handleAddIgnoredWindow(windowsForIgnore);
- setWindowsForIgnore("");
- }
- }}
- />
- <Button
- onClick={() => {
- handleAddIgnoredWindow(windowsForIgnore);
- setWindowsForIgnore("");
- }}
- >
- add
- </Button>
- </div>
+ <MultiSelect
+ options={windowItems.map((item) => ({
+ value: item.name,
+ label: item.name,
+ icon: AppWindowMac,
+ }))}
+ defaultValue={settings.ignoredWindows}
+ onValueChange={handleIgnoredWindowsChange}
+ placeholder="add windows to ignore"
+ variant="default"
+ animation={2}
+ />
</div>
<div className="flex flex-col space-y-2">
@@ -1178,7 +875,7 @@ export function RecordingSettings({
htmlFor="includedWindows"
className="flex items-center space-x-2"
>
- <span>included windows</span>
+ <span>Included Windows</span>
<TooltipProvider>
<Tooltip>
<TooltipTrigger>
@@ -1198,359 +895,493 @@ export function RecordingSettings({
</Tooltip>
</TooltipProvider>
</Label>
- <div className="flex flex-wrap gap-2 mb-2">
- {localSettings.includedWindows.map((window) => (
- <Badge
- key={window}
- variant="secondary"
- className="flex items-center gap-1"
+ <MultiSelect
+ options={windowItems.map((item) => ({
+ value: item.name,
+ label: item.name,
+ icon: AppWindowMac,
+ }))}
+ defaultValue={settings.includedWindows}
+ onValueChange={handleIncludedWindowsChange}
+ placeholder="add window to include"
+ variant="default"
+ animation={2}
+ />
+ </div>
+ </div>
+
+ {/* */}
+ </div>
+ <Separator className="my-6" />
+
+ <h4 className="text-lg font-semibold my-4">Audio</h4>
+
+ <div className="space-y-6">
+ <div className="flex items-center justify-between">
+ <div className="space-y-1">
+ <h4 className="font-medium">Disable Audio Recording</h4>
+ <p className="text-sm text-muted-foreground">
+ Useful if you don&apos;t need audio or if you have memory/CPU
+ issues
+ </p>
+ </div>
+ <Switch
+ id="disableAudio"
+ checked={settings.disableAudio}
+ onCheckedChange={handleDisableAudioChange}
+ />
+ </div>
+
+ <div className="flex flex-col space-y-2">
+ <Label
+ htmlFor="audioTranscriptionModel"
+ className="flex items-center"
+ >
+ <Mic className="h-4 w-4" />
+ <span>Audio transcription model</span>
+ </Label>
+ <Select
+ onValueChange={handleAudioTranscriptionModelChange}
+ value={settings.audioTranscriptionEngine}
+ >
+ <SelectTrigger>
+ <SelectValue placeholder="select audio transcription engine" />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="screenpipe-cloud">
+ <div className="flex items-center justify-between w-full space-x-2">
+ <span>screenpipe cloud</span>
+ <div className="flex items-center gap-2">
+ <Badge variant="secondary">cloud</Badge>
+ {!credits?.amount && (
+ <Badge variant="outline" className="text-xs">
+ get credits
+ </Badge>
+ )}
+ </div>
+ </div>
+ </SelectItem>
+ <SelectItem value="deepgram">
+ <div className="flex items-center justify-between w-full space-x-2">
+ <span>deepgram</span>
+ <Badge variant="secondary">cloud</Badge>
+ </div>
+ </SelectItem>
+ <SelectItem value="whisper-tiny">whisper-tiny</SelectItem>
+ <SelectItem value="whisper-large">whisper-large</SelectItem>
+ <SelectItem value="whisper-large-v3-turbo">
+ whisper-large-turbo
+ </SelectItem>
+ </SelectContent>
+ </Select>
+ </div>
+
+ {settings.audioTranscriptionEngine === "deepgram" && (
+ <div className="mt-2">
+ <div className="flex flex-col space-y-2">
+ <Label
+ htmlFor="deepgramApiKey"
+ className="flex items-center space-x-2"
+ >
+ <Key className="h-4 w-4" />
+ API key
+ </Label>
+ <div className="flex-grow relative">
+ <Input
+ id="deepgramApiKey"
+ type={showApiKey ? "text" : "password"}
+ value={settings.deepgramApiKey}
+ onChange={(e) => {
+ const newValue = e.target.value;
+ handleSettingsChange({
+ deepgramApiKey: newValue,
+ });
+ }}
+ className="pr-10 w-full"
+ placeholder="Enter your Deepgram API key"
+ autoCorrect="off"
+ autoCapitalize="off"
+ autoComplete="off"
+ />
+ <Button
+ type="button"
+ variant="ghost"
+ size="icon"
+ className="absolute right-0 top-0 h-full"
+ onClick={() => setShowApiKey(!showApiKey)}
>
- {window}
- <X
- className="h-3 w-3 cursor-pointer"
- onClick={() => handleRemoveIncludedWindow(window)}
- />
- </Badge>
- ))}
+ {showApiKey ? (
+ <EyeOff className="h-4 w-4" />
+ ) : (
+ <Eye className="h-4 w-4" />
+ )}
+ </Button>
+ </div>
</div>
- <div className="flex gap-2">
- <SqlAutocompleteInput
- id="includedWindows"
- type="window"
- icon={<AppWindowMac className="h-4 w-4" />}
- value={windowsForInclude}
- onChange={(value) => setWindowsForInclude(value)}
- placeholder="add window to include"
- className="flex-grow"
- onKeyDown={(e) => {
- if (e.key === "Enter") {
- e.preventDefault();
- handleAddIncludedWindow(windowsForInclude);
- setWindowsForInclude("");
- }
- }}
- />
+ <p className="text-sm text-muted-foreground text-left mt-1">
+ Don&apos;t have an api key? get one from{" "}
+ <a
+ href="https://console.deepgram.com/"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="text-primary hover:underline"
+ >
+ deepgram&apos;s website
+ </a>{" "}
+ or use screenpipe cloud
+ </p>
+ </div>
+ )}
+
+ <div className="flex flex-col space-y-2">
+ <Label
+ htmlFor="audioDevices"
+ className="flex items-center space-x-2"
+ >
+ <Mic className="h-4 w-4" />
+ <span>audio devices</span>
+ </Label>
+ <Popover open={openAudioDevices} onOpenChange={setOpenAudioDevices}>
+ <PopoverTrigger asChild>
<Button
- onClick={() => {
- handleAddIncludedWindow(windowsForInclude);
- setWindowsForInclude("");
- }}
+ variant="outline"
+ role="combobox"
+ aria-expanded={openAudioDevices}
+ className="w-full justify-between"
>
- add
+ {settings.audioDevices.length > 0
+ ? `${settings.audioDevices.length} device(s) selected`
+ : "select audio devices"}
+ <ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />
</Button>
- </div>
+ </PopoverTrigger>
+ <PopoverContent className="w-full p-0">
+ <Command>
+ <CommandInput placeholder="search audio devices..." />
+ <CommandList>
+ <CommandEmpty>no audio device found.</CommandEmpty>
+ <CommandGroup>
+ {availableAudioDevices.map((device) => (
+ <CommandItem
+ key={device.name}
+ value={device.name}
+ onSelect={handleAudioDeviceChange}
+ >
+ <div className="flex items-center">
+ <Check
+ className={cn(
+ "mr-2 h-4 w-4",
+ settings.audioDevices.includes(device.name)
+ ? "opacity-100"
+ : "opacity-0"
+ )}
+ />
+ <span
+ style={{
+ userSelect: "none",
+ WebkitUserSelect: "none",
+ MozUserSelect: "none",
+ msUserSelect: "none",
+ }}
+ >
+ {device.name}{" "}
+ {device.is_default ? "(default)" : ""}
+ </span>
+ </div>
+ </CommandItem>
+ ))}
+ </CommandGroup>
+ </CommandList>
+ </Command>
+ </PopoverContent>
+ </Popover>
+ </div>
+
+ <div className="flex flex-col space-y-2">
+ <Label htmlFor="languages" className="flex items-center space-x-2">
+ <Languages className="h-4 w-4" />
+ <span>languages</span>
+ </Label>
+ <Popover open={openLanguages} onOpenChange={setOpenLanguages}>
+ <PopoverTrigger asChild>
+ <Button
+ variant="outline"
+ role="combobox"
+ aria-expanded={openLanguages}
+ className="w-full justify-between"
+ >
+ {settings.languages.length > 0
+ ? `${settings.languages.join(", ")}`
+ : "select languages"}
+ <ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />
+ </Button>
+ </PopoverTrigger>
+ <PopoverContent className="w-full p-0">
+ <Command>
+ <CommandInput placeholder="search languages..." />
+ <CommandList>
+ <CommandEmpty>no language found.</CommandEmpty>
+ <CommandGroup>
+ {Object.entries(Language).map(([language, id]) => (
+ <CommandItem
+ key={language}
+ value={language}
+ onSelect={() => handleLanguageChange(id)}
+ >
+ <div className="flex items-center">
+ <Check
+ className={cn(
+ "mr-2 h-4 w-4",
+ settings.languages.includes(id)
+ ? "opacity-100"
+ : "opacity-0"
+ )}
+ />
+ {/* not selectable */}
+ <span
+ style={{
+ userSelect: "none",
+ WebkitUserSelect: "none",
+ MozUserSelect: "none",
+ msUserSelect: "none",
+ }}
+ >
+ {language}
+ </span>
+ </div>
+ </CommandItem>
+ ))}
+ </CommandGroup>
+ </CommandList>
+ </Command>
+ </PopoverContent>
+ </Popover>
+ </div>
+
+ <div className="flex flex-col space-y-2">
+ <Label
+ htmlFor="vadSensitivity"
+ className="flex items-center space-x-2"
+ >
+ <span>Voice Activity Detection sensitivity</span>
+ <TooltipProvider>
+ <Tooltip>
+ <TooltipTrigger>
+ <HelpCircle className="h-4 w-4 cursor-default" />
+ </TooltipTrigger>
+ <TooltipContent side="right">
+ <p>
+ adjust the voice activity detection sensitivity.
+ <br />
+ low: more sensitive, catches most speech but may have more
+ false positives.
+ <br />
+ medium: balanced sensitivity.
+ <br />
+ high (recommended): less sensitive, may miss some speech
+ but reduces false positives.
+ </p>
+ </TooltipContent>
+ </Tooltip>
+ </TooltipProvider>
+ </Label>
+ <div className="flex items-center space-x-4">
+ <Slider
+ id="vadSensitivity"
+ min={0}
+ max={2}
+ step={1}
+ value={[vadSensitivityToNumber(settings.vadSensitivity)]}
+ onValueChange={handleVadSensitivityChange}
+ className="flex-grow"
+ />
+ <span className="w-16 text-right">{settings.vadSensitivity}</span>
</div>
-
- <div className="flex flex-col space-y-2">
- <Label htmlFor="fps" className="flex items-center space-x-2">
- <span>frames per second (fps)</span>
- <TooltipProvider>
- <Tooltip>
- <TooltipTrigger>
- <HelpCircle className="h-4 w-4 cursor-default" />
- </TooltipTrigger>
- <TooltipContent side="right">
- <p>
- adjust the recording frame rate. lower values save
- <br />
- resources, higher values provide smoother recordings,
- less likely to miss activity.
- <br />
- (we do not use resources if your screen does not change
- much)
- </p>
- </TooltipContent>
- </Tooltip>
- </TooltipProvider>
- </Label>
- <div className="flex items-center space-x-4">
- <Slider
- id="fps"
- min={0.1}
- max={10}
- step={0.1}
- value={[localSettings.fps]}
- onValueChange={handleFpsChange}
- className="flex-grow"
- />
- <span className="w-12 text-right">
- {localSettings.fps.toFixed(1)}
- </span>
- </div>
+ <div className="flex justify-between text-xs text-gray-500">
+ <span>low</span>
+ <span>medium</span>
+ <span>high</span>
</div>
-
- <div className="flex flex-col space-y-2">
- <Label
- htmlFor="vadSensitivity"
- className="flex items-center space-x-2"
- >
- <span>vad sensitivity</span>
- <TooltipProvider>
- <Tooltip>
- <TooltipTrigger>
- <HelpCircle className="h-4 w-4 cursor-default" />
- </TooltipTrigger>
- <TooltipContent side="right">
- <p>
- adjust the voice activity detection sensitivity.
- <br />
- low: more sensitive, catches most speech but may have
- more false positives.
- <br />
- medium: balanced sensitivity.
- <br />
- high (recommended): less sensitive, may miss some speech
- but reduces false positives.
- </p>
- </TooltipContent>
- </Tooltip>
- </TooltipProvider>
- </Label>
- <div className="flex items-center space-x-4">
- <Slider
- id="vadSensitivity"
- min={0}
- max={2}
- step={1}
- value={[vadSensitivityToNumber(localSettings.vadSensitivity)]}
- onValueChange={handleVadSensitivityChange}
- className="flex-grow"
- />
- <span className="w-16 text-right">
- {localSettings.vadSensitivity}
- </span>
+ </div>
+
+ <div className="flex flex-col space-y-2">
+ <Label
+ htmlFor="audioChunkDuration"
+ className="flex items-center space-x-2"
+ >
+ <span>Audio chunk duration (seconds)</span>
+ <TooltipProvider>
+ <Tooltip>
+ <TooltipTrigger>
+ <HelpCircle className="h-4 w-4 cursor-default" />
+ </TooltipTrigger>
+ <TooltipContent side="right">
+ <p>
+ adjust the duration of each audio chunk.
+ <br />
+ shorter durations may lower resource usage spikes,
+ <br />
+ while longer durations may increase transcription quality.
+ <br />
+ deepgram in general works better than whisper if you want
+ higher quality transcription.
+ </p>
+ </TooltipContent>
+ </Tooltip>
+ </TooltipProvider>
+ </Label>
+ <div className="flex items-center space-x-4">
+ <Slider
+ id="audioChunkDuration"
+ min={5}
+ max={3000}
+ step={1}
+ value={[settings.audioChunkDuration]}
+ onValueChange={handleAudioChunkDurationChange}
+ className="flex-grow"
+ />
+ <span className="w-12 text-right">
+ {settings.audioChunkDuration} s
+ </span>
+ </div>
+ </div>
+ </div>
+
+ <Separator className="my-6" />
+
+ <h4 className="text-lg font-semibold my-4">Misc</h4>
+
+ <div className="space-y-8 py-4">
+ <div className="space-y-6">
+ <div className="flex items-center justify-between">
+ <div className="space-y-1">
+ <h4 className="font-medium">
+ Remove Personal Information (PII)
+ </h4>
+ <p className="text-sm text-muted-foreground">
+ Removes sensitive data like credit cards, emails, and phone
+ numbers from OCR text
+ </p>
</div>
- <div className="flex justify-between text-xs text-gray-500">
- <span>low</span>
- <span>medium</span>
- <span>high</span>
+ <div className="flex items-center gap-2">
+ <Badge variant="secondary">experimental</Badge>
+ <Switch
+ id="piiRemoval"
+ checked={settings.usePiiRemoval}
+ onCheckedChange={handlePiiRemovalChange}
+ />
</div>
</div>
- <div className="flex flex-col space-y-2">
- <Label
- htmlFor="audioChunkDuration"
- className="flex items-center space-x-2"
- >
- <span>audio chunk duration (seconds)</span>
- <TooltipProvider>
- <Tooltip>
- <TooltipTrigger>
- <HelpCircle className="h-4 w-4 cursor-default" />
- </TooltipTrigger>
- <TooltipContent side="right">
- <p>
- adjust the duration of each audio chunk.
- <br />
- shorter durations may lower resource usage spikes,
- <br />
- while longer durations may increase transcription
- quality.
- <br />
- deepgram in general works better than whisper if you
- want higher quality transcription.
- </p>
- </TooltipContent>
- </Tooltip>
- </TooltipProvider>
- </Label>
- <div className="flex items-center space-x-4">
- <Slider
- id="audioChunkDuration"
- min={5}
- max={3000}
- step={1}
- value={[localSettings.audioChunkDuration]}
- onValueChange={handleAudioChunkDurationChange}
- className="flex-grow"
- />
- <span className="w-12 text-right">
- {localSettings.audioChunkDuration} s
- </span>
+ <div className="flex items-center justify-between">
+ <div className="space-y-1">
+ <h4 className="font-medium">Enable Telemetry</h4>
+ <p className="text-sm text-muted-foreground">
+ Help improve Screenpipe with anonymous usage data
+ </p>
</div>
- </div>
- <div className="flex items-center space-x-2">
<Switch
id="analytics-toggle"
- checked={localSettings.analyticsEnabled}
+ checked={settings.analyticsEnabled}
onCheckedChange={handleAnalyticsToggle}
/>
- <Label
- htmlFor="analytics-toggle"
- className="flex items-center space-x-2"
- >
- <span>enable telemetry</span>
- <TooltipProvider>
- <Tooltip>
- <TooltipTrigger>
- <HelpCircle className="h-4 w-4 cursor-default" />
- </TooltipTrigger>
- <TooltipContent side="right">
- <p>
- telemetry helps us improve screenpipe.
- <br />
- when enabled, we collect anonymous usage data such as
- button clicks.
- <br />
- we do not collect any screen data, microphone, query
- data.
- <br />
- read more on our data privacy policy at
- <br />
- <a
- href="https://screenpi.pe/privacy"
- target="_blank"
- rel="noopener noreferrer"
- className="text-primary hover:underline"
- >
- https://screenpi.pe/privacy
- </a>
- </p>
- </TooltipContent>
- </Tooltip>
- </TooltipProvider>
- </Label>
</div>
- <div className="flex items-center space-x-2">
+
+ <div className="flex items-center justify-between">
+ <div className="space-y-1">
+ <h4 className="font-medium">Use Chinese Mirror</h4>
+ <p className="text-sm text-muted-foreground">
+ Alternative download source for Hugging Face models in
+ mainland China
+ </p>
+ </div>
<Switch
id="chinese-mirror-toggle"
- checked={localSettings.useChineseMirror}
+ checked={settings.useChineseMirror}
onCheckedChange={handleChineseMirrorToggle}
/>
- <Label
- htmlFor="chinese-mirror-toggle"
- className="flex items-center space-x-2"
- >
- <span>use chinese mirror for model downloads</span>
- <TooltipProvider>
- <Tooltip>
- <TooltipTrigger>
- <HelpCircle className="h-4 w-4 cursor-default" />
- </TooltipTrigger>
- <TooltipContent side="right">
- <p>
- enable this option to use a chinese mirror for
- <br />
- downloading Hugging Face models
- <br />
- (e.g. Whisper, embedded Llama, etc.)
- <br />
- which are blocked in mainland China.
- </p>
- </TooltipContent>
- </Tooltip>
- </TooltipProvider>
- </Label>
</div>
- <div className="flex flex-col space-y-2">
+
+ <div className="flex items-center justify-between">
+ <div className="space-y-1">
+ <h4 className="font-medium">Enable Timeline UI</h4>
+ <p className="text-sm text-muted-foreground">
+ Experimental feature that provides a timeline interface like
+ Rewind.ai
+ </p>
+ </div>
+ <Switch
+ id="frame-cache-toggle"
+ checked={settings.enableFrameCache}
+ onCheckedChange={handleFrameCacheToggle}
+ />
+ </div>
+
+ {isMacOS && (
<div className="flex items-center justify-between">
- <div className="flex items-center space-x-2">
+ <div className="space-y-1">
+ <h4 className="font-medium">Enable UI Monitoring</h4>
+ <p className="text-sm text-muted-foreground">
+ Monitor UI elements for better search context (requires
+ accessibility permission)
+ </p>
+ </div>
+ <div className="flex items-center gap-2">
<Switch
- id="frame-cache-toggle"
- checked={localSettings.enableFrameCache}
- onCheckedChange={handleFrameCacheToggle}
+ id="ui-monitoring-toggle"
+ checked={settings.enableUiMonitoring}
+ onCheckedChange={handleUiMonitoringToggle}
/>
- <Label
- htmlFor="frame-cache-toggle"
- className="flex items-center space-x-2"
- >
- <span>enable timeline UI</span>
- <TooltipProvider>
- <Tooltip>
- <TooltipTrigger>
- <HelpCircle className="h-4 w-4 cursor-default" />
- </TooltipTrigger>
- <TooltipContent side="right">
- <p>
- experimental feature that provides a timeline UI
- (like rewind.ai).
- <br />
- may increase CPU usage and memory consumption.
- </p>
- </TooltipContent>
- </Tooltip>
- </TooltipProvider>
- </Label>
</div>
</div>
- </div>
- {isMacOS && (
- <div className="flex items-center space-x-2">
- <Switch
- id="ui-monitoring-toggle"
- checked={localSettings.enableUiMonitoring}
- onCheckedChange={handleUiMonitoringToggle}
- />
- <Label
- htmlFor="ui-monitoring-toggle"
- className="flex items-center space-x-2"
- >
- <span>enable UI monitoring</span>
- <Badge variant="outline" className="ml-2">
- accessibility permissions
- </Badge>
- <TooltipProvider>
- <Tooltip>
- <TooltipTrigger>
- <HelpCircle className="h-4 w-4 cursor-default" />
- </TooltipTrigger>
- <TooltipContent side="right">
- <p>
- enables monitoring of UI elements and their
- interactions.
- <br />
- this allows for better context in search results
- <br />* requires accessibility permission
- </p>
- </TooltipContent>
- </Tooltip>
- </TooltipProvider>
- </Label>
- </div>
)}
- {/* <div className="flex flex-col space-y-2">
- <Label htmlFor="port" className="flex items-center space-x-2">
- <span>server port</span>
- <TooltipProvider>
- <Tooltip>
- <TooltipTrigger>
- <HelpCircle className="h-4 w-4 cursor-default" />
- </TooltipTrigger>
- <TooltipContent side="right">
- <p>
- port number for the screenpipe server.
- <br />
- default is 3030. change only if you have port conflicts.
- <br />
- requires restart to take effect.
- </p>
- </TooltipContent>
- </Tooltip>
- </TooltipProvider>
- </Label>
- <div className="flex items-center space-x-4">
+
+ <div className="space-y-2">
+ <div className="flex items-center gap-2 mb-2">
+ <Folder className="h-5 w-5" />
+ <h3 className="text-lg font-semibold">Data Directory</h3>
+ </div>
+
+ {!dataDirInputVisible ? (
+ <Button
+ variant="outline"
+ role="combobox"
+ className="w-full justify-between"
+ onClick={handleDataDirChange}
+ >
+ <div className="flex gap-4">
+ {!!settings.dataDir
+ ? "Change Directory"
+ : "Select Directory"}
+ <span className="text-muted-foreground">
+ {settings.dataDir === settings.dataDir
+ ? `Current at: ${
+ settings.dataDir || "Default Directory"
+ }`
+ : `Change to: ${
+ settings.dataDir || "Default Directory"
+ }`}
+ </span>
+ </div>
+ <ChevronsUpDown className="h-4 w-4 opacity-50" />
+ </Button>
+ ) : (
<Input
- id="port"
- type="number"
- min={1024}
- max={65535}
- value={localSettings.port}
- onChange={(e) => {
- const port = parseInt(e.target.value);
- if (!isNaN(port) && port >= 1024 && port <= 65535) {
- setLocalSettings({
- ...localSettings,
- port: port,
- });
- }
- }}
- className="w-32"
+ id="dataDir"
+ type="text"
+ autoFocus={true}
+ value={settings.dataDir}
+ onChange={handleDataDirInputChange}
+ onBlur={handleDataDirInputBlur}
+ onKeyDown={handleDataDirInputKeyDown}
/>
- </div>
- </div> */}
- </CardContent>
- </Card>
+ )}
+ </div>
+
+ {/* */}
+ </div>
+ </div>
</div>
- </>
+ </div>
);
}
diff --git a/screenpipe-app-tauri/components/settings.tsx b/screenpipe-app-tauri/components/settings.tsx
index f18c5e2b5..ce2386e48 100644
--- a/screenpipe-app-tauri/components/settings.tsx
+++ b/screenpipe-app-tauri/components/settings.tsx
@@ -1,1044 +1,88 @@
"use client";
-import React, { useEffect, useState, useCallback, useRef } from "react";
-import { Input } from "@/components/ui/input";
-import { Label } from "@/components/ui/label";
-import { Button } from "@/components/ui/button";
-import {
- AIProviderType,
- Shortcut,
- useSettings,
-} from "@/lib/hooks/use-settings";
-import {
- Tooltip,
- TooltipContent,
- TooltipProvider,
- TooltipTrigger,
-} from "@/components/ui/tooltip";
-import { Separator } from "@/components/ui/separator";
-import {
- Card,
- CardContent,
- CardFooter,
- CardHeader,
- CardTitle,
-} from "@/components/ui/card";
-import { Textarea } from "./ui/textarea";
-import { Slider } from "@/components/ui/slider"; // Add this import
-import { Badge } from "@/components/ui/badge"; // Add this import
-import { cn, parseKeyboardShortcut } from "@/lib/utils"; // Add this import
-
-import {
- HelpCircle,
- RefreshCw,
- Settings2,
- EyeOff,
- Eye,
- Check,
- X,
- Play,
- Loader2,
-} from "lucide-react";
-
-import { toast } from "@/components/ui/use-toast";
-import { invoke } from "@tauri-apps/api/core";
-
-import { registerShortcuts } from "@/lib/shortcuts";
-
-import {
- Select,
- SelectContent,
- SelectItem,
- SelectTrigger,
- SelectValue,
-} from "@/components/ui/select";
-import { useInterval } from "@/lib/hooks/use-interval";
-import { useHealthCheck } from "@/lib/hooks/use-health-check";
-import { useUser } from "@/lib/hooks/use-user";
-import { open as openUrl } from "@tauri-apps/plugin-shell";
-import {
- Dialog,
- DialogContent,
- DialogDescription,
- DialogHeader,
- DialogTitle,
- DialogTrigger,
-} from "./ui/dialog";
+import React, { useState } from "react";
+import { useSettings } from "@/lib/hooks/use-settings";
+import { Settings2, Brain, Video, Keyboard, User, ArrowLeft } from "lucide-react";
+import { Dialog, DialogContent, DialogTrigger } from "./ui/dialog";
+import { cn } from "@/lib/utils";
import { RecordingSettings } from "./recording-settings";
-import { Switch } from "./ui/switch";
-import { LogFileButton } from "./log-file-button";
import { AccountSection } from "./settings/account-section";
-
-export function Settings({ className }: { className?: string }) {
- const {
- settings,
- updateSettings,
- resetSetting,
- resetSettings,
- localSettings,
- setLocalSettings,
- } = useSettings();
- const { user } = useUser();
- const { credits } = user || {};
- const { debouncedFetchHealth } = useHealthCheck();
- const [showApiKey, setShowApiKey] = React.useState(false);
- const [ollamaStatus, setOllamaStatus] = useState<
- "idle" | "running" | "error"
- >("idle");
-
- const [selectedModifiers, setSelectedModifiers] = useState<string[]>([]);
- const [nonModifierKey, setNonModifierKey] = useState<string>("");
- const [currentShortcut, setCurrentShortcut] = useState<string>(
- settings.showScreenpipeShortcut
- );
- const [embeddedAIStatus, setEmbeddedAIStatus] = useState<
- "idle" | "running" | "error"
- >("idle");
-
- const [disabledShortcuts, setDisabledShortcuts] = useState<Shortcut[]>(
- settings.disabledShortcuts
- );
-
- useEffect(() => {
- setCurrentShortcut(settings.showScreenpipeShortcut);
-
- const parts = settings.showScreenpipeShortcut.split("+");
- const modifiers = parts.slice(0, -1);
- const key = parts.slice(-1)[0];
-
- setSelectedModifiers(modifiers);
- setNonModifierKey(key);
- }, [settings.showScreenpipeShortcut]);
-
- const toggleModifier = (modifier: string) => {
- setSelectedModifiers((prev) =>
- prev.includes(modifier)
- ? prev.filter((m) => m !== modifier)
- : [...prev, modifier]
- );
- };
-
- const handleNonModifierKeyChange = (
- event: React.ChangeEvent<HTMLInputElement>
- ) => {
- const key = event.target.value.toUpperCase();
- const validKeys = /^[A-Z0-9]$|^F([1-9]|1[0-2])$/; // Alphanumeric or F1-F12
- if (validKeys.test(key) || key === "") {
- setNonModifierKey(key);
- }
- };
-
- const handleSetShortcut = () => {
- if (selectedModifiers.length === 0 || nonModifierKey === "") {
- // Don't update if no modifiers and no key are selected
- toast({
- title: "invalid shortcut",
- description: "please select at least one modifier and a key",
- variant: "destructive",
- });
- return;
- }
-
- const newShortcut = [...selectedModifiers, nonModifierKey]
- .filter(Boolean)
- .join("+");
- setLocalSettings({ ...localSettings, showScreenpipeShortcut: newShortcut });
- updateSettings({ showScreenpipeShortcut: newShortcut });
- registerShortcuts({
- showScreenpipeShortcut: newShortcut,
- disabledShortcuts,
- });
-
- setCurrentShortcut(newShortcut);
-
- toast({
- title: "shortcut updated",
- description: `new shortcut set to: ${parseKeyboardShortcut(newShortcut)}`,
- });
- };
-
- const newShortcut = [...selectedModifiers, nonModifierKey].join("+");
- const isShortcutChanged = newShortcut !== currentShortcut;
-
- const handleApiKeyChange = (e: React.ChangeEvent<HTMLInputElement>) => {
- const newValue = e.target.value;
- setLocalSettings({ ...localSettings, openaiApiKey: newValue });
- updateSettings({ openaiApiKey: newValue });
- };
-
- const handleModelChange = (e: React.ChangeEvent<HTMLInputElement>) => {
- const newValue = e.target.value;
- setLocalSettings({ ...localSettings, aiModel: newValue });
- updateSettings({ aiModel: newValue });
- };
-
- const handleCustomPromptChange = (
- e: React.ChangeEvent<HTMLTextAreaElement>
- ) => {
- const newValue = e.target.value;
- setLocalSettings({ ...localSettings, customPrompt: newValue });
- updateSettings({ customPrompt: newValue });
- };
-
- const handleResetCustomPrompt = () => {
- resetSetting("customPrompt");
- };
-
- const handleMaxContextCharsChange = (value: number[]) => {
- const newValue = value[0];
- setLocalSettings({ ...localSettings, aiMaxContextChars: newValue });
- updateSettings({ aiMaxContextChars: newValue });
- };
-
- const handleEmbeddedLLMChange = (checked: boolean) => {
- const newValue = { ...localSettings.embeddedLLM, enabled: checked };
- setLocalSettings({ ...localSettings, embeddedLLM: newValue });
- updateSettings({ embeddedLLM: newValue });
- if (!checked) {
- setOllamaStatus("idle");
- }
- };
-
- const handleEmbeddedLLMModelChange = (
- e: React.ChangeEvent<HTMLInputElement>
- ) => {
- const newModel = e.target.value;
- const newEmbeddedLLM = { ...localSettings.embeddedLLM, model: newModel };
- setLocalSettings({
- ...localSettings,
- embeddedLLM: newEmbeddedLLM,
- aiModel: newModel, // Update the general AI model as well
- });
- updateSettings({
- embeddedLLM: newEmbeddedLLM,
- aiModel: newModel, // Update the general AI model in the global settings
- });
- };
-
- const handleEmbeddedLLMPortChange = (
- e: React.ChangeEvent<HTMLInputElement>
- ) => {
- const newValue = {
- ...localSettings.embeddedLLM,
- port: parseInt(e.target.value, 10),
- };
- setLocalSettings({ ...localSettings, embeddedLLM: newValue });
- updateSettings({ embeddedLLM: newValue });
- };
-
- const startOllamaSidecar = async () => {
- setOllamaStatus("running");
- toast({
- title: "starting ai",
- description:
- "downloading and initializing the embedded ai, may take a while (check $HOME/.ollama/models)...",
- });
-
- try {
- console.log(
- "starting ollama sidecar with settings:",
- localSettings.embeddedLLM
- );
- const result = await invoke<string>("start_ollama_sidecar", {
- settings: {
- enabled: localSettings.embeddedLLM.enabled,
- model: localSettings.embeddedLLM.model,
- port: localSettings.embeddedLLM.port,
- },
- });
-
- setOllamaStatus("running");
- setEmbeddedAIStatus("running");
- toast({
- title: "ai ready",
- description: `${localSettings.embeddedLLM.model} is running.`,
- });
-
- // Show the LLM test result in a toast
- toast({
- title: `${localSettings.embeddedLLM.model} wants to tell you a joke.`,
- description: result,
- duration: 10000,
- });
- } catch (error) {
- console.error("Error starting ai sidecar:", error);
- setOllamaStatus("error");
- setEmbeddedAIStatus("error");
- toast({
- title: "error starting ai",
- description: "check the console for more details",
- variant: "destructive",
- });
- }
- };
-
- const handleStopLLM = async () => {
- try {
- await invoke("stop_ollama_sidecar");
- setOllamaStatus("idle");
- setEmbeddedAIStatus("idle");
- toast({
- title: "ai stopped",
- description: "the embedded ai has been shut down",
- });
- } catch (error) {
- console.error("error stopping ai:", error);
- setEmbeddedAIStatus("error");
- toast({
- title: "error stopping ai",
- description: "check the console for more details",
- variant: "destructive",
- });
- }
- };
-
- const handleAiProviderChange = (newValue: AIProviderType) => {
- let newUrl = "";
- let newModel = localSettings.aiModel;
-
- if (newValue === "screenpipe-cloud" && !credits?.amount) {
- openUrl("https://buy.stripe.com/5kA6p79qefweacg5kJ");
- return;
- }
- switch (newValue) {
- case "openai":
- newUrl = "https://api.openai.com/v1";
- break;
- case "native-ollama":
- newUrl = "http://localhost:11434/v1";
- break;
- case "embedded":
- newUrl = `http://localhost:${localSettings.embeddedLLM.port}/v1`;
- newModel = localSettings.embeddedLLM.model;
- break;
- case "screenpipe-cloud":
- newUrl = "https://ai-proxy.i-f9f.workers.dev/v1";
- break;
- case "custom":
- newUrl = localSettings.aiUrl; // Keep the existing custom URL
- break;
- }
-
- setLocalSettings({
- ...localSettings,
- aiProviderType: newValue,
- aiUrl: newUrl,
- aiModel: newModel,
- });
- updateSettings({
- aiProviderType: newValue,
- aiUrl: newUrl,
- aiModel: newModel,
- });
- };
-
- const isApiKeyRequired =
- localSettings.aiUrl !== "https://ai-proxy.i-f9f.workers.dev/v1" &&
- localSettings.aiUrl !== "http://localhost:11434/v1" &&
- localSettings.aiUrl !== "embedded";
-
- const getProviderTooltipContent = () => {
- switch (localSettings.aiUrl) {
- case "https://ai-proxy.i-f9f.workers.dev/v1":
- return (
- <p>
- {credits?.amount ? (
- <>
- screenpipe cloud doesn&apos;t require an API key.
- <br />
- you have {credits.amount} credits left.
- </>
- ) : (
- <>
- you need credits to use screenpipe cloud.
- <br />
- <a
- href="https://buy.stripe.com/5kA6p79qefweacg5kJ"
- target="_blank"
- className="text-primary hover:underline"
- >
- get credits here
- </a>
- </>
- )}
- </p>
- );
- case "https://api.openai.com/v1":
- return (
- <p>
- openai requires an API key.
- <br />
- note: using this option may involve sending data to openai servers.
- <br />
- please review openai&apos;s data privacy policy for more
- information.
- <br />
- find openai key here:{" "}
- <a
- href="https://platform.openai.com/account/api-keys"
- target="_blank"
- className="text-primary hover:underline"
- >
- openai
- </a>
- </p>
- );
- case "http://localhost:11434/v1":
- return (
- <p>
- choose your ai provider. for local providers like ollama, make sure
- it&apos;s running on your machine.
- <br />
- note: on windows, you may need to run ollama with:
- <pre className="bg-gray-100 p-1 rounded-md">
- OLLAMA_ORIGINS=* ollama run llama3.2:3b-instruct-q4_K_M
- </pre>
- </p>
- );
- case "embedded":
- return (
- <p>
- use the embedded ai provided by screenpipe.
- <br />
- no api key required. model is predefined.
- </p>
- );
- default:
- return (
- <p>
- choose your ai provider. for local providers like ollama, make sure
- it&apos;s running on your machine.
- <br />
- note: on windows, you may need to run ollama with:
- <pre className="bg-gray-100 p-1 rounded-md">
- OLLAMA_ORIGINS=* ollama run llama3.2:3b-instruct-q4_K_M
- </pre>
- </p>
- );
- }
- };
-
- const getModelTooltipContent = () => {
- switch (localSettings.aiUrl) {
- case "https://api.openai.com/v1":
- case "https://ai-proxy.i-f9f.workers.dev/v1":
- return (
- <p>
- suggested models:
- <br />- gpt-4o
- </p>
- );
- case "http://localhost:11434/v1":
- return (
- <p>
- suggested models:
- <br />
- - llama3.2:3b-instruct-q4_K_M
- <br />
- - mistral models
- <br />
- or find more models at:
- <a
- href="https://ollama.com/library"
- target="_blank"
- className="text-primary hover:underline"
- >
- ollama models
- </a>
- </p>
- );
- case "embedded":
- return (
- <p>the model for embedded ai is predefined and cannot be changed.</p>
- );
- default:
- return (
- <p>enter the model name appropriate for your custom AI provider.</p>
- );
- }
- };
-
- // Add this function to check the embedded AI status
- const checkEmbeddedAIStatus = useCallback(async () => {
- if (localSettings.embeddedLLM.enabled) {
- try {
- const response = await fetch(
- `http://localhost:${localSettings.embeddedLLM.port}/api/tags`,
- {
- method: "GET",
- }
- );
- if (response.ok) {
- setEmbeddedAIStatus("running");
- } else {
- setEmbeddedAIStatus("error");
- }
- } catch (error) {
- console.error("Error checking embedded AI status:", error);
- setEmbeddedAIStatus("error");
- }
- } else {
- setEmbeddedAIStatus("idle");
- }
- }, [localSettings.embeddedLLM.enabled, localSettings.embeddedLLM.port]);
-
- // Use the useInterval hook to periodically check the status
- useInterval(checkEmbeddedAIStatus, 10000); // Check every 10 seconds
-
- const handleShortcutToggle = (checked: boolean) => {
- console.log("handleShortcutToggle", checked);
- let newDisabledShortcuts = [...localSettings.disabledShortcuts];
- if (!checked) {
- newDisabledShortcuts.push(Shortcut.SHOW_SCREENPIPE);
- } else {
- newDisabledShortcuts = newDisabledShortcuts.filter(
- (shortcut) => shortcut !== Shortcut.SHOW_SCREENPIPE
- );
- }
-
- setLocalSettings({
- ...localSettings,
- disabledShortcuts: newDisabledShortcuts,
- });
- updateSettings({
- disabledShortcuts: newDisabledShortcuts,
- });
-
- registerShortcuts({
- showScreenpipeShortcut: settings.showScreenpipeShortcut,
- disabledShortcuts: newDisabledShortcuts,
- });
- };
-
- const handleResetSettings = async () => {
- try {
- await resetSettings();
- toast({
- title: "settings were reset successfully",
- });
- } catch (e) {
- console.log(e);
- toast({
- title: "can't reset your settings",
- variant: "destructive",
- });
+import ShortcutSection from "./settings/shortcut-section";
+import AISection from "./settings/ai-section";
+
+type SettingsSection = "ai" | "shortcuts" | "recording" | "account";
+
+export function Settings() {
+ const [activeSection, setActiveSection] = useState<SettingsSection>("account");
+
+ const renderSection = () => {
+ switch (activeSection) {
+ case "ai":
+ return <AISection />;
+ case "account":
+ return <AccountSection />;
+ case "recording":
+ return <RecordingSettings />;
+ case "shortcuts":
+ return <ShortcutSection />;
}
};
return (
- <Dialog
- onOpenChange={(open) => {
- if (!open) {
- window.location.reload();
- }
- }}
- >
- <DialogTrigger asChild>
- <div
- className={cn(
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
- className
- )}
- onSelect={(e) => e.preventDefault()}
- >
- <div className="flex items-center">
- <Settings2 className="mr-2 h-4 w-4" />
- <span>settings</span>
- </div>
- </div>
- </DialogTrigger>
-
- <DialogContent className="max-w-[80vw] w-full max-h-[80vh] h-full overflow-y-auto">
- <DialogHeader>
- <DialogTitle>
- <div className="flex items-center gap-4">settings</div>
- </DialogTitle>
- <DialogDescription>
- choose your AI provider, enter necessary credentials, and more.
- </DialogDescription>
- </DialogHeader>
- <div className="mt-8 space-y-6">
- <AccountSection />
- <Separator />
- <RecordingSettings
- localSettings={localSettings}
- setLocalSettings={setLocalSettings}
- />
-
- <Separator />
-
- <Card>
- <CardHeader>
- <CardTitle className="text-center">ai settings</CardTitle>
- </CardHeader>
- <CardContent className="flex flex-col items-center space-y-4">
- <div className="w-full">
- <div className="flex items-center gap-4 mb-4">
- <Label htmlFor="aiUrl" className="min-w-[80px] text-right">
- ai provider
- </Label>
- <div className="flex-grow flex items-center">
- <Select
- onValueChange={handleAiProviderChange}
- value={localSettings.aiProviderType}
- >
- <SelectTrigger className="w-full">
- <SelectValue placeholder="Select AI provider" />
- </SelectTrigger>
- <SelectContent>
- <SelectItem value="screenpipe-cloud">
- screenpipe cloud{" "}
- {!credits?.amount && "(requires credits)"}
- </SelectItem>
- <SelectItem value="openai">openai</SelectItem>
- <SelectItem value="native-ollama">
- ollama (local)
- </SelectItem>
- <SelectItem value="custom">custom</SelectItem>
- {embeddedAIStatus === "running" && (
- <SelectItem value="embedded">embedded ai</SelectItem>
- )}
- </SelectContent>
- </Select>
- </div>
- <TooltipProvider>
- <Tooltip>
- <TooltipTrigger asChild>
- <HelpCircle className="ml-2 h-4 w-4 cursor-default" />
- </TooltipTrigger>
- <TooltipContent side="left">
- {getProviderTooltipContent()}
- </TooltipContent>
- </Tooltip>
- </TooltipProvider>
- </div>
- </div>
- {localSettings.aiProviderType === "custom" && (
- <div className="w-full">
- <div className="flex items-center gap-4 mb-4">
- <Label
- htmlFor="customAiUrl"
- className="min-w-[80px] text-right"
- >
- custom url
- </Label>
- <Input
- id="customAiUrl"
- value={localSettings.aiUrl}
- onChange={(e) => {
- const newUrl = e.target.value;
- setLocalSettings({ ...localSettings, aiUrl: newUrl });
- updateSettings({ aiUrl: newUrl });
- }}
- className="flex-grow"
- placeholder="enter custom ai url"
- autoCorrect="off"
- autoCapitalize="off"
- autoComplete="off"
- type="text"
- />
- </div>
- </div>
- )}
- {isApiKeyRequired && (
- <div className="w-full">
- <div className="flex items-center gap-4 mb-4">
- <Label
- htmlFor="aiApiKey"
- className="min-w-[80px] text-right"
- >
- api key
- </Label>
- <div className="flex-grow relative">
- <Input
- id="aiApiKey"
- type={showApiKey ? "text" : "password"}
- value={localSettings.openaiApiKey}
- onChange={handleApiKeyChange}
- className="pr-10"
- placeholder="enter your ai api key"
- autoCorrect="off"
- autoCapitalize="off"
- autoComplete="off"
- />
- <Button
- type="button"
- variant="ghost"
- size="icon"
- className="absolute right-0 top-0 h-full"
- onClick={() => setShowApiKey(!showApiKey)}
- >
- {showApiKey ? (
- <EyeOff className="h-4 w-4" />
- ) : (
- <Eye className="h-4 w-4" />
- )}
- </Button>
- </div>
- </div>
- </div>
- )}
- {localSettings.aiProviderType !== "embedded" && (
- <div className="w-full">
- <div className="flex items-center gap-4 mb-4">
- <Label
- htmlFor="aiModel"
- className="min-w-[80px] text-right"
- >
- ai model
- </Label>
- <div className="flex-grow relative">
- <Input
- id="aiModel"
- value={localSettings.aiModel}
- onChange={handleModelChange}
- className="flex-grow"
- placeholder={
- localSettings.aiProviderType === "native-ollama"
- ? "e.g., llama3.2:3b-instruct-q4_K_M"
- : "e.g., gpt-4o"
- }
- autoCorrect="off"
- autoCapitalize="off"
- autoComplete="off"
- />
- </div>
- <TooltipProvider>
- <Tooltip>
- <TooltipTrigger asChild>
- <HelpCircle className="ml-2 h-4 w-4 cursor-default" />
- </TooltipTrigger>
- <TooltipContent side="left">
- {getModelTooltipContent()}
- </TooltipContent>
- </Tooltip>
- </TooltipProvider>
- </div>
- </div>
- )}
-
- <div className="w-full">
- <div className="flex items-center gap-4 mb-4">
- <Label
- htmlFor="customPrompt"
- className="min-w-[80px] text-right"
- >
- prompt
- </Label>
- <div className="flex-grow relative">
- <Textarea
- id="customPrompt"
- value={localSettings.customPrompt}
- onChange={handleCustomPromptChange}
- className="min-h-[100px]"
- placeholder="enter your custom prompt here"
- />
- <Button
- type="button"
- variant="ghost"
- size="sm"
- className="absolute right-2 top-2"
- onClick={handleResetCustomPrompt}
- >
- <RefreshCw className="h-4 w-4 mr-2" />
- reset
- </Button>
- </div>
- </div>
- </div>
-
- <div className="w-full">
- <div className="flex items-center gap-4 mb-4">
- <Label
- htmlFor="aiMaxContextChars"
- className="min-w-[80px] text-right"
- >
- max context
- </Label>
- <div className="flex-grow flex items-center">
- <Slider
- id="aiMaxContextChars"
- min={1000}
- max={128000}
- step={1000}
- value={[localSettings.aiMaxContextChars]}
- onValueChange={handleMaxContextCharsChange}
- className="flex-grow"
- />
- <span className="ml-2 min-w-[60px] text-right">
- {localSettings.aiMaxContextChars.toLocaleString()}
- </span>
- <TooltipProvider>
- <Tooltip>
- <TooltipTrigger asChild>
- <HelpCircle className="ml-2 h-4 w-4 cursor-default" />
- </TooltipTrigger>
- <TooltipContent side="left">
- <p>
- maximum number of characters (think 3 characters per
- token) to send to the ai model. <br />
- usually, openai models support up to 128k tokens,
- which is roughly 30k-40k characters. <br />
- we&apos;ll use this for UI purposes to show you how
- much you can send.
- </p>
- </TooltipContent>
- </Tooltip>
- </TooltipProvider>
- </div>
- </div>
- </div>
-
- <Separator />
-
- <p className="mt-2 text-sm text-muted-foreground text-center">
- enter your ai provider details here. for openai, you can get an
- api key from{" "}
- <a
- href="https://platform.openai.com/api-keys"
- target="_blank"
- rel="noopener noreferrer"
- className="text-primary hover:underline"
- >
- openai&apos;s website
- </a>
- .
- </p>
- <p className="mt-2 text-sm text-muted-foreground text-center">
- for ollama, or any other provider, use the url running on your
- local machine or elsewhere and the exact model name.
- </p>
-
- <Separator className="my-4" />
-
- <div className="w-full">
- <div className="flex items-center gap-4 mb-4">
- <div className="flex items-center min-w-[80px] justify-end">
- <Label htmlFor="embeddedLLM" className="text-right mr-2">
- embedded ai
- </Label>
- <Badge variant="outline" className="ml-2">
- experimental
- </Badge>
- <TooltipProvider>
- <Tooltip>
- <TooltipTrigger asChild>
- <HelpCircle className="h-4 w-4 cursor-help ml-2" />
- </TooltipTrigger>
- <TooltipContent side="right" className="max-w-[300px]">
- <p>
- enable this to use local ai features in screenpipe.
- this is an experimental feature that may be unstable
- or change in future updates. you can use it through
- search or pipes for enhanced functionality without
- relying on external services.
- </p>
- </TooltipContent>
- </Tooltip>
- </TooltipProvider>
- </div>
- <div className="flex items-center gap-4">
- <Switch
- id="embeddedLLM"
- checked={localSettings.embeddedLLM.enabled}
- onCheckedChange={handleEmbeddedLLMChange}
- />
- {localSettings.embeddedLLM.enabled && (
- <>
- <Button
- onClick={startOllamaSidecar}
- disabled={ollamaStatus === "running"}
- className="ml-auto"
- >
- {ollamaStatus === "running" ? (
- <Check className="h-4 w-4 mr-2" />
- ) : ollamaStatus === "error" ? (
- <X className="h-4 w-4 mr-2" />
- ) : ollamaStatus === "idle" ? (
- <Play className="h-4 w-4 mr-2" />
- ) : (
- <Loader2 className="h-4 w-4 mr-2 animate-spin" />
- )}
- {ollamaStatus === "running"
- ? "running"
- : ollamaStatus === "error"
- ? "error"
- : "start ai"}
- </Button>
- <Button
- variant="outline"
- onClick={handleStopLLM}
- className="ml-auto"
- >
- <X className="h-4 w-4 mr-2" />
- stop ai
- </Button>
- <LogFileButton isAppLog={true} />
- <Badge>{embeddedAIStatus}</Badge>
- </>
- )}
- </div>
- </div>
- </div>
-
- {localSettings.embeddedLLM.enabled && (
- <>
- <div className="w-full">
- <div className="flex items-center gap-4 mb-4">
- <Label
- htmlFor="embeddedLLMModel"
- className="min-w-[80px] text-right"
- >
- llm model
- </Label>
- <div className="flex-grow flex items-center">
- <Input
- id="embeddedLLMModel"
- value={localSettings.embeddedLLM.model}
- onChange={handleEmbeddedLLMModelChange}
- className="flex-grow"
- placeholder="enter embedded llm model"
- />
- <TooltipProvider>
- <Tooltip>
- <TooltipTrigger asChild>
- <HelpCircle className="ml-2 h-4 w-4 cursor-help" />
- </TooltipTrigger>
- <TooltipContent
- side="right"
- className="max-w-[300px]"
- >
- <p>
- supported models are the same as ollama. check
- the ollama documentation for a list of available
- models.
- </p>
- </TooltipContent>
- </Tooltip>
- </TooltipProvider>
- </div>
- </div>
- </div>
-
- <div className="w-full">
- <div className="flex items-center gap-4 mb-4">
- <Label
- htmlFor="embeddedLLMPort"
- className="min-w-[80px] text-right"
- >
- llm port
- </Label>
- <Input
- id="embeddedLLMPort"
- type="number"
- value={localSettings.embeddedLLM.port}
- onChange={handleEmbeddedLLMPortChange}
- className="flex-grow"
- placeholder="enter embedded llm port"
- />
- </div>
- </div>
- </>
- )}
- </CardContent>
- </Card>
-
- <Card>
- <CardHeader>
- <CardTitle className="text-center">shortcuts</CardTitle>
- </CardHeader>
- <CardContent className="flex flex-col items-center">
- <div
- className={
- settings.disabledShortcuts.includes(Shortcut.SHOW_SCREENPIPE)
- ? "opacity-50 pointer-events-none"
- : ""
- }
- >
- <h2 className="text-lg font-semibold mb-4">
- set shortcut for screenpipe overlay
- </h2>
- <p className="text-sm text-muted-foreground mb-4">
- use the following options to set a keyboard shortcut for
- showing the screenpipe overlay.
- </p>
- <div className="flex items-center gap-2 mb-4">
- {["ctrl", "alt", "shift", "super"].map((modifier) => (
- <label key={modifier} className="flex items-center">
- <input
- type="checkbox"
- checked={selectedModifiers.includes(modifier)}
- onChange={() => toggleModifier(modifier)}
- />
- <span className="ml-2">
- {parseKeyboardShortcut(modifier)}
- </span>
- </label>
- ))}
- <input
- type="text"
- value={nonModifierKey}
- onChange={handleNonModifierKeyChange}
- placeholder="enter key"
- className="border p-1"
- />
+ <div className="flex h-full">
+ {/* Sidebar */}
+ <div className="w-64 border-r bg-[#f3f3f3]">
+ <div className="flex items-center gap-4 ml-6 mt-4">
+ <h1 className="text-2xl font-bold">Settings</h1>
+ </div>
+ <div className="flex flex-col space-y-1 p-4">
+ {[
+ {
+ id: "account",
+ label: "Account",
+ icon: <User className="h-4 w-4" />,
+ },
+ {
+ id: "ai",
+ label: "AI Settings",
+ icon: <Brain className="h-4 w-4" />,
+ },
+ {
+ id: "recording",
+ label: "Recording",
+ icon: <Video className="h-4 w-4" />,
+ },
+ {
+ id: "shortcuts",
+ label: "Shortcuts",
+ icon: <Keyboard className="h-4 w-4" />,
+ },
+ ].map((section) => (
<button
- onClick={handleSetShortcut}
- className={`btn btn-primary ${
- !isShortcutChanged ? "opacity-50 cursor-not-allowed" : ""
- }`}
- disabled={!isShortcutChanged}
+ key={section.id}
+ onClick={() =>
+ setActiveSection(section.id as SettingsSection)
+ }
+ className={cn(
+ "flex items-center space-x-2 px-4 py-1.5 rounded-lg transition-colors",
+ activeSection === section.id
+ ? "bg-black/90 text-white"
+ : "hover:bg-black/10"
+ )}
>
- set shortcut
+ {section.icon}
+ <span>{section.label}</span>
</button>
- </div>
- <p className="mt-2 text-sm text-muted-foreground text-center">
- current shortcut: {parseKeyboardShortcut(currentShortcut)}
- </p>
- </div>
- <div className="w-full flex justify-center gap-2 items-center">
- <Label htmlFor="shortcutEnabled" className="mt-2 text-sm">
- {settings.disabledShortcuts.includes(Shortcut.SHOW_SCREENPIPE)
- ? "enable shortcut"
- : "disable shortcut"}
- </Label>
- <Switch
- id="shortcutEnabled"
- checked={
- !settings.disabledShortcuts.includes(
- Shortcut.SHOW_SCREENPIPE
- )
- }
- onCheckedChange={handleShortcutToggle}
- className="mt-2"
- />
- </div>
- </CardContent>
- </Card>
- <Card className="border border-[#fab1b6] overflow-hidden">
- <CardHeader>
- <CardTitle className="text-center">reset settings</CardTitle>
- </CardHeader>
- <CardContent className="flex flex-col items-center">
- <p className="text-sm text-muted-foreground mb-4">
- permanently reset settings to their default values.
- </p>
- </CardContent>
- <CardFooter className="bg-[#fdedee] border-t border-[#fab1b6] flex justify-between items-center p-5">
- <p className="text-sm text-muted-foreground">
- this action is not reversible — please continue with caution.
- </p>
- <Button
- variant={"destructive"}
- onClick={() => handleResetSettings()}
- disabled={false}
- >
- reset settings
- </Button>
- </CardFooter>
- </Card>
+ ))}
+ </div>
+ </div>
+
+ {/* Content - Updated styles */}
+ <div className="flex-1 flex flex-col h-full max-h-[80vh]">
+ <div className="flex-1 overflow-y-auto px-4">
+ <div className="max-h-full">{renderSection()}</div>
+ </div>
+ </div>
</div>
- </DialogContent>
- </Dialog>
);
}
diff --git a/screenpipe-app-tauri/components/settings/account-section.tsx b/screenpipe-app-tauri/components/settings/account-section.tsx
index 46aa52c73..3fde7421f 100644
--- a/screenpipe-app-tauri/components/settings/account-section.tsx
+++ b/screenpipe-app-tauri/components/settings/account-section.tsx
@@ -12,29 +12,85 @@ import {
TooltipTrigger,
} from "@/components/ui/tooltip";
import { Separator } from "@/components/ui/separator";
-import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
-import { Badge } from "@/components/ui/badge"; // Add this import
-import { cn } from "@/lib/utils"; // Add this import
+import { Badge } from "@/components/ui/badge";
+import { cn } from "@/lib/utils";
-import { HelpCircle, RefreshCw, Coins, UserCog } from "lucide-react";
+import {
+ HelpCircle,
+ RefreshCw,
+ Coins,
+ UserCog,
+ ExternalLinkIcon,
+} from "lucide-react";
import { toast } from "@/components/ui/use-toast";
import { invoke } from "@tauri-apps/api/core";
import { useUser } from "@/lib/hooks/use-user";
import { open as openUrl } from "@tauri-apps/plugin-shell";
+import { Card } from "../ui/card";
+
+function PlanCard({
+ title,
+ price,
+ features,
+ isActive,
+ isSelected,
+ onSelect,
+}: {
+ title: string;
+ price: string;
+ features: string[];
+ isActive?: boolean;
+ isSelected?: boolean;
+ onSelect?: () => void;
+}) {
+ return (
+ <Card
+ className={cn(
+ "rounded-xl border px-6 py-4 flex items-start gap-6 cursor-pointer transition-all",
+ isActive
+ ? "border-gray-500/50 bg-gray-500/5"
+ : "border-border/50 bg-secondary/5",
+ isSelected && !isActive && "border-primary ring-1 ring-primary",
+ !isActive && "hover:border-primary/50"
+ )}
+ onClick={onSelect}
+ >
+ <div className="space-y-2 min-w-[200px]">
+ <div className="flex items-center justify-between">
+ <h3 className="text-xl font-medium opacity-80">{title}</h3>
+ </div>
+ <p className="text-lg">{price}</p>
+ </div>
+
+ <ul className="flex-grow space-y-2">
+ {features.map((feature, i) => (
+ <li
+ key={i}
+ className="flex items-center text-sm text-muted-foreground"
+ >
+ <span className="mr-2">•</span>
+ {feature}
+ </li>
+ ))}
+ </ul>
+ </Card>
+ );
+}
export function AccountSection() {
const { user, loadUser } = useUser();
- const { localSettings, setLocalSettings } = useSettings();
+ const { settings, updateSettings } = useSettings();
const [isRefreshing, setIsRefreshing] = useState(false);
+ const [selectedPlan, setSelectedPlan] = useState<string | null>(null);
const handleRefreshCredits = async () => {
- if (!localSettings.user?.token) return;
+ if (!settings.user?.token) return;
setIsRefreshing(true);
try {
- await loadUser(localSettings.user.token);
+ await loadUser(settings.user.token);
toast({
title: "credits refreshed",
description: "your credit balance has been updated",
@@ -50,39 +106,91 @@ export function AccountSection() {
}
};
+ const clientRefId = `${user?.id}&customer_email=${encodeURIComponent(
+ user?.email ?? ""
+ )}`;
+
+ const plans = [
+ {
+ title: "Monthly",
+ price: "$20/mo",
+ features: [
+ "15 credits/mo",
+ "Unlimited ScreenPipe cloud",
+ "Priority support",
+ ],
+ url: `https://buy.stripe.com/5kA6p79qefweacg5kJ?client_reference_id=${clientRefId}`,
+ },
+ {
+ title: "One-time",
+ price: "$50",
+ features: ["50 credits", "Bever expires", "Basic OCR & STT"],
+ url: `https://buy.stripe.com/eVaeVD45UbfYeswcNd?client_reference_id=${clientRefId}`,
+ },
+ {
+ title: "Enterprise",
+ price: "Book a call",
+ features: [
+ "Custom credits allocation",
+ "Dedicated support",
+ "Custom features",
+ ],
+ url: "https://cal.com/louis030195/screenpipe-for-businesses",
+ },
+ ];
+
return (
- <Card className="mb-4">
- <CardHeader className="pb-2">
- <div className="flex items-center justify-between">
- <CardTitle>account</CardTitle>
- <Button
- variant="outline"
- size="sm"
- onClick={() => invoke("open_auth_window")}
- >
- <UserCog className="w-4 h-4 mr-2" />
- manage account
- </Button>
- </div>
- </CardHeader>
- <CardContent>
+ <div className="w-full space-y-6 py-4">
+ <div className="flex items-center justify-between">
+ <h1 className="text-2xl font-bold">Account Settings</h1>
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={() => invoke("open_auth_window")}
+ className="hover:bg-secondary/80"
+ >
+ Manage Account <ExternalLinkIcon className="w-4 h-4 ml-2" />
+ </Button>
+ </div>
+
+ <div className="space-y-8">
<div className="space-y-6">
- {/* API Key Section */}
- <div className="space-y-2">
+ <div className="flex items-center justify-between">
+ <div className="flex items-center gap-3">
+ <Coins className="w-4 h-4 text-muted-foreground" />
+ <h4 className="text-sm font-medium">Credits & Usage</h4>
+ <Badge variant="secondary" className="rounded-full px-2.5 py-0.5">
+ {user?.credits?.amount || 0} available
+ </Badge>
+ </div>
+ <Button
+ variant="ghost"
+ size="icon"
+ onClick={handleRefreshCredits}
+ disabled={isRefreshing}
+ className="h-8 w-8"
+ >
+ <RefreshCw
+ className={cn("w-4 h-4", { "animate-spin": isRefreshing })}
+ />
+ </Button>
+ </div>
+
+ <div className="space-y-3">
<div className="flex items-center gap-2">
- <Label htmlFor="key" className="text-sm font-medium">
- api key
+ <Label className="text-sm font-medium text-muted-foreground">
+ ScreenPipe API Key
</Label>
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
- <HelpCircle className="h-4 w-4 cursor-help text-muted-foreground" />
+ <HelpCircle className="h-3.5 w-3.5 cursor-help text-muted-foreground/50" />
</TooltipTrigger>
- <TooltipContent side="right" className="max-w-[300px]">
- <p>
- your key syncs credits and settings across devices. find
- it in your dashboard.{" "}
- <span className="text-destructive font-semibold">
+ <TooltipContent side="right" className="max-w-[280px]">
+ <p className="text-xs leading-relaxed">
+ Your key syncs credits and settings across devices. you
+ can find it in your dashboard.{" "}
+ <span className="text-destructive font-medium">
keep it private.
</span>
</p>
@@ -90,186 +198,128 @@ export function AccountSection() {
</Tooltip>
</TooltipProvider>
</div>
- <div className="flex items-center gap-2">
+
+ <div className="flex gap-2">
<Input
- id="key"
- value={localSettings.user?.token || ""}
+ value={settings.user?.token || ""}
onChange={(e) => {
- setLocalSettings((prev) => ({
- ...prev,
- user: { ...prev.user, token: e.target.value },
- }));
+ updateSettings({
+ user: { token: e.target.value },
+ });
}}
- placeholder="enter your api key"
- className="font-mono text-sm"
- autoCorrect="off"
- autoCapitalize="off"
- autoComplete="off"
+ placeholder="Enter your API key"
+ className="font-mono text-sm bg-secondary/30"
/>
<Button
- variant="outline"
+ variant="secondary"
size="sm"
onClick={() => {
- loadUser(localSettings.user?.token || "");
- toast({
- title: "key updated",
- description: "your key has been updated",
- });
+ loadUser(settings.user?.token || "");
+ toast({ title: "key updated" });
}}
>
- verify
+ Verify
</Button>
</div>
</div>
- <Separator />
-
- {/* Credits Section */}
- <div className="space-y-4">
- <div className="flex items-center justify-between">
- <div className="flex items-center gap-2">
- <h4 className="text-sm font-medium">credits & billing</h4>
- <Badge variant="outline" className="text-[10px] px-1.5">
- {user?.credits?.amount || 0} remaining
- </Badge>
- </div>
- <Button
- variant="ghost"
- size="icon"
- onClick={handleRefreshCredits}
- disabled={isRefreshing}
- >
- <RefreshCw
- className={cn("w-4 h-4", { "animate-spin": isRefreshing })}
- />
- </Button>
- </div>
+ <Separator className="my-6" />
- <div className="grid grid-cols-1 gap-3">
- <div className="rounded-lg border bg-card text-card-foreground shadow-sm">
- <div className="flex flex-col space-y-1.5 p-3">
- <div className="flex items-center justify-between">
- <div className="flex items-center gap-2">
- <Badge variant="secondary" className="px-1.5 text-xs">
- monthly
- </Badge>
- <span className="text-sm font-mono">
- 15 credits/m, unlimited screenpipe cloud, priority
- support
- </span>
- </div>
- <Button
- size="sm"
- variant="outline"
- onClick={() =>
- openUrl(
- `https://buy.stripe.com/5kA6p79qefweacg5kJ?client_reference_id=${user?.id}&customer_email=${encodeURIComponent(
- user?.email ?? ""
- )}`
- )
- }
- >
- $30/mo
- </Button>
- </div>
- </div>
- </div>
+ <div className="grid gap-4">
+ <div className="space-y-6">
+ <h4 className="text-lg font-medium">Active plan</h4>
- <div className="rounded-lg border bg-card text-card-foreground shadow-sm">
- <div className="flex flex-col space-y-1.5 p-3">
- <div className="flex items-center justify-between">
- <div className="flex items-center gap-2">
- <Badge variant="secondary" className="px-1.5 text-xs">
- one-time
- </Badge>
- <span className="text-sm font-mono">50 credits</span>
- </div>
- <Button
- size="sm"
- variant="outline"
- onClick={() =>
- openUrl(
- `https://buy.stripe.com/eVaeVD45UbfYeswcNd?client_reference_id=${user?.id}&customer_email=${encodeURIComponent(
- user?.email ?? ""
- )}`
- )
- }
- >
- $50
- </Button>
- </div>
- </div>
+ <div className="flex flex-col gap-4">
+ {plans.map((plan) => (
+ <PlanCard
+ key={plan.title}
+ title={plan.title}
+ price={plan.price}
+ features={plan.features}
+ isSelected={selectedPlan === plan.title}
+ onSelect={() => setSelectedPlan(plan.title)}
+ />
+ ))}
</div>
- <div className="rounded-lg border ">
- <div className="flex flex-col space-y-1.5 p-3">
- <div className="flex items-center justify-between">
- <div className="flex items-center gap-2">
- <Badge variant="outline" className="px-1.5 text-xs">
- enterprise
- </Badge>
- <span className="text-sm font-mono">custom</span>
- </div>
- <Button
- size="sm"
- variant="outline"
- onClick={() =>
- openUrl(
- "https://cal.com/louis030195/screenpipe-for-businesses"
- )
- }
- >
- book a call
- </Button>
- </div>
- </div>
- </div>
+ {selectedPlan && (
+ <Button
+ className="w-full text-white"
+ onClick={() => {
+ const plan = plans.find((p) => p.title === selectedPlan);
+ if (plan) openUrl(plan.url);
+ }}
+ >
+ Checkout
+ </Button>
+ )}
</div>
</div>
+ </div>
- <Separator className="my-6" />
+ <Separator className="my-6" />
- {/* Developer Section */}
- <div className="space-y-4">
- <div className="flex items-center justify-between">
- <div className="flex items-center gap-2">
- <h4 className="text-sm font-medium">developer</h4>
- <Badge variant="outline" className="text-[10px] px-1.5">
- beta
- </Badge>
- </div>
- </div>
+ <div className="flex items-center justify-between">
+ <div className="space-y-1.5">
+ <h4 className="text-lg font-medium">Developer Tools</h4>
+ <p className="text-sm text-muted-foreground">
+ Build and sell custom pipes
+ </p>
+ </div>
+ <Badge
+ variant={"secondary"}
+ className="uppercase text-[10px] font-medium"
+ >
+ COMING SOON
+ </Badge>
+ </div>
- <div className="rounded-lg border bg-muted/40 p-4 space-y-3">
- <div className="flex items-center gap-2">
- <div className="flex-1">
- <h5 className="text-sm font-medium mb-1">stripe connect</h5>
- <p className="text-sm text-muted-foreground">
- sell your pipes on the marketplace
- </p>
+ <div className="space-y-6">
+ <div className="flex flex-col space-y-6">
+ <div className="p-5 border border-border/50 rounded-lg bg-background/50 hover:bg-background/80 transition-colors">
+ <div className="flex items-center justify-between">
+ <div className="flex items-center space-x-3">
+ <div className="w-8 h-8 flex items-center justify-center bg-[#635BFF]/10 rounded-md">
+ <img
+ className="rounded-md"
+ src="https://images.stripeassets.com/fzn2n1nzq965/HTTOloNPhisV9P4hlMPNA/cacf1bb88b9fc492dfad34378d844280/Stripe_icon_-_square.svg?q=80&w=1082"
+ alt=""
+ />
+ </div>
+ <div className="space-y-1">
+ <div className="text-sm font-medium">Stripe Connect</div>
+ <p className="text-xs text-muted-foreground">
+ Set up payments to receive earnings from your pipes
+ </p>
+ </div>
</div>
<Button
+ variant="secondary"
size="sm"
- variant="outline"
+ onClick={() =>
+ openUrl(
+ "https://connect.stripe.com/oauth/authorize?client_id=YOUR_CLIENT_ID"
+ )
+ }
+ className="h-9"
disabled
- className="shrink-0"
>
- <div className="flex items-center gap-2">
- connect
- <Badge variant="outline" className="uppercase text-[10px]">
- soon
- </Badge>
- </div>
+ Connect
</Button>
</div>
+ </div>
- <div className="text-xs text-muted-foreground font-mono bg-muted/60 rounded p-2">
+ <div className="space-y-2">
+ <Label className="text-xs text-muted-foreground">
+ Publish your pipe with CLI
+ </Label>
+ <div className="font-mono text-xs bg-gray-50 rounded-lg p-4 border border-border/50">
$ screenpipe publish my-awesome-pipe
</div>
</div>
</div>
</div>
- </CardContent>
- </Card>
+ </div>
+ </div>
);
}
diff --git a/screenpipe-app-tauri/components/settings/ai-section.tsx b/screenpipe-app-tauri/components/settings/ai-section.tsx
new file mode 100644
index 000000000..0f9613dec
--- /dev/null
+++ b/screenpipe-app-tauri/components/settings/ai-section.tsx
@@ -0,0 +1,634 @@
+/* eslint-disable @next/next/no-img-element */
+import { AIProviderType, useSettings } from "@/lib/hooks/use-settings";
+import { Label } from "@/components/ui/label";
+import { Separator } from "@/components/ui/separator";
+import { Slider } from "@/components/ui/slider";
+import { Switch } from "@/components/ui/switch";
+import {
+ TooltipProvider,
+ Tooltip,
+ TooltipTrigger,
+ TooltipContent,
+} from "@/components/ui/tooltip";
+import {
+ HelpCircle,
+ EyeOff,
+ Eye,
+ RefreshCw,
+ Check,
+ X,
+ Play,
+ Loader2,
+ ChevronsUpDown,
+ Cpu,
+} from "lucide-react";
+import { Badge } from "@/components/ui/badge";
+import React, { useState } from "react";
+import { LogFileButton } from "../log-file-button";
+import { Input } from "../ui/input";
+import { Textarea } from "../ui/textarea";
+import { toast } from "../ui/use-toast";
+import { invoke } from "@tauri-apps/api/core";
+import { open as openUrl } from "@tauri-apps/plugin-shell";
+import { useUser } from "@/lib/hooks/use-user";
+import { Button } from "../ui/button";
+import { cn } from "@/lib/utils";
+import { Card, CardContent } from "../ui/card";
+import {
+ Command,
+ CommandEmpty,
+ CommandGroup,
+ CommandInput,
+ CommandItem,
+ CommandList,
+ CommandSeparator,
+} from "@/components/ui/command";
+import {
+ Popover,
+ PopoverContent,
+ PopoverTrigger,
+} from "@/components/ui/popover";
+
+interface AIProviderCardProps {
+ type: "screenpipe-cloud" | "openai" | "native-ollama" | "custom" | "embedded";
+ title: string;
+ description: string;
+ imageSrc: string;
+ selected: boolean;
+ onClick: () => void;
+ disabled?: boolean;
+ warningText?: string;
+ imageClassName?: string;
+}
+
+const AIProviderCard = ({
+ type,
+ title,
+ description,
+ imageSrc,
+ selected,
+ onClick,
+ disabled,
+ warningText,
+ imageClassName,
+}: AIProviderCardProps) => {
+ return (
+ <Card
+ onClick={onClick}
+ className={cn(
+ "flex py-4 px-4 rounded-lg hover:bg-accent transition-colors h-[145px] w-full cursor-pointer",
+ selected ? "border-black/60 border-[1.5px]" : "",
+ disabled && "opacity-50 cursor-not-allowed"
+ )}
+ >
+ <CardContent className="flex flex-col p-0 w-full">
+ <div className="flex items-center gap-2 mb-2">
+ <img
+ src={imageSrc}
+ alt={title}
+ className={cn(
+ "rounded-lg shrink-0 size-8",
+ type === "native-ollama" &&
+ "outline outline-gray-300 outline-1 outline-offset-2",
+ imageClassName
+ )}
+ />
+ <span className="text-lg font-medium truncate">{title}</span>
+ </div>
+ <p className="text-sm text-muted-foreground line-clamp-3">
+ {description}
+ </p>
+ {warningText && <Badge className="w-fit mt-2">{warningText}</Badge>}
+ </CardContent>
+ </Card>
+ );
+};
+
+const AISection = () => {
+ const { settings, updateSettings, resetSetting } = useSettings();
+
+ const [ollamaStatus, setOllamaStatus] = useState<
+ "idle" | "running" | "error"
+ >("idle");
+
+ const [embeddedAIStatus, setEmbeddedAIStatus] = useState<
+ "idle" | "running" | "error"
+ >("idle");
+
+ const [showApiKey, setShowApiKey] = React.useState(false);
+ const { user } = useUser();
+
+ const { credits } = user || {};
+ const handleApiKeyChange = (e: React.ChangeEvent<HTMLInputElement>) => {
+ updateSettings({ openaiApiKey: e.target.value });
+ };
+
+ const handleMaxContextCharsChange = (value: number[]) => {
+ updateSettings({ aiMaxContextChars: value[0] });
+ };
+
+ const handleEmbeddedLLMChange = (checked: boolean) => {
+ updateSettings({
+ embeddedLLM: {
+ ...settings.embeddedLLM,
+ enabled: checked,
+ },
+ });
+ if (!checked) {
+ setOllamaStatus("idle");
+ }
+ };
+
+ const handleEmbeddedLLMModelChange = (
+ e: React.ChangeEvent<HTMLInputElement>
+ ) => {
+ const newModel = e.target.value;
+ updateSettings({
+ embeddedLLM: {
+ ...settings.embeddedLLM,
+ model: newModel,
+ },
+ aiModel: newModel,
+ });
+ };
+
+ const handleEmbeddedLLMPortChange = (
+ e: React.ChangeEvent<HTMLInputElement>
+ ) => {
+ updateSettings({
+ embeddedLLM: {
+ ...settings.embeddedLLM,
+ port: parseInt(e.target.value, 10),
+ },
+ });
+ };
+
+ const startOllamaSidecar = async () => {
+ setOllamaStatus("running");
+ toast({
+ title: "starting ai",
+ description:
+ "downloading and initializing the embedded ai, may take a while (check $HOME/.ollama/models)...",
+ });
+
+ try {
+ console.log(
+ "starting ollama sidecar with settings:",
+ settings.embeddedLLM
+ );
+ const result = await invoke<string>("start_ollama_sidecar", {
+ settings: {
+ enabled: settings.embeddedLLM.enabled,
+ model: settings.embeddedLLM.model,
+ port: settings.embeddedLLM.port,
+ },
+ });
+
+ setOllamaStatus("running");
+ setEmbeddedAIStatus("running");
+ toast({
+ title: "ai ready",
+ description: `${settings.embeddedLLM.model} is running.`,
+ });
+
+ // Show the LLM test result in a toast
+ toast({
+ title: `${settings.embeddedLLM.model} wants to tell you a joke.`,
+ description: result,
+ duration: 10000,
+ });
+ } catch (error) {
+ console.error("Error starting ai sidecar:", error);
+ setOllamaStatus("error");
+ setEmbeddedAIStatus("error");
+ toast({
+ title: "error starting ai",
+ description: "check the console for more details",
+ variant: "destructive",
+ });
+ }
+ };
+
+ const handleStopLLM = async () => {
+ try {
+ await invoke("stop_ollama_sidecar");
+ setOllamaStatus("idle");
+ setEmbeddedAIStatus("idle");
+ toast({
+ title: "ai stopped",
+ description: "the embedded ai has been shut down",
+ });
+ } catch (error) {
+ console.error("error stopping ai:", error);
+ setEmbeddedAIStatus("error");
+ toast({
+ title: "error stopping ai",
+ description: "check the console for more details",
+ variant: "destructive",
+ });
+ }
+ };
+
+ const handleModelChange = (value: string) => {
+ updateSettings({ aiModel: value });
+ };
+
+ const handleCustomPromptChange = (
+ e: React.ChangeEvent<HTMLTextAreaElement>
+ ) => {
+ updateSettings({ customPrompt: e.target.value });
+ };
+
+ const handleResetCustomPrompt = () => {
+ resetSetting("customPrompt");
+ };
+
+ const handleAiProviderChange = (newValue: AIProviderType) => {
+ let newUrl = "";
+ let newModel = settings.aiModel;
+
+ if (newValue === "screenpipe-cloud" && !credits?.amount) {
+ openUrl("https://buy.stripe.com/5kA6p79qefweacg5kJ");
+ return;
+ }
+ switch (newValue) {
+ case "openai":
+ newUrl = "https://api.openai.com/v1";
+ break;
+ case "native-ollama":
+ newUrl = "http://localhost:11434/v1";
+ break;
+ case "embedded":
+ newUrl = `http://localhost:${settings.embeddedLLM.port}/v1`;
+ newModel = settings.embeddedLLM.model;
+ break;
+ case "screenpipe-cloud":
+ newUrl = "https://ai-proxy.i-f9f.workers.dev/v1";
+ break;
+ case "custom":
+ newUrl = settings.aiUrl;
+ break;
+ }
+
+ updateSettings({
+ aiProviderType: newValue,
+ aiUrl: newUrl,
+ aiModel: newModel,
+ });
+ };
+
+ const isApiKeyRequired =
+ settings.aiUrl !== "https://ai-proxy.i-f9f.workers.dev/v1" &&
+ settings.aiUrl !== "http://localhost:11434/v1" &&
+ settings.aiUrl !== "embedded";
+
+ const getModelSuggestions = (provider: AIProviderType) => {
+ switch (provider) {
+ case "native-ollama":
+ return [
+ "llama3.2:1B",
+ "llama3.2:3B",
+ "llama3.1:8B",
+ "llama3.3:70B",
+ "llama3.1:405B",
+ ];
+ case "screenpipe-cloud":
+ return ["gpt-4o", "gpt-4o-mini"];
+ case "openai":
+ return ["gpt-4o", "gpt-4o-mini", "o1-mini", "o1"];
+ default:
+ return [];
+ }
+ };
+ console.log(getModelSuggestions(settings.aiProviderType));
+
+ return (
+ <div className="w-full space-y-6 py-4">
+ <h1 className="text-2xl font-bold">AI Settings</h1>
+ <div className="w-full">
+ <Label htmlFor="aiUrl" className="min-w-[80px]">
+ AI Provider
+ </Label>
+ <div className="grid grid-cols-2 gap-4 mb-4 mt-4">
+ <AIProviderCard
+ type="screenpipe-cloud"
+ title="Screenpipe Cloud"
+ description="Fastest with built-in context awareness and streaming support"
+ imageSrc="/images/screenpipe.png"
+ selected={settings.aiProviderType === "screenpipe-cloud"}
+ onClick={() => handleAiProviderChange("screenpipe-cloud")}
+ warningText={!credits?.amount ? "requires credits" : undefined}
+ />
+
+ <AIProviderCard
+ type="openai"
+ title="OpenAI"
+ description="Use your own OpenAI API key for GPT-4 and other models"
+ imageSrc="/images/openai.png"
+ selected={settings.aiProviderType === "openai"}
+ onClick={() => handleAiProviderChange("openai")}
+ />
+
+ <AIProviderCard
+ type="native-ollama"
+ title="Ollama"
+ description="Run AI models locally using your existing ollama installation"
+ imageSrc="/images/ollama.png"
+ selected={settings.aiProviderType === "native-ollama"}
+ onClick={() => handleAiProviderChange("native-ollama")}
+ />
+
+ <AIProviderCard
+ type="custom"
+ title="Custom"
+ description="Connect to your own AI provider or self-hosted models"
+ imageSrc="/images/custom.png"
+ selected={settings.aiProviderType === "custom"}
+ onClick={() => handleAiProviderChange("custom")}
+ />
+
+ {embeddedAIStatus === "running" && (
+ <AIProviderCard
+ type="embedded"
+ title="embedded ai"
+ description="use the built-in ai engine for offline processing"
+ imageSrc="/images/embedded.png"
+ selected={settings.aiProviderType === "embedded"}
+ onClick={() => handleAiProviderChange("embedded")}
+ />
+ )}
+ </div>
+ </div>
+ {settings.aiProviderType === "custom" && (
+ <div className="w-full">
+ <div className="flex flex-col gap-4 mb-4">
+ <Label htmlFor="customAiUrl">Custom URL</Label>
+ <Input
+ id="customAiUrl"
+ value={settings.aiUrl}
+ onChange={(e) => {
+ const newUrl = e.target.value;
+ updateSettings({ aiUrl: newUrl });
+ }}
+ className="flex-grow"
+ placeholder="enter custom ai url"
+ autoCorrect="off"
+ autoCapitalize="off"
+ autoComplete="off"
+ type="text"
+ />
+ </div>
+ </div>
+ )}
+ {isApiKeyRequired && (
+ <div className="w-full">
+ <div className="flex flex-col gap-4 mb-4 w-full">
+ <Label htmlFor="aiApiKey">API Key</Label>
+ <div className="flex-grow relative">
+ <Input
+ id="aiApiKey"
+ type={showApiKey ? "text" : "password"}
+ value={settings.openaiApiKey}
+ onChange={handleApiKeyChange}
+ className="pr-10"
+ placeholder="enter your ai api key"
+ autoCorrect="off"
+ autoCapitalize="off"
+ autoComplete="off"
+ />
+ <Button
+ type="button"
+ variant="ghost"
+ size="icon"
+ className="absolute right-0 top-0 h-full"
+ onClick={() => setShowApiKey(!showApiKey)}
+ >
+ {showApiKey ? (
+ <EyeOff className="h-4 w-4" />
+ ) : (
+ <Eye className="h-4 w-4" />
+ )}
+ </Button>
+ </div>
+ </div>
+ </div>
+ )}
+ {settings.aiProviderType !== "embedded" && (
+ <div className="w-full">
+ <div className="flex flex-col gap-4 mb-4 w-full">
+ <Label htmlFor="aiModel">AI model</Label>
+ <Popover>
+ <PopoverTrigger asChild>
+ <Button
+ variant="outline"
+ role="combobox"
+ className="w-full justify-between"
+ >
+ {settings.aiModel || "select model..."}
+ <ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />
+ </Button>
+ </PopoverTrigger>
+ <PopoverContent className="w-full p-0">
+ <Command>
+ <CommandInput placeholder="select model" />
+ <CommandList>
+ <CommandEmpty>No results found.</CommandEmpty>
+ <CommandGroup heading="Suggestions">
+ {getModelSuggestions(settings.aiProviderType)?.map(
+ (model) => (
+ <CommandItem
+ key={model}
+ value={model}
+ onSelect={() => {
+ updateSettings({ aiModel: model });
+ }}
+ >
+ {model}
+ </CommandItem>
+ )
+ )}
+ </CommandGroup>
+ </CommandList>
+ </Command>
+ </PopoverContent>
+ </Popover>
+ </div>
+ </div>
+ )}
+
+ <div className="w-full">
+ <div className="flex flex-col gap-4 mb-4 w-full">
+ <Label htmlFor="customPrompt">Prompt</Label>
+ <div className="flex-grow relative">
+ <Textarea
+ id="customPrompt"
+ value={settings.customPrompt}
+ onChange={handleCustomPromptChange}
+ className="min-h-[100px]"
+ placeholder="enter your custom prompt here"
+ />
+ <Button
+ type="button"
+ variant="ghost"
+ size="sm"
+ className="absolute right-2 top-2"
+ onClick={handleResetCustomPrompt}
+ >
+ <RefreshCw className="h-4 w-4 mr-2" />
+ reset
+ </Button>
+ </div>
+ </div>
+ </div>
+
+ <div className="w-full">
+ <div className="flex flex-col gap-4 mb-4 w-full">
+ <Label htmlFor="aiMaxContextChars" className="flex items-center">
+ Max Context{" "}
+ <TooltipProvider>
+ <Tooltip>
+ <TooltipTrigger asChild>
+ <HelpCircle className="ml-2 h-4 w-4 cursor-default" />
+ </TooltipTrigger>
+ <TooltipContent side="left">
+ <p>
+ maximum number of characters (think 3 characters per token)
+ to send to the ai model. <br />
+ usually, openai models support up to 128k tokens, which is
+ roughly 30k-40k characters. <br />
+ we&apos;ll use this for UI purposes to show you how much you
+ can send.
+ </p>
+ </TooltipContent>
+ </Tooltip>
+ </TooltipProvider>
+ </Label>
+ <div className="flex-grow flex items-center">
+ <Slider
+ id="aiMaxContextChars"
+ min={1000}
+ max={128000}
+ step={1000}
+ value={[settings.aiMaxContextChars]}
+ onValueChange={handleMaxContextCharsChange}
+ className="flex-grow"
+ />
+ <span className="ml-2 min-w-[60px] text-right">
+ {settings.aiMaxContextChars.toLocaleString()}
+ </span>
+ </div>
+ </div>
+ </div>
+
+ <div className="flex items-center gap-4 mb-4 w-full">
+ <div className="flex items-center justify-between w-full">
+ <div className="space-y-1">
+ <h4 className="font-medium">Embedded AI</h4>
+ <p className="text-sm text-muted-foreground">
+ Enable this to use local ai features in screenpipe.
+ </p>
+ </div>
+ <div className="flex items-center gap-2">
+ <Switch
+ id="embeddedLLM"
+ checked={settings.embeddedLLM.enabled}
+ onCheckedChange={handleEmbeddedLLMChange}
+ />
+ {settings.embeddedLLM.enabled && (
+ <>
+ <Button
+ onClick={startOllamaSidecar}
+ disabled={ollamaStatus === "running"}
+ className="ml-auto"
+ >
+ {ollamaStatus === "running" ? (
+ <Check className="h-4 w-4 mr-2" />
+ ) : ollamaStatus === "error" ? (
+ <X className="h-4 w-4 mr-2" />
+ ) : ollamaStatus === "idle" ? (
+ <Play className="h-4 w-4 mr-2" />
+ ) : (
+ <Loader2 className="h-4 w-4 mr-2 animate-spin" />
+ )}
+ {ollamaStatus === "running"
+ ? "running"
+ : ollamaStatus === "error"
+ ? "error"
+ : "start ai"}
+ </Button>
+ <Button
+ variant="outline"
+ onClick={handleStopLLM}
+ className="ml-auto"
+ >
+ <X className="h-4 w-4 mr-2" />
+ stop ai
+ </Button>
+ <LogFileButton isAppLog={true} />
+ <Badge>{embeddedAIStatus}</Badge>
+ </>
+ )}
+ </div>
+ </div>
+ </div>
+
+ {settings.embeddedLLM.enabled && (
+ <>
+ <div className="w-full">
+ <div className="flex items-center gap-4 mb-4">
+ <Label
+ htmlFor="embeddedLLMModel"
+ className="min-w-[80px] text-right"
+ >
+ llm model
+ </Label>
+ <div className="flex-grow flex items-center">
+ <Input
+ id="embeddedLLMModel"
+ value={settings.embeddedLLM.model}
+ onChange={handleEmbeddedLLMModelChange}
+ className="flex-grow"
+ placeholder="enter embedded llm model"
+ />
+ <TooltipProvider>
+ <Tooltip>
+ <TooltipTrigger asChild>
+ <HelpCircle className="ml-2 h-4 w-4 cursor-help" />
+ </TooltipTrigger>
+ <TooltipContent side="right" className="max-w-[300px]">
+ <p>
+ supported models are the same as ollama. check the
+ ollama documentation for a list of available models.
+ </p>
+ </TooltipContent>
+ </Tooltip>
+ </TooltipProvider>
+ </div>
+ </div>
+ </div>
+
+ <div className="w-full">
+ <div className="flex items-center gap-4 mb-4">
+ <Label
+ htmlFor="embeddedLLMPort"
+ className="min-w-[80px] text-right"
+ >
+ llm port
+ </Label>
+ <Input
+ id="embeddedLLMPort"
+ type="number"
+ value={settings.embeddedLLM.port}
+ onChange={handleEmbeddedLLMPortChange}
+ className="flex-grow"
+ placeholder="enter embedded llm port"
+ />
+ </div>
+ </div>
+ </>
+ )}
+ </div>
+ );
+};
+
+export default AISection;
diff --git a/screenpipe-app-tauri/components/settings/shortcut-section.tsx b/screenpipe-app-tauri/components/settings/shortcut-section.tsx
new file mode 100644
index 000000000..e7794c140
--- /dev/null
+++ b/screenpipe-app-tauri/components/settings/shortcut-section.tsx
@@ -0,0 +1,212 @@
+import React, { useEffect, useState } from "react";
+import { Shortcut, useSettings } from "@/lib/hooks/use-settings";
+import { parseKeyboardShortcut } from "@/lib/utils";
+import { Label } from "@/components/ui/label";
+import { Switch } from "@/components/ui/switch";
+import { registerShortcuts } from "@/lib/shortcuts";
+import { toast } from "@/components/ui/use-toast";
+import { cn } from "@/lib/utils";
+import { Pencil } from "lucide-react";
+
+const ShortcutSection = () => {
+ const { settings, updateSettings } = useSettings();
+ const [selectedModifiers, setSelectedModifiers] = useState<string[]>([]);
+ const [nonModifierKey, setNonModifierKey] = useState<string>("");
+ const [currentShortcut, setCurrentShortcut] = useState<string>(
+ settings.showScreenpipeShortcut
+ );
+
+ const [disabledShortcuts, setDisabledShortcuts] = useState<Shortcut[]>(
+ settings.disabledShortcuts
+ );
+
+ const [isRecording, setIsRecording] = useState(false);
+ const [pressedKeys, setPressedKeys] = useState<string[]>([]);
+
+ useEffect(() => {
+ setCurrentShortcut(settings.showScreenpipeShortcut);
+
+ const parts = settings.showScreenpipeShortcut.split("+");
+ const modifiers = parts.slice(0, -1);
+ const key = parts.slice(-1)[0];
+
+ setSelectedModifiers(modifiers);
+ setNonModifierKey(key);
+ }, [settings.showScreenpipeShortcut]);
+
+ useEffect(() => {
+ if (!isRecording) return;
+
+ const handleKeyDown = (e: KeyboardEvent) => {
+ e.preventDefault();
+
+ // Get modifiers
+ const modifiers: string[] = [];
+ if (e.metaKey) modifiers.push("super");
+ if (e.ctrlKey) modifiers.push("ctrl");
+ if (e.altKey) modifiers.push("alt");
+ if (e.shiftKey) modifiers.push("shift");
+
+ // Get the main key
+ const key = e.key.toUpperCase();
+
+ // Update pressed keys in real-time
+ setPressedKeys([...new Set([...modifiers, key])]);
+
+ const isModifierKey = [
+ "CONTROL",
+ "ALT",
+ "SHIFT",
+ "META",
+ "COMMAND",
+ ].includes(key);
+
+ if (!isModifierKey) {
+ setSelectedModifiers(modifiers);
+ setNonModifierKey(key);
+
+ // Auto save after successful recording
+ const newShortcut = [...modifiers, key].join("+");
+ updateSettings({
+ showScreenpipeShortcut: newShortcut,
+ });
+ updateSettings({ showScreenpipeShortcut: newShortcut });
+ setCurrentShortcut(newShortcut);
+ setIsRecording(false);
+
+ registerShortcuts({
+ showScreenpipeShortcut: newShortcut,
+ disabledShortcuts,
+ });
+
+ toast({
+ title: "shortcut updated",
+ description: `new shortcut set to: ${parseKeyboardShortcut(
+ newShortcut
+ )}`,
+ });
+ }
+ };
+
+ const handleKeyUp = (e: KeyboardEvent) => {
+ e.preventDefault();
+ // Clear pressed keys when all keys are released
+ setPressedKeys([]);
+ };
+
+ window.addEventListener("keydown", handleKeyDown);
+ window.addEventListener("keyup", handleKeyUp);
+
+ return () => {
+ window.removeEventListener("keydown", handleKeyDown);
+ window.removeEventListener("keyup", handleKeyUp);
+ };
+ }, [
+ isRecording,
+ settings,
+ updateSettings,
+ disabledShortcuts,
+ ]);
+
+ const handleShortcutToggle = (checked: boolean) => {
+ console.log("handleShortcutToggle", checked);
+ let newDisabledShortcuts = [...settings.disabledShortcuts];
+ if (!checked) {
+ newDisabledShortcuts.push(Shortcut.SHOW_SCREENPIPE);
+ } else {
+ newDisabledShortcuts = newDisabledShortcuts.filter(
+ (shortcut) => shortcut !== Shortcut.SHOW_SCREENPIPE
+ );
+ }
+
+ updateSettings({
+ disabledShortcuts: newDisabledShortcuts,
+ });
+
+ registerShortcuts({
+ showScreenpipeShortcut: settings.showScreenpipeShortcut,
+ disabledShortcuts: newDisabledShortcuts,
+ });
+ };
+
+ return (
+ <div className="w-full space-y-6 py-4">
+ <h1 className="text-2xl font-bold">Shortcuts</h1>
+ <div className="flex items-center justify-between">
+ <div className="space-y-1">
+ <h4 className="font-medium">Toggle Screenpipe Overlay</h4>
+ <p className="text-sm text-muted-foreground">
+ Global shortcut to show/hide the main interface
+ </p>
+ </div>
+ <div className="flex items-center gap-4">
+ <button
+ onClick={() => setIsRecording(true)}
+ className={cn(
+ "relative min-w-[140px] rounded-md border px-3 py-2 text-sm",
+ "bg-muted/50 hover:bg-muted/70 transition-colors",
+ "focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-ring",
+ isRecording && "border-primary"
+ )}
+ >
+ {isRecording ? (
+ <span className="animate-pulse">recording...</span>
+ ) : (
+ <span className="flex items-center justify-between gap-2">
+ {currentShortcut
+ ? parseKeyboardShortcut(currentShortcut)
+ : "click to record"}
+ <Pencil className="h-3 w-3 opacity-50" />
+ </span>
+ )}
+ </button>
+
+ <Switch
+ id="shortcutEnabled"
+ checked={
+ !settings.disabledShortcuts.includes(Shortcut.SHOW_SCREENPIPE)
+ }
+ onCheckedChange={handleShortcutToggle}
+ />
+ </div>
+ </div>
+
+ {isRecording && (
+ <div className="rounded-lg border bg-muted/50 p-4">
+ <p className="text-xs text-center text-muted-foreground mb-3">
+ press your desired key combination
+ </p>
+ <div className="flex justify-center gap-1">
+ {pressedKeys.length > 0 ? (
+ pressedKeys.map((key) => (
+ <kbd
+ key={key}
+ className="px-2 py-1 text-xs rounded bg-background"
+ >
+ {parseKeyboardShortcut(key)}
+ </kbd>
+ ))
+ ) : (
+ <span className="text-xs text-muted-foreground">
+ waiting for input...
+ </span>
+ )}
+ </div>
+ <div className="mt-4 flex justify-end gap-2">
+ <button
+ onClick={() => {
+ setIsRecording(false);
+ setPressedKeys([]);
+ }}
+ className="text-xs text-muted-foreground hover:text-foreground"
+ >
+ cancel
+ </button>
+ </div>
+ </div>
+ )}
+ </div>
+ );
+};
+
+export default ShortcutSection;
diff --git a/screenpipe-app-tauri/components/ui/multi-select.tsx b/screenpipe-app-tauri/components/ui/multi-select.tsx
new file mode 100644
index 000000000..a1cae1117
--- /dev/null
+++ b/screenpipe-app-tauri/components/ui/multi-select.tsx
@@ -0,0 +1,372 @@
+// src/components/multi-select.tsx
+
+import * as React from "react";
+import { cva, type VariantProps } from "class-variance-authority";
+import {
+ CheckIcon,
+ XCircle,
+ ChevronDown,
+ XIcon,
+ WandSparkles,
+} from "lucide-react";
+
+import { cn } from "@/lib/utils";
+import { Separator } from "@/components/ui/separator";
+import { Button } from "@/components/ui/button";
+import { Badge } from "@/components/ui/badge";
+import {
+ Popover,
+ PopoverContent,
+ PopoverTrigger,
+} from "@/components/ui/popover";
+import {
+ Command,
+ CommandEmpty,
+ CommandGroup,
+ CommandInput,
+ CommandItem,
+ CommandList,
+ CommandSeparator,
+} from "@/components/ui/command";
+
+/**
+ * Variants for the multi-select component to handle different styles.
+ * Uses class-variance-authority (cva) to define different styles based on "variant" prop.
+ */
+const multiSelectVariants = cva(
+ "m-1 transition ease-in-out delay-150 hover:-translate-y-1 hover:scale-110 duration-300",
+ {
+ variants: {
+ variant: {
+ default:
+ "border-foreground/10 text-foreground bg-card hover:bg-card/80",
+ secondary:
+ "border-foreground/10 bg-secondary text-secondary-foreground hover:bg-secondary/80",
+ destructive:
+ "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
+ inverted: "inverted",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ },
+ }
+);
+
+/**
+ * Props for MultiSelect component
+ */
+interface MultiSelectProps
+ extends React.ButtonHTMLAttributes<HTMLButtonElement>,
+ VariantProps<typeof multiSelectVariants> {
+ /**
+ * An array of option objects to be displayed in the multi-select component.
+ * Each option object has a label, value, and an optional icon.
+ */
+ options: {
+ /** The text to display for the option. */
+ label: string;
+ /** The unique value associated with the option. */
+ value: string;
+ /** Optional icon component to display alongside the option. */
+ icon?: React.ComponentType<{ className?: string }>;
+ }[];
+
+ /**
+ * Callback function triggered when the selected values change.
+ * Receives an array of the new selected values.
+ */
+ onValueChange: (value: string[]) => void;
+
+ /** The default selected values when the component mounts. */
+ defaultValue?: string[];
+
+ /**
+ * Placeholder text to be displayed when no values are selected.
+ * Optional, defaults to "Select options".
+ */
+ placeholder?: string;
+
+ /**
+ * Animation duration in seconds for the visual effects (e.g., bouncing badges).
+ * Optional, defaults to 0 (no animation).
+ */
+ animation?: number;
+
+ /**
+ * Maximum number of items to display. Extra selected items will be summarized.
+ * Optional, defaults to 3.
+ */
+ maxCount?: number;
+
+ /**
+ * The modality of the popover. When set to true, interaction with outside elements
+ * will be disabled and only popover content will be visible to screen readers.
+ * Optional, defaults to false.
+ */
+ modalPopover?: boolean;
+
+ /**
+ * If true, renders the multi-select component as a child of another component.
+ * Optional, defaults to false.
+ */
+ asChild?: boolean;
+
+ /**
+ * Additional class names to apply custom styles to the multi-select component.
+ * Optional, can be used to add custom styles.
+ */
+ className?: string;
+}
+
+export const MultiSelect = React.forwardRef<
+ HTMLButtonElement,
+ MultiSelectProps
+>(
+ (
+ {
+ options,
+ onValueChange,
+ variant,
+ defaultValue = [],
+ placeholder = "Select options",
+ animation = 0,
+ maxCount = 3,
+ modalPopover = false,
+ asChild = false,
+ className,
+ ...props
+ },
+ ref
+ ) => {
+ const [selectedValues, setSelectedValues] =
+ React.useState<string[]>(defaultValue);
+ const [isPopoverOpen, setIsPopoverOpen] = React.useState(false);
+ const [isAnimating, setIsAnimating] = React.useState(false);
+
+ const handleInputKeyDown = (
+ event: React.KeyboardEvent<HTMLInputElement>
+ ) => {
+ if (event.key === "Enter") {
+ setIsPopoverOpen(true);
+ } else if (event.key === "Backspace" && !event.currentTarget.value) {
+ const newSelectedValues = [...selectedValues];
+ newSelectedValues.pop();
+ setSelectedValues(newSelectedValues);
+ onValueChange(newSelectedValues);
+ }
+ };
+
+ const toggleOption = (option: string) => {
+ const newSelectedValues = selectedValues.includes(option)
+ ? selectedValues.filter((value) => value !== option)
+ : [...selectedValues, option];
+ setSelectedValues(newSelectedValues);
+ onValueChange(newSelectedValues);
+ };
+
+ const handleClear = () => {
+ setSelectedValues([]);
+ onValueChange([]);
+ };
+
+ const handleTogglePopover = () => {
+ setIsPopoverOpen((prev) => !prev);
+ };
+
+ const clearExtraOptions = () => {
+ const newSelectedValues = selectedValues.slice(0, maxCount);
+ setSelectedValues(newSelectedValues);
+ onValueChange(newSelectedValues);
+ };
+
+ const toggleAll = () => {
+ if (selectedValues.length === options.length) {
+ handleClear();
+ } else {
+ const allValues = options.map((option) => option.value);
+ setSelectedValues(allValues);
+ onValueChange(allValues);
+ }
+ };
+
+ return (
+ <Popover
+ open={isPopoverOpen}
+ onOpenChange={setIsPopoverOpen}
+ modal={modalPopover}
+ >
+ <PopoverTrigger asChild>
+ <Button
+ ref={ref}
+ {...props}
+ onClick={handleTogglePopover}
+ className={cn(
+ "flex w-full p-1 rounded-md border min-h-10 h-auto items-center justify-between bg-inherit hover:bg-inherit [&_svg]:pointer-events-auto",
+ className
+ )}
+ >
+ {selectedValues.length > 0 ? (
+ <div className="flex justify-between items-center w-full">
+ <div className="flex flex-wrap items-center">
+ {selectedValues.slice(0, maxCount).map((value) => {
+ const option = options.find((o) => o.value === value);
+ const IconComponent = option?.icon;
+ return (
+ <Badge
+ key={value}
+ className={cn(
+ isAnimating ? "animate-bounce" : "",
+ multiSelectVariants({ variant })
+ )}
+ style={{ animationDuration: `${animation}s` }}
+ >
+ {IconComponent && (
+ <IconComponent className="h-4 w-4 mr-2" />
+ )}
+ {option?.label}
+ <XCircle
+ className="ml-2 h-4 w-4 cursor-pointer"
+ onClick={(event) => {
+ event.stopPropagation();
+ toggleOption(value);
+ }}
+ />
+ </Badge>
+ );
+ })}
+ {selectedValues.length > maxCount && (
+ <Badge
+ className={cn(
+ "bg-transparent text-foreground border-foreground/1 hover:bg-transparent",
+ isAnimating ? "animate-bounce" : "",
+ multiSelectVariants({ variant })
+ )}
+ style={{ animationDuration: `${animation}s` }}
+ >
+ {`+ ${selectedValues.length - maxCount} more`}
+ <XCircle
+ className="ml-2 h-4 w-4 cursor-pointer"
+ onClick={(event) => {
+ event.stopPropagation();
+ clearExtraOptions();
+ }}
+ />
+ </Badge>
+ )}
+ </div>
+ <div className="flex items-center justify-between">
+ <XIcon
+ className="h-4 mx-2 cursor-pointer text-muted-foreground"
+ onClick={(event) => {
+ event.stopPropagation();
+ handleClear();
+ }}
+ />
+ <Separator
+ orientation="vertical"
+ className="flex min-h-6 h-full"
+ />
+ <ChevronDown className="h-4 mx-2 cursor-pointer text-muted-foreground" />
+ </div>
+ </div>
+ ) : (
+ <div className="flex items-center justify-between w-full mx-auto">
+ <span className="text-sm text-muted-foreground mx-3">
+ {placeholder}
+ </span>
+ <ChevronDown className="h-4 cursor-pointer text-muted-foreground mx-2" />
+ </div>
+ )}
+ </Button>
+ </PopoverTrigger>
+ <PopoverContent
+ className="w-[var(--radix-popover-trigger-width)] p-0"
+ align="start"
+ onEscapeKeyDown={() => setIsPopoverOpen(false)}
+ >
+ <Command className="w-full">
+ <CommandInput
+ placeholder="Search..."
+ onKeyDown={handleInputKeyDown}
+ />
+ <CommandList>
+ <CommandEmpty>No results found.</CommandEmpty>
+ <CommandGroup>
+ <CommandItem
+ key="all"
+ onSelect={toggleAll}
+ className="cursor-pointer"
+ >
+ <div
+ className={cn(
+ "mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",
+ selectedValues.length === options.length
+ ? "bg-primary text-primary-foreground"
+ : "opacity-50 [&_svg]:invisible"
+ )}
+ >
+ <CheckIcon className="h-4 w-4" />
+ </div>
+ <span>(Select All)</span>
+ </CommandItem>
+ {options.map((option) => {
+ const isSelected = selectedValues.includes(option.value);
+ return (
+ <CommandItem
+ key={option.value}
+ onSelect={() => toggleOption(option.value)}
+ className="cursor-pointer w-full"
+ >
+ <div
+ className={cn(
+ "mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",
+ isSelected
+ ? "bg-primary text-primary-foreground"
+ : "opacity-50 [&_svg]:invisible"
+ )}
+ >
+ <CheckIcon className="h-4 w-4" />
+ </div>
+ {option.icon && (
+ <option.icon className="mr-2 h-4 w-4 text-muted-foreground" />
+ )}
+ <span>{option.label}</span>
+ </CommandItem>
+ );
+ })}
+ </CommandGroup>
+ <CommandSeparator />
+ <CommandGroup>
+ <div className="flex items-center justify-between">
+ {selectedValues.length > 0 && (
+ <>
+ <CommandItem
+ onSelect={handleClear}
+ className="flex-1 justify-center cursor-pointer"
+ >
+ Clear
+ </CommandItem>
+ <Separator
+ orientation="vertical"
+ className="flex min-h-6 h-full"
+ />
+ </>
+ )}
+ <CommandItem
+ onSelect={() => setIsPopoverOpen(false)}
+ className="flex-1 justify-center cursor-pointer max-w-full"
+ >
+ Close
+ </CommandItem>
+ </div>
+ </CommandGroup>
+ </CommandList>
+ </Command>
+ </PopoverContent>
+ </Popover>
+ );
+ }
+);
+
+MultiSelect.displayName = "MultiSelect";
\ No newline at end of file
diff --git a/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/screenpipe-app-tauri/lib/hooks/use-settings.tsx
index 4739e8b2b..5a7a33526 100644
--- a/screenpipe-app-tauri/lib/hooks/use-settings.tsx
+++ b/screenpipe-app-tauri/lib/hooks/use-settings.tsx
@@ -1,10 +1,18 @@
-import { useState, useEffect } from "react";
-import { createStore, Store } from "@tauri-apps/plugin-store";
-import { localDataDir, join, homeDir } from "@tauri-apps/api/path";
+import { homeDir } from "@tauri-apps/api/path";
import { platform } from "@tauri-apps/plugin-os";
import { Pipe } from "./use-pipes";
-import posthog from "posthog-js";
import { Language } from "@/lib/language";
+import {
+ createStore as createStoreEasyPeasy,
+ action,
+ Action,
+ persist,
+ createTypedHooks,
+ PersistStorage,
+} from "easy-peasy";
+import { LazyStore, LazyStore as TauriStore } from "@tauri-apps/plugin-store";
+import { localDataDir } from "@tauri-apps/api/path";
+import { flattenObject, unflattenObject } from "../utils";
export type VadSensitivity = "low" | "medium" | "high";
@@ -159,93 +167,124 @@ const DEFAULT_IGNORED_WINDOWS_PER_OS: Record<string, string[]> = {
linux: ["Info center", "Discover", "Parted"],
};
-let store: Awaited<ReturnType<typeof createStore>> | null = null;
-
-export function useSettings() {
- const [settings, setSettings] = useState<Settings>(DEFAULT_SETTINGS);
- const [localSettings, setLocalSettings] = useState<Settings>(settings);
+// Model definition
+export interface StoreModel {
+ settings: Settings;
+ setSettings: Action<StoreModel, Partial<Settings>>;
+ resetSettings: Action<StoreModel>;
+ resetSetting: Action<StoreModel, keyof Settings>;
+}
- useEffect(() => {
- posthog.identify(settings.userId);
- }, [settings.userId]);
+function createDefaultSettingsObject(): Settings {
+ let defaultSettings = { ...DEFAULT_SETTINGS };
+ const currentPlatform = platform();
- useEffect(() => {
- setLocalSettings(settings);
- }, [settings]);
+ const ocrModel =
+ currentPlatform === "macos"
+ ? "apple-native"
+ : currentPlatform === "windows"
+ ? "windows-native"
+ : "tesseract";
- const resetSetting = async (key: keyof Settings) => {
- if (!store) {
- await initStore();
- }
+ defaultSettings.ocrEngine = ocrModel;
+ defaultSettings.fps = currentPlatform === "macos" ? 0.2 : 1;
+ defaultSettings.platform = currentPlatform;
- const defaultSettings = createDefaultSettingsObject(platform());
-
- try {
- const updatedSettings = { ...settings, [key]: defaultSettings[key] };
- setSettings(updatedSettings);
- await store!.set(key, defaultSettings[key]);
- // No need to call save() as we're using autoSave: true
- } catch (error) {
- console.error(`failed to reset setting ${key}:`, error);
- // revert local state if store update fails
- setSettings(settings);
- }
- };
+ defaultSettings.ignoredWindows = [
+ ...DEFAULT_IGNORED_WINDOWS_IN_ALL_OS,
+ ...(DEFAULT_IGNORED_WINDOWS_PER_OS[currentPlatform] ?? []),
+ ];
- const resetSettings = async () => {
- const userSettings = createDefaultSettingsObject(platform());
+ return defaultSettings;
+}
- updateSettings(userSettings);
- };
+// Create a singleton store instance
+let storePromise: Promise<LazyStore> | null = null;
- const loadSettings = async () => {
- if (!store) {
- await initStore();
- }
+const getStore = async () => {
+ if (!storePromise) {
+ storePromise = (async () => {
+ const dir = await localDataDir();
+ return new TauriStore(`${dir}/screenpipe/store.bin`);
+ })();
+ }
+ return storePromise;
+};
- try {
- const currentPlatform = platform();
- const userSettings = await createUserSettings(store!, currentPlatform);
+const tauriStorage: PersistStorage = {
+ getItem: async (_key: string) => {
+ const tauriStore = await getStore();
+ const allKeys = await tauriStore.keys();
+ const values: Record<string, any> = {};
- setSettings({ ...userSettings, isLoading: false });
- } catch (error) {
- console.error("failed to load settings:", error);
- setSettings((prevSettings) => ({ ...prevSettings, isLoading: false }));
+ for (const k of allKeys) {
+ values[k] = await tauriStore.get(k);
}
- };
- useEffect(() => {
- loadSettings();
- }, []);
+ return { settings: unflattenObject(values) };
+ },
+ setItem: async (_key: string, value: any) => {
+ const tauriStore = await getStore();
+
+ const flattenedValue = flattenObject(value.settings);
- const updateSettings = async (newSettings: Partial<Settings>) => {
- if (!store) {
- await initStore();
+ // Delete all existing keys first
+ const existingKeys = await tauriStore.keys();
+ for (const key of existingKeys) {
+ await tauriStore.delete(key);
}
- try {
- // Create complete updated settings object
- const updatedSettings = { ...settings, ...newSettings };
+ // Set new flattened values
+ for (const [key, val] of Object.entries(flattenedValue)) {
+ await tauriStore.set(key, val);
+ }
- // Save each setting individually to the store
- for (const [key, value] of Object.entries(updatedSettings)) {
- await store!.set(key, value);
- }
+ await tauriStore.save();
+ },
+ removeItem: async (_key: string) => {
+ const tauriStore = await getStore();
+ const keys = await tauriStore.keys();
+ for (const key of keys) {
+ await tauriStore.delete(key);
+ }
+ await tauriStore.save();
+ },
+};
- // Update local state
- setLocalSettings(updatedSettings);
- setSettings(updatedSettings);
+export const store = createStoreEasyPeasy<StoreModel>(
+ persist(
+ {
+ settings: createDefaultSettingsObject(),
+ setSettings: action((state, payload) => {
+ state.settings = {
+ ...state.settings,
+ ...payload,
+ };
+ }),
+ resetSettings: action((state) => {
+ state.settings = createDefaultSettingsObject();
+ }),
+ resetSetting: action((state, key) => {
+ const defaultValue = createDefaultSettingsObject()[key];
+ (state.settings as any)[key] = defaultValue;
+ }),
+ },
+ {
+ storage: tauriStorage,
+ mergeStrategy: "mergeDeep",
+ }
+ )
+);
- // Force save to disk
- await store!.save();
+const typedHooks = createTypedHooks<StoreModel>();
+const useStoreActions = typedHooks.useStoreActions;
+const useStoreState = typedHooks.useStoreState;
- console.log("settings saved successfully:", updatedSettings);
- } catch (error) {
- console.error("failed to update settings:", error);
- setSettings(settings);
- throw error;
- }
- };
+export function useSettings() {
+ const settings = useStoreState((state) => state.settings);
+ const setSettings = useStoreActions((actions) => actions.setSettings);
+ const resetSettings = useStoreActions((actions) => actions.resetSettings);
+ const resetSetting = useStoreActions((actions) => actions.resetSetting);
const getDataDir = async () => {
const homeDirPath = await homeDir();
@@ -264,56 +303,9 @@ export function useSettings() {
return {
settings,
- updateSettings,
+ updateSettings: setSettings,
+ resetSettings,
resetSetting,
getDataDir,
- resetSettings,
- localSettings,
- setLocalSettings,
};
}
-
-async function initStore() {
- const dataDir = await localDataDir();
- const storePath = await join(dataDir, "screenpipe", "store.bin");
- store = await createStore(storePath);
-}
-
-function createDefaultSettingsObject(currentPlatform: string) {
- let defaultSettings = DEFAULT_SETTINGS;
-
- const ocrModel =
- currentPlatform === "macos"
- ? "apple-native"
- : currentPlatform === "windows"
- ? "windows-native"
- : "tesseract";
-
- defaultSettings.ocrEngine = ocrModel;
- defaultSettings.fps = currentPlatform === "macos" ? 0.2 : 1;
-
- defaultSettings.ignoredWindows = [
- ...DEFAULT_IGNORED_WINDOWS_IN_ALL_OS,
- ...(DEFAULT_IGNORED_WINDOWS_PER_OS[currentPlatform] ?? []),
- ];
-
- return defaultSettings;
-}
-
-async function createUserSettings(
- store: Store,
- currentPlatform: string
-): Promise<Settings> {
- let defaultSettingsObject = createDefaultSettingsObject(currentPlatform);
- let userSettingsObject: Record<string, any> = {};
-
- for (const key of Object.keys(defaultSettingsObject)) {
- const storedValue = await store.get(key);
- userSettingsObject[key] =
- storedValue === null || storedValue === undefined
- ? defaultSettingsObject[key as keyof Settings]
- : storedValue;
- }
-
- return userSettingsObject as Settings;
-}
diff --git a/screenpipe-app-tauri/lib/hooks/use-user.ts b/screenpipe-app-tauri/lib/hooks/use-user.ts
index fc0366d60..5be2a86d4 100644
--- a/screenpipe-app-tauri/lib/hooks/use-user.ts
+++ b/screenpipe-app-tauri/lib/hooks/use-user.ts
@@ -1,18 +1,8 @@
import { useEffect, useState } from "react";
-import { createStore } from "@tauri-apps/plugin-store";
-import { localDataDir, join } from "@tauri-apps/api/path";
import { User, useSettings } from "./use-settings";
import { useInterval } from "./use-interval";
import { fetch } from "@tauri-apps/plugin-http";
-let store: Awaited<ReturnType<typeof createStore>> | null = null;
-
-async function initStore() {
- const dataDir = await localDataDir();
- const storePath = await join(dataDir, "screenpipe", "store.bin");
- store = await createStore(storePath);
-}
-
async function verifyUserToken(token: string): Promise<User> {
const response = await fetch("https://screenpi.pe/api/tauri", {
method: "POST",
@@ -44,8 +34,6 @@ export function useUser() {
}, 3000);
const loadUser = async (token: string) => {
- if (!store) await initStore();
-
try {
const userData = await verifyUserToken(token);
// skip if user data did not change
@@ -55,7 +43,7 @@ export function useUser() {
)
return;
setUser(userData);
- await updateSettings({ user: userData });
+ updateSettings({ user: userData });
} catch (err) {
console.error("failed to load user:", err);
setError(err instanceof Error ? err.message : "failed to load user");
diff --git a/screenpipe-app-tauri/lib/utils.ts b/screenpipe-app-tauri/lib/utils.ts
index 2822319d9..a02e3737b 100644
--- a/screenpipe-app-tauri/lib/utils.ts
+++ b/screenpipe-app-tauri/lib/utils.ts
@@ -104,3 +104,38 @@ export async function getFileSize(filePath: string): Promise<number> {
return size;
}
+
+// Helper functions to flatten/unflatten objects
+export const flattenObject = (obj: any, prefix = ""): Record<string, any> => {
+ return Object.keys(obj).reduce((acc: Record<string, any>, k: string) => {
+ const pre = prefix.length ? prefix + "." : "";
+ if (
+ typeof obj[k] === "object" &&
+ obj[k] !== null &&
+ !Array.isArray(obj[k])
+ ) {
+ Object.assign(acc, flattenObject(obj[k], pre + k));
+ } else {
+ acc[pre + k] = obj[k];
+ }
+ return acc;
+ }, {});
+};
+
+export const unflattenObject = (obj: Record<string, any>): any => {
+ const result: any = {};
+ for (const key in obj) {
+ const keys = key.split(".");
+ let current = result;
+ for (let i = 0; i < keys.length; i++) {
+ const k = keys[i];
+ if (i === keys.length - 1) {
+ current[k] = obj[key];
+ } else {
+ current[k] = current[k] || {};
+ current = current[k];
+ }
+ }
+ }
+ return result;
+};
\ No newline at end of file
diff --git a/screenpipe-app-tauri/package.json b/screenpipe-app-tauri/package.json
index bcbe50612..5e28ef50e 100644
--- a/screenpipe-app-tauri/package.json
+++ b/screenpipe-app-tauri/package.json
@@ -51,7 +51,7 @@
"@tauri-apps/plugin-os": "2.0.0",
"@tauri-apps/plugin-process": "2.0.0",
"@tauri-apps/plugin-shell": "2.0.0",
- "@tauri-apps/plugin-store": "^2.0.0",
+ "@tauri-apps/plugin-store": "^2.2.0",
"@tauri-apps/plugin-updater": "2.0.0",
"@types/js-levenshtein": "^1.1.3",
"ai": "^3.3",
@@ -60,6 +60,7 @@
"clsx": "^2.1.1",
"cmdk": "1.0.0",
"date-fns": "^3.6.0",
+ "easy-peasy": "^6.0.5",
"framer-motion": "^11.5.4",
"js-levenshtein": "^1.1.6",
"localforage": "^1.10.0",
@@ -79,6 +80,9 @@
"remark-math": "^6.0.0",
"tailwind-merge": "^2.4.0",
"tailwindcss-animate": "^1.0.7",
+ "tauri-plugin-store-api": "^0.0.0",
+ "use-debounce": "^10.0.4",
+ "use-immer": "^0.11.0",
"zod": "^3.23.8",
"zod-to-json-schema": "^3.23.1"
},
diff --git a/screenpipe-app-tauri/public/images/custom.png b/screenpipe-app-tauri/public/images/custom.png
new file mode 100644
index 000000000..7151485d0
Binary files /dev/null and b/screenpipe-app-tauri/public/images/custom.png differ
diff --git a/screenpipe-app-tauri/public/images/ollama.png b/screenpipe-app-tauri/public/images/ollama.png
new file mode 100644
index 000000000..b3d5cb711
Binary files /dev/null and b/screenpipe-app-tauri/public/images/ollama.png differ
diff --git a/screenpipe-app-tauri/public/images/openai.png b/screenpipe-app-tauri/public/images/openai.png
new file mode 100644
index 000000000..557e4a91d
Binary files /dev/null and b/screenpipe-app-tauri/public/images/openai.png differ
diff --git a/screenpipe-app-tauri/public/images/screenpipe.png b/screenpipe-app-tauri/public/images/screenpipe.png
new file mode 100644
index 000000000..31a15d558
Binary files /dev/null and b/screenpipe-app-tauri/public/images/screenpipe.png differ
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lock
index 06829b67c..fa9353506 100755
--- a/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -6012,18 +6012,18 @@ dependencies = [
[[package]]
name = "tauri-plugin-store"
-version = "2.0.0"
+version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c824c56d35d3aeb97eda0f827c9c419d8fd153a2958f3f40e8e9f34ecc564e6d"
+checksum = "1c0c08fae6995909f5e9a0da6038273b750221319f2c0f3b526d6de1cde21505"
dependencies = [
"dunce",
- "log",
"serde",
"serde_json",
"tauri",
"tauri-plugin",
- "thiserror 1.0.69",
+ "thiserror 2.0.5",
"tokio",
+ "tracing",
]
[[package]]
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index 6b80b0ef6..eb23c6ef0 100644
--- a/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -33,7 +33,7 @@ tauri-plugin-process = "=2.0.0"
tauri-plugin-autostart = "=2.0.0"
tauri-plugin-deep-link = "=2.2.0"
tauri-plugin-shell = "=2.0.0"
-tauri-plugin-store = "=2.0.0"
+tauri-plugin-store = "=2.2.0"
serde = { version = "1.0", features = ["derive"] }
serde_derive = "1.0"
diff --git a/screenpipe-app-tauri/src-tauri/capabilities/main.json b/screenpipe-app-tauri/src-tauri/capabilities/main.json
index b59ed6ee3..1dddcd4b3 100644
--- a/screenpipe-app-tauri/src-tauri/capabilities/main.json
+++ b/screenpipe-app-tauri/src-tauri/capabilities/main.json
@@ -17,11 +17,7 @@
"core:tray:default",
"shell:default",
"store:default",
- "store:allow-create-store",
- "store:allow-get",
- "store:allow-set",
- "store:allow-save",
- "store:allow-load",
+
"shell:allow-open",
"fs:allow-watch",
"fs:allow-open",
@@ -208,7 +204,6 @@
"os:allow-os-type",
"core:path:default",
"process:default",
- "store:default",
"core:webview:allow-internal-toggle-devtools",
{
"identifier": "shell:allow-execute",
diff --git a/screenpipe-app-tauri/src-tauri/gen/schemas/acl-manifests.json b/screenpipe-app-tauri/src-tauri/gen/schemas/acl-manifests.json
index 835abca08..8f3efebf0 100644
--- a/screenpipe-app-tauri/src-tauri/gen/schemas/acl-manifests.json
+++ b/screenpipe-app-tauri/src-tauri/gen/schemas/acl-manifests.json
@@ -1 +1 @@
-{"autostart":{"default_permission":{"identifier":"default","description":"This permission set configures if your\napplication can enable or disable auto\nstarting the application on boot.\n\n#### Granted Permissions\n\nIt allows all to check, enable and\ndisable the automatic start on boot.\n\n","permissions":["allow-enable","allow-disable","allow-is-enabled"]},"permissions":{"allow-disable":{"identifier":"allow-disable","description":"Enables the disable command without any pre-configured scope.","commands":{"allow":["disable"],"deny":[]}},"allow-enable":{"identifier":"allow-enable","description":"Enables the enable command without any pre-configured scope.","commands":{"allow":["enable"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"deny-disable":{"identifier":"deny-disable","description":"Denies the disable command without any pre-configured scope.","commands":{"allow":[],"deny":["disable"]}},"deny-enable":{"identifier":"deny-enable","description":"Denies the enable command without any pre-configured scope.","commands":{"allow":[],"deny":["enable"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}}},"permission_sets":{},"global_scope_schema":null},"cli":{"default_permission":{"identifier":"default","description":"Allows reading the CLI matches","permissions":["allow-cli-matches"]},"permissions":{"allow-cli-matches":{"identifier":"allow-cli-matches","description":"Enables the cli_matches command without any pre-configured scope.","commands":{"allow":["cli_matches"],"deny":[]}},"deny-cli-matches":{"identifier":"deny-cli-matches","description":"Denies the cli_matches command without any pre-configured scope.","commands":{"allow":[],"deny":["cli_matches"]}}},"permission_sets":{},"global_scope_schema":null},"core":{"default_permission":{"identifier":"default","description":"Default core plugins set which includes:\n- 'core:path:default'\n- 'core:event:default'\n- 'core:window:default'\n- 'core:webview:default'\n- 'core:app:default'\n- 'core:image:default'\n- 'core:resources:default'\n- 'core:menu:default'\n- 'core:tray:default'\n","permissions":["core:path:default","core:event:default","core:window:default","core:webview:default","core:app:default","core:image:default","core:resources:default","core:menu:default","core:tray:default"]},"permissions":{},"permission_sets":{},"global_scope_schema":null},"core:app":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-version","allow-name","allow-tauri-version"]},"permissions":{"allow-app-hide":{"identifier":"allow-app-hide","description":"Enables the app_hide command without any pre-configured scope.","commands":{"allow":["app_hide"],"deny":[]}},"allow-app-show":{"identifier":"allow-app-show","description":"Enables the app_show command without any pre-configured scope.","commands":{"allow":["app_show"],"deny":[]}},"allow-default-window-icon":{"identifier":"allow-default-window-icon","description":"Enables the default_window_icon command without any pre-configured scope.","commands":{"allow":["default_window_icon"],"deny":[]}},"allow-name":{"identifier":"allow-name","description":"Enables the name command without any pre-configured scope.","commands":{"allow":["name"],"deny":[]}},"allow-set-app-theme":{"identifier":"allow-set-app-theme","description":"Enables the set_app_theme command without any pre-configured scope.","commands":{"allow":["set_app_theme"],"deny":[]}},"allow-tauri-version":{"identifier":"allow-tauri-version","description":"Enables the tauri_version command without any pre-configured scope.","commands":{"allow":["tauri_version"],"deny":[]}},"allow-version":{"identifier":"allow-version","description":"Enables the version command without any pre-configured scope.","commands":{"allow":["version"],"deny":[]}},"deny-app-hide":{"identifier":"deny-app-hide","description":"Denies the app_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["app_hide"]}},"deny-app-show":{"identifier":"deny-app-show","description":"Denies the app_show command without any pre-configured scope.","commands":{"allow":[],"deny":["app_show"]}},"deny-default-window-icon":{"identifier":"deny-default-window-icon","description":"Denies the default_window_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["default_window_icon"]}},"deny-name":{"identifier":"deny-name","description":"Denies the name command without any pre-configured scope.","commands":{"allow":[],"deny":["name"]}},"deny-set-app-theme":{"identifier":"deny-set-app-theme","description":"Denies the set_app_theme command without any pre-configured scope.","commands":{"allow":[],"deny":["set_app_theme"]}},"deny-tauri-version":{"identifier":"deny-tauri-version","description":"Denies the tauri_version command without any pre-configured scope.","commands":{"allow":[],"deny":["tauri_version"]}},"deny-version":{"identifier":"deny-version","description":"Denies the version command without any pre-configured scope.","commands":{"allow":[],"deny":["version"]}}},"permission_sets":{},"global_scope_schema":null},"core:event":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-listen","allow-unlisten","allow-emit","allow-emit-to"]},"permissions":{"allow-emit":{"identifier":"allow-emit","description":"Enables the emit command without any pre-configured scope.","commands":{"allow":["emit"],"deny":[]}},"allow-emit-to":{"identifier":"allow-emit-to","description":"Enables the emit_to command without any pre-configured scope.","commands":{"allow":["emit_to"],"deny":[]}},"allow-listen":{"identifier":"allow-listen","description":"Enables the listen command without any pre-configured scope.","commands":{"allow":["listen"],"deny":[]}},"allow-unlisten":{"identifier":"allow-unlisten","description":"Enables the unlisten command without any pre-configured scope.","commands":{"allow":["unlisten"],"deny":[]}},"deny-emit":{"identifier":"deny-emit","description":"Denies the emit command without any pre-configured scope.","commands":{"allow":[],"deny":["emit"]}},"deny-emit-to":{"identifier":"deny-emit-to","description":"Denies the emit_to command without any pre-configured scope.","commands":{"allow":[],"deny":["emit_to"]}},"deny-listen":{"identifier":"deny-listen","description":"Denies the listen command without any pre-configured scope.","commands":{"allow":[],"deny":["listen"]}},"deny-unlisten":{"identifier":"deny-unlisten","description":"Denies the unlisten command without any pre-configured scope.","commands":{"allow":[],"deny":["unlisten"]}}},"permission_sets":{},"global_scope_schema":null},"core:image":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-new","allow-from-bytes","allow-from-path","allow-rgba","allow-size"]},"permissions":{"allow-from-bytes":{"identifier":"allow-from-bytes","description":"Enables the from_bytes command without any pre-configured scope.","commands":{"allow":["from_bytes"],"deny":[]}},"allow-from-path":{"identifier":"allow-from-path","description":"Enables the from_path command without any pre-configured scope.","commands":{"allow":["from_path"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-rgba":{"identifier":"allow-rgba","description":"Enables the rgba command without any pre-configured scope.","commands":{"allow":["rgba"],"deny":[]}},"allow-size":{"identifier":"allow-size","description":"Enables the size command without any pre-configured scope.","commands":{"allow":["size"],"deny":[]}},"deny-from-bytes":{"identifier":"deny-from-bytes","description":"Denies the from_bytes command without any pre-configured scope.","commands":{"allow":[],"deny":["from_bytes"]}},"deny-from-path":{"identifier":"deny-from-path","description":"Denies the from_path command without any pre-configured scope.","commands":{"allow":[],"deny":["from_path"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-rgba":{"identifier":"deny-rgba","description":"Denies the rgba command without any pre-configured scope.","commands":{"allow":[],"deny":["rgba"]}},"deny-size":{"identifier":"deny-size","description":"Denies the size command without any pre-configured scope.","commands":{"allow":[],"deny":["size"]}}},"permission_sets":{},"global_scope_schema":null},"core:menu":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-new","allow-append","allow-prepend","allow-insert","allow-remove","allow-remove-at","allow-items","allow-get","allow-popup","allow-create-default","allow-set-as-app-menu","allow-set-as-window-menu","allow-text","allow-set-text","allow-is-enabled","allow-set-enabled","allow-set-accelerator","allow-set-as-windows-menu-for-nsapp","allow-set-as-help-menu-for-nsapp","allow-is-checked","allow-set-checked","allow-set-icon"]},"permissions":{"allow-append":{"identifier":"allow-append","description":"Enables the append command without any pre-configured scope.","commands":{"allow":["append"],"deny":[]}},"allow-create-default":{"identifier":"allow-create-default","description":"Enables the create_default command without any pre-configured scope.","commands":{"allow":["create_default"],"deny":[]}},"allow-get":{"identifier":"allow-get","description":"Enables the get command without any pre-configured scope.","commands":{"allow":["get"],"deny":[]}},"allow-insert":{"identifier":"allow-insert","description":"Enables the insert command without any pre-configured scope.","commands":{"allow":["insert"],"deny":[]}},"allow-is-checked":{"identifier":"allow-is-checked","description":"Enables the is_checked command without any pre-configured scope.","commands":{"allow":["is_checked"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-items":{"identifier":"allow-items","description":"Enables the items command without any pre-configured scope.","commands":{"allow":["items"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-popup":{"identifier":"allow-popup","description":"Enables the popup command without any pre-configured scope.","commands":{"allow":["popup"],"deny":[]}},"allow-prepend":{"identifier":"allow-prepend","description":"Enables the prepend command without any pre-configured scope.","commands":{"allow":["prepend"],"deny":[]}},"allow-remove":{"identifier":"allow-remove","description":"Enables the remove command without any pre-configured scope.","commands":{"allow":["remove"],"deny":[]}},"allow-remove-at":{"identifier":"allow-remove-at","description":"Enables the remove_at command without any pre-configured scope.","commands":{"allow":["remove_at"],"deny":[]}},"allow-set-accelerator":{"identifier":"allow-set-accelerator","description":"Enables the set_accelerator command without any pre-configured scope.","commands":{"allow":["set_accelerator"],"deny":[]}},"allow-set-as-app-menu":{"identifier":"allow-set-as-app-menu","description":"Enables the set_as_app_menu command without any pre-configured scope.","commands":{"allow":["set_as_app_menu"],"deny":[]}},"allow-set-as-help-menu-for-nsapp":{"identifier":"allow-set-as-help-menu-for-nsapp","description":"Enables the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_help_menu_for_nsapp"],"deny":[]}},"allow-set-as-window-menu":{"identifier":"allow-set-as-window-menu","description":"Enables the set_as_window_menu command without any pre-configured scope.","commands":{"allow":["set_as_window_menu"],"deny":[]}},"allow-set-as-windows-menu-for-nsapp":{"identifier":"allow-set-as-windows-menu-for-nsapp","description":"Enables the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_windows_menu_for_nsapp"],"deny":[]}},"allow-set-checked":{"identifier":"allow-set-checked","description":"Enables the set_checked command without any pre-configured scope.","commands":{"allow":["set_checked"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-text":{"identifier":"allow-set-text","description":"Enables the set_text command without any pre-configured scope.","commands":{"allow":["set_text"],"deny":[]}},"allow-text":{"identifier":"allow-text","description":"Enables the text command without any pre-configured scope.","commands":{"allow":["text"],"deny":[]}},"deny-append":{"identifier":"deny-append","description":"Denies the append command without any pre-configured scope.","commands":{"allow":[],"deny":["append"]}},"deny-create-default":{"identifier":"deny-create-default","description":"Denies the create_default command without any pre-configured scope.","commands":{"allow":[],"deny":["create_default"]}},"deny-get":{"identifier":"deny-get","description":"Denies the get command without any pre-configured scope.","commands":{"allow":[],"deny":["get"]}},"deny-insert":{"identifier":"deny-insert","description":"Denies the insert command without any pre-configured scope.","commands":{"allow":[],"deny":["insert"]}},"deny-is-checked":{"identifier":"deny-is-checked","description":"Denies the is_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["is_checked"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-items":{"identifier":"deny-items","description":"Denies the items command without any pre-configured scope.","commands":{"allow":[],"deny":["items"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-popup":{"identifier":"deny-popup","description":"Denies the popup command without any pre-configured scope.","commands":{"allow":[],"deny":["popup"]}},"deny-prepend":{"identifier":"deny-prepend","description":"Denies the prepend command without any pre-configured scope.","commands":{"allow":[],"deny":["prepend"]}},"deny-remove":{"identifier":"deny-remove","description":"Denies the remove command without any pre-configured scope.","commands":{"allow":[],"deny":["remove"]}},"deny-remove-at":{"identifier":"deny-remove-at","description":"Denies the remove_at command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_at"]}},"deny-set-accelerator":{"identifier":"deny-set-accelerator","description":"Denies the set_accelerator command without any pre-configured scope.","commands":{"allow":[],"deny":["set_accelerator"]}},"deny-set-as-app-menu":{"identifier":"deny-set-as-app-menu","description":"Denies the set_as_app_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_app_menu"]}},"deny-set-as-help-menu-for-nsapp":{"identifier":"deny-set-as-help-menu-for-nsapp","description":"Denies the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_help_menu_for_nsapp"]}},"deny-set-as-window-menu":{"identifier":"deny-set-as-window-menu","description":"Denies the set_as_window_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_window_menu"]}},"deny-set-as-windows-menu-for-nsapp":{"identifier":"deny-set-as-windows-menu-for-nsapp","description":"Denies the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_windows_menu_for_nsapp"]}},"deny-set-checked":{"identifier":"deny-set-checked","description":"Denies the set_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["set_checked"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-text":{"identifier":"deny-set-text","description":"Denies the set_text command without any pre-configured scope.","commands":{"allow":[],"deny":["set_text"]}},"deny-text":{"identifier":"deny-text","description":"Denies the text command without any pre-configured scope.","commands":{"allow":[],"deny":["text"]}}},"permission_sets":{},"global_scope_schema":null},"core:path":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-resolve-directory","allow-resolve","allow-normalize","allow-join","allow-dirname","allow-extname","allow-basename","allow-is-absolute"]},"permissions":{"allow-basename":{"identifier":"allow-basename","description":"Enables the basename command without any pre-configured scope.","commands":{"allow":["basename"],"deny":[]}},"allow-dirname":{"identifier":"allow-dirname","description":"Enables the dirname command without any pre-configured scope.","commands":{"allow":["dirname"],"deny":[]}},"allow-extname":{"identifier":"allow-extname","description":"Enables the extname command without any pre-configured scope.","commands":{"allow":["extname"],"deny":[]}},"allow-is-absolute":{"identifier":"allow-is-absolute","description":"Enables the is_absolute command without any pre-configured scope.","commands":{"allow":["is_absolute"],"deny":[]}},"allow-join":{"identifier":"allow-join","description":"Enables the join command without any pre-configured scope.","commands":{"allow":["join"],"deny":[]}},"allow-normalize":{"identifier":"allow-normalize","description":"Enables the normalize command without any pre-configured scope.","commands":{"allow":["normalize"],"deny":[]}},"allow-resolve":{"identifier":"allow-resolve","description":"Enables the resolve command without any pre-configured scope.","commands":{"allow":["resolve"],"deny":[]}},"allow-resolve-directory":{"identifier":"allow-resolve-directory","description":"Enables the resolve_directory command without any pre-configured scope.","commands":{"allow":["resolve_directory"],"deny":[]}},"deny-basename":{"identifier":"deny-basename","description":"Denies the basename command without any pre-configured scope.","commands":{"allow":[],"deny":["basename"]}},"deny-dirname":{"identifier":"deny-dirname","description":"Denies the dirname command without any pre-configured scope.","commands":{"allow":[],"deny":["dirname"]}},"deny-extname":{"identifier":"deny-extname","description":"Denies the extname command without any pre-configured scope.","commands":{"allow":[],"deny":["extname"]}},"deny-is-absolute":{"identifier":"deny-is-absolute","description":"Denies the is_absolute command without any pre-configured scope.","commands":{"allow":[],"deny":["is_absolute"]}},"deny-join":{"identifier":"deny-join","description":"Denies the join command without any pre-configured scope.","commands":{"allow":[],"deny":["join"]}},"deny-normalize":{"identifier":"deny-normalize","description":"Denies the normalize command without any pre-configured scope.","commands":{"allow":[],"deny":["normalize"]}},"deny-resolve":{"identifier":"deny-resolve","description":"Denies the resolve command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve"]}},"deny-resolve-directory":{"identifier":"deny-resolve-directory","description":"Denies the resolve_directory command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve_directory"]}}},"permission_sets":{},"global_scope_schema":null},"core:resources":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-close"]},"permissions":{"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}}},"permission_sets":{},"global_scope_schema":null},"core:tray":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-new","allow-get-by-id","allow-remove-by-id","allow-set-icon","allow-set-menu","allow-set-tooltip","allow-set-title","allow-set-visible","allow-set-temp-dir-path","allow-set-icon-as-template","allow-set-show-menu-on-left-click"]},"permissions":{"allow-get-by-id":{"identifier":"allow-get-by-id","description":"Enables the get_by_id command without any pre-configured scope.","commands":{"allow":["get_by_id"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-remove-by-id":{"identifier":"allow-remove-by-id","description":"Enables the remove_by_id command without any pre-configured scope.","commands":{"allow":["remove_by_id"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-icon-as-template":{"identifier":"allow-set-icon-as-template","description":"Enables the set_icon_as_template command without any pre-configured scope.","commands":{"allow":["set_icon_as_template"],"deny":[]}},"allow-set-menu":{"identifier":"allow-set-menu","description":"Enables the set_menu command without any pre-configured scope.","commands":{"allow":["set_menu"],"deny":[]}},"allow-set-show-menu-on-left-click":{"identifier":"allow-set-show-menu-on-left-click","description":"Enables the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":["set_show_menu_on_left_click"],"deny":[]}},"allow-set-temp-dir-path":{"identifier":"allow-set-temp-dir-path","description":"Enables the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":["set_temp_dir_path"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-tooltip":{"identifier":"allow-set-tooltip","description":"Enables the set_tooltip command without any pre-configured scope.","commands":{"allow":["set_tooltip"],"deny":[]}},"allow-set-visible":{"identifier":"allow-set-visible","description":"Enables the set_visible command without any pre-configured scope.","commands":{"allow":["set_visible"],"deny":[]}},"deny-get-by-id":{"identifier":"deny-get-by-id","description":"Denies the get_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["get_by_id"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-remove-by-id":{"identifier":"deny-remove-by-id","description":"Denies the remove_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_by_id"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-icon-as-template":{"identifier":"deny-set-icon-as-template","description":"Denies the set_icon_as_template command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon_as_template"]}},"deny-set-menu":{"identifier":"deny-set-menu","description":"Denies the set_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_menu"]}},"deny-set-show-menu-on-left-click":{"identifier":"deny-set-show-menu-on-left-click","description":"Denies the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":[],"deny":["set_show_menu_on_left_click"]}},"deny-set-temp-dir-path":{"identifier":"deny-set-temp-dir-path","description":"Denies the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":[],"deny":["set_temp_dir_path"]}},"deny-set-title":{"identifier":"deny-set-title","description":"Denies the set_title command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title"]}},"deny-set-tooltip":{"identifier":"deny-set-tooltip","description":"Denies the set_tooltip command without any pre-configured scope.","commands":{"allow":[],"deny":["set_tooltip"]}},"deny-set-visible":{"identifier":"deny-set-visible","description":"Denies the set_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_visible"]}}},"permission_sets":{},"global_scope_schema":null},"core:webview":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-webviews","allow-webview-position","allow-webview-size","allow-internal-toggle-devtools"]},"permissions":{"allow-clear-all-browsing-data":{"identifier":"allow-clear-all-browsing-data","description":"Enables the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":["clear_all_browsing_data"],"deny":[]}},"allow-create-webview":{"identifier":"allow-create-webview","description":"Enables the create_webview command without any pre-configured scope.","commands":{"allow":["create_webview"],"deny":[]}},"allow-create-webview-window":{"identifier":"allow-create-webview-window","description":"Enables the create_webview_window command without any pre-configured scope.","commands":{"allow":["create_webview_window"],"deny":[]}},"allow-get-all-webviews":{"identifier":"allow-get-all-webviews","description":"Enables the get_all_webviews command without any pre-configured scope.","commands":{"allow":["get_all_webviews"],"deny":[]}},"allow-internal-toggle-devtools":{"identifier":"allow-internal-toggle-devtools","description":"Enables the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":["internal_toggle_devtools"],"deny":[]}},"allow-print":{"identifier":"allow-print","description":"Enables the print command without any pre-configured scope.","commands":{"allow":["print"],"deny":[]}},"allow-reparent":{"identifier":"allow-reparent","description":"Enables the reparent command without any pre-configured scope.","commands":{"allow":["reparent"],"deny":[]}},"allow-set-webview-focus":{"identifier":"allow-set-webview-focus","description":"Enables the set_webview_focus command without any pre-configured scope.","commands":{"allow":["set_webview_focus"],"deny":[]}},"allow-set-webview-position":{"identifier":"allow-set-webview-position","description":"Enables the set_webview_position command without any pre-configured scope.","commands":{"allow":["set_webview_position"],"deny":[]}},"allow-set-webview-size":{"identifier":"allow-set-webview-size","description":"Enables the set_webview_size command without any pre-configured scope.","commands":{"allow":["set_webview_size"],"deny":[]}},"allow-set-webview-zoom":{"identifier":"allow-set-webview-zoom","description":"Enables the set_webview_zoom command without any pre-configured scope.","commands":{"allow":["set_webview_zoom"],"deny":[]}},"allow-webview-close":{"identifier":"allow-webview-close","description":"Enables the webview_close command without any pre-configured scope.","commands":{"allow":["webview_close"],"deny":[]}},"allow-webview-hide":{"identifier":"allow-webview-hide","description":"Enables the webview_hide command without any pre-configured scope.","commands":{"allow":["webview_hide"],"deny":[]}},"allow-webview-position":{"identifier":"allow-webview-position","description":"Enables the webview_position command without any pre-configured scope.","commands":{"allow":["webview_position"],"deny":[]}},"allow-webview-show":{"identifier":"allow-webview-show","description":"Enables the webview_show command without any pre-configured scope.","commands":{"allow":["webview_show"],"deny":[]}},"allow-webview-size":{"identifier":"allow-webview-size","description":"Enables the webview_size command without any pre-configured scope.","commands":{"allow":["webview_size"],"deny":[]}},"deny-clear-all-browsing-data":{"identifier":"deny-clear-all-browsing-data","description":"Denies the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":[],"deny":["clear_all_browsing_data"]}},"deny-create-webview":{"identifier":"deny-create-webview","description":"Denies the create_webview command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview"]}},"deny-create-webview-window":{"identifier":"deny-create-webview-window","description":"Denies the create_webview_window command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview_window"]}},"deny-get-all-webviews":{"identifier":"deny-get-all-webviews","description":"Denies the get_all_webviews command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_webviews"]}},"deny-internal-toggle-devtools":{"identifier":"deny-internal-toggle-devtools","description":"Denies the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_devtools"]}},"deny-print":{"identifier":"deny-print","description":"Denies the print command without any pre-configured scope.","commands":{"allow":[],"deny":["print"]}},"deny-reparent":{"identifier":"deny-reparent","description":"Denies the reparent command without any pre-configured scope.","commands":{"allow":[],"deny":["reparent"]}},"deny-set-webview-focus":{"identifier":"deny-set-webview-focus","description":"Denies the set_webview_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_focus"]}},"deny-set-webview-position":{"identifier":"deny-set-webview-position","description":"Denies the set_webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_position"]}},"deny-set-webview-size":{"identifier":"deny-set-webview-size","description":"Denies the set_webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_size"]}},"deny-set-webview-zoom":{"identifier":"deny-set-webview-zoom","description":"Denies the set_webview_zoom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_zoom"]}},"deny-webview-close":{"identifier":"deny-webview-close","description":"Denies the webview_close command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_close"]}},"deny-webview-hide":{"identifier":"deny-webview-hide","description":"Denies the webview_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_hide"]}},"deny-webview-position":{"identifier":"deny-webview-position","description":"Denies the webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_position"]}},"deny-webview-show":{"identifier":"deny-webview-show","description":"Denies the webview_show command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_show"]}},"deny-webview-size":{"identifier":"deny-webview-size","description":"Denies the webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_size"]}}},"permission_sets":{},"global_scope_schema":null},"core:window":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-windows","allow-scale-factor","allow-inner-position","allow-outer-position","allow-inner-size","allow-outer-size","allow-is-fullscreen","allow-is-minimized","allow-is-maximized","allow-is-focused","allow-is-decorated","allow-is-resizable","allow-is-maximizable","allow-is-minimizable","allow-is-closable","allow-is-visible","allow-is-enabled","allow-title","allow-current-monitor","allow-primary-monitor","allow-monitor-from-point","allow-available-monitors","allow-cursor-position","allow-theme","allow-internal-toggle-maximize"]},"permissions":{"allow-available-monitors":{"identifier":"allow-available-monitors","description":"Enables the available_monitors command without any pre-configured scope.","commands":{"allow":["available_monitors"],"deny":[]}},"allow-center":{"identifier":"allow-center","description":"Enables the center command without any pre-configured scope.","commands":{"allow":["center"],"deny":[]}},"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"allow-create":{"identifier":"allow-create","description":"Enables the create command without any pre-configured scope.","commands":{"allow":["create"],"deny":[]}},"allow-current-monitor":{"identifier":"allow-current-monitor","description":"Enables the current_monitor command without any pre-configured scope.","commands":{"allow":["current_monitor"],"deny":[]}},"allow-cursor-position":{"identifier":"allow-cursor-position","description":"Enables the cursor_position command without any pre-configured scope.","commands":{"allow":["cursor_position"],"deny":[]}},"allow-destroy":{"identifier":"allow-destroy","description":"Enables the destroy command without any pre-configured scope.","commands":{"allow":["destroy"],"deny":[]}},"allow-get-all-windows":{"identifier":"allow-get-all-windows","description":"Enables the get_all_windows command without any pre-configured scope.","commands":{"allow":["get_all_windows"],"deny":[]}},"allow-hide":{"identifier":"allow-hide","description":"Enables the hide command without any pre-configured scope.","commands":{"allow":["hide"],"deny":[]}},"allow-inner-position":{"identifier":"allow-inner-position","description":"Enables the inner_position command without any pre-configured scope.","commands":{"allow":["inner_position"],"deny":[]}},"allow-inner-size":{"identifier":"allow-inner-size","description":"Enables the inner_size command without any pre-configured scope.","commands":{"allow":["inner_size"],"deny":[]}},"allow-internal-toggle-maximize":{"identifier":"allow-internal-toggle-maximize","description":"Enables the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":["internal_toggle_maximize"],"deny":[]}},"allow-is-closable":{"identifier":"allow-is-closable","description":"Enables the is_closable command without any pre-configured scope.","commands":{"allow":["is_closable"],"deny":[]}},"allow-is-decorated":{"identifier":"allow-is-decorated","description":"Enables the is_decorated command without any pre-configured scope.","commands":{"allow":["is_decorated"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-is-focused":{"identifier":"allow-is-focused","description":"Enables the is_focused command without any pre-configured scope.","commands":{"allow":["is_focused"],"deny":[]}},"allow-is-fullscreen":{"identifier":"allow-is-fullscreen","description":"Enables the is_fullscreen command without any pre-configured scope.","commands":{"allow":["is_fullscreen"],"deny":[]}},"allow-is-maximizable":{"identifier":"allow-is-maximizable","description":"Enables the is_maximizable command without any pre-configured scope.","commands":{"allow":["is_maximizable"],"deny":[]}},"allow-is-maximized":{"identifier":"allow-is-maximized","description":"Enables the is_maximized command without any pre-configured scope.","commands":{"allow":["is_maximized"],"deny":[]}},"allow-is-minimizable":{"identifier":"allow-is-minimizable","description":"Enables the is_minimizable command without any pre-configured scope.","commands":{"allow":["is_minimizable"],"deny":[]}},"allow-is-minimized":{"identifier":"allow-is-minimized","description":"Enables the is_minimized command without any pre-configured scope.","commands":{"allow":["is_minimized"],"deny":[]}},"allow-is-resizable":{"identifier":"allow-is-resizable","description":"Enables the is_resizable command without any pre-configured scope.","commands":{"allow":["is_resizable"],"deny":[]}},"allow-is-visible":{"identifier":"allow-is-visible","description":"Enables the is_visible command without any pre-configured scope.","commands":{"allow":["is_visible"],"deny":[]}},"allow-maximize":{"identifier":"allow-maximize","description":"Enables the maximize command without any pre-configured scope.","commands":{"allow":["maximize"],"deny":[]}},"allow-minimize":{"identifier":"allow-minimize","description":"Enables the minimize command without any pre-configured scope.","commands":{"allow":["minimize"],"deny":[]}},"allow-monitor-from-point":{"identifier":"allow-monitor-from-point","description":"Enables the monitor_from_point command without any pre-configured scope.","commands":{"allow":["monitor_from_point"],"deny":[]}},"allow-outer-position":{"identifier":"allow-outer-position","description":"Enables the outer_position command without any pre-configured scope.","commands":{"allow":["outer_position"],"deny":[]}},"allow-outer-size":{"identifier":"allow-outer-size","description":"Enables the outer_size command without any pre-configured scope.","commands":{"allow":["outer_size"],"deny":[]}},"allow-primary-monitor":{"identifier":"allow-primary-monitor","description":"Enables the primary_monitor command without any pre-configured scope.","commands":{"allow":["primary_monitor"],"deny":[]}},"allow-request-user-attention":{"identifier":"allow-request-user-attention","description":"Enables the request_user_attention command without any pre-configured scope.","commands":{"allow":["request_user_attention"],"deny":[]}},"allow-scale-factor":{"identifier":"allow-scale-factor","description":"Enables the scale_factor command without any pre-configured scope.","commands":{"allow":["scale_factor"],"deny":[]}},"allow-set-always-on-bottom":{"identifier":"allow-set-always-on-bottom","description":"Enables the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":["set_always_on_bottom"],"deny":[]}},"allow-set-always-on-top":{"identifier":"allow-set-always-on-top","description":"Enables the set_always_on_top command without any pre-configured scope.","commands":{"allow":["set_always_on_top"],"deny":[]}},"allow-set-closable":{"identifier":"allow-set-closable","description":"Enables the set_closable command without any pre-configured scope.","commands":{"allow":["set_closable"],"deny":[]}},"allow-set-content-protected":{"identifier":"allow-set-content-protected","description":"Enables the set_content_protected command without any pre-configured scope.","commands":{"allow":["set_content_protected"],"deny":[]}},"allow-set-cursor-grab":{"identifier":"allow-set-cursor-grab","description":"Enables the set_cursor_grab command without any pre-configured scope.","commands":{"allow":["set_cursor_grab"],"deny":[]}},"allow-set-cursor-icon":{"identifier":"allow-set-cursor-icon","description":"Enables the set_cursor_icon command without any pre-configured scope.","commands":{"allow":["set_cursor_icon"],"deny":[]}},"allow-set-cursor-position":{"identifier":"allow-set-cursor-position","description":"Enables the set_cursor_position command without any pre-configured scope.","commands":{"allow":["set_cursor_position"],"deny":[]}},"allow-set-cursor-visible":{"identifier":"allow-set-cursor-visible","description":"Enables the set_cursor_visible command without any pre-configured scope.","commands":{"allow":["set_cursor_visible"],"deny":[]}},"allow-set-decorations":{"identifier":"allow-set-decorations","description":"Enables the set_decorations command without any pre-configured scope.","commands":{"allow":["set_decorations"],"deny":[]}},"allow-set-effects":{"identifier":"allow-set-effects","description":"Enables the set_effects command without any pre-configured scope.","commands":{"allow":["set_effects"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-focus":{"identifier":"allow-set-focus","description":"Enables the set_focus command without any pre-configured scope.","commands":{"allow":["set_focus"],"deny":[]}},"allow-set-fullscreen":{"identifier":"allow-set-fullscreen","description":"Enables the set_fullscreen command without any pre-configured scope.","commands":{"allow":["set_fullscreen"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-ignore-cursor-events":{"identifier":"allow-set-ignore-cursor-events","description":"Enables the set_ignore_cursor_events command without any pre-configured scope.","commands":{"allow":["set_ignore_cursor_events"],"deny":[]}},"allow-set-max-size":{"identifier":"allow-set-max-size","description":"Enables the set_max_size command without any pre-configured scope.","commands":{"allow":["set_max_size"],"deny":[]}},"allow-set-maximizable":{"identifier":"allow-set-maximizable","description":"Enables the set_maximizable command without any pre-configured scope.","commands":{"allow":["set_maximizable"],"deny":[]}},"allow-set-min-size":{"identifier":"allow-set-min-size","description":"Enables the set_min_size command without any pre-configured scope.","commands":{"allow":["set_min_size"],"deny":[]}},"allow-set-minimizable":{"identifier":"allow-set-minimizable","description":"Enables the set_minimizable command without any pre-configured scope.","commands":{"allow":["set_minimizable"],"deny":[]}},"allow-set-position":{"identifier":"allow-set-position","description":"Enables the set_position command without any pre-configured scope.","commands":{"allow":["set_position"],"deny":[]}},"allow-set-progress-bar":{"identifier":"allow-set-progress-bar","description":"Enables the set_progress_bar command without any pre-configured scope.","commands":{"allow":["set_progress_bar"],"deny":[]}},"allow-set-resizable":{"identifier":"allow-set-resizable","description":"Enables the set_resizable command without any pre-configured scope.","commands":{"allow":["set_resizable"],"deny":[]}},"allow-set-shadow":{"identifier":"allow-set-shadow","description":"Enables the set_shadow command without any pre-configured scope.","commands":{"allow":["set_shadow"],"deny":[]}},"allow-set-size":{"identifier":"allow-set-size","description":"Enables the set_size command without any pre-configured scope.","commands":{"allow":["set_size"],"deny":[]}},"allow-set-size-constraints":{"identifier":"allow-set-size-constraints","description":"Enables the set_size_constraints command without any pre-configured scope.","commands":{"allow":["set_size_constraints"],"deny":[]}},"allow-set-skip-taskbar":{"identifier":"allow-set-skip-taskbar","description":"Enables the set_skip_taskbar command without any pre-configured scope.","commands":{"allow":["set_skip_taskbar"],"deny":[]}},"allow-set-theme":{"identifier":"allow-set-theme","description":"Enables the set_theme command without any pre-configured scope.","commands":{"allow":["set_theme"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-title-bar-style":{"identifier":"allow-set-title-bar-style","description":"Enables the set_title_bar_style command without any pre-configured scope.","commands":{"allow":["set_title_bar_style"],"deny":[]}},"allow-set-visible-on-all-workspaces":{"identifier":"allow-set-visible-on-all-workspaces","description":"Enables the set_visible_on_all_workspaces command without any pre-configured scope.","commands":{"allow":["set_visible_on_all_workspaces"],"deny":[]}},"allow-show":{"identifier":"allow-show","description":"Enables the show command without any pre-configured scope.","commands":{"allow":["show"],"deny":[]}},"allow-start-dragging":{"identifier":"allow-start-dragging","description":"Enables the start_dragging command without any pre-configured scope.","commands":{"allow":["start_dragging"],"deny":[]}},"allow-start-resize-dragging":{"identifier":"allow-start-resize-dragging","description":"Enables the start_resize_dragging command without any pre-configured scope.","commands":{"allow":["start_resize_dragging"],"deny":[]}},"allow-theme":{"identifier":"allow-theme","description":"Enables the theme command without any pre-configured scope.","commands":{"allow":["theme"],"deny":[]}},"allow-title":{"identifier":"allow-title","description":"Enables the title command without any pre-configured scope.","commands":{"allow":["title"],"deny":[]}},"allow-toggle-maximize":{"identifier":"allow-toggle-maximize","description":"Enables the toggle_maximize command without any pre-configured scope.","commands":{"allow":["toggle_maximize"],"deny":[]}},"allow-unmaximize":{"identifier":"allow-unmaximize","description":"Enables the unmaximize command without any pre-configured scope.","commands":{"allow":["unmaximize"],"deny":[]}},"allow-unminimize":{"identifier":"allow-unminimize","description":"Enables the unminimize command without any pre-configured scope.","commands":{"allow":["unminimize"],"deny":[]}},"deny-available-monitors":{"identifier":"deny-available-monitors","description":"Denies the available_monitors command without any pre-configured scope.","commands":{"allow":[],"deny":["available_monitors"]}},"deny-center":{"identifier":"deny-center","description":"Denies the center command without any pre-configured scope.","commands":{"allow":[],"deny":["center"]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}},"deny-create":{"identifier":"deny-create","description":"Denies the create command without any pre-configured scope.","commands":{"allow":[],"deny":["create"]}},"deny-current-monitor":{"identifier":"deny-current-monitor","description":"Denies the current_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["current_monitor"]}},"deny-cursor-position":{"identifier":"deny-cursor-position","description":"Denies the cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["cursor_position"]}},"deny-destroy":{"identifier":"deny-destroy","description":"Denies the destroy command without any pre-configured scope.","commands":{"allow":[],"deny":["destroy"]}},"deny-get-all-windows":{"identifier":"deny-get-all-windows","description":"Denies the get_all_windows command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_windows"]}},"deny-hide":{"identifier":"deny-hide","description":"Denies the hide command without any pre-configured scope.","commands":{"allow":[],"deny":["hide"]}},"deny-inner-position":{"identifier":"deny-inner-position","description":"Denies the inner_position command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_position"]}},"deny-inner-size":{"identifier":"deny-inner-size","description":"Denies the inner_size command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_size"]}},"deny-internal-toggle-maximize":{"identifier":"deny-internal-toggle-maximize","description":"Denies the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_maximize"]}},"deny-is-closable":{"identifier":"deny-is-closable","description":"Denies the is_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_closable"]}},"deny-is-decorated":{"identifier":"deny-is-decorated","description":"Denies the is_decorated command without any pre-configured scope.","commands":{"allow":[],"deny":["is_decorated"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-is-focused":{"identifier":"deny-is-focused","description":"Denies the is_focused command without any pre-configured scope.","commands":{"allow":[],"deny":["is_focused"]}},"deny-is-fullscreen":{"identifier":"deny-is-fullscreen","description":"Denies the is_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["is_fullscreen"]}},"deny-is-maximizable":{"identifier":"deny-is-maximizable","description":"Denies the is_maximizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximizable"]}},"deny-is-maximized":{"identifier":"deny-is-maximized","description":"Denies the is_maximized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximized"]}},"deny-is-minimizable":{"identifier":"deny-is-minimizable","description":"Denies the is_minimizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimizable"]}},"deny-is-minimized":{"identifier":"deny-is-minimized","description":"Denies the is_minimized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimized"]}},"deny-is-resizable":{"identifier":"deny-is-resizable","description":"Denies the is_resizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_resizable"]}},"deny-is-visible":{"identifier":"deny-is-visible","description":"Denies the is_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["is_visible"]}},"deny-maximize":{"identifier":"deny-maximize","description":"Denies the maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["maximize"]}},"deny-minimize":{"identifier":"deny-minimize","description":"Denies the minimize command without any pre-configured scope.","commands":{"allow":[],"deny":["minimize"]}},"deny-monitor-from-point":{"identifier":"deny-monitor-from-point","description":"Denies the monitor_from_point command without any pre-configured scope.","commands":{"allow":[],"deny":["monitor_from_point"]}},"deny-outer-position":{"identifier":"deny-outer-position","description":"Denies the outer_position command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_position"]}},"deny-outer-size":{"identifier":"deny-outer-size","description":"Denies the outer_size command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_size"]}},"deny-primary-monitor":{"identifier":"deny-primary-monitor","description":"Denies the primary_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["primary_monitor"]}},"deny-request-user-attention":{"identifier":"deny-request-user-attention","description":"Denies the request_user_attention command without any pre-configured scope.","commands":{"allow":[],"deny":["request_user_attention"]}},"deny-scale-factor":{"identifier":"deny-scale-factor","description":"Denies the scale_factor command without any pre-configured scope.","commands":{"allow":[],"deny":["scale_factor"]}},"deny-set-always-on-bottom":{"identifier":"deny-set-always-on-bottom","description":"Denies the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_bottom"]}},"deny-set-always-on-top":{"identifier":"deny-set-always-on-top","description":"Denies the set_always_on_top command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_top"]}},"deny-set-closable":{"identifier":"deny-set-closable","description":"Denies the set_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_closable"]}},"deny-set-content-protected":{"identifier":"deny-set-content-protected","description":"Denies the set_content_protected command without any pre-configured scope.","commands":{"allow":[],"deny":["set_content_protected"]}},"deny-set-cursor-grab":{"identifier":"deny-set-cursor-grab","description":"Denies the set_cursor_grab command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_grab"]}},"deny-set-cursor-icon":{"identifier":"deny-set-cursor-icon","description":"Denies the set_cursor_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_icon"]}},"deny-set-cursor-position":{"identifier":"deny-set-cursor-position","description":"Denies the set_cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_position"]}},"deny-set-cursor-visible":{"identifier":"deny-set-cursor-visible","description":"Denies the set_cursor_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_visible"]}},"deny-set-decorations":{"identifier":"deny-set-decorations","description":"Denies the set_decorations command without any pre-configured scope.","commands":{"allow":[],"deny":["set_decorations"]}},"deny-set-effects":{"identifier":"deny-set-effects","description":"Denies the set_effects command without any pre-configured scope.","commands":{"allow":[],"deny":["set_effects"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-focus":{"identifier":"deny-set-focus","description":"Denies the set_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_focus"]}},"deny-set-fullscreen":{"identifier":"deny-set-fullscreen","description":"Denies the set_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["set_fullscreen"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-ignore-cursor-events":{"identifier":"deny-set-ignore-cursor-events","description":"Denies the set_ignore_cursor_events command without any pre-configured scope.","commands":{"allow":[],"deny":["set_ignore_cursor_events"]}},"deny-set-max-size":{"identifier":"deny-set-max-size","description":"Denies the set_max_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_max_size"]}},"deny-set-maximizable":{"identifier":"deny-set-maximizable","description":"Denies the set_maximizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_maximizable"]}},"deny-set-min-size":{"identifier":"deny-set-min-size","description":"Denies the set_min_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_min_size"]}},"deny-set-minimizable":{"identifier":"deny-set-minimizable","description":"Denies the set_minimizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_minimizable"]}},"deny-set-position":{"identifier":"deny-set-position","description":"Denies the set_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_position"]}},"deny-set-progress-bar":{"identifier":"deny-set-progress-bar","description":"Denies the set_progress_bar command without any pre-configured scope.","commands":{"allow":[],"deny":["set_progress_bar"]}},"deny-set-resizable":{"identifier":"deny-set-resizable","description":"Denies the set_resizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_resizable"]}},"deny-set-shadow":{"identifier":"deny-set-shadow","description":"Denies the set_shadow command without any pre-configured scope.","commands":{"allow":[],"deny":["set_shadow"]}},"deny-set-size":{"identifier":"deny-set-size","description":"Denies the set_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_size"]}},"deny-set-size-constraints":{"identifier":"deny-set-size-constraints","description":"Denies the set_size_constraints command without any pre-configured scope.","commands":{"allow":[],"deny":["set_size_constraints"]}},"deny-set-skip-taskbar":{"identifier":"deny-set-skip-taskbar","description":"Denies the set_skip_taskbar command without any pre-configured scope.","commands":{"allow":[],"deny":["set_skip_taskbar"]}},"deny-set-theme":{"identifier":"deny-set-theme","description":"Denies the set_theme command without any pre-configured scope.","commands":{"allow":[],"deny":["set_theme"]}},"deny-set-title":{"identifier":"deny-set-title","description":"Denies the set_title command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title"]}},"deny-set-title-bar-style":{"identifier":"deny-set-title-bar-style","description":"Denies the set_title_bar_style command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title_bar_style"]}},"deny-set-visible-on-all-workspaces":{"identifier":"deny-set-visible-on-all-workspaces","description":"Denies the set_visible_on_all_workspaces command without any pre-configured scope.","commands":{"allow":[],"deny":["set_visible_on_all_workspaces"]}},"deny-show":{"identifier":"deny-show","description":"Denies the show command without any pre-configured scope.","commands":{"allow":[],"deny":["show"]}},"deny-start-dragging":{"identifier":"deny-start-dragging","description":"Denies the start_dragging command without any pre-configured scope.","commands":{"allow":[],"deny":["start_dragging"]}},"deny-start-resize-dragging":{"identifier":"deny-start-resize-dragging","description":"Denies the start_resize_dragging command without any pre-configured scope.","commands":{"allow":[],"deny":["start_resize_dragging"]}},"deny-theme":{"identifier":"deny-theme","description":"Denies the theme command without any pre-configured scope.","commands":{"allow":[],"deny":["theme"]}},"deny-title":{"identifier":"deny-title","description":"Denies the title command without any pre-configured scope.","commands":{"allow":[],"deny":["title"]}},"deny-toggle-maximize":{"identifier":"deny-toggle-maximize","description":"Denies the toggle_maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["toggle_maximize"]}},"deny-unmaximize":{"identifier":"deny-unmaximize","description":"Denies the unmaximize command without any pre-configured scope.","commands":{"allow":[],"deny":["unmaximize"]}},"deny-unminimize":{"identifier":"deny-unminimize","description":"Denies the unminimize command without any pre-configured scope.","commands":{"allow":[],"deny":["unminimize"]}}},"permission_sets":{},"global_scope_schema":null},"deep-link":{"default_permission":{"identifier":"default","description":"Allows reading the opened deep link via the get_current command","permissions":["allow-get-current"]},"permissions":{"allow-get-current":{"identifier":"allow-get-current","description":"Enables the get_current command without any pre-configured scope.","commands":{"allow":["get_current"],"deny":[]}},"allow-is-registered":{"identifier":"allow-is-registered","description":"Enables the is_registered command without any pre-configured scope.","commands":{"allow":["is_registered"],"deny":[]}},"allow-register":{"identifier":"allow-register","description":"Enables the register command without any pre-configured scope.","commands":{"allow":["register"],"deny":[]}},"allow-unregister":{"identifier":"allow-unregister","description":"Enables the unregister command without any pre-configured scope.","commands":{"allow":["unregister"],"deny":[]}},"deny-get-current":{"identifier":"deny-get-current","description":"Denies the get_current command without any pre-configured scope.","commands":{"allow":[],"deny":["get_current"]}},"deny-is-registered":{"identifier":"deny-is-registered","description":"Denies the is_registered command without any pre-configured scope.","commands":{"allow":[],"deny":["is_registered"]}},"deny-register":{"identifier":"deny-register","description":"Denies the register command without any pre-configured scope.","commands":{"allow":[],"deny":["register"]}},"deny-unregister":{"identifier":"deny-unregister","description":"Denies the unregister command without any pre-configured scope.","commands":{"allow":[],"deny":["unregister"]}}},"permission_sets":{},"global_scope_schema":null},"dialog":{"default_permission":{"identifier":"default","description":"This permission set configures the types of dialogs\navailable from the dialog plugin.\n\n#### Granted Permissions\n\nAll dialog types are enabled.\n\n\n","permissions":["allow-ask","allow-confirm","allow-message","allow-save","allow-open"]},"permissions":{"allow-ask":{"identifier":"allow-ask","description":"Enables the ask command without any pre-configured scope.","commands":{"allow":["ask"],"deny":[]}},"allow-confirm":{"identifier":"allow-confirm","description":"Enables the confirm command without any pre-configured scope.","commands":{"allow":["confirm"],"deny":[]}},"allow-message":{"identifier":"allow-message","description":"Enables the message command without any pre-configured scope.","commands":{"allow":["message"],"deny":[]}},"allow-open":{"identifier":"allow-open","description":"Enables the open command without any pre-configured scope.","commands":{"allow":["open"],"deny":[]}},"allow-save":{"identifier":"allow-save","description":"Enables the save command without any pre-configured scope.","commands":{"allow":["save"],"deny":[]}},"deny-ask":{"identifier":"deny-ask","description":"Denies the ask command without any pre-configured scope.","commands":{"allow":[],"deny":["ask"]}},"deny-confirm":{"identifier":"deny-confirm","description":"Denies the confirm command without any pre-configured scope.","commands":{"allow":[],"deny":["confirm"]}},"deny-message":{"identifier":"deny-message","description":"Denies the message command without any pre-configured scope.","commands":{"allow":[],"deny":["message"]}},"deny-open":{"identifier":"deny-open","description":"Denies the open command without any pre-configured scope.","commands":{"allow":[],"deny":["open"]}},"deny-save":{"identifier":"deny-save","description":"Denies the save command without any pre-configured scope.","commands":{"allow":[],"deny":["save"]}}},"permission_sets":{},"global_scope_schema":null},"fs":{"default_permission":{"identifier":"default","description":"This set of permissions describes the what kind of\nfile system access the `fs` plugin has enabled or denied by default.\n\n#### Granted Permissions\n\nThis default permission set enables read access to the\napplication specific directories (AppConfig, AppData, AppLocalData, AppCache,\nAppLog) and all files and sub directories created in it.\nThe location of these directories depends on the operating system,\nwhere the application is run.\n\nIn general these directories need to be manually created\nby the application at runtime, before accessing files or folders\nin it is possible.\n\nTherefore, it is also allowed to create all of these folders via\nthe `mkdir` command.\n\n#### Denied Permissions\n\nThis default permission set prevents access to critical components\nof the Tauri application by default.\nOn Windows the webview data folder access is denied.\n\n","permissions":["create-app-specific-dirs","read-app-specific-dirs-recursive","deny-default"]},"permissions":{"allow-copy-file":{"identifier":"allow-copy-file","description":"Enables the copy_file command without any pre-configured scope.","commands":{"allow":["copy_file"],"deny":[]}},"allow-create":{"identifier":"allow-create","description":"Enables the create command without any pre-configured scope.","commands":{"allow":["create"],"deny":[]}},"allow-exists":{"identifier":"allow-exists","description":"Enables the exists command without any pre-configured scope.","commands":{"allow":["exists"],"deny":[]}},"allow-fstat":{"identifier":"allow-fstat","description":"Enables the fstat command without any pre-configured scope.","commands":{"allow":["fstat"],"deny":[]}},"allow-ftruncate":{"identifier":"allow-ftruncate","description":"Enables the ftruncate command without any pre-configured scope.","commands":{"allow":["ftruncate"],"deny":[]}},"allow-lstat":{"identifier":"allow-lstat","description":"Enables the lstat command without any pre-configured scope.","commands":{"allow":["lstat"],"deny":[]}},"allow-mkdir":{"identifier":"allow-mkdir","description":"Enables the mkdir command without any pre-configured scope.","commands":{"allow":["mkdir"],"deny":[]}},"allow-open":{"identifier":"allow-open","description":"Enables the open command without any pre-configured scope.","commands":{"allow":["open"],"deny":[]}},"allow-read":{"identifier":"allow-read","description":"Enables the read command without any pre-configured scope.","commands":{"allow":["read"],"deny":[]}},"allow-read-dir":{"identifier":"allow-read-dir","description":"Enables the read_dir command without any pre-configured scope.","commands":{"allow":["read_dir"],"deny":[]}},"allow-read-file":{"identifier":"allow-read-file","description":"Enables the read_file command without any pre-configured scope.","commands":{"allow":["read_file"],"deny":[]}},"allow-read-text-file":{"identifier":"allow-read-text-file","description":"Enables the read_text_file command without any pre-configured scope.","commands":{"allow":["read_text_file"],"deny":[]}},"allow-read-text-file-lines":{"identifier":"allow-read-text-file-lines","description":"Enables the read_text_file_lines command without any pre-configured scope.","commands":{"allow":["read_text_file_lines"],"deny":[]}},"allow-read-text-file-lines-next":{"identifier":"allow-read-text-file-lines-next","description":"Enables the read_text_file_lines_next command without any pre-configured scope.","commands":{"allow":["read_text_file_lines_next"],"deny":[]}},"allow-remove":{"identifier":"allow-remove","description":"Enables the remove command without any pre-configured scope.","commands":{"allow":["remove"],"deny":[]}},"allow-rename":{"identifier":"allow-rename","description":"Enables the rename command without any pre-configured scope.","commands":{"allow":["rename"],"deny":[]}},"allow-seek":{"identifier":"allow-seek","description":"Enables the seek command without any pre-configured scope.","commands":{"allow":["seek"],"deny":[]}},"allow-stat":{"identifier":"allow-stat","description":"Enables the stat command without any pre-configured scope.","commands":{"allow":["stat"],"deny":[]}},"allow-truncate":{"identifier":"allow-truncate","description":"Enables the truncate command without any pre-configured scope.","commands":{"allow":["truncate"],"deny":[]}},"allow-unwatch":{"identifier":"allow-unwatch","description":"Enables the unwatch command without any pre-configured scope.","commands":{"allow":["unwatch"],"deny":[]}},"allow-watch":{"identifier":"allow-watch","description":"Enables the watch command without any pre-configured scope.","commands":{"allow":["watch"],"deny":[]}},"allow-write":{"identifier":"allow-write","description":"Enables the write command without any pre-configured scope.","commands":{"allow":["write"],"deny":[]}},"allow-write-file":{"identifier":"allow-write-file","description":"Enables the write_file command without any pre-configured scope.","commands":{"allow":["write_file"],"deny":[]}},"allow-write-text-file":{"identifier":"allow-write-text-file","description":"Enables the write_text_file command without any pre-configured scope.","commands":{"allow":["write_text_file"],"deny":[]}},"create-app-specific-dirs":{"identifier":"create-app-specific-dirs","description":"This permissions allows to create the application specific directories.\n","commands":{"allow":["mkdir","scope-app-index"],"deny":[]}},"deny-copy-file":{"identifier":"deny-copy-file","description":"Denies the copy_file command without any pre-configured scope.","commands":{"allow":[],"deny":["copy_file"]}},"deny-create":{"identifier":"deny-create","description":"Denies the create command without any pre-configured scope.","commands":{"allow":[],"deny":["create"]}},"deny-exists":{"identifier":"deny-exists","description":"Denies the exists command without any pre-configured scope.","commands":{"allow":[],"deny":["exists"]}},"deny-fstat":{"identifier":"deny-fstat","description":"Denies the fstat command without any pre-configured scope.","commands":{"allow":[],"deny":["fstat"]}},"deny-ftruncate":{"identifier":"deny-ftruncate","description":"Denies the ftruncate command without any pre-configured scope.","commands":{"allow":[],"deny":["ftruncate"]}},"deny-lstat":{"identifier":"deny-lstat","description":"Denies the lstat command without any pre-configured scope.","commands":{"allow":[],"deny":["lstat"]}},"deny-mkdir":{"identifier":"deny-mkdir","description":"Denies the mkdir command without any pre-configured scope.","commands":{"allow":[],"deny":["mkdir"]}},"deny-open":{"identifier":"deny-open","description":"Denies the open command without any pre-configured scope.","commands":{"allow":[],"deny":["open"]}},"deny-read":{"identifier":"deny-read","description":"Denies the read command without any pre-configured scope.","commands":{"allow":[],"deny":["read"]}},"deny-read-dir":{"identifier":"deny-read-dir","description":"Denies the read_dir command without any pre-configured scope.","commands":{"allow":[],"deny":["read_dir"]}},"deny-read-file":{"identifier":"deny-read-file","description":"Denies the read_file command without any pre-configured scope.","commands":{"allow":[],"deny":["read_file"]}},"deny-read-text-file":{"identifier":"deny-read-text-file","description":"Denies the read_text_file command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text_file"]}},"deny-read-text-file-lines":{"identifier":"deny-read-text-file-lines","description":"Denies the read_text_file_lines command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text_file_lines"]}},"deny-read-text-file-lines-next":{"identifier":"deny-read-text-file-lines-next","description":"Denies the read_text_file_lines_next command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text_file_lines_next"]}},"deny-remove":{"identifier":"deny-remove","description":"Denies the remove command without any pre-configured scope.","commands":{"allow":[],"deny":["remove"]}},"deny-rename":{"identifier":"deny-rename","description":"Denies the rename command without any pre-configured scope.","commands":{"allow":[],"deny":["rename"]}},"deny-seek":{"identifier":"deny-seek","description":"Denies the seek command without any pre-configured scope.","commands":{"allow":[],"deny":["seek"]}},"deny-stat":{"identifier":"deny-stat","description":"Denies the stat command without any pre-configured scope.","commands":{"allow":[],"deny":["stat"]}},"deny-truncate":{"identifier":"deny-truncate","description":"Denies the truncate command without any pre-configured scope.","commands":{"allow":[],"deny":["truncate"]}},"deny-unwatch":{"identifier":"deny-unwatch","description":"Denies the unwatch command without any pre-configured scope.","commands":{"allow":[],"deny":["unwatch"]}},"deny-watch":{"identifier":"deny-watch","description":"Denies the watch command without any pre-configured scope.","commands":{"allow":[],"deny":["watch"]}},"deny-webview-data-linux":{"identifier":"deny-webview-data-linux","description":"This denies read access to the\n`$APPLOCALDATA` folder on linux as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.","commands":{"allow":[],"deny":[]}},"deny-webview-data-windows":{"identifier":"deny-webview-data-windows","description":"This denies read access to the\n`$APPLOCALDATA/EBWebView` folder on windows as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.","commands":{"allow":[],"deny":[]}},"deny-write":{"identifier":"deny-write","description":"Denies the write command without any pre-configured scope.","commands":{"allow":[],"deny":["write"]}},"deny-write-file":{"identifier":"deny-write-file","description":"Denies the write_file command without any pre-configured scope.","commands":{"allow":[],"deny":["write_file"]}},"deny-write-text-file":{"identifier":"deny-write-text-file","description":"Denies the write_text_file command without any pre-configured scope.","commands":{"allow":[],"deny":["write_text_file"]}},"read-all":{"identifier":"read-all","description":"This enables all read related commands without any pre-configured accessible paths.","commands":{"allow":["read_dir","read_file","read","open","read_text_file","read_text_file_lines","read_text_file_lines_next","seek","stat","lstat","fstat","exists","watch","unwatch"],"deny":[]}},"read-app-specific-dirs-recursive":{"identifier":"read-app-specific-dirs-recursive","description":"This permission allows recursive read functionality on the application\nspecific base directories. \n","commands":{"allow":["read_dir","read_file","read_text_file","read_text_file_lines","read_text_file_lines_next","exists","scope-app-recursive"],"deny":[]}},"read-dirs":{"identifier":"read-dirs","description":"This enables directory read and file metadata related commands without any pre-configured accessible paths.","commands":{"allow":["read_dir","stat","lstat","fstat","exists"],"deny":[]}},"read-files":{"identifier":"read-files","description":"This enables file read related commands without any pre-configured accessible paths.","commands":{"allow":["read_file","read","open","read_text_file","read_text_file_lines","read_text_file_lines_next","seek","stat","lstat","fstat","exists"],"deny":[]}},"read-meta":{"identifier":"read-meta","description":"This enables all index or metadata related commands without any pre-configured accessible paths.","commands":{"allow":["read_dir","stat","lstat","fstat","exists"],"deny":[]}},"scope":{"identifier":"scope","description":"An empty permission you can use to modify the global scope.","commands":{"allow":[],"deny":[]}},"scope-app":{"identifier":"scope-app","description":"This scope permits access to all files and list content of top level directories in the application folders.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPCONFIG/*"},{"path":"$APPDATA"},{"path":"$APPDATA/*"},{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/*"},{"path":"$APPCACHE"},{"path":"$APPCACHE/*"},{"path":"$APPLOG"},{"path":"$APPLOG/*"}]}},"scope-app-index":{"identifier":"scope-app-index","description":"This scope permits to list all files and folders in the application directories.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPDATA"},{"path":"$APPLOCALDATA"},{"path":"$APPCACHE"},{"path":"$APPLOG"}]}},"scope-app-recursive":{"identifier":"scope-app-recursive","description":"This scope permits recursive access to the complete application folders, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPCONFIG/**"},{"path":"$APPDATA"},{"path":"$APPDATA/**"},{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/**"},{"path":"$APPCACHE"},{"path":"$APPCACHE/**"},{"path":"$APPLOG"},{"path":"$APPLOG/**"}]}},"scope-appcache":{"identifier":"scope-appcache","description":"This scope permits access to all files and list content of top level directories in the `$APPCACHE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCACHE"},{"path":"$APPCACHE/*"}]}},"scope-appcache-index":{"identifier":"scope-appcache-index","description":"This scope permits to list all files and folders in the `$APPCACHE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCACHE"}]}},"scope-appcache-recursive":{"identifier":"scope-appcache-recursive","description":"This scope permits recursive access to the complete `$APPCACHE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCACHE"},{"path":"$APPCACHE/**"}]}},"scope-appconfig":{"identifier":"scope-appconfig","description":"This scope permits access to all files and list content of top level directories in the `$APPCONFIG` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPCONFIG/*"}]}},"scope-appconfig-index":{"identifier":"scope-appconfig-index","description":"This scope permits to list all files and folders in the `$APPCONFIG`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"}]}},"scope-appconfig-recursive":{"identifier":"scope-appconfig-recursive","description":"This scope permits recursive access to the complete `$APPCONFIG` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPCONFIG/**"}]}},"scope-appdata":{"identifier":"scope-appdata","description":"This scope permits access to all files and list content of top level directories in the `$APPDATA` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPDATA"},{"path":"$APPDATA/*"}]}},"scope-appdata-index":{"identifier":"scope-appdata-index","description":"This scope permits to list all files and folders in the `$APPDATA`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPDATA"}]}},"scope-appdata-recursive":{"identifier":"scope-appdata-recursive","description":"This scope permits recursive access to the complete `$APPDATA` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPDATA"},{"path":"$APPDATA/**"}]}},"scope-applocaldata":{"identifier":"scope-applocaldata","description":"This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/*"}]}},"scope-applocaldata-index":{"identifier":"scope-applocaldata-index","description":"This scope permits to list all files and folders in the `$APPLOCALDATA`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOCALDATA"}]}},"scope-applocaldata-recursive":{"identifier":"scope-applocaldata-recursive","description":"This scope permits recursive access to the complete `$APPLOCALDATA` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/**"}]}},"scope-applog":{"identifier":"scope-applog","description":"This scope permits access to all files and list content of top level directories in the `$APPLOG` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOG"},{"path":"$APPLOG/*"}]}},"scope-applog-index":{"identifier":"scope-applog-index","description":"This scope permits to list all files and folders in the `$APPLOG`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOG"}]}},"scope-applog-recursive":{"identifier":"scope-applog-recursive","description":"This scope permits recursive access to the complete `$APPLOG` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOG"},{"path":"$APPLOG/**"}]}},"scope-audio":{"identifier":"scope-audio","description":"This scope permits access to all files and list content of top level directories in the `$AUDIO` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$AUDIO"},{"path":"$AUDIO/*"}]}},"scope-audio-index":{"identifier":"scope-audio-index","description":"This scope permits to list all files and folders in the `$AUDIO`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$AUDIO"}]}},"scope-audio-recursive":{"identifier":"scope-audio-recursive","description":"This scope permits recursive access to the complete `$AUDIO` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$AUDIO"},{"path":"$AUDIO/**"}]}},"scope-cache":{"identifier":"scope-cache","description":"This scope permits access to all files and list content of top level directories in the `$CACHE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CACHE"},{"path":"$CACHE/*"}]}},"scope-cache-index":{"identifier":"scope-cache-index","description":"This scope permits to list all files and folders in the `$CACHE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CACHE"}]}},"scope-cache-recursive":{"identifier":"scope-cache-recursive","description":"This scope permits recursive access to the complete `$CACHE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CACHE"},{"path":"$CACHE/**"}]}},"scope-config":{"identifier":"scope-config","description":"This scope permits access to all files and list content of top level directories in the `$CONFIG` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CONFIG"},{"path":"$CONFIG/*"}]}},"scope-config-index":{"identifier":"scope-config-index","description":"This scope permits to list all files and folders in the `$CONFIG`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CONFIG"}]}},"scope-config-recursive":{"identifier":"scope-config-recursive","description":"This scope permits recursive access to the complete `$CONFIG` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CONFIG"},{"path":"$CONFIG/**"}]}},"scope-data":{"identifier":"scope-data","description":"This scope permits access to all files and list content of top level directories in the `$DATA` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DATA"},{"path":"$DATA/*"}]}},"scope-data-index":{"identifier":"scope-data-index","description":"This scope permits to list all files and folders in the `$DATA`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DATA"}]}},"scope-data-recursive":{"identifier":"scope-data-recursive","description":"This scope permits recursive access to the complete `$DATA` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DATA"},{"path":"$DATA/**"}]}},"scope-desktop":{"identifier":"scope-desktop","description":"This scope permits access to all files and list content of top level directories in the `$DESKTOP` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DESKTOP"},{"path":"$DESKTOP/*"}]}},"scope-desktop-index":{"identifier":"scope-desktop-index","description":"This scope permits to list all files and folders in the `$DESKTOP`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DESKTOP"}]}},"scope-desktop-recursive":{"identifier":"scope-desktop-recursive","description":"This scope permits recursive access to the complete `$DESKTOP` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DESKTOP"},{"path":"$DESKTOP/**"}]}},"scope-document":{"identifier":"scope-document","description":"This scope permits access to all files and list content of top level directories in the `$DOCUMENT` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOCUMENT"},{"path":"$DOCUMENT/*"}]}},"scope-document-index":{"identifier":"scope-document-index","description":"This scope permits to list all files and folders in the `$DOCUMENT`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOCUMENT"}]}},"scope-document-recursive":{"identifier":"scope-document-recursive","description":"This scope permits recursive access to the complete `$DOCUMENT` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOCUMENT"},{"path":"$DOCUMENT/**"}]}},"scope-download":{"identifier":"scope-download","description":"This scope permits access to all files and list content of top level directories in the `$DOWNLOAD` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOWNLOAD"},{"path":"$DOWNLOAD/*"}]}},"scope-download-index":{"identifier":"scope-download-index","description":"This scope permits to list all files and folders in the `$DOWNLOAD`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOWNLOAD"}]}},"scope-download-recursive":{"identifier":"scope-download-recursive","description":"This scope permits recursive access to the complete `$DOWNLOAD` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOWNLOAD"},{"path":"$DOWNLOAD/**"}]}},"scope-exe":{"identifier":"scope-exe","description":"This scope permits access to all files and list content of top level directories in the `$EXE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$EXE"},{"path":"$EXE/*"}]}},"scope-exe-index":{"identifier":"scope-exe-index","description":"This scope permits to list all files and folders in the `$EXE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$EXE"}]}},"scope-exe-recursive":{"identifier":"scope-exe-recursive","description":"This scope permits recursive access to the complete `$EXE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$EXE"},{"path":"$EXE/**"}]}},"scope-font":{"identifier":"scope-font","description":"This scope permits access to all files and list content of top level directories in the `$FONT` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$FONT"},{"path":"$FONT/*"}]}},"scope-font-index":{"identifier":"scope-font-index","description":"This scope permits to list all files and folders in the `$FONT`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$FONT"}]}},"scope-font-recursive":{"identifier":"scope-font-recursive","description":"This scope permits recursive access to the complete `$FONT` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$FONT"},{"path":"$FONT/**"}]}},"scope-home":{"identifier":"scope-home","description":"This scope permits access to all files and list content of top level directories in the `$HOME` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$HOME"},{"path":"$HOME/*"}]}},"scope-home-index":{"identifier":"scope-home-index","description":"This scope permits to list all files and folders in the `$HOME`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$HOME"}]}},"scope-home-recursive":{"identifier":"scope-home-recursive","description":"This scope permits recursive access to the complete `$HOME` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$HOME"},{"path":"$HOME/**"}]}},"scope-localdata":{"identifier":"scope-localdata","description":"This scope permits access to all files and list content of top level directories in the `$LOCALDATA` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOCALDATA"},{"path":"$LOCALDATA/*"}]}},"scope-localdata-index":{"identifier":"scope-localdata-index","description":"This scope permits to list all files and folders in the `$LOCALDATA`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOCALDATA"}]}},"scope-localdata-recursive":{"identifier":"scope-localdata-recursive","description":"This scope permits recursive access to the complete `$LOCALDATA` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOCALDATA"},{"path":"$LOCALDATA/**"}]}},"scope-log":{"identifier":"scope-log","description":"This scope permits access to all files and list content of top level directories in the `$LOG` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOG"},{"path":"$LOG/*"}]}},"scope-log-index":{"identifier":"scope-log-index","description":"This scope permits to list all files and folders in the `$LOG`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOG"}]}},"scope-log-recursive":{"identifier":"scope-log-recursive","description":"This scope permits recursive access to the complete `$LOG` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOG"},{"path":"$LOG/**"}]}},"scope-picture":{"identifier":"scope-picture","description":"This scope permits access to all files and list content of top level directories in the `$PICTURE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PICTURE"},{"path":"$PICTURE/*"}]}},"scope-picture-index":{"identifier":"scope-picture-index","description":"This scope permits to list all files and folders in the `$PICTURE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PICTURE"}]}},"scope-picture-recursive":{"identifier":"scope-picture-recursive","description":"This scope permits recursive access to the complete `$PICTURE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PICTURE"},{"path":"$PICTURE/**"}]}},"scope-public":{"identifier":"scope-public","description":"This scope permits access to all files and list content of top level directories in the `$PUBLIC` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PUBLIC"},{"path":"$PUBLIC/*"}]}},"scope-public-index":{"identifier":"scope-public-index","description":"This scope permits to list all files and folders in the `$PUBLIC`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PUBLIC"}]}},"scope-public-recursive":{"identifier":"scope-public-recursive","description":"This scope permits recursive access to the complete `$PUBLIC` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PUBLIC"},{"path":"$PUBLIC/**"}]}},"scope-resource":{"identifier":"scope-resource","description":"This scope permits access to all files and list content of top level directories in the `$RESOURCE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RESOURCE"},{"path":"$RESOURCE/*"}]}},"scope-resource-index":{"identifier":"scope-resource-index","description":"This scope permits to list all files and folders in the `$RESOURCE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RESOURCE"}]}},"scope-resource-recursive":{"identifier":"scope-resource-recursive","description":"This scope permits recursive access to the complete `$RESOURCE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RESOURCE"},{"path":"$RESOURCE/**"}]}},"scope-runtime":{"identifier":"scope-runtime","description":"This scope permits access to all files and list content of top level directories in the `$RUNTIME` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RUNTIME"},{"path":"$RUNTIME/*"}]}},"scope-runtime-index":{"identifier":"scope-runtime-index","description":"This scope permits to list all files and folders in the `$RUNTIME`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RUNTIME"}]}},"scope-runtime-recursive":{"identifier":"scope-runtime-recursive","description":"This scope permits recursive access to the complete `$RUNTIME` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RUNTIME"},{"path":"$RUNTIME/**"}]}},"scope-temp":{"identifier":"scope-temp","description":"This scope permits access to all files and list content of top level directories in the `$TEMP` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMP"},{"path":"$TEMP/*"}]}},"scope-temp-index":{"identifier":"scope-temp-index","description":"This scope permits to list all files and folders in the `$TEMP`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMP"}]}},"scope-temp-recursive":{"identifier":"scope-temp-recursive","description":"This scope permits recursive access to the complete `$TEMP` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMP"},{"path":"$TEMP/**"}]}},"scope-template":{"identifier":"scope-template","description":"This scope permits access to all files and list content of top level directories in the `$TEMPLATE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMPLATE"},{"path":"$TEMPLATE/*"}]}},"scope-template-index":{"identifier":"scope-template-index","description":"This scope permits to list all files and folders in the `$TEMPLATE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMPLATE"}]}},"scope-template-recursive":{"identifier":"scope-template-recursive","description":"This scope permits recursive access to the complete `$TEMPLATE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMPLATE"},{"path":"$TEMPLATE/**"}]}},"scope-video":{"identifier":"scope-video","description":"This scope permits access to all files and list content of top level directories in the `$VIDEO` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$VIDEO"},{"path":"$VIDEO/*"}]}},"scope-video-index":{"identifier":"scope-video-index","description":"This scope permits to list all files and folders in the `$VIDEO`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$VIDEO"}]}},"scope-video-recursive":{"identifier":"scope-video-recursive","description":"This scope permits recursive access to the complete `$VIDEO` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$VIDEO"},{"path":"$VIDEO/**"}]}},"write-all":{"identifier":"write-all","description":"This enables all write related commands without any pre-configured accessible paths.","commands":{"allow":["mkdir","create","copy_file","remove","rename","truncate","ftruncate","write","write_file","write_text_file"],"deny":[]}},"write-files":{"identifier":"write-files","description":"This enables all file write related commands without any pre-configured accessible paths.","commands":{"allow":["create","copy_file","remove","rename","truncate","ftruncate","write","write_file","write_text_file"],"deny":[]}}},"permission_sets":{"allow-app-meta":{"identifier":"allow-app-meta","description":"This allows non-recursive read access to metadata of the application folders, including file listing and statistics.","permissions":["read-meta","scope-app-index"]},"allow-app-meta-recursive":{"identifier":"allow-app-meta-recursive","description":"This allows full recursive read access to metadata of the application folders, including file listing and statistics.","permissions":["read-meta","scope-app-recursive"]},"allow-app-read":{"identifier":"allow-app-read","description":"This allows non-recursive read access to the application folders.","permissions":["read-all","scope-app"]},"allow-app-read-recursive":{"identifier":"allow-app-read-recursive","description":"This allows full recursive read access to the complete application folders, files and subdirectories.","permissions":["read-all","scope-app-recursive"]},"allow-app-write":{"identifier":"allow-app-write","description":"This allows non-recursive write access to the application folders.","permissions":["write-all","scope-app"]},"allow-app-write-recursive":{"identifier":"allow-app-write-recursive","description":"This allows full recursive write access to the complete application folders, files and subdirectories.","permissions":["write-all","scope-app-recursive"]},"allow-appcache-meta":{"identifier":"allow-appcache-meta","description":"This allows non-recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.","permissions":["read-meta","scope-appcache-index"]},"allow-appcache-meta-recursive":{"identifier":"allow-appcache-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.","permissions":["read-meta","scope-appcache-recursive"]},"allow-appcache-read":{"identifier":"allow-appcache-read","description":"This allows non-recursive read access to the `$APPCACHE` folder.","permissions":["read-all","scope-appcache"]},"allow-appcache-read-recursive":{"identifier":"allow-appcache-read-recursive","description":"This allows full recursive read access to the complete `$APPCACHE` folder, files and subdirectories.","permissions":["read-all","scope-appcache-recursive"]},"allow-appcache-write":{"identifier":"allow-appcache-write","description":"This allows non-recursive write access to the `$APPCACHE` folder.","permissions":["write-all","scope-appcache"]},"allow-appcache-write-recursive":{"identifier":"allow-appcache-write-recursive","description":"This allows full recursive write access to the complete `$APPCACHE` folder, files and subdirectories.","permissions":["write-all","scope-appcache-recursive"]},"allow-appconfig-meta":{"identifier":"allow-appconfig-meta","description":"This allows non-recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.","permissions":["read-meta","scope-appconfig-index"]},"allow-appconfig-meta-recursive":{"identifier":"allow-appconfig-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.","permissions":["read-meta","scope-appconfig-recursive"]},"allow-appconfig-read":{"identifier":"allow-appconfig-read","description":"This allows non-recursive read access to the `$APPCONFIG` folder.","permissions":["read-all","scope-appconfig"]},"allow-appconfig-read-recursive":{"identifier":"allow-appconfig-read-recursive","description":"This allows full recursive read access to the complete `$APPCONFIG` folder, files and subdirectories.","permissions":["read-all","scope-appconfig-recursive"]},"allow-appconfig-write":{"identifier":"allow-appconfig-write","description":"This allows non-recursive write access to the `$APPCONFIG` folder.","permissions":["write-all","scope-appconfig"]},"allow-appconfig-write-recursive":{"identifier":"allow-appconfig-write-recursive","description":"This allows full recursive write access to the complete `$APPCONFIG` folder, files and subdirectories.","permissions":["write-all","scope-appconfig-recursive"]},"allow-appdata-meta":{"identifier":"allow-appdata-meta","description":"This allows non-recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-appdata-index"]},"allow-appdata-meta-recursive":{"identifier":"allow-appdata-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-appdata-recursive"]},"allow-appdata-read":{"identifier":"allow-appdata-read","description":"This allows non-recursive read access to the `$APPDATA` folder.","permissions":["read-all","scope-appdata"]},"allow-appdata-read-recursive":{"identifier":"allow-appdata-read-recursive","description":"This allows full recursive read access to the complete `$APPDATA` folder, files and subdirectories.","permissions":["read-all","scope-appdata-recursive"]},"allow-appdata-write":{"identifier":"allow-appdata-write","description":"This allows non-recursive write access to the `$APPDATA` folder.","permissions":["write-all","scope-appdata"]},"allow-appdata-write-recursive":{"identifier":"allow-appdata-write-recursive","description":"This allows full recursive write access to the complete `$APPDATA` folder, files and subdirectories.","permissions":["write-all","scope-appdata-recursive"]},"allow-applocaldata-meta":{"identifier":"allow-applocaldata-meta","description":"This allows non-recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-applocaldata-index"]},"allow-applocaldata-meta-recursive":{"identifier":"allow-applocaldata-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-applocaldata-recursive"]},"allow-applocaldata-read":{"identifier":"allow-applocaldata-read","description":"This allows non-recursive read access to the `$APPLOCALDATA` folder.","permissions":["read-all","scope-applocaldata"]},"allow-applocaldata-read-recursive":{"identifier":"allow-applocaldata-read-recursive","description":"This allows full recursive read access to the complete `$APPLOCALDATA` folder, files and subdirectories.","permissions":["read-all","scope-applocaldata-recursive"]},"allow-applocaldata-write":{"identifier":"allow-applocaldata-write","description":"This allows non-recursive write access to the `$APPLOCALDATA` folder.","permissions":["write-all","scope-applocaldata"]},"allow-applocaldata-write-recursive":{"identifier":"allow-applocaldata-write-recursive","description":"This allows full recursive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.","permissions":["write-all","scope-applocaldata-recursive"]},"allow-applog-meta":{"identifier":"allow-applog-meta","description":"This allows non-recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.","permissions":["read-meta","scope-applog-index"]},"allow-applog-meta-recursive":{"identifier":"allow-applog-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.","permissions":["read-meta","scope-applog-recursive"]},"allow-applog-read":{"identifier":"allow-applog-read","description":"This allows non-recursive read access to the `$APPLOG` folder.","permissions":["read-all","scope-applog"]},"allow-applog-read-recursive":{"identifier":"allow-applog-read-recursive","description":"This allows full recursive read access to the complete `$APPLOG` folder, files and subdirectories.","permissions":["read-all","scope-applog-recursive"]},"allow-applog-write":{"identifier":"allow-applog-write","description":"This allows non-recursive write access to the `$APPLOG` folder.","permissions":["write-all","scope-applog"]},"allow-applog-write-recursive":{"identifier":"allow-applog-write-recursive","description":"This allows full recursive write access to the complete `$APPLOG` folder, files and subdirectories.","permissions":["write-all","scope-applog-recursive"]},"allow-audio-meta":{"identifier":"allow-audio-meta","description":"This allows non-recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.","permissions":["read-meta","scope-audio-index"]},"allow-audio-meta-recursive":{"identifier":"allow-audio-meta-recursive","description":"This allows full recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.","permissions":["read-meta","scope-audio-recursive"]},"allow-audio-read":{"identifier":"allow-audio-read","description":"This allows non-recursive read access to the `$AUDIO` folder.","permissions":["read-all","scope-audio"]},"allow-audio-read-recursive":{"identifier":"allow-audio-read-recursive","description":"This allows full recursive read access to the complete `$AUDIO` folder, files and subdirectories.","permissions":["read-all","scope-audio-recursive"]},"allow-audio-write":{"identifier":"allow-audio-write","description":"This allows non-recursive write access to the `$AUDIO` folder.","permissions":["write-all","scope-audio"]},"allow-audio-write-recursive":{"identifier":"allow-audio-write-recursive","description":"This allows full recursive write access to the complete `$AUDIO` folder, files and subdirectories.","permissions":["write-all","scope-audio-recursive"]},"allow-cache-meta":{"identifier":"allow-cache-meta","description":"This allows non-recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.","permissions":["read-meta","scope-cache-index"]},"allow-cache-meta-recursive":{"identifier":"allow-cache-meta-recursive","description":"This allows full recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.","permissions":["read-meta","scope-cache-recursive"]},"allow-cache-read":{"identifier":"allow-cache-read","description":"This allows non-recursive read access to the `$CACHE` folder.","permissions":["read-all","scope-cache"]},"allow-cache-read-recursive":{"identifier":"allow-cache-read-recursive","description":"This allows full recursive read access to the complete `$CACHE` folder, files and subdirectories.","permissions":["read-all","scope-cache-recursive"]},"allow-cache-write":{"identifier":"allow-cache-write","description":"This allows non-recursive write access to the `$CACHE` folder.","permissions":["write-all","scope-cache"]},"allow-cache-write-recursive":{"identifier":"allow-cache-write-recursive","description":"This allows full recursive write access to the complete `$CACHE` folder, files and subdirectories.","permissions":["write-all","scope-cache-recursive"]},"allow-config-meta":{"identifier":"allow-config-meta","description":"This allows non-recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.","permissions":["read-meta","scope-config-index"]},"allow-config-meta-recursive":{"identifier":"allow-config-meta-recursive","description":"This allows full recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.","permissions":["read-meta","scope-config-recursive"]},"allow-config-read":{"identifier":"allow-config-read","description":"This allows non-recursive read access to the `$CONFIG` folder.","permissions":["read-all","scope-config"]},"allow-config-read-recursive":{"identifier":"allow-config-read-recursive","description":"This allows full recursive read access to the complete `$CONFIG` folder, files and subdirectories.","permissions":["read-all","scope-config-recursive"]},"allow-config-write":{"identifier":"allow-config-write","description":"This allows non-recursive write access to the `$CONFIG` folder.","permissions":["write-all","scope-config"]},"allow-config-write-recursive":{"identifier":"allow-config-write-recursive","description":"This allows full recursive write access to the complete `$CONFIG` folder, files and subdirectories.","permissions":["write-all","scope-config-recursive"]},"allow-data-meta":{"identifier":"allow-data-meta","description":"This allows non-recursive read access to metadata of the `$DATA` folder, including file listing and statistics.","permissions":["read-meta","scope-data-index"]},"allow-data-meta-recursive":{"identifier":"allow-data-meta-recursive","description":"This allows full recursive read access to metadata of the `$DATA` folder, including file listing and statistics.","permissions":["read-meta","scope-data-recursive"]},"allow-data-read":{"identifier":"allow-data-read","description":"This allows non-recursive read access to the `$DATA` folder.","permissions":["read-all","scope-data"]},"allow-data-read-recursive":{"identifier":"allow-data-read-recursive","description":"This allows full recursive read access to the complete `$DATA` folder, files and subdirectories.","permissions":["read-all","scope-data-recursive"]},"allow-data-write":{"identifier":"allow-data-write","description":"This allows non-recursive write access to the `$DATA` folder.","permissions":["write-all","scope-data"]},"allow-data-write-recursive":{"identifier":"allow-data-write-recursive","description":"This allows full recursive write access to the complete `$DATA` folder, files and subdirectories.","permissions":["write-all","scope-data-recursive"]},"allow-desktop-meta":{"identifier":"allow-desktop-meta","description":"This allows non-recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.","permissions":["read-meta","scope-desktop-index"]},"allow-desktop-meta-recursive":{"identifier":"allow-desktop-meta-recursive","description":"This allows full recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.","permissions":["read-meta","scope-desktop-recursive"]},"allow-desktop-read":{"identifier":"allow-desktop-read","description":"This allows non-recursive read access to the `$DESKTOP` folder.","permissions":["read-all","scope-desktop"]},"allow-desktop-read-recursive":{"identifier":"allow-desktop-read-recursive","description":"This allows full recursive read access to the complete `$DESKTOP` folder, files and subdirectories.","permissions":["read-all","scope-desktop-recursive"]},"allow-desktop-write":{"identifier":"allow-desktop-write","description":"This allows non-recursive write access to the `$DESKTOP` folder.","permissions":["write-all","scope-desktop"]},"allow-desktop-write-recursive":{"identifier":"allow-desktop-write-recursive","description":"This allows full recursive write access to the complete `$DESKTOP` folder, files and subdirectories.","permissions":["write-all","scope-desktop-recursive"]},"allow-document-meta":{"identifier":"allow-document-meta","description":"This allows non-recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.","permissions":["read-meta","scope-document-index"]},"allow-document-meta-recursive":{"identifier":"allow-document-meta-recursive","description":"This allows full recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.","permissions":["read-meta","scope-document-recursive"]},"allow-document-read":{"identifier":"allow-document-read","description":"This allows non-recursive read access to the `$DOCUMENT` folder.","permissions":["read-all","scope-document"]},"allow-document-read-recursive":{"identifier":"allow-document-read-recursive","description":"This allows full recursive read access to the complete `$DOCUMENT` folder, files and subdirectories.","permissions":["read-all","scope-document-recursive"]},"allow-document-write":{"identifier":"allow-document-write","description":"This allows non-recursive write access to the `$DOCUMENT` folder.","permissions":["write-all","scope-document"]},"allow-document-write-recursive":{"identifier":"allow-document-write-recursive","description":"This allows full recursive write access to the complete `$DOCUMENT` folder, files and subdirectories.","permissions":["write-all","scope-document-recursive"]},"allow-download-meta":{"identifier":"allow-download-meta","description":"This allows non-recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.","permissions":["read-meta","scope-download-index"]},"allow-download-meta-recursive":{"identifier":"allow-download-meta-recursive","description":"This allows full recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.","permissions":["read-meta","scope-download-recursive"]},"allow-download-read":{"identifier":"allow-download-read","description":"This allows non-recursive read access to the `$DOWNLOAD` folder.","permissions":["read-all","scope-download"]},"allow-download-read-recursive":{"identifier":"allow-download-read-recursive","description":"This allows full recursive read access to the complete `$DOWNLOAD` folder, files and subdirectories.","permissions":["read-all","scope-download-recursive"]},"allow-download-write":{"identifier":"allow-download-write","description":"This allows non-recursive write access to the `$DOWNLOAD` folder.","permissions":["write-all","scope-download"]},"allow-download-write-recursive":{"identifier":"allow-download-write-recursive","description":"This allows full recursive write access to the complete `$DOWNLOAD` folder, files and subdirectories.","permissions":["write-all","scope-download-recursive"]},"allow-exe-meta":{"identifier":"allow-exe-meta","description":"This allows non-recursive read access to metadata of the `$EXE` folder, including file listing and statistics.","permissions":["read-meta","scope-exe-index"]},"allow-exe-meta-recursive":{"identifier":"allow-exe-meta-recursive","description":"This allows full recursive read access to metadata of the `$EXE` folder, including file listing and statistics.","permissions":["read-meta","scope-exe-recursive"]},"allow-exe-read":{"identifier":"allow-exe-read","description":"This allows non-recursive read access to the `$EXE` folder.","permissions":["read-all","scope-exe"]},"allow-exe-read-recursive":{"identifier":"allow-exe-read-recursive","description":"This allows full recursive read access to the complete `$EXE` folder, files and subdirectories.","permissions":["read-all","scope-exe-recursive"]},"allow-exe-write":{"identifier":"allow-exe-write","description":"This allows non-recursive write access to the `$EXE` folder.","permissions":["write-all","scope-exe"]},"allow-exe-write-recursive":{"identifier":"allow-exe-write-recursive","description":"This allows full recursive write access to the complete `$EXE` folder, files and subdirectories.","permissions":["write-all","scope-exe-recursive"]},"allow-font-meta":{"identifier":"allow-font-meta","description":"This allows non-recursive read access to metadata of the `$FONT` folder, including file listing and statistics.","permissions":["read-meta","scope-font-index"]},"allow-font-meta-recursive":{"identifier":"allow-font-meta-recursive","description":"This allows full recursive read access to metadata of the `$FONT` folder, including file listing and statistics.","permissions":["read-meta","scope-font-recursive"]},"allow-font-read":{"identifier":"allow-font-read","description":"This allows non-recursive read access to the `$FONT` folder.","permissions":["read-all","scope-font"]},"allow-font-read-recursive":{"identifier":"allow-font-read-recursive","description":"This allows full recursive read access to the complete `$FONT` folder, files and subdirectories.","permissions":["read-all","scope-font-recursive"]},"allow-font-write":{"identifier":"allow-font-write","description":"This allows non-recursive write access to the `$FONT` folder.","permissions":["write-all","scope-font"]},"allow-font-write-recursive":{"identifier":"allow-font-write-recursive","description":"This allows full recursive write access to the complete `$FONT` folder, files and subdirectories.","permissions":["write-all","scope-font-recursive"]},"allow-home-meta":{"identifier":"allow-home-meta","description":"This allows non-recursive read access to metadata of the `$HOME` folder, including file listing and statistics.","permissions":["read-meta","scope-home-index"]},"allow-home-meta-recursive":{"identifier":"allow-home-meta-recursive","description":"This allows full recursive read access to metadata of the `$HOME` folder, including file listing and statistics.","permissions":["read-meta","scope-home-recursive"]},"allow-home-read":{"identifier":"allow-home-read","description":"This allows non-recursive read access to the `$HOME` folder.","permissions":["read-all","scope-home"]},"allow-home-read-recursive":{"identifier":"allow-home-read-recursive","description":"This allows full recursive read access to the complete `$HOME` folder, files and subdirectories.","permissions":["read-all","scope-home-recursive"]},"allow-home-write":{"identifier":"allow-home-write","description":"This allows non-recursive write access to the `$HOME` folder.","permissions":["write-all","scope-home"]},"allow-home-write-recursive":{"identifier":"allow-home-write-recursive","description":"This allows full recursive write access to the complete `$HOME` folder, files and subdirectories.","permissions":["write-all","scope-home-recursive"]},"allow-localdata-meta":{"identifier":"allow-localdata-meta","description":"This allows non-recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-localdata-index"]},"allow-localdata-meta-recursive":{"identifier":"allow-localdata-meta-recursive","description":"This allows full recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-localdata-recursive"]},"allow-localdata-read":{"identifier":"allow-localdata-read","description":"This allows non-recursive read access to the `$LOCALDATA` folder.","permissions":["read-all","scope-localdata"]},"allow-localdata-read-recursive":{"identifier":"allow-localdata-read-recursive","description":"This allows full recursive read access to the complete `$LOCALDATA` folder, files and subdirectories.","permissions":["read-all","scope-localdata-recursive"]},"allow-localdata-write":{"identifier":"allow-localdata-write","description":"This allows non-recursive write access to the `$LOCALDATA` folder.","permissions":["write-all","scope-localdata"]},"allow-localdata-write-recursive":{"identifier":"allow-localdata-write-recursive","description":"This allows full recursive write access to the complete `$LOCALDATA` folder, files and subdirectories.","permissions":["write-all","scope-localdata-recursive"]},"allow-log-meta":{"identifier":"allow-log-meta","description":"This allows non-recursive read access to metadata of the `$LOG` folder, including file listing and statistics.","permissions":["read-meta","scope-log-index"]},"allow-log-meta-recursive":{"identifier":"allow-log-meta-recursive","description":"This allows full recursive read access to metadata of the `$LOG` folder, including file listing and statistics.","permissions":["read-meta","scope-log-recursive"]},"allow-log-read":{"identifier":"allow-log-read","description":"This allows non-recursive read access to the `$LOG` folder.","permissions":["read-all","scope-log"]},"allow-log-read-recursive":{"identifier":"allow-log-read-recursive","description":"This allows full recursive read access to the complete `$LOG` folder, files and subdirectories.","permissions":["read-all","scope-log-recursive"]},"allow-log-write":{"identifier":"allow-log-write","description":"This allows non-recursive write access to the `$LOG` folder.","permissions":["write-all","scope-log"]},"allow-log-write-recursive":{"identifier":"allow-log-write-recursive","description":"This allows full recursive write access to the complete `$LOG` folder, files and subdirectories.","permissions":["write-all","scope-log-recursive"]},"allow-picture-meta":{"identifier":"allow-picture-meta","description":"This allows non-recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.","permissions":["read-meta","scope-picture-index"]},"allow-picture-meta-recursive":{"identifier":"allow-picture-meta-recursive","description":"This allows full recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.","permissions":["read-meta","scope-picture-recursive"]},"allow-picture-read":{"identifier":"allow-picture-read","description":"This allows non-recursive read access to the `$PICTURE` folder.","permissions":["read-all","scope-picture"]},"allow-picture-read-recursive":{"identifier":"allow-picture-read-recursive","description":"This allows full recursive read access to the complete `$PICTURE` folder, files and subdirectories.","permissions":["read-all","scope-picture-recursive"]},"allow-picture-write":{"identifier":"allow-picture-write","description":"This allows non-recursive write access to the `$PICTURE` folder.","permissions":["write-all","scope-picture"]},"allow-picture-write-recursive":{"identifier":"allow-picture-write-recursive","description":"This allows full recursive write access to the complete `$PICTURE` folder, files and subdirectories.","permissions":["write-all","scope-picture-recursive"]},"allow-public-meta":{"identifier":"allow-public-meta","description":"This allows non-recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.","permissions":["read-meta","scope-public-index"]},"allow-public-meta-recursive":{"identifier":"allow-public-meta-recursive","description":"This allows full recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.","permissions":["read-meta","scope-public-recursive"]},"allow-public-read":{"identifier":"allow-public-read","description":"This allows non-recursive read access to the `$PUBLIC` folder.","permissions":["read-all","scope-public"]},"allow-public-read-recursive":{"identifier":"allow-public-read-recursive","description":"This allows full recursive read access to the complete `$PUBLIC` folder, files and subdirectories.","permissions":["read-all","scope-public-recursive"]},"allow-public-write":{"identifier":"allow-public-write","description":"This allows non-recursive write access to the `$PUBLIC` folder.","permissions":["write-all","scope-public"]},"allow-public-write-recursive":{"identifier":"allow-public-write-recursive","description":"This allows full recursive write access to the complete `$PUBLIC` folder, files and subdirectories.","permissions":["write-all","scope-public-recursive"]},"allow-resource-meta":{"identifier":"allow-resource-meta","description":"This allows non-recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.","permissions":["read-meta","scope-resource-index"]},"allow-resource-meta-recursive":{"identifier":"allow-resource-meta-recursive","description":"This allows full recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.","permissions":["read-meta","scope-resource-recursive"]},"allow-resource-read":{"identifier":"allow-resource-read","description":"This allows non-recursive read access to the `$RESOURCE` folder.","permissions":["read-all","scope-resource"]},"allow-resource-read-recursive":{"identifier":"allow-resource-read-recursive","description":"This allows full recursive read access to the complete `$RESOURCE` folder, files and subdirectories.","permissions":["read-all","scope-resource-recursive"]},"allow-resource-write":{"identifier":"allow-resource-write","description":"This allows non-recursive write access to the `$RESOURCE` folder.","permissions":["write-all","scope-resource"]},"allow-resource-write-recursive":{"identifier":"allow-resource-write-recursive","description":"This allows full recursive write access to the complete `$RESOURCE` folder, files and subdirectories.","permissions":["write-all","scope-resource-recursive"]},"allow-runtime-meta":{"identifier":"allow-runtime-meta","description":"This allows non-recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.","permissions":["read-meta","scope-runtime-index"]},"allow-runtime-meta-recursive":{"identifier":"allow-runtime-meta-recursive","description":"This allows full recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.","permissions":["read-meta","scope-runtime-recursive"]},"allow-runtime-read":{"identifier":"allow-runtime-read","description":"This allows non-recursive read access to the `$RUNTIME` folder.","permissions":["read-all","scope-runtime"]},"allow-runtime-read-recursive":{"identifier":"allow-runtime-read-recursive","description":"This allows full recursive read access to the complete `$RUNTIME` folder, files and subdirectories.","permissions":["read-all","scope-runtime-recursive"]},"allow-runtime-write":{"identifier":"allow-runtime-write","description":"This allows non-recursive write access to the `$RUNTIME` folder.","permissions":["write-all","scope-runtime"]},"allow-runtime-write-recursive":{"identifier":"allow-runtime-write-recursive","description":"This allows full recursive write access to the complete `$RUNTIME` folder, files and subdirectories.","permissions":["write-all","scope-runtime-recursive"]},"allow-temp-meta":{"identifier":"allow-temp-meta","description":"This allows non-recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.","permissions":["read-meta","scope-temp-index"]},"allow-temp-meta-recursive":{"identifier":"allow-temp-meta-recursive","description":"This allows full recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.","permissions":["read-meta","scope-temp-recursive"]},"allow-temp-read":{"identifier":"allow-temp-read","description":"This allows non-recursive read access to the `$TEMP` folder.","permissions":["read-all","scope-temp"]},"allow-temp-read-recursive":{"identifier":"allow-temp-read-recursive","description":"This allows full recursive read access to the complete `$TEMP` folder, files and subdirectories.","permissions":["read-all","scope-temp-recursive"]},"allow-temp-write":{"identifier":"allow-temp-write","description":"This allows non-recursive write access to the `$TEMP` folder.","permissions":["write-all","scope-temp"]},"allow-temp-write-recursive":{"identifier":"allow-temp-write-recursive","description":"This allows full recursive write access to the complete `$TEMP` folder, files and subdirectories.","permissions":["write-all","scope-temp-recursive"]},"allow-template-meta":{"identifier":"allow-template-meta","description":"This allows non-recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.","permissions":["read-meta","scope-template-index"]},"allow-template-meta-recursive":{"identifier":"allow-template-meta-recursive","description":"This allows full recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.","permissions":["read-meta","scope-template-recursive"]},"allow-template-read":{"identifier":"allow-template-read","description":"This allows non-recursive read access to the `$TEMPLATE` folder.","permissions":["read-all","scope-template"]},"allow-template-read-recursive":{"identifier":"allow-template-read-recursive","description":"This allows full recursive read access to the complete `$TEMPLATE` folder, files and subdirectories.","permissions":["read-all","scope-template-recursive"]},"allow-template-write":{"identifier":"allow-template-write","description":"This allows non-recursive write access to the `$TEMPLATE` folder.","permissions":["write-all","scope-template"]},"allow-template-write-recursive":{"identifier":"allow-template-write-recursive","description":"This allows full recursive write access to the complete `$TEMPLATE` folder, files and subdirectories.","permissions":["write-all","scope-template-recursive"]},"allow-video-meta":{"identifier":"allow-video-meta","description":"This allows non-recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.","permissions":["read-meta","scope-video-index"]},"allow-video-meta-recursive":{"identifier":"allow-video-meta-recursive","description":"This allows full recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.","permissions":["read-meta","scope-video-recursive"]},"allow-video-read":{"identifier":"allow-video-read","description":"This allows non-recursive read access to the `$VIDEO` folder.","permissions":["read-all","scope-video"]},"allow-video-read-recursive":{"identifier":"allow-video-read-recursive","description":"This allows full recursive read access to the complete `$VIDEO` folder, files and subdirectories.","permissions":["read-all","scope-video-recursive"]},"allow-video-write":{"identifier":"allow-video-write","description":"This allows non-recursive write access to the `$VIDEO` folder.","permissions":["write-all","scope-video"]},"allow-video-write-recursive":{"identifier":"allow-video-write-recursive","description":"This allows full recursive write access to the complete `$VIDEO` folder, files and subdirectories.","permissions":["write-all","scope-video-recursive"]},"deny-default":{"identifier":"deny-default","description":"This denies access to dangerous Tauri relevant files and folders by default.","permissions":["deny-webview-data-linux","deny-webview-data-windows"]}},"global_scope_schema":{"$schema":"http://json-schema.org/draft-07/schema#","anyOf":[{"description":"FS scope path.","type":"string"},{"properties":{"path":{"description":"FS scope path.","type":"string"}},"required":["path"],"type":"object"}],"description":"FS scope entry.","title":"FsScopeEntry"}},"global-shortcut":{"default_permission":{"identifier":"default","description":"No features are enabled by default, as we believe\nthe shortcuts can be inherently dangerous and it is\napplication specific if specific shortcuts should be\nregistered or unregistered.\n","permissions":[]},"permissions":{"allow-is-registered":{"identifier":"allow-is-registered","description":"Enables the is_registered command without any pre-configured scope.","commands":{"allow":["is_registered"],"deny":[]}},"allow-register":{"identifier":"allow-register","description":"Enables the register command without any pre-configured scope.","commands":{"allow":["register"],"deny":[]}},"allow-register-all":{"identifier":"allow-register-all","description":"Enables the register_all command without any pre-configured scope.","commands":{"allow":["register_all"],"deny":[]}},"allow-unregister":{"identifier":"allow-unregister","description":"Enables the unregister command without any pre-configured scope.","commands":{"allow":["unregister"],"deny":[]}},"allow-unregister-all":{"identifier":"allow-unregister-all","description":"Enables the unregister_all command without any pre-configured scope.","commands":{"allow":["unregister_all"],"deny":[]}},"deny-is-registered":{"identifier":"deny-is-registered","description":"Denies the is_registered command without any pre-configured scope.","commands":{"allow":[],"deny":["is_registered"]}},"deny-register":{"identifier":"deny-register","description":"Denies the register command without any pre-configured scope.","commands":{"allow":[],"deny":["register"]}},"deny-register-all":{"identifier":"deny-register-all","description":"Denies the register_all command without any pre-configured scope.","commands":{"allow":[],"deny":["register_all"]}},"deny-unregister":{"identifier":"deny-unregister","description":"Denies the unregister command without any pre-configured scope.","commands":{"allow":[],"deny":["unregister"]}},"deny-unregister-all":{"identifier":"deny-unregister-all","description":"Denies the unregister_all command without any pre-configured scope.","commands":{"allow":[],"deny":["unregister_all"]}}},"permission_sets":{},"global_scope_schema":null},"http":{"default_permission":{"identifier":"default","description":"This permission set configures what kind of\nfetch operations are available from the http plugin.\n\nThis enables all fetch operations but does not\nallow explicitly any origins to be fetched. This needs to\nbe manually configured before usage.\n\n#### Granted Permissions\n\nAll fetch operations are enabled.\n\n","permissions":["allow-fetch","allow-fetch-cancel","allow-fetch-read-body","allow-fetch-send"]},"permissions":{"allow-fetch":{"identifier":"allow-fetch","description":"Enables the fetch command without any pre-configured scope.","commands":{"allow":["fetch"],"deny":[]}},"allow-fetch-cancel":{"identifier":"allow-fetch-cancel","description":"Enables the fetch_cancel command without any pre-configured scope.","commands":{"allow":["fetch_cancel"],"deny":[]}},"allow-fetch-read-body":{"identifier":"allow-fetch-read-body","description":"Enables the fetch_read_body command without any pre-configured scope.","commands":{"allow":["fetch_read_body"],"deny":[]}},"allow-fetch-send":{"identifier":"allow-fetch-send","description":"Enables the fetch_send command without any pre-configured scope.","commands":{"allow":["fetch_send"],"deny":[]}},"deny-fetch":{"identifier":"deny-fetch","description":"Denies the fetch command without any pre-configured scope.","commands":{"allow":[],"deny":["fetch"]}},"deny-fetch-cancel":{"identifier":"deny-fetch-cancel","description":"Denies the fetch_cancel command without any pre-configured scope.","commands":{"allow":[],"deny":["fetch_cancel"]}},"deny-fetch-read-body":{"identifier":"deny-fetch-read-body","description":"Denies the fetch_read_body command without any pre-configured scope.","commands":{"allow":[],"deny":["fetch_read_body"]}},"deny-fetch-send":{"identifier":"deny-fetch-send","description":"Denies the fetch_send command without any pre-configured scope.","commands":{"allow":[],"deny":["fetch_send"]}}},"permission_sets":{},"global_scope_schema":{"$schema":"http://json-schema.org/draft-07/schema#","anyOf":[{"description":"A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"","type":"string"},{"properties":{"url":{"description":"A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"","type":"string"}},"required":["url"],"type":"object"}],"description":"HTTP scope entry.","title":"HttpScopeEntry"}},"notification":{"default_permission":{"identifier":"default","description":"This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n","permissions":["allow-is-permission-granted","allow-request-permission","allow-notify","allow-register-action-types","allow-register-listener","allow-cancel","allow-get-pending","allow-remove-active","allow-get-active","allow-check-permissions","allow-show","allow-batch","allow-list-channels","allow-delete-channel","allow-create-channel","allow-permission-state"]},"permissions":{"allow-batch":{"identifier":"allow-batch","description":"Enables the batch command without any pre-configured scope.","commands":{"allow":["batch"],"deny":[]}},"allow-cancel":{"identifier":"allow-cancel","description":"Enables the cancel command without any pre-configured scope.","commands":{"allow":["cancel"],"deny":[]}},"allow-check-permissions":{"identifier":"allow-check-permissions","description":"Enables the check_permissions command without any pre-configured scope.","commands":{"allow":["check_permissions"],"deny":[]}},"allow-create-channel":{"identifier":"allow-create-channel","description":"Enables the create_channel command without any pre-configured scope.","commands":{"allow":["create_channel"],"deny":[]}},"allow-delete-channel":{"identifier":"allow-delete-channel","description":"Enables the delete_channel command without any pre-configured scope.","commands":{"allow":["delete_channel"],"deny":[]}},"allow-get-active":{"identifier":"allow-get-active","description":"Enables the get_active command without any pre-configured scope.","commands":{"allow":["get_active"],"deny":[]}},"allow-get-pending":{"identifier":"allow-get-pending","description":"Enables the get_pending command without any pre-configured scope.","commands":{"allow":["get_pending"],"deny":[]}},"allow-is-permission-granted":{"identifier":"allow-is-permission-granted","description":"Enables the is_permission_granted command without any pre-configured scope.","commands":{"allow":["is_permission_granted"],"deny":[]}},"allow-list-channels":{"identifier":"allow-list-channels","description":"Enables the list_channels command without any pre-configured scope.","commands":{"allow":["list_channels"],"deny":[]}},"allow-notify":{"identifier":"allow-notify","description":"Enables the notify command without any pre-configured scope.","commands":{"allow":["notify"],"deny":[]}},"allow-permission-state":{"identifier":"allow-permission-state","description":"Enables the permission_state command without any pre-configured scope.","commands":{"allow":["permission_state"],"deny":[]}},"allow-register-action-types":{"identifier":"allow-register-action-types","description":"Enables the register_action_types command without any pre-configured scope.","commands":{"allow":["register_action_types"],"deny":[]}},"allow-register-listener":{"identifier":"allow-register-listener","description":"Enables the register_listener command without any pre-configured scope.","commands":{"allow":["register_listener"],"deny":[]}},"allow-remove-active":{"identifier":"allow-remove-active","description":"Enables the remove_active command without any pre-configured scope.","commands":{"allow":["remove_active"],"deny":[]}},"allow-request-permission":{"identifier":"allow-request-permission","description":"Enables the request_permission command without any pre-configured scope.","commands":{"allow":["request_permission"],"deny":[]}},"allow-show":{"identifier":"allow-show","description":"Enables the show command without any pre-configured scope.","commands":{"allow":["show"],"deny":[]}},"deny-batch":{"identifier":"deny-batch","description":"Denies the batch command without any pre-configured scope.","commands":{"allow":[],"deny":["batch"]}},"deny-cancel":{"identifier":"deny-cancel","description":"Denies the cancel command without any pre-configured scope.","commands":{"allow":[],"deny":["cancel"]}},"deny-check-permissions":{"identifier":"deny-check-permissions","description":"Denies the check_permissions command without any pre-configured scope.","commands":{"allow":[],"deny":["check_permissions"]}},"deny-create-channel":{"identifier":"deny-create-channel","description":"Denies the create_channel command without any pre-configured scope.","commands":{"allow":[],"deny":["create_channel"]}},"deny-delete-channel":{"identifier":"deny-delete-channel","description":"Denies the delete_channel command without any pre-configured scope.","commands":{"allow":[],"deny":["delete_channel"]}},"deny-get-active":{"identifier":"deny-get-active","description":"Denies the get_active command without any pre-configured scope.","commands":{"allow":[],"deny":["get_active"]}},"deny-get-pending":{"identifier":"deny-get-pending","description":"Denies the get_pending command without any pre-configured scope.","commands":{"allow":[],"deny":["get_pending"]}},"deny-is-permission-granted":{"identifier":"deny-is-permission-granted","description":"Denies the is_permission_granted command without any pre-configured scope.","commands":{"allow":[],"deny":["is_permission_granted"]}},"deny-list-channels":{"identifier":"deny-list-channels","description":"Denies the list_channels command without any pre-configured scope.","commands":{"allow":[],"deny":["list_channels"]}},"deny-notify":{"identifier":"deny-notify","description":"Denies the notify command without any pre-configured scope.","commands":{"allow":[],"deny":["notify"]}},"deny-permission-state":{"identifier":"deny-permission-state","description":"Denies the permission_state command without any pre-configured scope.","commands":{"allow":[],"deny":["permission_state"]}},"deny-register-action-types":{"identifier":"deny-register-action-types","description":"Denies the register_action_types command without any pre-configured scope.","commands":{"allow":[],"deny":["register_action_types"]}},"deny-register-listener":{"identifier":"deny-register-listener","description":"Denies the register_listener command without any pre-configured scope.","commands":{"allow":[],"deny":["register_listener"]}},"deny-remove-active":{"identifier":"deny-remove-active","description":"Denies the remove_active command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_active"]}},"deny-request-permission":{"identifier":"deny-request-permission","description":"Denies the request_permission command without any pre-configured scope.","commands":{"allow":[],"deny":["request_permission"]}},"deny-show":{"identifier":"deny-show","description":"Denies the show command without any pre-configured scope.","commands":{"allow":[],"deny":["show"]}}},"permission_sets":{},"global_scope_schema":null},"os":{"default_permission":{"identifier":"default","description":"This permission set configures which\noperating system information are available\nto gather from the frontend.\n\n#### Granted Permissions\n\nAll information except the host name are available.\n\n","permissions":["allow-arch","allow-exe-extension","allow-family","allow-locale","allow-os-type","allow-platform","allow-version"]},"permissions":{"allow-arch":{"identifier":"allow-arch","description":"Enables the arch command without any pre-configured scope.","commands":{"allow":["arch"],"deny":[]}},"allow-exe-extension":{"identifier":"allow-exe-extension","description":"Enables the exe_extension command without any pre-configured scope.","commands":{"allow":["exe_extension"],"deny":[]}},"allow-family":{"identifier":"allow-family","description":"Enables the family command without any pre-configured scope.","commands":{"allow":["family"],"deny":[]}},"allow-hostname":{"identifier":"allow-hostname","description":"Enables the hostname command without any pre-configured scope.","commands":{"allow":["hostname"],"deny":[]}},"allow-locale":{"identifier":"allow-locale","description":"Enables the locale command without any pre-configured scope.","commands":{"allow":["locale"],"deny":[]}},"allow-os-type":{"identifier":"allow-os-type","description":"Enables the os_type command without any pre-configured scope.","commands":{"allow":["os_type"],"deny":[]}},"allow-platform":{"identifier":"allow-platform","description":"Enables the platform command without any pre-configured scope.","commands":{"allow":["platform"],"deny":[]}},"allow-version":{"identifier":"allow-version","description":"Enables the version command without any pre-configured scope.","commands":{"allow":["version"],"deny":[]}},"deny-arch":{"identifier":"deny-arch","description":"Denies the arch command without any pre-configured scope.","commands":{"allow":[],"deny":["arch"]}},"deny-exe-extension":{"identifier":"deny-exe-extension","description":"Denies the exe_extension command without any pre-configured scope.","commands":{"allow":[],"deny":["exe_extension"]}},"deny-family":{"identifier":"deny-family","description":"Denies the family command without any pre-configured scope.","commands":{"allow":[],"deny":["family"]}},"deny-hostname":{"identifier":"deny-hostname","description":"Denies the hostname command without any pre-configured scope.","commands":{"allow":[],"deny":["hostname"]}},"deny-locale":{"identifier":"deny-locale","description":"Denies the locale command without any pre-configured scope.","commands":{"allow":[],"deny":["locale"]}},"deny-os-type":{"identifier":"deny-os-type","description":"Denies the os_type command without any pre-configured scope.","commands":{"allow":[],"deny":["os_type"]}},"deny-platform":{"identifier":"deny-platform","description":"Denies the platform command without any pre-configured scope.","commands":{"allow":[],"deny":["platform"]}},"deny-version":{"identifier":"deny-version","description":"Denies the version command without any pre-configured scope.","commands":{"allow":[],"deny":["version"]}}},"permission_sets":{},"global_scope_schema":null},"process":{"default_permission":{"identifier":"default","description":"This permission set configures which\nprocess feeatures are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n","permissions":["allow-exit","allow-restart"]},"permissions":{"allow-exit":{"identifier":"allow-exit","description":"Enables the exit command without any pre-configured scope.","commands":{"allow":["exit"],"deny":[]}},"allow-restart":{"identifier":"allow-restart","description":"Enables the restart command without any pre-configured scope.","commands":{"allow":["restart"],"deny":[]}},"deny-exit":{"identifier":"deny-exit","description":"Denies the exit command without any pre-configured scope.","commands":{"allow":[],"deny":["exit"]}},"deny-restart":{"identifier":"deny-restart","description":"Denies the restart command without any pre-configured scope.","commands":{"allow":[],"deny":["restart"]}}},"permission_sets":{},"global_scope_schema":null},"shell":{"default_permission":{"identifier":"default","description":"This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality without any specific\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n","permissions":["allow-open"]},"permissions":{"allow-execute":{"identifier":"allow-execute","description":"Enables the execute command without any pre-configured scope.","commands":{"allow":["execute"],"deny":[]}},"allow-kill":{"identifier":"allow-kill","description":"Enables the kill command without any pre-configured scope.","commands":{"allow":["kill"],"deny":[]}},"allow-open":{"identifier":"allow-open","description":"Enables the open command without any pre-configured scope.","commands":{"allow":["open"],"deny":[]}},"allow-spawn":{"identifier":"allow-spawn","description":"Enables the spawn command without any pre-configured scope.","commands":{"allow":["spawn"],"deny":[]}},"allow-stdin-write":{"identifier":"allow-stdin-write","description":"Enables the stdin_write command without any pre-configured scope.","commands":{"allow":["stdin_write"],"deny":[]}},"deny-execute":{"identifier":"deny-execute","description":"Denies the execute command without any pre-configured scope.","commands":{"allow":[],"deny":["execute"]}},"deny-kill":{"identifier":"deny-kill","description":"Denies the kill command without any pre-configured scope.","commands":{"allow":[],"deny":["kill"]}},"deny-open":{"identifier":"deny-open","description":"Denies the open command without any pre-configured scope.","commands":{"allow":[],"deny":["open"]}},"deny-spawn":{"identifier":"deny-spawn","description":"Denies the spawn command without any pre-configured scope.","commands":{"allow":[],"deny":["spawn"]}},"deny-stdin-write":{"identifier":"deny-stdin-write","description":"Denies the stdin_write command without any pre-configured scope.","commands":{"allow":[],"deny":["stdin_write"]}}},"permission_sets":{},"global_scope_schema":{"$schema":"http://json-schema.org/draft-07/schema#","anyOf":[{"additionalProperties":false,"properties":{"args":{"allOf":[{"$ref":"#/definitions/ShellScopeEntryAllowedArgs"}],"description":"The allowed arguments for the command execution."},"cmd":{"description":"The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.","type":"string"},"name":{"description":"The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.","type":"string"}},"required":["cmd","name"],"type":"object"},{"additionalProperties":false,"properties":{"args":{"allOf":[{"$ref":"#/definitions/ShellScopeEntryAllowedArgs"}],"description":"The allowed arguments for the command execution."},"name":{"description":"The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.","type":"string"},"sidecar":{"description":"If this command is a sidecar command.","type":"boolean"}},"required":["name","sidecar"],"type":"object"}],"definitions":{"ShellScopeEntryAllowedArg":{"anyOf":[{"description":"A non-configurable argument that is passed to the command in the order it was specified.","type":"string"},{"additionalProperties":false,"description":"A variable that is set while calling the command from the webview API.","properties":{"raw":{"default":false,"description":"Marks the validator as a raw regex, meaning the plugin should not make any modification at runtime.\n\nThis means the regex will not match on the entire string by default, which might be exploited if your regex allow unexpected input to be considered valid. When using this option, make sure your regex is correct.","type":"boolean"},"validator":{"description":"[regex] validator to require passed values to conform to an expected input.\n\nThis will require the argument value passed to this variable to match the `validator` regex before it will be executed.\n\nThe regex string is by default surrounded by `^...$` to match the full string. For example the `https?://\\w+` regex would be registered as `^https?://\\w+$`.\n\n[regex]: <https://docs.rs/regex/latest/regex/#syntax>","type":"string"}},"required":["validator"],"type":"object"}],"description":"A command argument allowed to be executed by the webview API."},"ShellScopeEntryAllowedArgs":{"anyOf":[{"description":"Use a simple boolean to allow all or disable all arguments to this command configuration.","type":"boolean"},{"description":"A specific set of [`ShellScopeEntryAllowedArg`] that are valid to call for the command configuration.","items":{"$ref":"#/definitions/ShellScopeEntryAllowedArg"},"type":"array"}],"description":"A set of command arguments allowed to be executed by the webview API.\n\nA value of `true` will allow any arguments to be passed to the command. `false` will disable all arguments. A list of [`ShellScopeEntryAllowedArg`] will set those arguments as the only valid arguments to be passed to the attached command configuration."}},"description":"Shell scope entry.","title":"ShellScopeEntry"}},"store":{"default_permission":{"identifier":"default","description":"This permission set configures what kind of\noperations are available from the store plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n","permissions":["allow-create-store","allow-clear","allow-delete","allow-entries","allow-get","allow-has","allow-keys","allow-length","allow-load","allow-reset","allow-save","allow-set","allow-values"]},"permissions":{"allow-clear":{"identifier":"allow-clear","description":"Enables the clear command without any pre-configured scope.","commands":{"allow":["clear"],"deny":[]}},"allow-create-store":{"identifier":"allow-create-store","description":"Enables the create_store command without any pre-configured scope.","commands":{"allow":["create_store"],"deny":[]}},"allow-delete":{"identifier":"allow-delete","description":"Enables the delete command without any pre-configured scope.","commands":{"allow":["delete"],"deny":[]}},"allow-entries":{"identifier":"allow-entries","description":"Enables the entries command without any pre-configured scope.","commands":{"allow":["entries"],"deny":[]}},"allow-get":{"identifier":"allow-get","description":"Enables the get command without any pre-configured scope.","commands":{"allow":["get"],"deny":[]}},"allow-has":{"identifier":"allow-has","description":"Enables the has command without any pre-configured scope.","commands":{"allow":["has"],"deny":[]}},"allow-keys":{"identifier":"allow-keys","description":"Enables the keys command without any pre-configured scope.","commands":{"allow":["keys"],"deny":[]}},"allow-length":{"identifier":"allow-length","description":"Enables the length command without any pre-configured scope.","commands":{"allow":["length"],"deny":[]}},"allow-load":{"identifier":"allow-load","description":"Enables the load command without any pre-configured scope.","commands":{"allow":["load"],"deny":[]}},"allow-reset":{"identifier":"allow-reset","description":"Enables the reset command without any pre-configured scope.","commands":{"allow":["reset"],"deny":[]}},"allow-save":{"identifier":"allow-save","description":"Enables the save command without any pre-configured scope.","commands":{"allow":["save"],"deny":[]}},"allow-set":{"identifier":"allow-set","description":"Enables the set command without any pre-configured scope.","commands":{"allow":["set"],"deny":[]}},"allow-values":{"identifier":"allow-values","description":"Enables the values command without any pre-configured scope.","commands":{"allow":["values"],"deny":[]}},"deny-clear":{"identifier":"deny-clear","description":"Denies the clear command without any pre-configured scope.","commands":{"allow":[],"deny":["clear"]}},"deny-create-store":{"identifier":"deny-create-store","description":"Denies the create_store command without any pre-configured scope.","commands":{"allow":[],"deny":["create_store"]}},"deny-delete":{"identifier":"deny-delete","description":"Denies the delete command without any pre-configured scope.","commands":{"allow":[],"deny":["delete"]}},"deny-entries":{"identifier":"deny-entries","description":"Denies the entries command without any pre-configured scope.","commands":{"allow":[],"deny":["entries"]}},"deny-get":{"identifier":"deny-get","description":"Denies the get command without any pre-configured scope.","commands":{"allow":[],"deny":["get"]}},"deny-has":{"identifier":"deny-has","description":"Denies the has command without any pre-configured scope.","commands":{"allow":[],"deny":["has"]}},"deny-keys":{"identifier":"deny-keys","description":"Denies the keys command without any pre-configured scope.","commands":{"allow":[],"deny":["keys"]}},"deny-length":{"identifier":"deny-length","description":"Denies the length command without any pre-configured scope.","commands":{"allow":[],"deny":["length"]}},"deny-load":{"identifier":"deny-load","description":"Denies the load command without any pre-configured scope.","commands":{"allow":[],"deny":["load"]}},"deny-reset":{"identifier":"deny-reset","description":"Denies the reset command without any pre-configured scope.","commands":{"allow":[],"deny":["reset"]}},"deny-save":{"identifier":"deny-save","description":"Denies the save command without any pre-configured scope.","commands":{"allow":[],"deny":["save"]}},"deny-set":{"identifier":"deny-set","description":"Denies the set command without any pre-configured scope.","commands":{"allow":[],"deny":["set"]}},"deny-values":{"identifier":"deny-values","description":"Denies the values command without any pre-configured scope.","commands":{"allow":[],"deny":["values"]}}},"permission_sets":{},"global_scope_schema":null},"updater":{"default_permission":{"identifier":"default","description":"This permission set configures which kind of\nupdater functions are exposed to the frontend.\n\n#### Granted Permissions\n\nThe full workflow from checking for updates to installing them\nis enabled.\n\n","permissions":["allow-check","allow-download","allow-install","allow-download-and-install"]},"permissions":{"allow-check":{"identifier":"allow-check","description":"Enables the check command without any pre-configured scope.","commands":{"allow":["check"],"deny":[]}},"allow-download":{"identifier":"allow-download","description":"Enables the download command without any pre-configured scope.","commands":{"allow":["download"],"deny":[]}},"allow-download-and-install":{"identifier":"allow-download-and-install","description":"Enables the download_and_install command without any pre-configured scope.","commands":{"allow":["download_and_install"],"deny":[]}},"allow-install":{"identifier":"allow-install","description":"Enables the install command without any pre-configured scope.","commands":{"allow":["install"],"deny":[]}},"deny-check":{"identifier":"deny-check","description":"Denies the check command without any pre-configured scope.","commands":{"allow":[],"deny":["check"]}},"deny-download":{"identifier":"deny-download","description":"Denies the download command without any pre-configured scope.","commands":{"allow":[],"deny":["download"]}},"deny-download-and-install":{"identifier":"deny-download-and-install","description":"Denies the download_and_install command without any pre-configured scope.","commands":{"allow":[],"deny":["download_and_install"]}},"deny-install":{"identifier":"deny-install","description":"Denies the install command without any pre-configured scope.","commands":{"allow":[],"deny":["install"]}}},"permission_sets":{},"global_scope_schema":null}}
\ No newline at end of file
+{"autostart":{"default_permission":{"identifier":"default","description":"This permission set configures if your\napplication can enable or disable auto\nstarting the application on boot.\n\n#### Granted Permissions\n\nIt allows all to check, enable and\ndisable the automatic start on boot.\n\n","permissions":["allow-enable","allow-disable","allow-is-enabled"]},"permissions":{"allow-disable":{"identifier":"allow-disable","description":"Enables the disable command without any pre-configured scope.","commands":{"allow":["disable"],"deny":[]}},"allow-enable":{"identifier":"allow-enable","description":"Enables the enable command without any pre-configured scope.","commands":{"allow":["enable"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"deny-disable":{"identifier":"deny-disable","description":"Denies the disable command without any pre-configured scope.","commands":{"allow":[],"deny":["disable"]}},"deny-enable":{"identifier":"deny-enable","description":"Denies the enable command without any pre-configured scope.","commands":{"allow":[],"deny":["enable"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}}},"permission_sets":{},"global_scope_schema":null},"cli":{"default_permission":{"identifier":"default","description":"Allows reading the CLI matches","permissions":["allow-cli-matches"]},"permissions":{"allow-cli-matches":{"identifier":"allow-cli-matches","description":"Enables the cli_matches command without any pre-configured scope.","commands":{"allow":["cli_matches"],"deny":[]}},"deny-cli-matches":{"identifier":"deny-cli-matches","description":"Denies the cli_matches command without any pre-configured scope.","commands":{"allow":[],"deny":["cli_matches"]}}},"permission_sets":{},"global_scope_schema":null},"core":{"default_permission":{"identifier":"default","description":"Default core plugins set which includes:\n- 'core:path:default'\n- 'core:event:default'\n- 'core:window:default'\n- 'core:webview:default'\n- 'core:app:default'\n- 'core:image:default'\n- 'core:resources:default'\n- 'core:menu:default'\n- 'core:tray:default'\n","permissions":["core:path:default","core:event:default","core:window:default","core:webview:default","core:app:default","core:image:default","core:resources:default","core:menu:default","core:tray:default"]},"permissions":{},"permission_sets":{},"global_scope_schema":null},"core:app":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-version","allow-name","allow-tauri-version"]},"permissions":{"allow-app-hide":{"identifier":"allow-app-hide","description":"Enables the app_hide command without any pre-configured scope.","commands":{"allow":["app_hide"],"deny":[]}},"allow-app-show":{"identifier":"allow-app-show","description":"Enables the app_show command without any pre-configured scope.","commands":{"allow":["app_show"],"deny":[]}},"allow-default-window-icon":{"identifier":"allow-default-window-icon","description":"Enables the default_window_icon command without any pre-configured scope.","commands":{"allow":["default_window_icon"],"deny":[]}},"allow-name":{"identifier":"allow-name","description":"Enables the name command without any pre-configured scope.","commands":{"allow":["name"],"deny":[]}},"allow-set-app-theme":{"identifier":"allow-set-app-theme","description":"Enables the set_app_theme command without any pre-configured scope.","commands":{"allow":["set_app_theme"],"deny":[]}},"allow-tauri-version":{"identifier":"allow-tauri-version","description":"Enables the tauri_version command without any pre-configured scope.","commands":{"allow":["tauri_version"],"deny":[]}},"allow-version":{"identifier":"allow-version","description":"Enables the version command without any pre-configured scope.","commands":{"allow":["version"],"deny":[]}},"deny-app-hide":{"identifier":"deny-app-hide","description":"Denies the app_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["app_hide"]}},"deny-app-show":{"identifier":"deny-app-show","description":"Denies the app_show command without any pre-configured scope.","commands":{"allow":[],"deny":["app_show"]}},"deny-default-window-icon":{"identifier":"deny-default-window-icon","description":"Denies the default_window_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["default_window_icon"]}},"deny-name":{"identifier":"deny-name","description":"Denies the name command without any pre-configured scope.","commands":{"allow":[],"deny":["name"]}},"deny-set-app-theme":{"identifier":"deny-set-app-theme","description":"Denies the set_app_theme command without any pre-configured scope.","commands":{"allow":[],"deny":["set_app_theme"]}},"deny-tauri-version":{"identifier":"deny-tauri-version","description":"Denies the tauri_version command without any pre-configured scope.","commands":{"allow":[],"deny":["tauri_version"]}},"deny-version":{"identifier":"deny-version","description":"Denies the version command without any pre-configured scope.","commands":{"allow":[],"deny":["version"]}}},"permission_sets":{},"global_scope_schema":null},"core:event":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-listen","allow-unlisten","allow-emit","allow-emit-to"]},"permissions":{"allow-emit":{"identifier":"allow-emit","description":"Enables the emit command without any pre-configured scope.","commands":{"allow":["emit"],"deny":[]}},"allow-emit-to":{"identifier":"allow-emit-to","description":"Enables the emit_to command without any pre-configured scope.","commands":{"allow":["emit_to"],"deny":[]}},"allow-listen":{"identifier":"allow-listen","description":"Enables the listen command without any pre-configured scope.","commands":{"allow":["listen"],"deny":[]}},"allow-unlisten":{"identifier":"allow-unlisten","description":"Enables the unlisten command without any pre-configured scope.","commands":{"allow":["unlisten"],"deny":[]}},"deny-emit":{"identifier":"deny-emit","description":"Denies the emit command without any pre-configured scope.","commands":{"allow":[],"deny":["emit"]}},"deny-emit-to":{"identifier":"deny-emit-to","description":"Denies the emit_to command without any pre-configured scope.","commands":{"allow":[],"deny":["emit_to"]}},"deny-listen":{"identifier":"deny-listen","description":"Denies the listen command without any pre-configured scope.","commands":{"allow":[],"deny":["listen"]}},"deny-unlisten":{"identifier":"deny-unlisten","description":"Denies the unlisten command without any pre-configured scope.","commands":{"allow":[],"deny":["unlisten"]}}},"permission_sets":{},"global_scope_schema":null},"core:image":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-new","allow-from-bytes","allow-from-path","allow-rgba","allow-size"]},"permissions":{"allow-from-bytes":{"identifier":"allow-from-bytes","description":"Enables the from_bytes command without any pre-configured scope.","commands":{"allow":["from_bytes"],"deny":[]}},"allow-from-path":{"identifier":"allow-from-path","description":"Enables the from_path command without any pre-configured scope.","commands":{"allow":["from_path"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-rgba":{"identifier":"allow-rgba","description":"Enables the rgba command without any pre-configured scope.","commands":{"allow":["rgba"],"deny":[]}},"allow-size":{"identifier":"allow-size","description":"Enables the size command without any pre-configured scope.","commands":{"allow":["size"],"deny":[]}},"deny-from-bytes":{"identifier":"deny-from-bytes","description":"Denies the from_bytes command without any pre-configured scope.","commands":{"allow":[],"deny":["from_bytes"]}},"deny-from-path":{"identifier":"deny-from-path","description":"Denies the from_path command without any pre-configured scope.","commands":{"allow":[],"deny":["from_path"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-rgba":{"identifier":"deny-rgba","description":"Denies the rgba command without any pre-configured scope.","commands":{"allow":[],"deny":["rgba"]}},"deny-size":{"identifier":"deny-size","description":"Denies the size command without any pre-configured scope.","commands":{"allow":[],"deny":["size"]}}},"permission_sets":{},"global_scope_schema":null},"core:menu":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-new","allow-append","allow-prepend","allow-insert","allow-remove","allow-remove-at","allow-items","allow-get","allow-popup","allow-create-default","allow-set-as-app-menu","allow-set-as-window-menu","allow-text","allow-set-text","allow-is-enabled","allow-set-enabled","allow-set-accelerator","allow-set-as-windows-menu-for-nsapp","allow-set-as-help-menu-for-nsapp","allow-is-checked","allow-set-checked","allow-set-icon"]},"permissions":{"allow-append":{"identifier":"allow-append","description":"Enables the append command without any pre-configured scope.","commands":{"allow":["append"],"deny":[]}},"allow-create-default":{"identifier":"allow-create-default","description":"Enables the create_default command without any pre-configured scope.","commands":{"allow":["create_default"],"deny":[]}},"allow-get":{"identifier":"allow-get","description":"Enables the get command without any pre-configured scope.","commands":{"allow":["get"],"deny":[]}},"allow-insert":{"identifier":"allow-insert","description":"Enables the insert command without any pre-configured scope.","commands":{"allow":["insert"],"deny":[]}},"allow-is-checked":{"identifier":"allow-is-checked","description":"Enables the is_checked command without any pre-configured scope.","commands":{"allow":["is_checked"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-items":{"identifier":"allow-items","description":"Enables the items command without any pre-configured scope.","commands":{"allow":["items"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-popup":{"identifier":"allow-popup","description":"Enables the popup command without any pre-configured scope.","commands":{"allow":["popup"],"deny":[]}},"allow-prepend":{"identifier":"allow-prepend","description":"Enables the prepend command without any pre-configured scope.","commands":{"allow":["prepend"],"deny":[]}},"allow-remove":{"identifier":"allow-remove","description":"Enables the remove command without any pre-configured scope.","commands":{"allow":["remove"],"deny":[]}},"allow-remove-at":{"identifier":"allow-remove-at","description":"Enables the remove_at command without any pre-configured scope.","commands":{"allow":["remove_at"],"deny":[]}},"allow-set-accelerator":{"identifier":"allow-set-accelerator","description":"Enables the set_accelerator command without any pre-configured scope.","commands":{"allow":["set_accelerator"],"deny":[]}},"allow-set-as-app-menu":{"identifier":"allow-set-as-app-menu","description":"Enables the set_as_app_menu command without any pre-configured scope.","commands":{"allow":["set_as_app_menu"],"deny":[]}},"allow-set-as-help-menu-for-nsapp":{"identifier":"allow-set-as-help-menu-for-nsapp","description":"Enables the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_help_menu_for_nsapp"],"deny":[]}},"allow-set-as-window-menu":{"identifier":"allow-set-as-window-menu","description":"Enables the set_as_window_menu command without any pre-configured scope.","commands":{"allow":["set_as_window_menu"],"deny":[]}},"allow-set-as-windows-menu-for-nsapp":{"identifier":"allow-set-as-windows-menu-for-nsapp","description":"Enables the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_windows_menu_for_nsapp"],"deny":[]}},"allow-set-checked":{"identifier":"allow-set-checked","description":"Enables the set_checked command without any pre-configured scope.","commands":{"allow":["set_checked"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-text":{"identifier":"allow-set-text","description":"Enables the set_text command without any pre-configured scope.","commands":{"allow":["set_text"],"deny":[]}},"allow-text":{"identifier":"allow-text","description":"Enables the text command without any pre-configured scope.","commands":{"allow":["text"],"deny":[]}},"deny-append":{"identifier":"deny-append","description":"Denies the append command without any pre-configured scope.","commands":{"allow":[],"deny":["append"]}},"deny-create-default":{"identifier":"deny-create-default","description":"Denies the create_default command without any pre-configured scope.","commands":{"allow":[],"deny":["create_default"]}},"deny-get":{"identifier":"deny-get","description":"Denies the get command without any pre-configured scope.","commands":{"allow":[],"deny":["get"]}},"deny-insert":{"identifier":"deny-insert","description":"Denies the insert command without any pre-configured scope.","commands":{"allow":[],"deny":["insert"]}},"deny-is-checked":{"identifier":"deny-is-checked","description":"Denies the is_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["is_checked"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-items":{"identifier":"deny-items","description":"Denies the items command without any pre-configured scope.","commands":{"allow":[],"deny":["items"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-popup":{"identifier":"deny-popup","description":"Denies the popup command without any pre-configured scope.","commands":{"allow":[],"deny":["popup"]}},"deny-prepend":{"identifier":"deny-prepend","description":"Denies the prepend command without any pre-configured scope.","commands":{"allow":[],"deny":["prepend"]}},"deny-remove":{"identifier":"deny-remove","description":"Denies the remove command without any pre-configured scope.","commands":{"allow":[],"deny":["remove"]}},"deny-remove-at":{"identifier":"deny-remove-at","description":"Denies the remove_at command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_at"]}},"deny-set-accelerator":{"identifier":"deny-set-accelerator","description":"Denies the set_accelerator command without any pre-configured scope.","commands":{"allow":[],"deny":["set_accelerator"]}},"deny-set-as-app-menu":{"identifier":"deny-set-as-app-menu","description":"Denies the set_as_app_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_app_menu"]}},"deny-set-as-help-menu-for-nsapp":{"identifier":"deny-set-as-help-menu-for-nsapp","description":"Denies the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_help_menu_for_nsapp"]}},"deny-set-as-window-menu":{"identifier":"deny-set-as-window-menu","description":"Denies the set_as_window_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_window_menu"]}},"deny-set-as-windows-menu-for-nsapp":{"identifier":"deny-set-as-windows-menu-for-nsapp","description":"Denies the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_windows_menu_for_nsapp"]}},"deny-set-checked":{"identifier":"deny-set-checked","description":"Denies the set_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["set_checked"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-text":{"identifier":"deny-set-text","description":"Denies the set_text command without any pre-configured scope.","commands":{"allow":[],"deny":["set_text"]}},"deny-text":{"identifier":"deny-text","description":"Denies the text command without any pre-configured scope.","commands":{"allow":[],"deny":["text"]}}},"permission_sets":{},"global_scope_schema":null},"core:path":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-resolve-directory","allow-resolve","allow-normalize","allow-join","allow-dirname","allow-extname","allow-basename","allow-is-absolute"]},"permissions":{"allow-basename":{"identifier":"allow-basename","description":"Enables the basename command without any pre-configured scope.","commands":{"allow":["basename"],"deny":[]}},"allow-dirname":{"identifier":"allow-dirname","description":"Enables the dirname command without any pre-configured scope.","commands":{"allow":["dirname"],"deny":[]}},"allow-extname":{"identifier":"allow-extname","description":"Enables the extname command without any pre-configured scope.","commands":{"allow":["extname"],"deny":[]}},"allow-is-absolute":{"identifier":"allow-is-absolute","description":"Enables the is_absolute command without any pre-configured scope.","commands":{"allow":["is_absolute"],"deny":[]}},"allow-join":{"identifier":"allow-join","description":"Enables the join command without any pre-configured scope.","commands":{"allow":["join"],"deny":[]}},"allow-normalize":{"identifier":"allow-normalize","description":"Enables the normalize command without any pre-configured scope.","commands":{"allow":["normalize"],"deny":[]}},"allow-resolve":{"identifier":"allow-resolve","description":"Enables the resolve command without any pre-configured scope.","commands":{"allow":["resolve"],"deny":[]}},"allow-resolve-directory":{"identifier":"allow-resolve-directory","description":"Enables the resolve_directory command without any pre-configured scope.","commands":{"allow":["resolve_directory"],"deny":[]}},"deny-basename":{"identifier":"deny-basename","description":"Denies the basename command without any pre-configured scope.","commands":{"allow":[],"deny":["basename"]}},"deny-dirname":{"identifier":"deny-dirname","description":"Denies the dirname command without any pre-configured scope.","commands":{"allow":[],"deny":["dirname"]}},"deny-extname":{"identifier":"deny-extname","description":"Denies the extname command without any pre-configured scope.","commands":{"allow":[],"deny":["extname"]}},"deny-is-absolute":{"identifier":"deny-is-absolute","description":"Denies the is_absolute command without any pre-configured scope.","commands":{"allow":[],"deny":["is_absolute"]}},"deny-join":{"identifier":"deny-join","description":"Denies the join command without any pre-configured scope.","commands":{"allow":[],"deny":["join"]}},"deny-normalize":{"identifier":"deny-normalize","description":"Denies the normalize command without any pre-configured scope.","commands":{"allow":[],"deny":["normalize"]}},"deny-resolve":{"identifier":"deny-resolve","description":"Denies the resolve command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve"]}},"deny-resolve-directory":{"identifier":"deny-resolve-directory","description":"Denies the resolve_directory command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve_directory"]}}},"permission_sets":{},"global_scope_schema":null},"core:resources":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-close"]},"permissions":{"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}}},"permission_sets":{},"global_scope_schema":null},"core:tray":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-new","allow-get-by-id","allow-remove-by-id","allow-set-icon","allow-set-menu","allow-set-tooltip","allow-set-title","allow-set-visible","allow-set-temp-dir-path","allow-set-icon-as-template","allow-set-show-menu-on-left-click"]},"permissions":{"allow-get-by-id":{"identifier":"allow-get-by-id","description":"Enables the get_by_id command without any pre-configured scope.","commands":{"allow":["get_by_id"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-remove-by-id":{"identifier":"allow-remove-by-id","description":"Enables the remove_by_id command without any pre-configured scope.","commands":{"allow":["remove_by_id"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-icon-as-template":{"identifier":"allow-set-icon-as-template","description":"Enables the set_icon_as_template command without any pre-configured scope.","commands":{"allow":["set_icon_as_template"],"deny":[]}},"allow-set-menu":{"identifier":"allow-set-menu","description":"Enables the set_menu command without any pre-configured scope.","commands":{"allow":["set_menu"],"deny":[]}},"allow-set-show-menu-on-left-click":{"identifier":"allow-set-show-menu-on-left-click","description":"Enables the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":["set_show_menu_on_left_click"],"deny":[]}},"allow-set-temp-dir-path":{"identifier":"allow-set-temp-dir-path","description":"Enables the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":["set_temp_dir_path"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-tooltip":{"identifier":"allow-set-tooltip","description":"Enables the set_tooltip command without any pre-configured scope.","commands":{"allow":["set_tooltip"],"deny":[]}},"allow-set-visible":{"identifier":"allow-set-visible","description":"Enables the set_visible command without any pre-configured scope.","commands":{"allow":["set_visible"],"deny":[]}},"deny-get-by-id":{"identifier":"deny-get-by-id","description":"Denies the get_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["get_by_id"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-remove-by-id":{"identifier":"deny-remove-by-id","description":"Denies the remove_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_by_id"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-icon-as-template":{"identifier":"deny-set-icon-as-template","description":"Denies the set_icon_as_template command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon_as_template"]}},"deny-set-menu":{"identifier":"deny-set-menu","description":"Denies the set_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_menu"]}},"deny-set-show-menu-on-left-click":{"identifier":"deny-set-show-menu-on-left-click","description":"Denies the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":[],"deny":["set_show_menu_on_left_click"]}},"deny-set-temp-dir-path":{"identifier":"deny-set-temp-dir-path","description":"Denies the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":[],"deny":["set_temp_dir_path"]}},"deny-set-title":{"identifier":"deny-set-title","description":"Denies the set_title command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title"]}},"deny-set-tooltip":{"identifier":"deny-set-tooltip","description":"Denies the set_tooltip command without any pre-configured scope.","commands":{"allow":[],"deny":["set_tooltip"]}},"deny-set-visible":{"identifier":"deny-set-visible","description":"Denies the set_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_visible"]}}},"permission_sets":{},"global_scope_schema":null},"core:webview":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-webviews","allow-webview-position","allow-webview-size","allow-internal-toggle-devtools"]},"permissions":{"allow-clear-all-browsing-data":{"identifier":"allow-clear-all-browsing-data","description":"Enables the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":["clear_all_browsing_data"],"deny":[]}},"allow-create-webview":{"identifier":"allow-create-webview","description":"Enables the create_webview command without any pre-configured scope.","commands":{"allow":["create_webview"],"deny":[]}},"allow-create-webview-window":{"identifier":"allow-create-webview-window","description":"Enables the create_webview_window command without any pre-configured scope.","commands":{"allow":["create_webview_window"],"deny":[]}},"allow-get-all-webviews":{"identifier":"allow-get-all-webviews","description":"Enables the get_all_webviews command without any pre-configured scope.","commands":{"allow":["get_all_webviews"],"deny":[]}},"allow-internal-toggle-devtools":{"identifier":"allow-internal-toggle-devtools","description":"Enables the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":["internal_toggle_devtools"],"deny":[]}},"allow-print":{"identifier":"allow-print","description":"Enables the print command without any pre-configured scope.","commands":{"allow":["print"],"deny":[]}},"allow-reparent":{"identifier":"allow-reparent","description":"Enables the reparent command without any pre-configured scope.","commands":{"allow":["reparent"],"deny":[]}},"allow-set-webview-focus":{"identifier":"allow-set-webview-focus","description":"Enables the set_webview_focus command without any pre-configured scope.","commands":{"allow":["set_webview_focus"],"deny":[]}},"allow-set-webview-position":{"identifier":"allow-set-webview-position","description":"Enables the set_webview_position command without any pre-configured scope.","commands":{"allow":["set_webview_position"],"deny":[]}},"allow-set-webview-size":{"identifier":"allow-set-webview-size","description":"Enables the set_webview_size command without any pre-configured scope.","commands":{"allow":["set_webview_size"],"deny":[]}},"allow-set-webview-zoom":{"identifier":"allow-set-webview-zoom","description":"Enables the set_webview_zoom command without any pre-configured scope.","commands":{"allow":["set_webview_zoom"],"deny":[]}},"allow-webview-close":{"identifier":"allow-webview-close","description":"Enables the webview_close command without any pre-configured scope.","commands":{"allow":["webview_close"],"deny":[]}},"allow-webview-hide":{"identifier":"allow-webview-hide","description":"Enables the webview_hide command without any pre-configured scope.","commands":{"allow":["webview_hide"],"deny":[]}},"allow-webview-position":{"identifier":"allow-webview-position","description":"Enables the webview_position command without any pre-configured scope.","commands":{"allow":["webview_position"],"deny":[]}},"allow-webview-show":{"identifier":"allow-webview-show","description":"Enables the webview_show command without any pre-configured scope.","commands":{"allow":["webview_show"],"deny":[]}},"allow-webview-size":{"identifier":"allow-webview-size","description":"Enables the webview_size command without any pre-configured scope.","commands":{"allow":["webview_size"],"deny":[]}},"deny-clear-all-browsing-data":{"identifier":"deny-clear-all-browsing-data","description":"Denies the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":[],"deny":["clear_all_browsing_data"]}},"deny-create-webview":{"identifier":"deny-create-webview","description":"Denies the create_webview command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview"]}},"deny-create-webview-window":{"identifier":"deny-create-webview-window","description":"Denies the create_webview_window command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview_window"]}},"deny-get-all-webviews":{"identifier":"deny-get-all-webviews","description":"Denies the get_all_webviews command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_webviews"]}},"deny-internal-toggle-devtools":{"identifier":"deny-internal-toggle-devtools","description":"Denies the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_devtools"]}},"deny-print":{"identifier":"deny-print","description":"Denies the print command without any pre-configured scope.","commands":{"allow":[],"deny":["print"]}},"deny-reparent":{"identifier":"deny-reparent","description":"Denies the reparent command without any pre-configured scope.","commands":{"allow":[],"deny":["reparent"]}},"deny-set-webview-focus":{"identifier":"deny-set-webview-focus","description":"Denies the set_webview_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_focus"]}},"deny-set-webview-position":{"identifier":"deny-set-webview-position","description":"Denies the set_webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_position"]}},"deny-set-webview-size":{"identifier":"deny-set-webview-size","description":"Denies the set_webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_size"]}},"deny-set-webview-zoom":{"identifier":"deny-set-webview-zoom","description":"Denies the set_webview_zoom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_zoom"]}},"deny-webview-close":{"identifier":"deny-webview-close","description":"Denies the webview_close command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_close"]}},"deny-webview-hide":{"identifier":"deny-webview-hide","description":"Denies the webview_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_hide"]}},"deny-webview-position":{"identifier":"deny-webview-position","description":"Denies the webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_position"]}},"deny-webview-show":{"identifier":"deny-webview-show","description":"Denies the webview_show command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_show"]}},"deny-webview-size":{"identifier":"deny-webview-size","description":"Denies the webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_size"]}}},"permission_sets":{},"global_scope_schema":null},"core:window":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-windows","allow-scale-factor","allow-inner-position","allow-outer-position","allow-inner-size","allow-outer-size","allow-is-fullscreen","allow-is-minimized","allow-is-maximized","allow-is-focused","allow-is-decorated","allow-is-resizable","allow-is-maximizable","allow-is-minimizable","allow-is-closable","allow-is-visible","allow-is-enabled","allow-title","allow-current-monitor","allow-primary-monitor","allow-monitor-from-point","allow-available-monitors","allow-cursor-position","allow-theme","allow-internal-toggle-maximize"]},"permissions":{"allow-available-monitors":{"identifier":"allow-available-monitors","description":"Enables the available_monitors command without any pre-configured scope.","commands":{"allow":["available_monitors"],"deny":[]}},"allow-center":{"identifier":"allow-center","description":"Enables the center command without any pre-configured scope.","commands":{"allow":["center"],"deny":[]}},"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"allow-create":{"identifier":"allow-create","description":"Enables the create command without any pre-configured scope.","commands":{"allow":["create"],"deny":[]}},"allow-current-monitor":{"identifier":"allow-current-monitor","description":"Enables the current_monitor command without any pre-configured scope.","commands":{"allow":["current_monitor"],"deny":[]}},"allow-cursor-position":{"identifier":"allow-cursor-position","description":"Enables the cursor_position command without any pre-configured scope.","commands":{"allow":["cursor_position"],"deny":[]}},"allow-destroy":{"identifier":"allow-destroy","description":"Enables the destroy command without any pre-configured scope.","commands":{"allow":["destroy"],"deny":[]}},"allow-get-all-windows":{"identifier":"allow-get-all-windows","description":"Enables the get_all_windows command without any pre-configured scope.","commands":{"allow":["get_all_windows"],"deny":[]}},"allow-hide":{"identifier":"allow-hide","description":"Enables the hide command without any pre-configured scope.","commands":{"allow":["hide"],"deny":[]}},"allow-inner-position":{"identifier":"allow-inner-position","description":"Enables the inner_position command without any pre-configured scope.","commands":{"allow":["inner_position"],"deny":[]}},"allow-inner-size":{"identifier":"allow-inner-size","description":"Enables the inner_size command without any pre-configured scope.","commands":{"allow":["inner_size"],"deny":[]}},"allow-internal-toggle-maximize":{"identifier":"allow-internal-toggle-maximize","description":"Enables the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":["internal_toggle_maximize"],"deny":[]}},"allow-is-closable":{"identifier":"allow-is-closable","description":"Enables the is_closable command without any pre-configured scope.","commands":{"allow":["is_closable"],"deny":[]}},"allow-is-decorated":{"identifier":"allow-is-decorated","description":"Enables the is_decorated command without any pre-configured scope.","commands":{"allow":["is_decorated"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-is-focused":{"identifier":"allow-is-focused","description":"Enables the is_focused command without any pre-configured scope.","commands":{"allow":["is_focused"],"deny":[]}},"allow-is-fullscreen":{"identifier":"allow-is-fullscreen","description":"Enables the is_fullscreen command without any pre-configured scope.","commands":{"allow":["is_fullscreen"],"deny":[]}},"allow-is-maximizable":{"identifier":"allow-is-maximizable","description":"Enables the is_maximizable command without any pre-configured scope.","commands":{"allow":["is_maximizable"],"deny":[]}},"allow-is-maximized":{"identifier":"allow-is-maximized","description":"Enables the is_maximized command without any pre-configured scope.","commands":{"allow":["is_maximized"],"deny":[]}},"allow-is-minimizable":{"identifier":"allow-is-minimizable","description":"Enables the is_minimizable command without any pre-configured scope.","commands":{"allow":["is_minimizable"],"deny":[]}},"allow-is-minimized":{"identifier":"allow-is-minimized","description":"Enables the is_minimized command without any pre-configured scope.","commands":{"allow":["is_minimized"],"deny":[]}},"allow-is-resizable":{"identifier":"allow-is-resizable","description":"Enables the is_resizable command without any pre-configured scope.","commands":{"allow":["is_resizable"],"deny":[]}},"allow-is-visible":{"identifier":"allow-is-visible","description":"Enables the is_visible command without any pre-configured scope.","commands":{"allow":["is_visible"],"deny":[]}},"allow-maximize":{"identifier":"allow-maximize","description":"Enables the maximize command without any pre-configured scope.","commands":{"allow":["maximize"],"deny":[]}},"allow-minimize":{"identifier":"allow-minimize","description":"Enables the minimize command without any pre-configured scope.","commands":{"allow":["minimize"],"deny":[]}},"allow-monitor-from-point":{"identifier":"allow-monitor-from-point","description":"Enables the monitor_from_point command without any pre-configured scope.","commands":{"allow":["monitor_from_point"],"deny":[]}},"allow-outer-position":{"identifier":"allow-outer-position","description":"Enables the outer_position command without any pre-configured scope.","commands":{"allow":["outer_position"],"deny":[]}},"allow-outer-size":{"identifier":"allow-outer-size","description":"Enables the outer_size command without any pre-configured scope.","commands":{"allow":["outer_size"],"deny":[]}},"allow-primary-monitor":{"identifier":"allow-primary-monitor","description":"Enables the primary_monitor command without any pre-configured scope.","commands":{"allow":["primary_monitor"],"deny":[]}},"allow-request-user-attention":{"identifier":"allow-request-user-attention","description":"Enables the request_user_attention command without any pre-configured scope.","commands":{"allow":["request_user_attention"],"deny":[]}},"allow-scale-factor":{"identifier":"allow-scale-factor","description":"Enables the scale_factor command without any pre-configured scope.","commands":{"allow":["scale_factor"],"deny":[]}},"allow-set-always-on-bottom":{"identifier":"allow-set-always-on-bottom","description":"Enables the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":["set_always_on_bottom"],"deny":[]}},"allow-set-always-on-top":{"identifier":"allow-set-always-on-top","description":"Enables the set_always_on_top command without any pre-configured scope.","commands":{"allow":["set_always_on_top"],"deny":[]}},"allow-set-closable":{"identifier":"allow-set-closable","description":"Enables the set_closable command without any pre-configured scope.","commands":{"allow":["set_closable"],"deny":[]}},"allow-set-content-protected":{"identifier":"allow-set-content-protected","description":"Enables the set_content_protected command without any pre-configured scope.","commands":{"allow":["set_content_protected"],"deny":[]}},"allow-set-cursor-grab":{"identifier":"allow-set-cursor-grab","description":"Enables the set_cursor_grab command without any pre-configured scope.","commands":{"allow":["set_cursor_grab"],"deny":[]}},"allow-set-cursor-icon":{"identifier":"allow-set-cursor-icon","description":"Enables the set_cursor_icon command without any pre-configured scope.","commands":{"allow":["set_cursor_icon"],"deny":[]}},"allow-set-cursor-position":{"identifier":"allow-set-cursor-position","description":"Enables the set_cursor_position command without any pre-configured scope.","commands":{"allow":["set_cursor_position"],"deny":[]}},"allow-set-cursor-visible":{"identifier":"allow-set-cursor-visible","description":"Enables the set_cursor_visible command without any pre-configured scope.","commands":{"allow":["set_cursor_visible"],"deny":[]}},"allow-set-decorations":{"identifier":"allow-set-decorations","description":"Enables the set_decorations command without any pre-configured scope.","commands":{"allow":["set_decorations"],"deny":[]}},"allow-set-effects":{"identifier":"allow-set-effects","description":"Enables the set_effects command without any pre-configured scope.","commands":{"allow":["set_effects"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-focus":{"identifier":"allow-set-focus","description":"Enables the set_focus command without any pre-configured scope.","commands":{"allow":["set_focus"],"deny":[]}},"allow-set-fullscreen":{"identifier":"allow-set-fullscreen","description":"Enables the set_fullscreen command without any pre-configured scope.","commands":{"allow":["set_fullscreen"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-ignore-cursor-events":{"identifier":"allow-set-ignore-cursor-events","description":"Enables the set_ignore_cursor_events command without any pre-configured scope.","commands":{"allow":["set_ignore_cursor_events"],"deny":[]}},"allow-set-max-size":{"identifier":"allow-set-max-size","description":"Enables the set_max_size command without any pre-configured scope.","commands":{"allow":["set_max_size"],"deny":[]}},"allow-set-maximizable":{"identifier":"allow-set-maximizable","description":"Enables the set_maximizable command without any pre-configured scope.","commands":{"allow":["set_maximizable"],"deny":[]}},"allow-set-min-size":{"identifier":"allow-set-min-size","description":"Enables the set_min_size command without any pre-configured scope.","commands":{"allow":["set_min_size"],"deny":[]}},"allow-set-minimizable":{"identifier":"allow-set-minimizable","description":"Enables the set_minimizable command without any pre-configured scope.","commands":{"allow":["set_minimizable"],"deny":[]}},"allow-set-position":{"identifier":"allow-set-position","description":"Enables the set_position command without any pre-configured scope.","commands":{"allow":["set_position"],"deny":[]}},"allow-set-progress-bar":{"identifier":"allow-set-progress-bar","description":"Enables the set_progress_bar command without any pre-configured scope.","commands":{"allow":["set_progress_bar"],"deny":[]}},"allow-set-resizable":{"identifier":"allow-set-resizable","description":"Enables the set_resizable command without any pre-configured scope.","commands":{"allow":["set_resizable"],"deny":[]}},"allow-set-shadow":{"identifier":"allow-set-shadow","description":"Enables the set_shadow command without any pre-configured scope.","commands":{"allow":["set_shadow"],"deny":[]}},"allow-set-size":{"identifier":"allow-set-size","description":"Enables the set_size command without any pre-configured scope.","commands":{"allow":["set_size"],"deny":[]}},"allow-set-size-constraints":{"identifier":"allow-set-size-constraints","description":"Enables the set_size_constraints command without any pre-configured scope.","commands":{"allow":["set_size_constraints"],"deny":[]}},"allow-set-skip-taskbar":{"identifier":"allow-set-skip-taskbar","description":"Enables the set_skip_taskbar command without any pre-configured scope.","commands":{"allow":["set_skip_taskbar"],"deny":[]}},"allow-set-theme":{"identifier":"allow-set-theme","description":"Enables the set_theme command without any pre-configured scope.","commands":{"allow":["set_theme"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-title-bar-style":{"identifier":"allow-set-title-bar-style","description":"Enables the set_title_bar_style command without any pre-configured scope.","commands":{"allow":["set_title_bar_style"],"deny":[]}},"allow-set-visible-on-all-workspaces":{"identifier":"allow-set-visible-on-all-workspaces","description":"Enables the set_visible_on_all_workspaces command without any pre-configured scope.","commands":{"allow":["set_visible_on_all_workspaces"],"deny":[]}},"allow-show":{"identifier":"allow-show","description":"Enables the show command without any pre-configured scope.","commands":{"allow":["show"],"deny":[]}},"allow-start-dragging":{"identifier":"allow-start-dragging","description":"Enables the start_dragging command without any pre-configured scope.","commands":{"allow":["start_dragging"],"deny":[]}},"allow-start-resize-dragging":{"identifier":"allow-start-resize-dragging","description":"Enables the start_resize_dragging command without any pre-configured scope.","commands":{"allow":["start_resize_dragging"],"deny":[]}},"allow-theme":{"identifier":"allow-theme","description":"Enables the theme command without any pre-configured scope.","commands":{"allow":["theme"],"deny":[]}},"allow-title":{"identifier":"allow-title","description":"Enables the title command without any pre-configured scope.","commands":{"allow":["title"],"deny":[]}},"allow-toggle-maximize":{"identifier":"allow-toggle-maximize","description":"Enables the toggle_maximize command without any pre-configured scope.","commands":{"allow":["toggle_maximize"],"deny":[]}},"allow-unmaximize":{"identifier":"allow-unmaximize","description":"Enables the unmaximize command without any pre-configured scope.","commands":{"allow":["unmaximize"],"deny":[]}},"allow-unminimize":{"identifier":"allow-unminimize","description":"Enables the unminimize command without any pre-configured scope.","commands":{"allow":["unminimize"],"deny":[]}},"deny-available-monitors":{"identifier":"deny-available-monitors","description":"Denies the available_monitors command without any pre-configured scope.","commands":{"allow":[],"deny":["available_monitors"]}},"deny-center":{"identifier":"deny-center","description":"Denies the center command without any pre-configured scope.","commands":{"allow":[],"deny":["center"]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}},"deny-create":{"identifier":"deny-create","description":"Denies the create command without any pre-configured scope.","commands":{"allow":[],"deny":["create"]}},"deny-current-monitor":{"identifier":"deny-current-monitor","description":"Denies the current_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["current_monitor"]}},"deny-cursor-position":{"identifier":"deny-cursor-position","description":"Denies the cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["cursor_position"]}},"deny-destroy":{"identifier":"deny-destroy","description":"Denies the destroy command without any pre-configured scope.","commands":{"allow":[],"deny":["destroy"]}},"deny-get-all-windows":{"identifier":"deny-get-all-windows","description":"Denies the get_all_windows command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_windows"]}},"deny-hide":{"identifier":"deny-hide","description":"Denies the hide command without any pre-configured scope.","commands":{"allow":[],"deny":["hide"]}},"deny-inner-position":{"identifier":"deny-inner-position","description":"Denies the inner_position command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_position"]}},"deny-inner-size":{"identifier":"deny-inner-size","description":"Denies the inner_size command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_size"]}},"deny-internal-toggle-maximize":{"identifier":"deny-internal-toggle-maximize","description":"Denies the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_maximize"]}},"deny-is-closable":{"identifier":"deny-is-closable","description":"Denies the is_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_closable"]}},"deny-is-decorated":{"identifier":"deny-is-decorated","description":"Denies the is_decorated command without any pre-configured scope.","commands":{"allow":[],"deny":["is_decorated"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-is-focused":{"identifier":"deny-is-focused","description":"Denies the is_focused command without any pre-configured scope.","commands":{"allow":[],"deny":["is_focused"]}},"deny-is-fullscreen":{"identifier":"deny-is-fullscreen","description":"Denies the is_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["is_fullscreen"]}},"deny-is-maximizable":{"identifier":"deny-is-maximizable","description":"Denies the is_maximizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximizable"]}},"deny-is-maximized":{"identifier":"deny-is-maximized","description":"Denies the is_maximized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximized"]}},"deny-is-minimizable":{"identifier":"deny-is-minimizable","description":"Denies the is_minimizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimizable"]}},"deny-is-minimized":{"identifier":"deny-is-minimized","description":"Denies the is_minimized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimized"]}},"deny-is-resizable":{"identifier":"deny-is-resizable","description":"Denies the is_resizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_resizable"]}},"deny-is-visible":{"identifier":"deny-is-visible","description":"Denies the is_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["is_visible"]}},"deny-maximize":{"identifier":"deny-maximize","description":"Denies the maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["maximize"]}},"deny-minimize":{"identifier":"deny-minimize","description":"Denies the minimize command without any pre-configured scope.","commands":{"allow":[],"deny":["minimize"]}},"deny-monitor-from-point":{"identifier":"deny-monitor-from-point","description":"Denies the monitor_from_point command without any pre-configured scope.","commands":{"allow":[],"deny":["monitor_from_point"]}},"deny-outer-position":{"identifier":"deny-outer-position","description":"Denies the outer_position command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_position"]}},"deny-outer-size":{"identifier":"deny-outer-size","description":"Denies the outer_size command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_size"]}},"deny-primary-monitor":{"identifier":"deny-primary-monitor","description":"Denies the primary_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["primary_monitor"]}},"deny-request-user-attention":{"identifier":"deny-request-user-attention","description":"Denies the request_user_attention command without any pre-configured scope.","commands":{"allow":[],"deny":["request_user_attention"]}},"deny-scale-factor":{"identifier":"deny-scale-factor","description":"Denies the scale_factor command without any pre-configured scope.","commands":{"allow":[],"deny":["scale_factor"]}},"deny-set-always-on-bottom":{"identifier":"deny-set-always-on-bottom","description":"Denies the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_bottom"]}},"deny-set-always-on-top":{"identifier":"deny-set-always-on-top","description":"Denies the set_always_on_top command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_top"]}},"deny-set-closable":{"identifier":"deny-set-closable","description":"Denies the set_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_closable"]}},"deny-set-content-protected":{"identifier":"deny-set-content-protected","description":"Denies the set_content_protected command without any pre-configured scope.","commands":{"allow":[],"deny":["set_content_protected"]}},"deny-set-cursor-grab":{"identifier":"deny-set-cursor-grab","description":"Denies the set_cursor_grab command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_grab"]}},"deny-set-cursor-icon":{"identifier":"deny-set-cursor-icon","description":"Denies the set_cursor_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_icon"]}},"deny-set-cursor-position":{"identifier":"deny-set-cursor-position","description":"Denies the set_cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_position"]}},"deny-set-cursor-visible":{"identifier":"deny-set-cursor-visible","description":"Denies the set_cursor_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_visible"]}},"deny-set-decorations":{"identifier":"deny-set-decorations","description":"Denies the set_decorations command without any pre-configured scope.","commands":{"allow":[],"deny":["set_decorations"]}},"deny-set-effects":{"identifier":"deny-set-effects","description":"Denies the set_effects command without any pre-configured scope.","commands":{"allow":[],"deny":["set_effects"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-focus":{"identifier":"deny-set-focus","description":"Denies the set_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_focus"]}},"deny-set-fullscreen":{"identifier":"deny-set-fullscreen","description":"Denies the set_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["set_fullscreen"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-ignore-cursor-events":{"identifier":"deny-set-ignore-cursor-events","description":"Denies the set_ignore_cursor_events command without any pre-configured scope.","commands":{"allow":[],"deny":["set_ignore_cursor_events"]}},"deny-set-max-size":{"identifier":"deny-set-max-size","description":"Denies the set_max_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_max_size"]}},"deny-set-maximizable":{"identifier":"deny-set-maximizable","description":"Denies the set_maximizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_maximizable"]}},"deny-set-min-size":{"identifier":"deny-set-min-size","description":"Denies the set_min_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_min_size"]}},"deny-set-minimizable":{"identifier":"deny-set-minimizable","description":"Denies the set_minimizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_minimizable"]}},"deny-set-position":{"identifier":"deny-set-position","description":"Denies the set_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_position"]}},"deny-set-progress-bar":{"identifier":"deny-set-progress-bar","description":"Denies the set_progress_bar command without any pre-configured scope.","commands":{"allow":[],"deny":["set_progress_bar"]}},"deny-set-resizable":{"identifier":"deny-set-resizable","description":"Denies the set_resizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_resizable"]}},"deny-set-shadow":{"identifier":"deny-set-shadow","description":"Denies the set_shadow command without any pre-configured scope.","commands":{"allow":[],"deny":["set_shadow"]}},"deny-set-size":{"identifier":"deny-set-size","description":"Denies the set_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_size"]}},"deny-set-size-constraints":{"identifier":"deny-set-size-constraints","description":"Denies the set_size_constraints command without any pre-configured scope.","commands":{"allow":[],"deny":["set_size_constraints"]}},"deny-set-skip-taskbar":{"identifier":"deny-set-skip-taskbar","description":"Denies the set_skip_taskbar command without any pre-configured scope.","commands":{"allow":[],"deny":["set_skip_taskbar"]}},"deny-set-theme":{"identifier":"deny-set-theme","description":"Denies the set_theme command without any pre-configured scope.","commands":{"allow":[],"deny":["set_theme"]}},"deny-set-title":{"identifier":"deny-set-title","description":"Denies the set_title command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title"]}},"deny-set-title-bar-style":{"identifier":"deny-set-title-bar-style","description":"Denies the set_title_bar_style command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title_bar_style"]}},"deny-set-visible-on-all-workspaces":{"identifier":"deny-set-visible-on-all-workspaces","description":"Denies the set_visible_on_all_workspaces command without any pre-configured scope.","commands":{"allow":[],"deny":["set_visible_on_all_workspaces"]}},"deny-show":{"identifier":"deny-show","description":"Denies the show command without any pre-configured scope.","commands":{"allow":[],"deny":["show"]}},"deny-start-dragging":{"identifier":"deny-start-dragging","description":"Denies the start_dragging command without any pre-configured scope.","commands":{"allow":[],"deny":["start_dragging"]}},"deny-start-resize-dragging":{"identifier":"deny-start-resize-dragging","description":"Denies the start_resize_dragging command without any pre-configured scope.","commands":{"allow":[],"deny":["start_resize_dragging"]}},"deny-theme":{"identifier":"deny-theme","description":"Denies the theme command without any pre-configured scope.","commands":{"allow":[],"deny":["theme"]}},"deny-title":{"identifier":"deny-title","description":"Denies the title command without any pre-configured scope.","commands":{"allow":[],"deny":["title"]}},"deny-toggle-maximize":{"identifier":"deny-toggle-maximize","description":"Denies the toggle_maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["toggle_maximize"]}},"deny-unmaximize":{"identifier":"deny-unmaximize","description":"Denies the unmaximize command without any pre-configured scope.","commands":{"allow":[],"deny":["unmaximize"]}},"deny-unminimize":{"identifier":"deny-unminimize","description":"Denies the unminimize command without any pre-configured scope.","commands":{"allow":[],"deny":["unminimize"]}}},"permission_sets":{},"global_scope_schema":null},"deep-link":{"default_permission":{"identifier":"default","description":"Allows reading the opened deep link via the get_current command","permissions":["allow-get-current"]},"permissions":{"allow-get-current":{"identifier":"allow-get-current","description":"Enables the get_current command without any pre-configured scope.","commands":{"allow":["get_current"],"deny":[]}},"allow-is-registered":{"identifier":"allow-is-registered","description":"Enables the is_registered command without any pre-configured scope.","commands":{"allow":["is_registered"],"deny":[]}},"allow-register":{"identifier":"allow-register","description":"Enables the register command without any pre-configured scope.","commands":{"allow":["register"],"deny":[]}},"allow-unregister":{"identifier":"allow-unregister","description":"Enables the unregister command without any pre-configured scope.","commands":{"allow":["unregister"],"deny":[]}},"deny-get-current":{"identifier":"deny-get-current","description":"Denies the get_current command without any pre-configured scope.","commands":{"allow":[],"deny":["get_current"]}},"deny-is-registered":{"identifier":"deny-is-registered","description":"Denies the is_registered command without any pre-configured scope.","commands":{"allow":[],"deny":["is_registered"]}},"deny-register":{"identifier":"deny-register","description":"Denies the register command without any pre-configured scope.","commands":{"allow":[],"deny":["register"]}},"deny-unregister":{"identifier":"deny-unregister","description":"Denies the unregister command without any pre-configured scope.","commands":{"allow":[],"deny":["unregister"]}}},"permission_sets":{},"global_scope_schema":null},"dialog":{"default_permission":{"identifier":"default","description":"This permission set configures the types of dialogs\navailable from the dialog plugin.\n\n#### Granted Permissions\n\nAll dialog types are enabled.\n\n\n","permissions":["allow-ask","allow-confirm","allow-message","allow-save","allow-open"]},"permissions":{"allow-ask":{"identifier":"allow-ask","description":"Enables the ask command without any pre-configured scope.","commands":{"allow":["ask"],"deny":[]}},"allow-confirm":{"identifier":"allow-confirm","description":"Enables the confirm command without any pre-configured scope.","commands":{"allow":["confirm"],"deny":[]}},"allow-message":{"identifier":"allow-message","description":"Enables the message command without any pre-configured scope.","commands":{"allow":["message"],"deny":[]}},"allow-open":{"identifier":"allow-open","description":"Enables the open command without any pre-configured scope.","commands":{"allow":["open"],"deny":[]}},"allow-save":{"identifier":"allow-save","description":"Enables the save command without any pre-configured scope.","commands":{"allow":["save"],"deny":[]}},"deny-ask":{"identifier":"deny-ask","description":"Denies the ask command without any pre-configured scope.","commands":{"allow":[],"deny":["ask"]}},"deny-confirm":{"identifier":"deny-confirm","description":"Denies the confirm command without any pre-configured scope.","commands":{"allow":[],"deny":["confirm"]}},"deny-message":{"identifier":"deny-message","description":"Denies the message command without any pre-configured scope.","commands":{"allow":[],"deny":["message"]}},"deny-open":{"identifier":"deny-open","description":"Denies the open command without any pre-configured scope.","commands":{"allow":[],"deny":["open"]}},"deny-save":{"identifier":"deny-save","description":"Denies the save command without any pre-configured scope.","commands":{"allow":[],"deny":["save"]}}},"permission_sets":{},"global_scope_schema":null},"fs":{"default_permission":{"identifier":"default","description":"This set of permissions describes the what kind of\nfile system access the `fs` plugin has enabled or denied by default.\n\n#### Granted Permissions\n\nThis default permission set enables read access to the\napplication specific directories (AppConfig, AppData, AppLocalData, AppCache,\nAppLog) and all files and sub directories created in it.\nThe location of these directories depends on the operating system,\nwhere the application is run.\n\nIn general these directories need to be manually created\nby the application at runtime, before accessing files or folders\nin it is possible.\n\nTherefore, it is also allowed to create all of these folders via\nthe `mkdir` command.\n\n#### Denied Permissions\n\nThis default permission set prevents access to critical components\nof the Tauri application by default.\nOn Windows the webview data folder access is denied.\n\n","permissions":["create-app-specific-dirs","read-app-specific-dirs-recursive","deny-default"]},"permissions":{"allow-copy-file":{"identifier":"allow-copy-file","description":"Enables the copy_file command without any pre-configured scope.","commands":{"allow":["copy_file"],"deny":[]}},"allow-create":{"identifier":"allow-create","description":"Enables the create command without any pre-configured scope.","commands":{"allow":["create"],"deny":[]}},"allow-exists":{"identifier":"allow-exists","description":"Enables the exists command without any pre-configured scope.","commands":{"allow":["exists"],"deny":[]}},"allow-fstat":{"identifier":"allow-fstat","description":"Enables the fstat command without any pre-configured scope.","commands":{"allow":["fstat"],"deny":[]}},"allow-ftruncate":{"identifier":"allow-ftruncate","description":"Enables the ftruncate command without any pre-configured scope.","commands":{"allow":["ftruncate"],"deny":[]}},"allow-lstat":{"identifier":"allow-lstat","description":"Enables the lstat command without any pre-configured scope.","commands":{"allow":["lstat"],"deny":[]}},"allow-mkdir":{"identifier":"allow-mkdir","description":"Enables the mkdir command without any pre-configured scope.","commands":{"allow":["mkdir"],"deny":[]}},"allow-open":{"identifier":"allow-open","description":"Enables the open command without any pre-configured scope.","commands":{"allow":["open"],"deny":[]}},"allow-read":{"identifier":"allow-read","description":"Enables the read command without any pre-configured scope.","commands":{"allow":["read"],"deny":[]}},"allow-read-dir":{"identifier":"allow-read-dir","description":"Enables the read_dir command without any pre-configured scope.","commands":{"allow":["read_dir"],"deny":[]}},"allow-read-file":{"identifier":"allow-read-file","description":"Enables the read_file command without any pre-configured scope.","commands":{"allow":["read_file"],"deny":[]}},"allow-read-text-file":{"identifier":"allow-read-text-file","description":"Enables the read_text_file command without any pre-configured scope.","commands":{"allow":["read_text_file"],"deny":[]}},"allow-read-text-file-lines":{"identifier":"allow-read-text-file-lines","description":"Enables the read_text_file_lines command without any pre-configured scope.","commands":{"allow":["read_text_file_lines"],"deny":[]}},"allow-read-text-file-lines-next":{"identifier":"allow-read-text-file-lines-next","description":"Enables the read_text_file_lines_next command without any pre-configured scope.","commands":{"allow":["read_text_file_lines_next"],"deny":[]}},"allow-remove":{"identifier":"allow-remove","description":"Enables the remove command without any pre-configured scope.","commands":{"allow":["remove"],"deny":[]}},"allow-rename":{"identifier":"allow-rename","description":"Enables the rename command without any pre-configured scope.","commands":{"allow":["rename"],"deny":[]}},"allow-seek":{"identifier":"allow-seek","description":"Enables the seek command without any pre-configured scope.","commands":{"allow":["seek"],"deny":[]}},"allow-stat":{"identifier":"allow-stat","description":"Enables the stat command without any pre-configured scope.","commands":{"allow":["stat"],"deny":[]}},"allow-truncate":{"identifier":"allow-truncate","description":"Enables the truncate command without any pre-configured scope.","commands":{"allow":["truncate"],"deny":[]}},"allow-unwatch":{"identifier":"allow-unwatch","description":"Enables the unwatch command without any pre-configured scope.","commands":{"allow":["unwatch"],"deny":[]}},"allow-watch":{"identifier":"allow-watch","description":"Enables the watch command without any pre-configured scope.","commands":{"allow":["watch"],"deny":[]}},"allow-write":{"identifier":"allow-write","description":"Enables the write command without any pre-configured scope.","commands":{"allow":["write"],"deny":[]}},"allow-write-file":{"identifier":"allow-write-file","description":"Enables the write_file command without any pre-configured scope.","commands":{"allow":["write_file"],"deny":[]}},"allow-write-text-file":{"identifier":"allow-write-text-file","description":"Enables the write_text_file command without any pre-configured scope.","commands":{"allow":["write_text_file"],"deny":[]}},"create-app-specific-dirs":{"identifier":"create-app-specific-dirs","description":"This permissions allows to create the application specific directories.\n","commands":{"allow":["mkdir","scope-app-index"],"deny":[]}},"deny-copy-file":{"identifier":"deny-copy-file","description":"Denies the copy_file command without any pre-configured scope.","commands":{"allow":[],"deny":["copy_file"]}},"deny-create":{"identifier":"deny-create","description":"Denies the create command without any pre-configured scope.","commands":{"allow":[],"deny":["create"]}},"deny-exists":{"identifier":"deny-exists","description":"Denies the exists command without any pre-configured scope.","commands":{"allow":[],"deny":["exists"]}},"deny-fstat":{"identifier":"deny-fstat","description":"Denies the fstat command without any pre-configured scope.","commands":{"allow":[],"deny":["fstat"]}},"deny-ftruncate":{"identifier":"deny-ftruncate","description":"Denies the ftruncate command without any pre-configured scope.","commands":{"allow":[],"deny":["ftruncate"]}},"deny-lstat":{"identifier":"deny-lstat","description":"Denies the lstat command without any pre-configured scope.","commands":{"allow":[],"deny":["lstat"]}},"deny-mkdir":{"identifier":"deny-mkdir","description":"Denies the mkdir command without any pre-configured scope.","commands":{"allow":[],"deny":["mkdir"]}},"deny-open":{"identifier":"deny-open","description":"Denies the open command without any pre-configured scope.","commands":{"allow":[],"deny":["open"]}},"deny-read":{"identifier":"deny-read","description":"Denies the read command without any pre-configured scope.","commands":{"allow":[],"deny":["read"]}},"deny-read-dir":{"identifier":"deny-read-dir","description":"Denies the read_dir command without any pre-configured scope.","commands":{"allow":[],"deny":["read_dir"]}},"deny-read-file":{"identifier":"deny-read-file","description":"Denies the read_file command without any pre-configured scope.","commands":{"allow":[],"deny":["read_file"]}},"deny-read-text-file":{"identifier":"deny-read-text-file","description":"Denies the read_text_file command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text_file"]}},"deny-read-text-file-lines":{"identifier":"deny-read-text-file-lines","description":"Denies the read_text_file_lines command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text_file_lines"]}},"deny-read-text-file-lines-next":{"identifier":"deny-read-text-file-lines-next","description":"Denies the read_text_file_lines_next command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text_file_lines_next"]}},"deny-remove":{"identifier":"deny-remove","description":"Denies the remove command without any pre-configured scope.","commands":{"allow":[],"deny":["remove"]}},"deny-rename":{"identifier":"deny-rename","description":"Denies the rename command without any pre-configured scope.","commands":{"allow":[],"deny":["rename"]}},"deny-seek":{"identifier":"deny-seek","description":"Denies the seek command without any pre-configured scope.","commands":{"allow":[],"deny":["seek"]}},"deny-stat":{"identifier":"deny-stat","description":"Denies the stat command without any pre-configured scope.","commands":{"allow":[],"deny":["stat"]}},"deny-truncate":{"identifier":"deny-truncate","description":"Denies the truncate command without any pre-configured scope.","commands":{"allow":[],"deny":["truncate"]}},"deny-unwatch":{"identifier":"deny-unwatch","description":"Denies the unwatch command without any pre-configured scope.","commands":{"allow":[],"deny":["unwatch"]}},"deny-watch":{"identifier":"deny-watch","description":"Denies the watch command without any pre-configured scope.","commands":{"allow":[],"deny":["watch"]}},"deny-webview-data-linux":{"identifier":"deny-webview-data-linux","description":"This denies read access to the\n`$APPLOCALDATA` folder on linux as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.","commands":{"allow":[],"deny":[]}},"deny-webview-data-windows":{"identifier":"deny-webview-data-windows","description":"This denies read access to the\n`$APPLOCALDATA/EBWebView` folder on windows as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.","commands":{"allow":[],"deny":[]}},"deny-write":{"identifier":"deny-write","description":"Denies the write command without any pre-configured scope.","commands":{"allow":[],"deny":["write"]}},"deny-write-file":{"identifier":"deny-write-file","description":"Denies the write_file command without any pre-configured scope.","commands":{"allow":[],"deny":["write_file"]}},"deny-write-text-file":{"identifier":"deny-write-text-file","description":"Denies the write_text_file command without any pre-configured scope.","commands":{"allow":[],"deny":["write_text_file"]}},"read-all":{"identifier":"read-all","description":"This enables all read related commands without any pre-configured accessible paths.","commands":{"allow":["read_dir","read_file","read","open","read_text_file","read_text_file_lines","read_text_file_lines_next","seek","stat","lstat","fstat","exists","watch","unwatch"],"deny":[]}},"read-app-specific-dirs-recursive":{"identifier":"read-app-specific-dirs-recursive","description":"This permission allows recursive read functionality on the application\nspecific base directories. \n","commands":{"allow":["read_dir","read_file","read_text_file","read_text_file_lines","read_text_file_lines_next","exists","scope-app-recursive"],"deny":[]}},"read-dirs":{"identifier":"read-dirs","description":"This enables directory read and file metadata related commands without any pre-configured accessible paths.","commands":{"allow":["read_dir","stat","lstat","fstat","exists"],"deny":[]}},"read-files":{"identifier":"read-files","description":"This enables file read related commands without any pre-configured accessible paths.","commands":{"allow":["read_file","read","open","read_text_file","read_text_file_lines","read_text_file_lines_next","seek","stat","lstat","fstat","exists"],"deny":[]}},"read-meta":{"identifier":"read-meta","description":"This enables all index or metadata related commands without any pre-configured accessible paths.","commands":{"allow":["read_dir","stat","lstat","fstat","exists"],"deny":[]}},"scope":{"identifier":"scope","description":"An empty permission you can use to modify the global scope.","commands":{"allow":[],"deny":[]}},"scope-app":{"identifier":"scope-app","description":"This scope permits access to all files and list content of top level directories in the application folders.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPCONFIG/*"},{"path":"$APPDATA"},{"path":"$APPDATA/*"},{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/*"},{"path":"$APPCACHE"},{"path":"$APPCACHE/*"},{"path":"$APPLOG"},{"path":"$APPLOG/*"}]}},"scope-app-index":{"identifier":"scope-app-index","description":"This scope permits to list all files and folders in the application directories.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPDATA"},{"path":"$APPLOCALDATA"},{"path":"$APPCACHE"},{"path":"$APPLOG"}]}},"scope-app-recursive":{"identifier":"scope-app-recursive","description":"This scope permits recursive access to the complete application folders, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPCONFIG/**"},{"path":"$APPDATA"},{"path":"$APPDATA/**"},{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/**"},{"path":"$APPCACHE"},{"path":"$APPCACHE/**"},{"path":"$APPLOG"},{"path":"$APPLOG/**"}]}},"scope-appcache":{"identifier":"scope-appcache","description":"This scope permits access to all files and list content of top level directories in the `$APPCACHE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCACHE"},{"path":"$APPCACHE/*"}]}},"scope-appcache-index":{"identifier":"scope-appcache-index","description":"This scope permits to list all files and folders in the `$APPCACHE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCACHE"}]}},"scope-appcache-recursive":{"identifier":"scope-appcache-recursive","description":"This scope permits recursive access to the complete `$APPCACHE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCACHE"},{"path":"$APPCACHE/**"}]}},"scope-appconfig":{"identifier":"scope-appconfig","description":"This scope permits access to all files and list content of top level directories in the `$APPCONFIG` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPCONFIG/*"}]}},"scope-appconfig-index":{"identifier":"scope-appconfig-index","description":"This scope permits to list all files and folders in the `$APPCONFIG`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"}]}},"scope-appconfig-recursive":{"identifier":"scope-appconfig-recursive","description":"This scope permits recursive access to the complete `$APPCONFIG` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPCONFIG/**"}]}},"scope-appdata":{"identifier":"scope-appdata","description":"This scope permits access to all files and list content of top level directories in the `$APPDATA` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPDATA"},{"path":"$APPDATA/*"}]}},"scope-appdata-index":{"identifier":"scope-appdata-index","description":"This scope permits to list all files and folders in the `$APPDATA`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPDATA"}]}},"scope-appdata-recursive":{"identifier":"scope-appdata-recursive","description":"This scope permits recursive access to the complete `$APPDATA` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPDATA"},{"path":"$APPDATA/**"}]}},"scope-applocaldata":{"identifier":"scope-applocaldata","description":"This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/*"}]}},"scope-applocaldata-index":{"identifier":"scope-applocaldata-index","description":"This scope permits to list all files and folders in the `$APPLOCALDATA`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOCALDATA"}]}},"scope-applocaldata-recursive":{"identifier":"scope-applocaldata-recursive","description":"This scope permits recursive access to the complete `$APPLOCALDATA` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/**"}]}},"scope-applog":{"identifier":"scope-applog","description":"This scope permits access to all files and list content of top level directories in the `$APPLOG` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOG"},{"path":"$APPLOG/*"}]}},"scope-applog-index":{"identifier":"scope-applog-index","description":"This scope permits to list all files and folders in the `$APPLOG`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOG"}]}},"scope-applog-recursive":{"identifier":"scope-applog-recursive","description":"This scope permits recursive access to the complete `$APPLOG` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOG"},{"path":"$APPLOG/**"}]}},"scope-audio":{"identifier":"scope-audio","description":"This scope permits access to all files and list content of top level directories in the `$AUDIO` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$AUDIO"},{"path":"$AUDIO/*"}]}},"scope-audio-index":{"identifier":"scope-audio-index","description":"This scope permits to list all files and folders in the `$AUDIO`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$AUDIO"}]}},"scope-audio-recursive":{"identifier":"scope-audio-recursive","description":"This scope permits recursive access to the complete `$AUDIO` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$AUDIO"},{"path":"$AUDIO/**"}]}},"scope-cache":{"identifier":"scope-cache","description":"This scope permits access to all files and list content of top level directories in the `$CACHE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CACHE"},{"path":"$CACHE/*"}]}},"scope-cache-index":{"identifier":"scope-cache-index","description":"This scope permits to list all files and folders in the `$CACHE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CACHE"}]}},"scope-cache-recursive":{"identifier":"scope-cache-recursive","description":"This scope permits recursive access to the complete `$CACHE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CACHE"},{"path":"$CACHE/**"}]}},"scope-config":{"identifier":"scope-config","description":"This scope permits access to all files and list content of top level directories in the `$CONFIG` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CONFIG"},{"path":"$CONFIG/*"}]}},"scope-config-index":{"identifier":"scope-config-index","description":"This scope permits to list all files and folders in the `$CONFIG`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CONFIG"}]}},"scope-config-recursive":{"identifier":"scope-config-recursive","description":"This scope permits recursive access to the complete `$CONFIG` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CONFIG"},{"path":"$CONFIG/**"}]}},"scope-data":{"identifier":"scope-data","description":"This scope permits access to all files and list content of top level directories in the `$DATA` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DATA"},{"path":"$DATA/*"}]}},"scope-data-index":{"identifier":"scope-data-index","description":"This scope permits to list all files and folders in the `$DATA`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DATA"}]}},"scope-data-recursive":{"identifier":"scope-data-recursive","description":"This scope permits recursive access to the complete `$DATA` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DATA"},{"path":"$DATA/**"}]}},"scope-desktop":{"identifier":"scope-desktop","description":"This scope permits access to all files and list content of top level directories in the `$DESKTOP` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DESKTOP"},{"path":"$DESKTOP/*"}]}},"scope-desktop-index":{"identifier":"scope-desktop-index","description":"This scope permits to list all files and folders in the `$DESKTOP`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DESKTOP"}]}},"scope-desktop-recursive":{"identifier":"scope-desktop-recursive","description":"This scope permits recursive access to the complete `$DESKTOP` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DESKTOP"},{"path":"$DESKTOP/**"}]}},"scope-document":{"identifier":"scope-document","description":"This scope permits access to all files and list content of top level directories in the `$DOCUMENT` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOCUMENT"},{"path":"$DOCUMENT/*"}]}},"scope-document-index":{"identifier":"scope-document-index","description":"This scope permits to list all files and folders in the `$DOCUMENT`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOCUMENT"}]}},"scope-document-recursive":{"identifier":"scope-document-recursive","description":"This scope permits recursive access to the complete `$DOCUMENT` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOCUMENT"},{"path":"$DOCUMENT/**"}]}},"scope-download":{"identifier":"scope-download","description":"This scope permits access to all files and list content of top level directories in the `$DOWNLOAD` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOWNLOAD"},{"path":"$DOWNLOAD/*"}]}},"scope-download-index":{"identifier":"scope-download-index","description":"This scope permits to list all files and folders in the `$DOWNLOAD`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOWNLOAD"}]}},"scope-download-recursive":{"identifier":"scope-download-recursive","description":"This scope permits recursive access to the complete `$DOWNLOAD` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOWNLOAD"},{"path":"$DOWNLOAD/**"}]}},"scope-exe":{"identifier":"scope-exe","description":"This scope permits access to all files and list content of top level directories in the `$EXE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$EXE"},{"path":"$EXE/*"}]}},"scope-exe-index":{"identifier":"scope-exe-index","description":"This scope permits to list all files and folders in the `$EXE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$EXE"}]}},"scope-exe-recursive":{"identifier":"scope-exe-recursive","description":"This scope permits recursive access to the complete `$EXE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$EXE"},{"path":"$EXE/**"}]}},"scope-font":{"identifier":"scope-font","description":"This scope permits access to all files and list content of top level directories in the `$FONT` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$FONT"},{"path":"$FONT/*"}]}},"scope-font-index":{"identifier":"scope-font-index","description":"This scope permits to list all files and folders in the `$FONT`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$FONT"}]}},"scope-font-recursive":{"identifier":"scope-font-recursive","description":"This scope permits recursive access to the complete `$FONT` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$FONT"},{"path":"$FONT/**"}]}},"scope-home":{"identifier":"scope-home","description":"This scope permits access to all files and list content of top level directories in the `$HOME` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$HOME"},{"path":"$HOME/*"}]}},"scope-home-index":{"identifier":"scope-home-index","description":"This scope permits to list all files and folders in the `$HOME`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$HOME"}]}},"scope-home-recursive":{"identifier":"scope-home-recursive","description":"This scope permits recursive access to the complete `$HOME` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$HOME"},{"path":"$HOME/**"}]}},"scope-localdata":{"identifier":"scope-localdata","description":"This scope permits access to all files and list content of top level directories in the `$LOCALDATA` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOCALDATA"},{"path":"$LOCALDATA/*"}]}},"scope-localdata-index":{"identifier":"scope-localdata-index","description":"This scope permits to list all files and folders in the `$LOCALDATA`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOCALDATA"}]}},"scope-localdata-recursive":{"identifier":"scope-localdata-recursive","description":"This scope permits recursive access to the complete `$LOCALDATA` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOCALDATA"},{"path":"$LOCALDATA/**"}]}},"scope-log":{"identifier":"scope-log","description":"This scope permits access to all files and list content of top level directories in the `$LOG` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOG"},{"path":"$LOG/*"}]}},"scope-log-index":{"identifier":"scope-log-index","description":"This scope permits to list all files and folders in the `$LOG`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOG"}]}},"scope-log-recursive":{"identifier":"scope-log-recursive","description":"This scope permits recursive access to the complete `$LOG` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOG"},{"path":"$LOG/**"}]}},"scope-picture":{"identifier":"scope-picture","description":"This scope permits access to all files and list content of top level directories in the `$PICTURE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PICTURE"},{"path":"$PICTURE/*"}]}},"scope-picture-index":{"identifier":"scope-picture-index","description":"This scope permits to list all files and folders in the `$PICTURE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PICTURE"}]}},"scope-picture-recursive":{"identifier":"scope-picture-recursive","description":"This scope permits recursive access to the complete `$PICTURE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PICTURE"},{"path":"$PICTURE/**"}]}},"scope-public":{"identifier":"scope-public","description":"This scope permits access to all files and list content of top level directories in the `$PUBLIC` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PUBLIC"},{"path":"$PUBLIC/*"}]}},"scope-public-index":{"identifier":"scope-public-index","description":"This scope permits to list all files and folders in the `$PUBLIC`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PUBLIC"}]}},"scope-public-recursive":{"identifier":"scope-public-recursive","description":"This scope permits recursive access to the complete `$PUBLIC` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PUBLIC"},{"path":"$PUBLIC/**"}]}},"scope-resource":{"identifier":"scope-resource","description":"This scope permits access to all files and list content of top level directories in the `$RESOURCE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RESOURCE"},{"path":"$RESOURCE/*"}]}},"scope-resource-index":{"identifier":"scope-resource-index","description":"This scope permits to list all files and folders in the `$RESOURCE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RESOURCE"}]}},"scope-resource-recursive":{"identifier":"scope-resource-recursive","description":"This scope permits recursive access to the complete `$RESOURCE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RESOURCE"},{"path":"$RESOURCE/**"}]}},"scope-runtime":{"identifier":"scope-runtime","description":"This scope permits access to all files and list content of top level directories in the `$RUNTIME` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RUNTIME"},{"path":"$RUNTIME/*"}]}},"scope-runtime-index":{"identifier":"scope-runtime-index","description":"This scope permits to list all files and folders in the `$RUNTIME`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RUNTIME"}]}},"scope-runtime-recursive":{"identifier":"scope-runtime-recursive","description":"This scope permits recursive access to the complete `$RUNTIME` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RUNTIME"},{"path":"$RUNTIME/**"}]}},"scope-temp":{"identifier":"scope-temp","description":"This scope permits access to all files and list content of top level directories in the `$TEMP` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMP"},{"path":"$TEMP/*"}]}},"scope-temp-index":{"identifier":"scope-temp-index","description":"This scope permits to list all files and folders in the `$TEMP`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMP"}]}},"scope-temp-recursive":{"identifier":"scope-temp-recursive","description":"This scope permits recursive access to the complete `$TEMP` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMP"},{"path":"$TEMP/**"}]}},"scope-template":{"identifier":"scope-template","description":"This scope permits access to all files and list content of top level directories in the `$TEMPLATE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMPLATE"},{"path":"$TEMPLATE/*"}]}},"scope-template-index":{"identifier":"scope-template-index","description":"This scope permits to list all files and folders in the `$TEMPLATE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMPLATE"}]}},"scope-template-recursive":{"identifier":"scope-template-recursive","description":"This scope permits recursive access to the complete `$TEMPLATE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMPLATE"},{"path":"$TEMPLATE/**"}]}},"scope-video":{"identifier":"scope-video","description":"This scope permits access to all files and list content of top level directories in the `$VIDEO` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$VIDEO"},{"path":"$VIDEO/*"}]}},"scope-video-index":{"identifier":"scope-video-index","description":"This scope permits to list all files and folders in the `$VIDEO`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$VIDEO"}]}},"scope-video-recursive":{"identifier":"scope-video-recursive","description":"This scope permits recursive access to the complete `$VIDEO` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$VIDEO"},{"path":"$VIDEO/**"}]}},"write-all":{"identifier":"write-all","description":"This enables all write related commands without any pre-configured accessible paths.","commands":{"allow":["mkdir","create","copy_file","remove","rename","truncate","ftruncate","write","write_file","write_text_file"],"deny":[]}},"write-files":{"identifier":"write-files","description":"This enables all file write related commands without any pre-configured accessible paths.","commands":{"allow":["create","copy_file","remove","rename","truncate","ftruncate","write","write_file","write_text_file"],"deny":[]}}},"permission_sets":{"allow-app-meta":{"identifier":"allow-app-meta","description":"This allows non-recursive read access to metadata of the application folders, including file listing and statistics.","permissions":["read-meta","scope-app-index"]},"allow-app-meta-recursive":{"identifier":"allow-app-meta-recursive","description":"This allows full recursive read access to metadata of the application folders, including file listing and statistics.","permissions":["read-meta","scope-app-recursive"]},"allow-app-read":{"identifier":"allow-app-read","description":"This allows non-recursive read access to the application folders.","permissions":["read-all","scope-app"]},"allow-app-read-recursive":{"identifier":"allow-app-read-recursive","description":"This allows full recursive read access to the complete application folders, files and subdirectories.","permissions":["read-all","scope-app-recursive"]},"allow-app-write":{"identifier":"allow-app-write","description":"This allows non-recursive write access to the application folders.","permissions":["write-all","scope-app"]},"allow-app-write-recursive":{"identifier":"allow-app-write-recursive","description":"This allows full recursive write access to the complete application folders, files and subdirectories.","permissions":["write-all","scope-app-recursive"]},"allow-appcache-meta":{"identifier":"allow-appcache-meta","description":"This allows non-recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.","permissions":["read-meta","scope-appcache-index"]},"allow-appcache-meta-recursive":{"identifier":"allow-appcache-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.","permissions":["read-meta","scope-appcache-recursive"]},"allow-appcache-read":{"identifier":"allow-appcache-read","description":"This allows non-recursive read access to the `$APPCACHE` folder.","permissions":["read-all","scope-appcache"]},"allow-appcache-read-recursive":{"identifier":"allow-appcache-read-recursive","description":"This allows full recursive read access to the complete `$APPCACHE` folder, files and subdirectories.","permissions":["read-all","scope-appcache-recursive"]},"allow-appcache-write":{"identifier":"allow-appcache-write","description":"This allows non-recursive write access to the `$APPCACHE` folder.","permissions":["write-all","scope-appcache"]},"allow-appcache-write-recursive":{"identifier":"allow-appcache-write-recursive","description":"This allows full recursive write access to the complete `$APPCACHE` folder, files and subdirectories.","permissions":["write-all","scope-appcache-recursive"]},"allow-appconfig-meta":{"identifier":"allow-appconfig-meta","description":"This allows non-recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.","permissions":["read-meta","scope-appconfig-index"]},"allow-appconfig-meta-recursive":{"identifier":"allow-appconfig-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.","permissions":["read-meta","scope-appconfig-recursive"]},"allow-appconfig-read":{"identifier":"allow-appconfig-read","description":"This allows non-recursive read access to the `$APPCONFIG` folder.","permissions":["read-all","scope-appconfig"]},"allow-appconfig-read-recursive":{"identifier":"allow-appconfig-read-recursive","description":"This allows full recursive read access to the complete `$APPCONFIG` folder, files and subdirectories.","permissions":["read-all","scope-appconfig-recursive"]},"allow-appconfig-write":{"identifier":"allow-appconfig-write","description":"This allows non-recursive write access to the `$APPCONFIG` folder.","permissions":["write-all","scope-appconfig"]},"allow-appconfig-write-recursive":{"identifier":"allow-appconfig-write-recursive","description":"This allows full recursive write access to the complete `$APPCONFIG` folder, files and subdirectories.","permissions":["write-all","scope-appconfig-recursive"]},"allow-appdata-meta":{"identifier":"allow-appdata-meta","description":"This allows non-recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-appdata-index"]},"allow-appdata-meta-recursive":{"identifier":"allow-appdata-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-appdata-recursive"]},"allow-appdata-read":{"identifier":"allow-appdata-read","description":"This allows non-recursive read access to the `$APPDATA` folder.","permissions":["read-all","scope-appdata"]},"allow-appdata-read-recursive":{"identifier":"allow-appdata-read-recursive","description":"This allows full recursive read access to the complete `$APPDATA` folder, files and subdirectories.","permissions":["read-all","scope-appdata-recursive"]},"allow-appdata-write":{"identifier":"allow-appdata-write","description":"This allows non-recursive write access to the `$APPDATA` folder.","permissions":["write-all","scope-appdata"]},"allow-appdata-write-recursive":{"identifier":"allow-appdata-write-recursive","description":"This allows full recursive write access to the complete `$APPDATA` folder, files and subdirectories.","permissions":["write-all","scope-appdata-recursive"]},"allow-applocaldata-meta":{"identifier":"allow-applocaldata-meta","description":"This allows non-recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-applocaldata-index"]},"allow-applocaldata-meta-recursive":{"identifier":"allow-applocaldata-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-applocaldata-recursive"]},"allow-applocaldata-read":{"identifier":"allow-applocaldata-read","description":"This allows non-recursive read access to the `$APPLOCALDATA` folder.","permissions":["read-all","scope-applocaldata"]},"allow-applocaldata-read-recursive":{"identifier":"allow-applocaldata-read-recursive","description":"This allows full recursive read access to the complete `$APPLOCALDATA` folder, files and subdirectories.","permissions":["read-all","scope-applocaldata-recursive"]},"allow-applocaldata-write":{"identifier":"allow-applocaldata-write","description":"This allows non-recursive write access to the `$APPLOCALDATA` folder.","permissions":["write-all","scope-applocaldata"]},"allow-applocaldata-write-recursive":{"identifier":"allow-applocaldata-write-recursive","description":"This allows full recursive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.","permissions":["write-all","scope-applocaldata-recursive"]},"allow-applog-meta":{"identifier":"allow-applog-meta","description":"This allows non-recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.","permissions":["read-meta","scope-applog-index"]},"allow-applog-meta-recursive":{"identifier":"allow-applog-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.","permissions":["read-meta","scope-applog-recursive"]},"allow-applog-read":{"identifier":"allow-applog-read","description":"This allows non-recursive read access to the `$APPLOG` folder.","permissions":["read-all","scope-applog"]},"allow-applog-read-recursive":{"identifier":"allow-applog-read-recursive","description":"This allows full recursive read access to the complete `$APPLOG` folder, files and subdirectories.","permissions":["read-all","scope-applog-recursive"]},"allow-applog-write":{"identifier":"allow-applog-write","description":"This allows non-recursive write access to the `$APPLOG` folder.","permissions":["write-all","scope-applog"]},"allow-applog-write-recursive":{"identifier":"allow-applog-write-recursive","description":"This allows full recursive write access to the complete `$APPLOG` folder, files and subdirectories.","permissions":["write-all","scope-applog-recursive"]},"allow-audio-meta":{"identifier":"allow-audio-meta","description":"This allows non-recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.","permissions":["read-meta","scope-audio-index"]},"allow-audio-meta-recursive":{"identifier":"allow-audio-meta-recursive","description":"This allows full recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.","permissions":["read-meta","scope-audio-recursive"]},"allow-audio-read":{"identifier":"allow-audio-read","description":"This allows non-recursive read access to the `$AUDIO` folder.","permissions":["read-all","scope-audio"]},"allow-audio-read-recursive":{"identifier":"allow-audio-read-recursive","description":"This allows full recursive read access to the complete `$AUDIO` folder, files and subdirectories.","permissions":["read-all","scope-audio-recursive"]},"allow-audio-write":{"identifier":"allow-audio-write","description":"This allows non-recursive write access to the `$AUDIO` folder.","permissions":["write-all","scope-audio"]},"allow-audio-write-recursive":{"identifier":"allow-audio-write-recursive","description":"This allows full recursive write access to the complete `$AUDIO` folder, files and subdirectories.","permissions":["write-all","scope-audio-recursive"]},"allow-cache-meta":{"identifier":"allow-cache-meta","description":"This allows non-recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.","permissions":["read-meta","scope-cache-index"]},"allow-cache-meta-recursive":{"identifier":"allow-cache-meta-recursive","description":"This allows full recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.","permissions":["read-meta","scope-cache-recursive"]},"allow-cache-read":{"identifier":"allow-cache-read","description":"This allows non-recursive read access to the `$CACHE` folder.","permissions":["read-all","scope-cache"]},"allow-cache-read-recursive":{"identifier":"allow-cache-read-recursive","description":"This allows full recursive read access to the complete `$CACHE` folder, files and subdirectories.","permissions":["read-all","scope-cache-recursive"]},"allow-cache-write":{"identifier":"allow-cache-write","description":"This allows non-recursive write access to the `$CACHE` folder.","permissions":["write-all","scope-cache"]},"allow-cache-write-recursive":{"identifier":"allow-cache-write-recursive","description":"This allows full recursive write access to the complete `$CACHE` folder, files and subdirectories.","permissions":["write-all","scope-cache-recursive"]},"allow-config-meta":{"identifier":"allow-config-meta","description":"This allows non-recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.","permissions":["read-meta","scope-config-index"]},"allow-config-meta-recursive":{"identifier":"allow-config-meta-recursive","description":"This allows full recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.","permissions":["read-meta","scope-config-recursive"]},"allow-config-read":{"identifier":"allow-config-read","description":"This allows non-recursive read access to the `$CONFIG` folder.","permissions":["read-all","scope-config"]},"allow-config-read-recursive":{"identifier":"allow-config-read-recursive","description":"This allows full recursive read access to the complete `$CONFIG` folder, files and subdirectories.","permissions":["read-all","scope-config-recursive"]},"allow-config-write":{"identifier":"allow-config-write","description":"This allows non-recursive write access to the `$CONFIG` folder.","permissions":["write-all","scope-config"]},"allow-config-write-recursive":{"identifier":"allow-config-write-recursive","description":"This allows full recursive write access to the complete `$CONFIG` folder, files and subdirectories.","permissions":["write-all","scope-config-recursive"]},"allow-data-meta":{"identifier":"allow-data-meta","description":"This allows non-recursive read access to metadata of the `$DATA` folder, including file listing and statistics.","permissions":["read-meta","scope-data-index"]},"allow-data-meta-recursive":{"identifier":"allow-data-meta-recursive","description":"This allows full recursive read access to metadata of the `$DATA` folder, including file listing and statistics.","permissions":["read-meta","scope-data-recursive"]},"allow-data-read":{"identifier":"allow-data-read","description":"This allows non-recursive read access to the `$DATA` folder.","permissions":["read-all","scope-data"]},"allow-data-read-recursive":{"identifier":"allow-data-read-recursive","description":"This allows full recursive read access to the complete `$DATA` folder, files and subdirectories.","permissions":["read-all","scope-data-recursive"]},"allow-data-write":{"identifier":"allow-data-write","description":"This allows non-recursive write access to the `$DATA` folder.","permissions":["write-all","scope-data"]},"allow-data-write-recursive":{"identifier":"allow-data-write-recursive","description":"This allows full recursive write access to the complete `$DATA` folder, files and subdirectories.","permissions":["write-all","scope-data-recursive"]},"allow-desktop-meta":{"identifier":"allow-desktop-meta","description":"This allows non-recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.","permissions":["read-meta","scope-desktop-index"]},"allow-desktop-meta-recursive":{"identifier":"allow-desktop-meta-recursive","description":"This allows full recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.","permissions":["read-meta","scope-desktop-recursive"]},"allow-desktop-read":{"identifier":"allow-desktop-read","description":"This allows non-recursive read access to the `$DESKTOP` folder.","permissions":["read-all","scope-desktop"]},"allow-desktop-read-recursive":{"identifier":"allow-desktop-read-recursive","description":"This allows full recursive read access to the complete `$DESKTOP` folder, files and subdirectories.","permissions":["read-all","scope-desktop-recursive"]},"allow-desktop-write":{"identifier":"allow-desktop-write","description":"This allows non-recursive write access to the `$DESKTOP` folder.","permissions":["write-all","scope-desktop"]},"allow-desktop-write-recursive":{"identifier":"allow-desktop-write-recursive","description":"This allows full recursive write access to the complete `$DESKTOP` folder, files and subdirectories.","permissions":["write-all","scope-desktop-recursive"]},"allow-document-meta":{"identifier":"allow-document-meta","description":"This allows non-recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.","permissions":["read-meta","scope-document-index"]},"allow-document-meta-recursive":{"identifier":"allow-document-meta-recursive","description":"This allows full recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.","permissions":["read-meta","scope-document-recursive"]},"allow-document-read":{"identifier":"allow-document-read","description":"This allows non-recursive read access to the `$DOCUMENT` folder.","permissions":["read-all","scope-document"]},"allow-document-read-recursive":{"identifier":"allow-document-read-recursive","description":"This allows full recursive read access to the complete `$DOCUMENT` folder, files and subdirectories.","permissions":["read-all","scope-document-recursive"]},"allow-document-write":{"identifier":"allow-document-write","description":"This allows non-recursive write access to the `$DOCUMENT` folder.","permissions":["write-all","scope-document"]},"allow-document-write-recursive":{"identifier":"allow-document-write-recursive","description":"This allows full recursive write access to the complete `$DOCUMENT` folder, files and subdirectories.","permissions":["write-all","scope-document-recursive"]},"allow-download-meta":{"identifier":"allow-download-meta","description":"This allows non-recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.","permissions":["read-meta","scope-download-index"]},"allow-download-meta-recursive":{"identifier":"allow-download-meta-recursive","description":"This allows full recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.","permissions":["read-meta","scope-download-recursive"]},"allow-download-read":{"identifier":"allow-download-read","description":"This allows non-recursive read access to the `$DOWNLOAD` folder.","permissions":["read-all","scope-download"]},"allow-download-read-recursive":{"identifier":"allow-download-read-recursive","description":"This allows full recursive read access to the complete `$DOWNLOAD` folder, files and subdirectories.","permissions":["read-all","scope-download-recursive"]},"allow-download-write":{"identifier":"allow-download-write","description":"This allows non-recursive write access to the `$DOWNLOAD` folder.","permissions":["write-all","scope-download"]},"allow-download-write-recursive":{"identifier":"allow-download-write-recursive","description":"This allows full recursive write access to the complete `$DOWNLOAD` folder, files and subdirectories.","permissions":["write-all","scope-download-recursive"]},"allow-exe-meta":{"identifier":"allow-exe-meta","description":"This allows non-recursive read access to metadata of the `$EXE` folder, including file listing and statistics.","permissions":["read-meta","scope-exe-index"]},"allow-exe-meta-recursive":{"identifier":"allow-exe-meta-recursive","description":"This allows full recursive read access to metadata of the `$EXE` folder, including file listing and statistics.","permissions":["read-meta","scope-exe-recursive"]},"allow-exe-read":{"identifier":"allow-exe-read","description":"This allows non-recursive read access to the `$EXE` folder.","permissions":["read-all","scope-exe"]},"allow-exe-read-recursive":{"identifier":"allow-exe-read-recursive","description":"This allows full recursive read access to the complete `$EXE` folder, files and subdirectories.","permissions":["read-all","scope-exe-recursive"]},"allow-exe-write":{"identifier":"allow-exe-write","description":"This allows non-recursive write access to the `$EXE` folder.","permissions":["write-all","scope-exe"]},"allow-exe-write-recursive":{"identifier":"allow-exe-write-recursive","description":"This allows full recursive write access to the complete `$EXE` folder, files and subdirectories.","permissions":["write-all","scope-exe-recursive"]},"allow-font-meta":{"identifier":"allow-font-meta","description":"This allows non-recursive read access to metadata of the `$FONT` folder, including file listing and statistics.","permissions":["read-meta","scope-font-index"]},"allow-font-meta-recursive":{"identifier":"allow-font-meta-recursive","description":"This allows full recursive read access to metadata of the `$FONT` folder, including file listing and statistics.","permissions":["read-meta","scope-font-recursive"]},"allow-font-read":{"identifier":"allow-font-read","description":"This allows non-recursive read access to the `$FONT` folder.","permissions":["read-all","scope-font"]},"allow-font-read-recursive":{"identifier":"allow-font-read-recursive","description":"This allows full recursive read access to the complete `$FONT` folder, files and subdirectories.","permissions":["read-all","scope-font-recursive"]},"allow-font-write":{"identifier":"allow-font-write","description":"This allows non-recursive write access to the `$FONT` folder.","permissions":["write-all","scope-font"]},"allow-font-write-recursive":{"identifier":"allow-font-write-recursive","description":"This allows full recursive write access to the complete `$FONT` folder, files and subdirectories.","permissions":["write-all","scope-font-recursive"]},"allow-home-meta":{"identifier":"allow-home-meta","description":"This allows non-recursive read access to metadata of the `$HOME` folder, including file listing and statistics.","permissions":["read-meta","scope-home-index"]},"allow-home-meta-recursive":{"identifier":"allow-home-meta-recursive","description":"This allows full recursive read access to metadata of the `$HOME` folder, including file listing and statistics.","permissions":["read-meta","scope-home-recursive"]},"allow-home-read":{"identifier":"allow-home-read","description":"This allows non-recursive read access to the `$HOME` folder.","permissions":["read-all","scope-home"]},"allow-home-read-recursive":{"identifier":"allow-home-read-recursive","description":"This allows full recursive read access to the complete `$HOME` folder, files and subdirectories.","permissions":["read-all","scope-home-recursive"]},"allow-home-write":{"identifier":"allow-home-write","description":"This allows non-recursive write access to the `$HOME` folder.","permissions":["write-all","scope-home"]},"allow-home-write-recursive":{"identifier":"allow-home-write-recursive","description":"This allows full recursive write access to the complete `$HOME` folder, files and subdirectories.","permissions":["write-all","scope-home-recursive"]},"allow-localdata-meta":{"identifier":"allow-localdata-meta","description":"This allows non-recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-localdata-index"]},"allow-localdata-meta-recursive":{"identifier":"allow-localdata-meta-recursive","description":"This allows full recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-localdata-recursive"]},"allow-localdata-read":{"identifier":"allow-localdata-read","description":"This allows non-recursive read access to the `$LOCALDATA` folder.","permissions":["read-all","scope-localdata"]},"allow-localdata-read-recursive":{"identifier":"allow-localdata-read-recursive","description":"This allows full recursive read access to the complete `$LOCALDATA` folder, files and subdirectories.","permissions":["read-all","scope-localdata-recursive"]},"allow-localdata-write":{"identifier":"allow-localdata-write","description":"This allows non-recursive write access to the `$LOCALDATA` folder.","permissions":["write-all","scope-localdata"]},"allow-localdata-write-recursive":{"identifier":"allow-localdata-write-recursive","description":"This allows full recursive write access to the complete `$LOCALDATA` folder, files and subdirectories.","permissions":["write-all","scope-localdata-recursive"]},"allow-log-meta":{"identifier":"allow-log-meta","description":"This allows non-recursive read access to metadata of the `$LOG` folder, including file listing and statistics.","permissions":["read-meta","scope-log-index"]},"allow-log-meta-recursive":{"identifier":"allow-log-meta-recursive","description":"This allows full recursive read access to metadata of the `$LOG` folder, including file listing and statistics.","permissions":["read-meta","scope-log-recursive"]},"allow-log-read":{"identifier":"allow-log-read","description":"This allows non-recursive read access to the `$LOG` folder.","permissions":["read-all","scope-log"]},"allow-log-read-recursive":{"identifier":"allow-log-read-recursive","description":"This allows full recursive read access to the complete `$LOG` folder, files and subdirectories.","permissions":["read-all","scope-log-recursive"]},"allow-log-write":{"identifier":"allow-log-write","description":"This allows non-recursive write access to the `$LOG` folder.","permissions":["write-all","scope-log"]},"allow-log-write-recursive":{"identifier":"allow-log-write-recursive","description":"This allows full recursive write access to the complete `$LOG` folder, files and subdirectories.","permissions":["write-all","scope-log-recursive"]},"allow-picture-meta":{"identifier":"allow-picture-meta","description":"This allows non-recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.","permissions":["read-meta","scope-picture-index"]},"allow-picture-meta-recursive":{"identifier":"allow-picture-meta-recursive","description":"This allows full recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.","permissions":["read-meta","scope-picture-recursive"]},"allow-picture-read":{"identifier":"allow-picture-read","description":"This allows non-recursive read access to the `$PICTURE` folder.","permissions":["read-all","scope-picture"]},"allow-picture-read-recursive":{"identifier":"allow-picture-read-recursive","description":"This allows full recursive read access to the complete `$PICTURE` folder, files and subdirectories.","permissions":["read-all","scope-picture-recursive"]},"allow-picture-write":{"identifier":"allow-picture-write","description":"This allows non-recursive write access to the `$PICTURE` folder.","permissions":["write-all","scope-picture"]},"allow-picture-write-recursive":{"identifier":"allow-picture-write-recursive","description":"This allows full recursive write access to the complete `$PICTURE` folder, files and subdirectories.","permissions":["write-all","scope-picture-recursive"]},"allow-public-meta":{"identifier":"allow-public-meta","description":"This allows non-recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.","permissions":["read-meta","scope-public-index"]},"allow-public-meta-recursive":{"identifier":"allow-public-meta-recursive","description":"This allows full recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.","permissions":["read-meta","scope-public-recursive"]},"allow-public-read":{"identifier":"allow-public-read","description":"This allows non-recursive read access to the `$PUBLIC` folder.","permissions":["read-all","scope-public"]},"allow-public-read-recursive":{"identifier":"allow-public-read-recursive","description":"This allows full recursive read access to the complete `$PUBLIC` folder, files and subdirectories.","permissions":["read-all","scope-public-recursive"]},"allow-public-write":{"identifier":"allow-public-write","description":"This allows non-recursive write access to the `$PUBLIC` folder.","permissions":["write-all","scope-public"]},"allow-public-write-recursive":{"identifier":"allow-public-write-recursive","description":"This allows full recursive write access to the complete `$PUBLIC` folder, files and subdirectories.","permissions":["write-all","scope-public-recursive"]},"allow-resource-meta":{"identifier":"allow-resource-meta","description":"This allows non-recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.","permissions":["read-meta","scope-resource-index"]},"allow-resource-meta-recursive":{"identifier":"allow-resource-meta-recursive","description":"This allows full recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.","permissions":["read-meta","scope-resource-recursive"]},"allow-resource-read":{"identifier":"allow-resource-read","description":"This allows non-recursive read access to the `$RESOURCE` folder.","permissions":["read-all","scope-resource"]},"allow-resource-read-recursive":{"identifier":"allow-resource-read-recursive","description":"This allows full recursive read access to the complete `$RESOURCE` folder, files and subdirectories.","permissions":["read-all","scope-resource-recursive"]},"allow-resource-write":{"identifier":"allow-resource-write","description":"This allows non-recursive write access to the `$RESOURCE` folder.","permissions":["write-all","scope-resource"]},"allow-resource-write-recursive":{"identifier":"allow-resource-write-recursive","description":"This allows full recursive write access to the complete `$RESOURCE` folder, files and subdirectories.","permissions":["write-all","scope-resource-recursive"]},"allow-runtime-meta":{"identifier":"allow-runtime-meta","description":"This allows non-recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.","permissions":["read-meta","scope-runtime-index"]},"allow-runtime-meta-recursive":{"identifier":"allow-runtime-meta-recursive","description":"This allows full recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.","permissions":["read-meta","scope-runtime-recursive"]},"allow-runtime-read":{"identifier":"allow-runtime-read","description":"This allows non-recursive read access to the `$RUNTIME` folder.","permissions":["read-all","scope-runtime"]},"allow-runtime-read-recursive":{"identifier":"allow-runtime-read-recursive","description":"This allows full recursive read access to the complete `$RUNTIME` folder, files and subdirectories.","permissions":["read-all","scope-runtime-recursive"]},"allow-runtime-write":{"identifier":"allow-runtime-write","description":"This allows non-recursive write access to the `$RUNTIME` folder.","permissions":["write-all","scope-runtime"]},"allow-runtime-write-recursive":{"identifier":"allow-runtime-write-recursive","description":"This allows full recursive write access to the complete `$RUNTIME` folder, files and subdirectories.","permissions":["write-all","scope-runtime-recursive"]},"allow-temp-meta":{"identifier":"allow-temp-meta","description":"This allows non-recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.","permissions":["read-meta","scope-temp-index"]},"allow-temp-meta-recursive":{"identifier":"allow-temp-meta-recursive","description":"This allows full recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.","permissions":["read-meta","scope-temp-recursive"]},"allow-temp-read":{"identifier":"allow-temp-read","description":"This allows non-recursive read access to the `$TEMP` folder.","permissions":["read-all","scope-temp"]},"allow-temp-read-recursive":{"identifier":"allow-temp-read-recursive","description":"This allows full recursive read access to the complete `$TEMP` folder, files and subdirectories.","permissions":["read-all","scope-temp-recursive"]},"allow-temp-write":{"identifier":"allow-temp-write","description":"This allows non-recursive write access to the `$TEMP` folder.","permissions":["write-all","scope-temp"]},"allow-temp-write-recursive":{"identifier":"allow-temp-write-recursive","description":"This allows full recursive write access to the complete `$TEMP` folder, files and subdirectories.","permissions":["write-all","scope-temp-recursive"]},"allow-template-meta":{"identifier":"allow-template-meta","description":"This allows non-recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.","permissions":["read-meta","scope-template-index"]},"allow-template-meta-recursive":{"identifier":"allow-template-meta-recursive","description":"This allows full recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.","permissions":["read-meta","scope-template-recursive"]},"allow-template-read":{"identifier":"allow-template-read","description":"This allows non-recursive read access to the `$TEMPLATE` folder.","permissions":["read-all","scope-template"]},"allow-template-read-recursive":{"identifier":"allow-template-read-recursive","description":"This allows full recursive read access to the complete `$TEMPLATE` folder, files and subdirectories.","permissions":["read-all","scope-template-recursive"]},"allow-template-write":{"identifier":"allow-template-write","description":"This allows non-recursive write access to the `$TEMPLATE` folder.","permissions":["write-all","scope-template"]},"allow-template-write-recursive":{"identifier":"allow-template-write-recursive","description":"This allows full recursive write access to the complete `$TEMPLATE` folder, files and subdirectories.","permissions":["write-all","scope-template-recursive"]},"allow-video-meta":{"identifier":"allow-video-meta","description":"This allows non-recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.","permissions":["read-meta","scope-video-index"]},"allow-video-meta-recursive":{"identifier":"allow-video-meta-recursive","description":"This allows full recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.","permissions":["read-meta","scope-video-recursive"]},"allow-video-read":{"identifier":"allow-video-read","description":"This allows non-recursive read access to the `$VIDEO` folder.","permissions":["read-all","scope-video"]},"allow-video-read-recursive":{"identifier":"allow-video-read-recursive","description":"This allows full recursive read access to the complete `$VIDEO` folder, files and subdirectories.","permissions":["read-all","scope-video-recursive"]},"allow-video-write":{"identifier":"allow-video-write","description":"This allows non-recursive write access to the `$VIDEO` folder.","permissions":["write-all","scope-video"]},"allow-video-write-recursive":{"identifier":"allow-video-write-recursive","description":"This allows full recursive write access to the complete `$VIDEO` folder, files and subdirectories.","permissions":["write-all","scope-video-recursive"]},"deny-default":{"identifier":"deny-default","description":"This denies access to dangerous Tauri relevant files and folders by default.","permissions":["deny-webview-data-linux","deny-webview-data-windows"]}},"global_scope_schema":{"$schema":"http://json-schema.org/draft-07/schema#","anyOf":[{"description":"FS scope path.","type":"string"},{"properties":{"path":{"description":"FS scope path.","type":"string"}},"required":["path"],"type":"object"}],"description":"FS scope entry.","title":"FsScopeEntry"}},"global-shortcut":{"default_permission":{"identifier":"default","description":"No features are enabled by default, as we believe\nthe shortcuts can be inherently dangerous and it is\napplication specific if specific shortcuts should be\nregistered or unregistered.\n","permissions":[]},"permissions":{"allow-is-registered":{"identifier":"allow-is-registered","description":"Enables the is_registered command without any pre-configured scope.","commands":{"allow":["is_registered"],"deny":[]}},"allow-register":{"identifier":"allow-register","description":"Enables the register command without any pre-configured scope.","commands":{"allow":["register"],"deny":[]}},"allow-register-all":{"identifier":"allow-register-all","description":"Enables the register_all command without any pre-configured scope.","commands":{"allow":["register_all"],"deny":[]}},"allow-unregister":{"identifier":"allow-unregister","description":"Enables the unregister command without any pre-configured scope.","commands":{"allow":["unregister"],"deny":[]}},"allow-unregister-all":{"identifier":"allow-unregister-all","description":"Enables the unregister_all command without any pre-configured scope.","commands":{"allow":["unregister_all"],"deny":[]}},"deny-is-registered":{"identifier":"deny-is-registered","description":"Denies the is_registered command without any pre-configured scope.","commands":{"allow":[],"deny":["is_registered"]}},"deny-register":{"identifier":"deny-register","description":"Denies the register command without any pre-configured scope.","commands":{"allow":[],"deny":["register"]}},"deny-register-all":{"identifier":"deny-register-all","description":"Denies the register_all command without any pre-configured scope.","commands":{"allow":[],"deny":["register_all"]}},"deny-unregister":{"identifier":"deny-unregister","description":"Denies the unregister command without any pre-configured scope.","commands":{"allow":[],"deny":["unregister"]}},"deny-unregister-all":{"identifier":"deny-unregister-all","description":"Denies the unregister_all command without any pre-configured scope.","commands":{"allow":[],"deny":["unregister_all"]}}},"permission_sets":{},"global_scope_schema":null},"http":{"default_permission":{"identifier":"default","description":"This permission set configures what kind of\nfetch operations are available from the http plugin.\n\nThis enables all fetch operations but does not\nallow explicitly any origins to be fetched. This needs to\nbe manually configured before usage.\n\n#### Granted Permissions\n\nAll fetch operations are enabled.\n\n","permissions":["allow-fetch","allow-fetch-cancel","allow-fetch-read-body","allow-fetch-send"]},"permissions":{"allow-fetch":{"identifier":"allow-fetch","description":"Enables the fetch command without any pre-configured scope.","commands":{"allow":["fetch"],"deny":[]}},"allow-fetch-cancel":{"identifier":"allow-fetch-cancel","description":"Enables the fetch_cancel command without any pre-configured scope.","commands":{"allow":["fetch_cancel"],"deny":[]}},"allow-fetch-read-body":{"identifier":"allow-fetch-read-body","description":"Enables the fetch_read_body command without any pre-configured scope.","commands":{"allow":["fetch_read_body"],"deny":[]}},"allow-fetch-send":{"identifier":"allow-fetch-send","description":"Enables the fetch_send command without any pre-configured scope.","commands":{"allow":["fetch_send"],"deny":[]}},"deny-fetch":{"identifier":"deny-fetch","description":"Denies the fetch command without any pre-configured scope.","commands":{"allow":[],"deny":["fetch"]}},"deny-fetch-cancel":{"identifier":"deny-fetch-cancel","description":"Denies the fetch_cancel command without any pre-configured scope.","commands":{"allow":[],"deny":["fetch_cancel"]}},"deny-fetch-read-body":{"identifier":"deny-fetch-read-body","description":"Denies the fetch_read_body command without any pre-configured scope.","commands":{"allow":[],"deny":["fetch_read_body"]}},"deny-fetch-send":{"identifier":"deny-fetch-send","description":"Denies the fetch_send command without any pre-configured scope.","commands":{"allow":[],"deny":["fetch_send"]}}},"permission_sets":{},"global_scope_schema":{"$schema":"http://json-schema.org/draft-07/schema#","anyOf":[{"description":"A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"","type":"string"},{"properties":{"url":{"description":"A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"","type":"string"}},"required":["url"],"type":"object"}],"description":"HTTP scope entry.","title":"HttpScopeEntry"}},"notification":{"default_permission":{"identifier":"default","description":"This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n","permissions":["allow-is-permission-granted","allow-request-permission","allow-notify","allow-register-action-types","allow-register-listener","allow-cancel","allow-get-pending","allow-remove-active","allow-get-active","allow-check-permissions","allow-show","allow-batch","allow-list-channels","allow-delete-channel","allow-create-channel","allow-permission-state"]},"permissions":{"allow-batch":{"identifier":"allow-batch","description":"Enables the batch command without any pre-configured scope.","commands":{"allow":["batch"],"deny":[]}},"allow-cancel":{"identifier":"allow-cancel","description":"Enables the cancel command without any pre-configured scope.","commands":{"allow":["cancel"],"deny":[]}},"allow-check-permissions":{"identifier":"allow-check-permissions","description":"Enables the check_permissions command without any pre-configured scope.","commands":{"allow":["check_permissions"],"deny":[]}},"allow-create-channel":{"identifier":"allow-create-channel","description":"Enables the create_channel command without any pre-configured scope.","commands":{"allow":["create_channel"],"deny":[]}},"allow-delete-channel":{"identifier":"allow-delete-channel","description":"Enables the delete_channel command without any pre-configured scope.","commands":{"allow":["delete_channel"],"deny":[]}},"allow-get-active":{"identifier":"allow-get-active","description":"Enables the get_active command without any pre-configured scope.","commands":{"allow":["get_active"],"deny":[]}},"allow-get-pending":{"identifier":"allow-get-pending","description":"Enables the get_pending command without any pre-configured scope.","commands":{"allow":["get_pending"],"deny":[]}},"allow-is-permission-granted":{"identifier":"allow-is-permission-granted","description":"Enables the is_permission_granted command without any pre-configured scope.","commands":{"allow":["is_permission_granted"],"deny":[]}},"allow-list-channels":{"identifier":"allow-list-channels","description":"Enables the list_channels command without any pre-configured scope.","commands":{"allow":["list_channels"],"deny":[]}},"allow-notify":{"identifier":"allow-notify","description":"Enables the notify command without any pre-configured scope.","commands":{"allow":["notify"],"deny":[]}},"allow-permission-state":{"identifier":"allow-permission-state","description":"Enables the permission_state command without any pre-configured scope.","commands":{"allow":["permission_state"],"deny":[]}},"allow-register-action-types":{"identifier":"allow-register-action-types","description":"Enables the register_action_types command without any pre-configured scope.","commands":{"allow":["register_action_types"],"deny":[]}},"allow-register-listener":{"identifier":"allow-register-listener","description":"Enables the register_listener command without any pre-configured scope.","commands":{"allow":["register_listener"],"deny":[]}},"allow-remove-active":{"identifier":"allow-remove-active","description":"Enables the remove_active command without any pre-configured scope.","commands":{"allow":["remove_active"],"deny":[]}},"allow-request-permission":{"identifier":"allow-request-permission","description":"Enables the request_permission command without any pre-configured scope.","commands":{"allow":["request_permission"],"deny":[]}},"allow-show":{"identifier":"allow-show","description":"Enables the show command without any pre-configured scope.","commands":{"allow":["show"],"deny":[]}},"deny-batch":{"identifier":"deny-batch","description":"Denies the batch command without any pre-configured scope.","commands":{"allow":[],"deny":["batch"]}},"deny-cancel":{"identifier":"deny-cancel","description":"Denies the cancel command without any pre-configured scope.","commands":{"allow":[],"deny":["cancel"]}},"deny-check-permissions":{"identifier":"deny-check-permissions","description":"Denies the check_permissions command without any pre-configured scope.","commands":{"allow":[],"deny":["check_permissions"]}},"deny-create-channel":{"identifier":"deny-create-channel","description":"Denies the create_channel command without any pre-configured scope.","commands":{"allow":[],"deny":["create_channel"]}},"deny-delete-channel":{"identifier":"deny-delete-channel","description":"Denies the delete_channel command without any pre-configured scope.","commands":{"allow":[],"deny":["delete_channel"]}},"deny-get-active":{"identifier":"deny-get-active","description":"Denies the get_active command without any pre-configured scope.","commands":{"allow":[],"deny":["get_active"]}},"deny-get-pending":{"identifier":"deny-get-pending","description":"Denies the get_pending command without any pre-configured scope.","commands":{"allow":[],"deny":["get_pending"]}},"deny-is-permission-granted":{"identifier":"deny-is-permission-granted","description":"Denies the is_permission_granted command without any pre-configured scope.","commands":{"allow":[],"deny":["is_permission_granted"]}},"deny-list-channels":{"identifier":"deny-list-channels","description":"Denies the list_channels command without any pre-configured scope.","commands":{"allow":[],"deny":["list_channels"]}},"deny-notify":{"identifier":"deny-notify","description":"Denies the notify command without any pre-configured scope.","commands":{"allow":[],"deny":["notify"]}},"deny-permission-state":{"identifier":"deny-permission-state","description":"Denies the permission_state command without any pre-configured scope.","commands":{"allow":[],"deny":["permission_state"]}},"deny-register-action-types":{"identifier":"deny-register-action-types","description":"Denies the register_action_types command without any pre-configured scope.","commands":{"allow":[],"deny":["register_action_types"]}},"deny-register-listener":{"identifier":"deny-register-listener","description":"Denies the register_listener command without any pre-configured scope.","commands":{"allow":[],"deny":["register_listener"]}},"deny-remove-active":{"identifier":"deny-remove-active","description":"Denies the remove_active command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_active"]}},"deny-request-permission":{"identifier":"deny-request-permission","description":"Denies the request_permission command without any pre-configured scope.","commands":{"allow":[],"deny":["request_permission"]}},"deny-show":{"identifier":"deny-show","description":"Denies the show command without any pre-configured scope.","commands":{"allow":[],"deny":["show"]}}},"permission_sets":{},"global_scope_schema":null},"os":{"default_permission":{"identifier":"default","description":"This permission set configures which\noperating system information are available\nto gather from the frontend.\n\n#### Granted Permissions\n\nAll information except the host name are available.\n\n","permissions":["allow-arch","allow-exe-extension","allow-family","allow-locale","allow-os-type","allow-platform","allow-version"]},"permissions":{"allow-arch":{"identifier":"allow-arch","description":"Enables the arch command without any pre-configured scope.","commands":{"allow":["arch"],"deny":[]}},"allow-exe-extension":{"identifier":"allow-exe-extension","description":"Enables the exe_extension command without any pre-configured scope.","commands":{"allow":["exe_extension"],"deny":[]}},"allow-family":{"identifier":"allow-family","description":"Enables the family command without any pre-configured scope.","commands":{"allow":["family"],"deny":[]}},"allow-hostname":{"identifier":"allow-hostname","description":"Enables the hostname command without any pre-configured scope.","commands":{"allow":["hostname"],"deny":[]}},"allow-locale":{"identifier":"allow-locale","description":"Enables the locale command without any pre-configured scope.","commands":{"allow":["locale"],"deny":[]}},"allow-os-type":{"identifier":"allow-os-type","description":"Enables the os_type command without any pre-configured scope.","commands":{"allow":["os_type"],"deny":[]}},"allow-platform":{"identifier":"allow-platform","description":"Enables the platform command without any pre-configured scope.","commands":{"allow":["platform"],"deny":[]}},"allow-version":{"identifier":"allow-version","description":"Enables the version command without any pre-configured scope.","commands":{"allow":["version"],"deny":[]}},"deny-arch":{"identifier":"deny-arch","description":"Denies the arch command without any pre-configured scope.","commands":{"allow":[],"deny":["arch"]}},"deny-exe-extension":{"identifier":"deny-exe-extension","description":"Denies the exe_extension command without any pre-configured scope.","commands":{"allow":[],"deny":["exe_extension"]}},"deny-family":{"identifier":"deny-family","description":"Denies the family command without any pre-configured scope.","commands":{"allow":[],"deny":["family"]}},"deny-hostname":{"identifier":"deny-hostname","description":"Denies the hostname command without any pre-configured scope.","commands":{"allow":[],"deny":["hostname"]}},"deny-locale":{"identifier":"deny-locale","description":"Denies the locale command without any pre-configured scope.","commands":{"allow":[],"deny":["locale"]}},"deny-os-type":{"identifier":"deny-os-type","description":"Denies the os_type command without any pre-configured scope.","commands":{"allow":[],"deny":["os_type"]}},"deny-platform":{"identifier":"deny-platform","description":"Denies the platform command without any pre-configured scope.","commands":{"allow":[],"deny":["platform"]}},"deny-version":{"identifier":"deny-version","description":"Denies the version command without any pre-configured scope.","commands":{"allow":[],"deny":["version"]}}},"permission_sets":{},"global_scope_schema":null},"process":{"default_permission":{"identifier":"default","description":"This permission set configures which\nprocess feeatures are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n","permissions":["allow-exit","allow-restart"]},"permissions":{"allow-exit":{"identifier":"allow-exit","description":"Enables the exit command without any pre-configured scope.","commands":{"allow":["exit"],"deny":[]}},"allow-restart":{"identifier":"allow-restart","description":"Enables the restart command without any pre-configured scope.","commands":{"allow":["restart"],"deny":[]}},"deny-exit":{"identifier":"deny-exit","description":"Denies the exit command without any pre-configured scope.","commands":{"allow":[],"deny":["exit"]}},"deny-restart":{"identifier":"deny-restart","description":"Denies the restart command without any pre-configured scope.","commands":{"allow":[],"deny":["restart"]}}},"permission_sets":{},"global_scope_schema":null},"shell":{"default_permission":{"identifier":"default","description":"This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality without any specific\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n","permissions":["allow-open"]},"permissions":{"allow-execute":{"identifier":"allow-execute","description":"Enables the execute command without any pre-configured scope.","commands":{"allow":["execute"],"deny":[]}},"allow-kill":{"identifier":"allow-kill","description":"Enables the kill command without any pre-configured scope.","commands":{"allow":["kill"],"deny":[]}},"allow-open":{"identifier":"allow-open","description":"Enables the open command without any pre-configured scope.","commands":{"allow":["open"],"deny":[]}},"allow-spawn":{"identifier":"allow-spawn","description":"Enables the spawn command without any pre-configured scope.","commands":{"allow":["spawn"],"deny":[]}},"allow-stdin-write":{"identifier":"allow-stdin-write","description":"Enables the stdin_write command without any pre-configured scope.","commands":{"allow":["stdin_write"],"deny":[]}},"deny-execute":{"identifier":"deny-execute","description":"Denies the execute command without any pre-configured scope.","commands":{"allow":[],"deny":["execute"]}},"deny-kill":{"identifier":"deny-kill","description":"Denies the kill command without any pre-configured scope.","commands":{"allow":[],"deny":["kill"]}},"deny-open":{"identifier":"deny-open","description":"Denies the open command without any pre-configured scope.","commands":{"allow":[],"deny":["open"]}},"deny-spawn":{"identifier":"deny-spawn","description":"Denies the spawn command without any pre-configured scope.","commands":{"allow":[],"deny":["spawn"]}},"deny-stdin-write":{"identifier":"deny-stdin-write","description":"Denies the stdin_write command without any pre-configured scope.","commands":{"allow":[],"deny":["stdin_write"]}}},"permission_sets":{},"global_scope_schema":{"$schema":"http://json-schema.org/draft-07/schema#","anyOf":[{"additionalProperties":false,"properties":{"args":{"allOf":[{"$ref":"#/definitions/ShellScopeEntryAllowedArgs"}],"description":"The allowed arguments for the command execution."},"cmd":{"description":"The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.","type":"string"},"name":{"description":"The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.","type":"string"}},"required":["cmd","name"],"type":"object"},{"additionalProperties":false,"properties":{"args":{"allOf":[{"$ref":"#/definitions/ShellScopeEntryAllowedArgs"}],"description":"The allowed arguments for the command execution."},"name":{"description":"The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.","type":"string"},"sidecar":{"description":"If this command is a sidecar command.","type":"boolean"}},"required":["name","sidecar"],"type":"object"}],"definitions":{"ShellScopeEntryAllowedArg":{"anyOf":[{"description":"A non-configurable argument that is passed to the command in the order it was specified.","type":"string"},{"additionalProperties":false,"description":"A variable that is set while calling the command from the webview API.","properties":{"raw":{"default":false,"description":"Marks the validator as a raw regex, meaning the plugin should not make any modification at runtime.\n\nThis means the regex will not match on the entire string by default, which might be exploited if your regex allow unexpected input to be considered valid. When using this option, make sure your regex is correct.","type":"boolean"},"validator":{"description":"[regex] validator to require passed values to conform to an expected input.\n\nThis will require the argument value passed to this variable to match the `validator` regex before it will be executed.\n\nThe regex string is by default surrounded by `^...$` to match the full string. For example the `https?://\\w+` regex would be registered as `^https?://\\w+$`.\n\n[regex]: <https://docs.rs/regex/latest/regex/#syntax>","type":"string"}},"required":["validator"],"type":"object"}],"description":"A command argument allowed to be executed by the webview API."},"ShellScopeEntryAllowedArgs":{"anyOf":[{"description":"Use a simple boolean to allow all or disable all arguments to this command configuration.","type":"boolean"},{"description":"A specific set of [`ShellScopeEntryAllowedArg`] that are valid to call for the command configuration.","items":{"$ref":"#/definitions/ShellScopeEntryAllowedArg"},"type":"array"}],"description":"A set of command arguments allowed to be executed by the webview API.\n\nA value of `true` will allow any arguments to be passed to the command. `false` will disable all arguments. A list of [`ShellScopeEntryAllowedArg`] will set those arguments as the only valid arguments to be passed to the attached command configuration."}},"description":"Shell scope entry.","title":"ShellScopeEntry"}},"store":{"default_permission":{"identifier":"default","description":"This permission set configures what kind of\noperations are available from the store plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n","permissions":["allow-load","allow-get-store","allow-set","allow-get","allow-has","allow-delete","allow-clear","allow-reset","allow-keys","allow-values","allow-entries","allow-length","allow-reload","allow-save"]},"permissions":{"allow-clear":{"identifier":"allow-clear","description":"Enables the clear command without any pre-configured scope.","commands":{"allow":["clear"],"deny":[]}},"allow-delete":{"identifier":"allow-delete","description":"Enables the delete command without any pre-configured scope.","commands":{"allow":["delete"],"deny":[]}},"allow-entries":{"identifier":"allow-entries","description":"Enables the entries command without any pre-configured scope.","commands":{"allow":["entries"],"deny":[]}},"allow-get":{"identifier":"allow-get","description":"Enables the get command without any pre-configured scope.","commands":{"allow":["get"],"deny":[]}},"allow-get-store":{"identifier":"allow-get-store","description":"Enables the get_store command without any pre-configured scope.","commands":{"allow":["get_store"],"deny":[]}},"allow-has":{"identifier":"allow-has","description":"Enables the has command without any pre-configured scope.","commands":{"allow":["has"],"deny":[]}},"allow-keys":{"identifier":"allow-keys","description":"Enables the keys command without any pre-configured scope.","commands":{"allow":["keys"],"deny":[]}},"allow-length":{"identifier":"allow-length","description":"Enables the length command without any pre-configured scope.","commands":{"allow":["length"],"deny":[]}},"allow-load":{"identifier":"allow-load","description":"Enables the load command without any pre-configured scope.","commands":{"allow":["load"],"deny":[]}},"allow-reload":{"identifier":"allow-reload","description":"Enables the reload command without any pre-configured scope.","commands":{"allow":["reload"],"deny":[]}},"allow-reset":{"identifier":"allow-reset","description":"Enables the reset command without any pre-configured scope.","commands":{"allow":["reset"],"deny":[]}},"allow-save":{"identifier":"allow-save","description":"Enables the save command without any pre-configured scope.","commands":{"allow":["save"],"deny":[]}},"allow-set":{"identifier":"allow-set","description":"Enables the set command without any pre-configured scope.","commands":{"allow":["set"],"deny":[]}},"allow-values":{"identifier":"allow-values","description":"Enables the values command without any pre-configured scope.","commands":{"allow":["values"],"deny":[]}},"deny-clear":{"identifier":"deny-clear","description":"Denies the clear command without any pre-configured scope.","commands":{"allow":[],"deny":["clear"]}},"deny-delete":{"identifier":"deny-delete","description":"Denies the delete command without any pre-configured scope.","commands":{"allow":[],"deny":["delete"]}},"deny-entries":{"identifier":"deny-entries","description":"Denies the entries command without any pre-configured scope.","commands":{"allow":[],"deny":["entries"]}},"deny-get":{"identifier":"deny-get","description":"Denies the get command without any pre-configured scope.","commands":{"allow":[],"deny":["get"]}},"deny-get-store":{"identifier":"deny-get-store","description":"Denies the get_store command without any pre-configured scope.","commands":{"allow":[],"deny":["get_store"]}},"deny-has":{"identifier":"deny-has","description":"Denies the has command without any pre-configured scope.","commands":{"allow":[],"deny":["has"]}},"deny-keys":{"identifier":"deny-keys","description":"Denies the keys command without any pre-configured scope.","commands":{"allow":[],"deny":["keys"]}},"deny-length":{"identifier":"deny-length","description":"Denies the length command without any pre-configured scope.","commands":{"allow":[],"deny":["length"]}},"deny-load":{"identifier":"deny-load","description":"Denies the load command without any pre-configured scope.","commands":{"allow":[],"deny":["load"]}},"deny-reload":{"identifier":"deny-reload","description":"Denies the reload command without any pre-configured scope.","commands":{"allow":[],"deny":["reload"]}},"deny-reset":{"identifier":"deny-reset","description":"Denies the reset command without any pre-configured scope.","commands":{"allow":[],"deny":["reset"]}},"deny-save":{"identifier":"deny-save","description":"Denies the save command without any pre-configured scope.","commands":{"allow":[],"deny":["save"]}},"deny-set":{"identifier":"deny-set","description":"Denies the set command without any pre-configured scope.","commands":{"allow":[],"deny":["set"]}},"deny-values":{"identifier":"deny-values","description":"Denies the values command without any pre-configured scope.","commands":{"allow":[],"deny":["values"]}}},"permission_sets":{},"global_scope_schema":null},"updater":{"default_permission":{"identifier":"default","description":"This permission set configures which kind of\nupdater functions are exposed to the frontend.\n\n#### Granted Permissions\n\nThe full workflow from checking for updates to installing them\nis enabled.\n\n","permissions":["allow-check","allow-download","allow-install","allow-download-and-install"]},"permissions":{"allow-check":{"identifier":"allow-check","description":"Enables the check command without any pre-configured scope.","commands":{"allow":["check"],"deny":[]}},"allow-download":{"identifier":"allow-download","description":"Enables the download command without any pre-configured scope.","commands":{"allow":["download"],"deny":[]}},"allow-download-and-install":{"identifier":"allow-download-and-install","description":"Enables the download_and_install command without any pre-configured scope.","commands":{"allow":["download_and_install"],"deny":[]}},"allow-install":{"identifier":"allow-install","description":"Enables the install command without any pre-configured scope.","commands":{"allow":["install"],"deny":[]}},"deny-check":{"identifier":"deny-check","description":"Denies the check command without any pre-configured scope.","commands":{"allow":[],"deny":["check"]}},"deny-download":{"identifier":"deny-download","description":"Denies the download command without any pre-configured scope.","commands":{"allow":[],"deny":["download"]}},"deny-download-and-install":{"identifier":"deny-download-and-install","description":"Denies the download_and_install command without any pre-configured scope.","commands":{"allow":[],"deny":["download_and_install"]}},"deny-install":{"identifier":"deny-install","description":"Denies the install command without any pre-configured scope.","commands":{"allow":[],"deny":["install"]}}},"permission_sets":{},"global_scope_schema":null}}
\ No newline at end of file
diff --git a/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json b/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json
index 6eebcc5f1..f18c564f0 100644
--- a/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json
+++ b/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json
@@ -1 +1 @@
-{"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["*"],"permissions":["core:event:allow-listen","core:event:default","core:app:allow-version","process:allow-restart","process:allow-exit","notification:default","core:resources:default","core:menu:default","core:tray:default","shell:default","store:default","store:allow-create-store","store:allow-get","store:allow-set","store:allow-save","store:allow-load","shell:allow-open","fs:allow-watch","fs:allow-open","fs:default","fs:allow-read-file","fs:allow-read-dir","fs:allow-read","fs:allow-write-file","fs:read-dirs","fs:allow-copy-file","fs:allow-exists","fs:allow-read-text-file","fs:allow-create","fs:allow-mkdir","fs:allow-remove","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-unregister","global-shortcut:allow-unregister-all","global-shortcut:default",{"identifier":"fs:scope","allow":[{"path":"$XDG_DATA_HOME","requireLiteralLeadingDot":false},{"path":"$XDG_DATA_HOME/**","requireLiteralLeadingDot":false},{"path":"$LOCALAPPDATA/*","requireLiteralLeadingDot":false},{"path":"$LOCALAPPDATA/**","requireLiteralLeadingDot":false},{"path":"$APPLOCALDATA/*","requireLiteralLeadingDot":false},{"path":"$APPLOCALDATA/**","requireLiteralLeadingDot":false},{"path":"$APPDATA/*","requireLiteralLeadingDot":false},{"path":"$APPDATA/**","requireLiteralLeadingDot":false},{"path":"$APPCONFIG/*","requireLiteralLeadingDot":false},{"path":"$RESOURCE/*","requireLiteralLeadingDot":false},{"path":"$RESOURCE/.screenpipe/*","requireLiteralLeadingDot":false},{"path":"$HOME/*","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/*","requireLiteralLeadingDot":false},{"path":"$APP/*","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/data/**","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/pipes/**","requireLiteralLeadingDot":false}]},{"identifier":"shell:allow-execute","allow":[{"args":["-c",{"validator":"\\S+"}],"cmd":"sh","name":"exec-sh","sidecar":false}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","purge","-y"],"cmd":"screenpipe","name":"screenpipe","sidecar":true}]},{"identifier":"shell:allow-spawn","allow":[{"args":["setup"],"cmd":"screenpipe","name":"screenpipe","sidecar":true}]},{"identifier":"shell:allow-spawn","allow":[{"args":["migrate"],"cmd":"screenpipe","name":"screenpipe","sidecar":true}]},{"identifier":"shell:allow-spawn","allow":[{"args":["serve"],"cmd":"ollama","name":"ollama","sidecar":true}]},{"identifier":"shell:allow-spawn","allow":[{"args":["run",{"validator":"\\S*"}],"cmd":"ollama","name":"ollama-run","sidecar":true}]},"cli:default","shell:default","shell:allow-spawn","dialog:default","updater:default","os:default","os:allow-arch","os:allow-hostname","os:allow-os-type","core:path:default","process:default","store:default","core:webview:allow-internal-toggle-devtools",{"identifier":"shell:allow-execute","allow":[{"args":["pipe","list","--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-list","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","download",{"validator":"\\S+"},"--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-download","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","enable",{"validator":"\\S+"}],"cmd":"screenpipe","name":"screenpipe-pipe-enable","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","disable",{"validator":"\\S+"}],"cmd":"screenpipe","name":"screenpipe-pipe-disable","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","update",{"validator":"\\S+"},{"validator":"\\{.*\\}"}],"cmd":"screenpipe","name":"screenpipe-pipe-update","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","delete",{"validator":"\\S+"},"--yes"],"cmd":"screenpipe","name":"screenpipe-pipe-delete","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","info",{"validator":"\\S+"},"--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-info","sidecar":true}]},{"identifier":"http:default","allow":[{"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"url":"http://**/*"},{"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"url":"https://**/*"}]}]}}
\ No newline at end of file
+{"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["*"],"permissions":["core:event:allow-listen","core:event:default","core:app:allow-version","process:allow-restart","process:allow-exit","notification:default","core:resources:default","core:menu:default","core:tray:default","shell:default","store:default","shell:allow-open","fs:allow-watch","fs:allow-open","fs:default","fs:allow-read-file","fs:allow-read-dir","fs:allow-read","fs:allow-write-file","fs:read-dirs","fs:allow-copy-file","fs:allow-exists","fs:allow-read-text-file","fs:allow-create","fs:allow-mkdir","fs:allow-remove","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-unregister","global-shortcut:allow-unregister-all","global-shortcut:default",{"identifier":"fs:scope","allow":[{"path":"$XDG_DATA_HOME","requireLiteralLeadingDot":false},{"path":"$XDG_DATA_HOME/**","requireLiteralLeadingDot":false},{"path":"$LOCALAPPDATA/*","requireLiteralLeadingDot":false},{"path":"$LOCALAPPDATA/**","requireLiteralLeadingDot":false},{"path":"$APPLOCALDATA/*","requireLiteralLeadingDot":false},{"path":"$APPLOCALDATA/**","requireLiteralLeadingDot":false},{"path":"$APPDATA/*","requireLiteralLeadingDot":false},{"path":"$APPDATA/**","requireLiteralLeadingDot":false},{"path":"$APPCONFIG/*","requireLiteralLeadingDot":false},{"path":"$RESOURCE/*","requireLiteralLeadingDot":false},{"path":"$RESOURCE/.screenpipe/*","requireLiteralLeadingDot":false},{"path":"$HOME/*","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/*","requireLiteralLeadingDot":false},{"path":"$APP/*","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/data/**","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/pipes/**","requireLiteralLeadingDot":false}]},{"identifier":"shell:allow-execute","allow":[{"args":["-c",{"validator":"\\S+"}],"cmd":"sh","name":"exec-sh","sidecar":false}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","purge","-y"],"cmd":"screenpipe","name":"screenpipe","sidecar":true}]},{"identifier":"shell:allow-spawn","allow":[{"args":["setup"],"cmd":"screenpipe","name":"screenpipe","sidecar":true}]},{"identifier":"shell:allow-spawn","allow":[{"args":["migrate"],"cmd":"screenpipe","name":"screenpipe","sidecar":true}]},{"identifier":"shell:allow-spawn","allow":[{"args":["serve"],"cmd":"ollama","name":"ollama","sidecar":true}]},{"identifier":"shell:allow-spawn","allow":[{"args":["run",{"validator":"\\S*"}],"cmd":"ollama","name":"ollama-run","sidecar":true}]},"cli:default","shell:default","shell:allow-spawn","dialog:default","updater:default","os:default","os:allow-arch","os:allow-hostname","os:allow-os-type","core:path:default","process:default","core:webview:allow-internal-toggle-devtools",{"identifier":"shell:allow-execute","allow":[{"args":["pipe","list","--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-list","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","download",{"validator":"\\S+"},"--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-download","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","enable",{"validator":"\\S+"}],"cmd":"screenpipe","name":"screenpipe-pipe-enable","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","disable",{"validator":"\\S+"}],"cmd":"screenpipe","name":"screenpipe-pipe-disable","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","update",{"validator":"\\S+"},{"validator":"\\{.*\\}"}],"cmd":"screenpipe","name":"screenpipe-pipe-update","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","delete",{"validator":"\\S+"},"--yes"],"cmd":"screenpipe","name":"screenpipe-pipe-delete","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","info",{"validator":"\\S+"},"--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-info","sidecar":true}]},{"identifier":"http:default","allow":[{"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"url":"http://**/*"},{"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"url":"https://**/*"}]}]}}
\ No newline at end of file
diff --git a/screenpipe-app-tauri/src-tauri/gen/schemas/desktop-schema.json b/screenpipe-app-tauri/src-tauri/gen/schemas/desktop-schema.json
index 2b053d885..94a6226ab 100644
--- a/screenpipe-app-tauri/src-tauri/gen/schemas/desktop-schema.json
+++ b/screenpipe-app-tauri/src-tauri/gen/schemas/desktop-schema.json
@@ -5494,11 +5494,6 @@
"type": "string",
"const": "store:allow-clear"
},
- {
- "description": "Enables the create_store command without any pre-configured scope.",
- "type": "string",
- "const": "store:allow-create-store"
- },
{
"description": "Enables the delete command without any pre-configured scope.",
"type": "string",
@@ -5514,6 +5509,11 @@
"type": "string",
"const": "store:allow-get"
},
+ {
+ "description": "Enables the get_store command without any pre-configured scope.",
+ "type": "string",
+ "const": "store:allow-get-store"
+ },
{
"description": "Enables the has command without any pre-configured scope.",
"type": "string",
@@ -5534,6 +5534,11 @@
"type": "string",
"const": "store:allow-load"
},
+ {
+ "description": "Enables the reload command without any pre-configured scope.",
+ "type": "string",
+ "const": "store:allow-reload"
+ },
{
"description": "Enables the reset command without any pre-configured scope.",
"type": "string",
@@ -5559,11 +5564,6 @@
"type": "string",
"const": "store:deny-clear"
},
- {
- "description": "Denies the create_store command without any pre-configured scope.",
- "type": "string",
- "const": "store:deny-create-store"
- },
{
"description": "Denies the delete command without any pre-configured scope.",
"type": "string",
@@ -5579,6 +5579,11 @@
"type": "string",
"const": "store:deny-get"
},
+ {
+ "description": "Denies the get_store command without any pre-configured scope.",
+ "type": "string",
+ "const": "store:deny-get-store"
+ },
{
"description": "Denies the has command without any pre-configured scope.",
"type": "string",
@@ -5599,6 +5604,11 @@
"type": "string",
"const": "store:deny-load"
},
+ {
+ "description": "Denies the reload command without any pre-configured scope.",
+ "type": "string",
+ "const": "store:deny-reload"
+ },
{
"description": "Denies the reset command without any pre-configured scope.",
"type": "string",
diff --git a/screenpipe-app-tauri/src-tauri/gen/schemas/macOS-schema.json b/screenpipe-app-tauri/src-tauri/gen/schemas/macOS-schema.json
index 2b053d885..94a6226ab 100644
--- a/screenpipe-app-tauri/src-tauri/gen/schemas/macOS-schema.json
+++ b/screenpipe-app-tauri/src-tauri/gen/schemas/macOS-schema.json
@@ -5494,11 +5494,6 @@
"type": "string",
"const": "store:allow-clear"
},
- {
- "description": "Enables the create_store command without any pre-configured scope.",
- "type": "string",
- "const": "store:allow-create-store"
- },
{
"description": "Enables the delete command without any pre-configured scope.",
"type": "string",
@@ -5514,6 +5509,11 @@
"type": "string",
"const": "store:allow-get"
},
+ {
+ "description": "Enables the get_store command without any pre-configured scope.",
+ "type": "string",
+ "const": "store:allow-get-store"
+ },
{
"description": "Enables the has command without any pre-configured scope.",
"type": "string",
@@ -5534,6 +5534,11 @@
"type": "string",
"const": "store:allow-load"
},
+ {
+ "description": "Enables the reload command without any pre-configured scope.",
+ "type": "string",
+ "const": "store:allow-reload"
+ },
{
"description": "Enables the reset command without any pre-configured scope.",
"type": "string",
@@ -5559,11 +5564,6 @@
"type": "string",
"const": "store:deny-clear"
},
- {
- "description": "Denies the create_store command without any pre-configured scope.",
- "type": "string",
- "const": "store:deny-create-store"
- },
{
"description": "Denies the delete command without any pre-configured scope.",
"type": "string",
@@ -5579,6 +5579,11 @@
"type": "string",
"const": "store:deny-get"
},
+ {
+ "description": "Denies the get_store command without any pre-configured scope.",
+ "type": "string",
+ "const": "store:deny-get-store"
+ },
{
"description": "Denies the has command without any pre-configured scope.",
"type": "string",
@@ -5599,6 +5604,11 @@
"type": "string",
"const": "store:deny-load"
},
+ {
+ "description": "Denies the reload command without any pre-configured scope.",
+ "type": "string",
+ "const": "store:deny-reload"
+ },
{
"description": "Denies the reset command without any pre-configured scope.",
"type": "string",
diff --git a/screenpipe-app-tauri/src-tauri/src/main.rs b/screenpipe-app-tauri/src-tauri/src/main.rs
index 7c7d679b9..d500c0f14 100755
--- a/screenpipe-app-tauri/src-tauri/src/main.rs
+++ b/screenpipe-app-tauri/src-tauri/src/main.rs
@@ -89,7 +89,7 @@ fn get_data_dir(app: &tauri::AppHandle) -> anyhow::Result<PathBuf> {
let store = StoreBuilder::new(app, path).build();
let default_path = app.path().home_dir().unwrap().join(".screenpipe");
- let data_dir = store
+ let data_dir = store?
.get("dataDir")
.and_then(|v| v.as_str().map(String::from))
.unwrap_or(String::from("default"));
@@ -347,7 +347,9 @@ async fn main() {
}
// Store setup and analytics initialization
- let store = StoreBuilder::new(app.handle(), path.clone()).build();
+ let store = StoreBuilder::new(app.handle(), path.clone())
+ .build()
+ .unwrap();
if store.keys().len() == 0 {
store.set("analyticsEnabled".to_string(), Value::Bool(true));
diff --git a/screenpipe-app-tauri/src-tauri/src/server.rs b/screenpipe-app-tauri/src-tauri/src/server.rs
index 37edbf11b..cdedcee1c 100644
--- a/screenpipe-app-tauri/src-tauri/src/server.rs
+++ b/screenpipe-app-tauri/src-tauri/src/server.rs
@@ -194,7 +194,7 @@ async fn handle_auth(
.join("screenpipe")
.join("store.bin");
info!("store path: {:?}", path);
- let store = StoreBuilder::new(&state.app_handle, path).build();
+ let store = StoreBuilder::new(&state.app_handle, path).build().unwrap();
if payload.token.is_some() {
let auth_data = AuthData {
diff --git a/screenpipe-app-tauri/src-tauri/src/sidecar.rs b/screenpipe-app-tauri/src-tauri/src/sidecar.rs
index b54fa91ba..15ccc1cb5 100644
--- a/screenpipe-app-tauri/src-tauri/src/sidecar.rs
+++ b/screenpipe-app-tauri/src-tauri/src/sidecar.rs
@@ -123,7 +123,7 @@ pub async fn spawn_screenpipe(
fn spawn_sidecar(app: &tauri::AppHandle) -> Result<CommandChild, String> {
let base_dir = get_base_dir(app, None).expect("Failed to ensure local data directory");
let path = base_dir.join("store.bin");
- let store = StoreBuilder::new(&app.clone(), path).build();
+ let store = StoreBuilder::new(&app.clone(), path).build().unwrap();
let audio_transcription_engine = store
.get("audioTranscriptionEngine")
@@ -504,7 +504,7 @@ impl SidecarManager {
async fn update_settings(&mut self, app: &tauri::AppHandle) -> Result<(), String> {
let base_dir = get_base_dir(app, None).expect("Failed to ensure local data directory");
let path = base_dir.join("store.bin");
- let store = StoreBuilder::new(&app.clone(), path).build();
+ let store = StoreBuilder::new(&app.clone(), path).build().unwrap();
let restart_interval = store
.get("restartInterval")