feat(webui): add a host directory picker and refine composer controls

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-08 20:33:15 +08:00
1 parent 3865bde3fe
commit 66c8d41f66
32 files changed
+1974 -464

No files matched your search

+17
View File
@@ -46,6 +46,7 @@ import type {
ThreadProjectionEvent,
WebSearchSettingsUpdate,
WorkspacesPayload,
WorkspaceDirectoriesPayload,
WebuiThreadPersistedPayload,
WebuiThreadTraceDetailPayload,
WorkspaceScopePayload,
@@ -762,6 +763,22 @@ export async function fetchWorkspaces(
);
}
export async function fetchWorkspaceDirectories(
token: string,
path: string,
query: string,
showHidden: boolean,
allowPartial = false,
): Promise<WorkspaceDirectoriesPayload> {
const params = new URLSearchParams({ path, q: query, hidden: showHidden ? "1" : "0", partial: allowPartial ? "1" : "0" });
return request<WorkspaceDirectoriesPayload>(
`/api/workspaces/directories?${params}`,
token,
undefined,
API_READ_TIMEOUT_MS,
);
}
export async function fetchCliApps(
token: string,
base: string = "",