Add ability to create new folder in host browser
This commit is contained in:
1 parent
069e1d2082
commit
0805551109
5 files changed
+158
-4
No files matched your search
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user