Merge remote-tracking branch 'origin/main' into codex/webui-segmented-transcript-store
This commit is contained in:
@@ -244,6 +244,26 @@ export async function fetchSettingsUsage(
|
||||
);
|
||||
}
|
||||
|
||||
export interface VersionCheckResult {
|
||||
updateAvailable: {
|
||||
currentVersion: string;
|
||||
latestVersion: string;
|
||||
pypiUrl?: string;
|
||||
} | null;
|
||||
}
|
||||
|
||||
export async function checkVersion(
|
||||
token: string,
|
||||
base: string = "",
|
||||
): Promise<VersionCheckResult> {
|
||||
return request<VersionCheckResult>(
|
||||
`${base}/api/settings/version-check`,
|
||||
token,
|
||||
undefined,
|
||||
10_000,
|
||||
);
|
||||
}
|
||||
|
||||
export async function fetchWorkspaces(
|
||||
token: string,
|
||||
base: string = "",
|
||||
|
||||
@@ -480,10 +480,14 @@ export interface SettingsPayload {
|
||||
mcp_server_count: number;
|
||||
exec_enabled: boolean;
|
||||
exec_sandbox?: string | null;
|
||||
exec_path_prepend_set: boolean;
|
||||
exec_path_append_set: boolean;
|
||||
};
|
||||
requires_restart: boolean;
|
||||
restart_required_sections?: Array<"runtime" | "browser" | "image">;
|
||||
version?: {
|
||||
current: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface AppPackageRef {
|
||||
|
||||
Reference in New Issue
Block a user