Add ability to create new folder in host browser

This commit is contained in:
nandi committed 2026-11-18 20:06:03 -08:00
1 parent 069e1d2082
commit 0805551109
5 files changed
+158 -4

No files matched your search

+19
View File
@@ -62,6 +62,25 @@ export const detectRpc = defineRpc({
}),
});
export const createFolderRpc = defineRpc({
name: "picker.create_folder",
input: z.object({
parentPath: z.string().optional(),
name: z.string(),
}),
output: z.discriminatedUnion("status", [
z.object({
status: z.literal("ok"),
path: z.string(),
name: z.string(),
}),
z.object({
status: z.literal("error"),
message: z.string(),
}),
]),
});
export const listDirRpc = defineRpc({
name: "picker.list_dir",
input: z.object({