Browser recording action (#4130)

This commit is contained in:
Jonathan Dobson
2025-11-28 11:23:06 -05:00
committed by GitHub
parent b7ecdaafb7
commit ef3d88c1b9
15 changed files with 1320 additions and 156 deletions

View File

@@ -2,16 +2,33 @@ import { create } from "zustand";
type SettingsStore = {
environment: string;
/**
* The user is currently operating or viewing a live, remote browser. NOTE: if
* the browser is still connecting, or otherwise not ready, then this should
* be false.
*/
isUsingABrowser: boolean;
/**
* The current browser session ID when a browser is active.
*/
browserSessionId: string | null;
organization: string;
setEnvironment: (environment: string) => void;
setIsUsingABrowser: (isUsing: boolean) => void;
setBrowserSessionId: (browserSessionId: string | null) => void;
setOrganization: (organization: string) => void;
};
const useSettingsStore = create<SettingsStore>((set) => {
return {
environment: "local",
isUsingABrowser: false,
browserSessionId: null,
organization: "skyvern",
setEnvironment: (environment: string) => set({ environment }),
setIsUsingABrowser: (isUsing: boolean) => set({ isUsingABrowser: isUsing }),
setBrowserSessionId: (browserSessionId: string | null) =>
set({ browserSessionId }),
setOrganization: (organization: string) => set({ organization }),
};
});