Introduce a singleton instance_settings store and experimental settings API, add the Experimental instance settings page, and gate execution workspace behavior behind the new enableIsolatedWorkspaces flag. Co-Authored-By: Paperclip <noreply@paperclip.ing>
13 lines
444 B
TypeScript
13 lines
444 B
TypeScript
import type {
|
|
InstanceExperimentalSettings,
|
|
PatchInstanceExperimentalSettings,
|
|
} from "@paperclipai/shared";
|
|
import { api } from "./client";
|
|
|
|
export const instanceSettingsApi = {
|
|
getExperimental: () =>
|
|
api.get<InstanceExperimentalSettings>("/instance/settings/experimental"),
|
|
updateExperimental: (patch: PatchInstanceExperimentalSettings) =>
|
|
api.patch<InstanceExperimentalSettings>("/instance/settings/experimental", patch),
|
|
};
|