feat: add Toolset page with live change detection and diff viewer

This commit is contained in:
plenarius
2026-04-20 20:01:27 -04:00
parent 269ce1178c
commit 3b91c0312d
3 changed files with 495 additions and 0 deletions
+36
View File
@@ -79,6 +79,42 @@ export const api = {
}),
},
toolset: {
status: () =>
request<{ active: boolean; pendingCount: number }>("/toolset/status"),
start: () => request("/toolset/start", { method: "POST" }),
stop: () => request("/toolset/stop", { method: "POST" }),
changes: () =>
request<
Array<{
filename: string;
gffType: string;
repoPath: string | null;
timestamp: number;
}>
>("/toolset/changes"),
getChange: (filename: string) =>
request<{
filename: string;
gffType: string;
repoPath: string | null;
timestamp: number;
jsonContent?: string;
}>(`/toolset/changes/${filename}`),
apply: (files: string[]) =>
request("/toolset/apply", {
method: "POST",
body: JSON.stringify({ files }),
}),
applyAll: () => request("/toolset/apply-all", { method: "POST" }),
discard: (files: string[]) =>
request("/toolset/discard", {
method: "POST",
body: JSON.stringify({ files }),
}),
discardAll: () => request("/toolset/discard-all", { method: "POST" }),
},
docker: {
containers: () => request<Array<Record<string, string>>>("/docker/containers"),
pull: (image: string) =>