mirror of
https://github.com/anomalyco/opencode.git
synced 2026-02-01 22:48:16 +00:00
chore: generate
This commit is contained in:
@@ -1,20 +1,19 @@
|
|||||||
// This file has been generated by Tauri Specta. Do not edit this file manually.
|
// This file has been generated by Tauri Specta. Do not edit this file manually.
|
||||||
|
|
||||||
import { invoke as __TAURI_INVOKE, Channel } from '@tauri-apps/api/core';
|
import { invoke as __TAURI_INVOKE, Channel } from "@tauri-apps/api/core"
|
||||||
|
|
||||||
/** Commands */
|
/** Commands */
|
||||||
export const commands = {
|
export const commands = {
|
||||||
killSidecar: () => __TAURI_INVOKE<void>("kill_sidecar"),
|
killSidecar: () => __TAURI_INVOKE<void>("kill_sidecar"),
|
||||||
installCli: () => __TAURI_INVOKE<string>("install_cli"),
|
installCli: () => __TAURI_INVOKE<string>("install_cli"),
|
||||||
ensureServerReady: () => __TAURI_INVOKE<ServerReadyData>("ensure_server_ready"),
|
ensureServerReady: () => __TAURI_INVOKE<ServerReadyData>("ensure_server_ready"),
|
||||||
getDefaultServerUrl: () => __TAURI_INVOKE<string | null>("get_default_server_url"),
|
getDefaultServerUrl: () => __TAURI_INVOKE<string | null>("get_default_server_url"),
|
||||||
setDefaultServerUrl: (url: string | null) => __TAURI_INVOKE<null>("set_default_server_url", { url }),
|
setDefaultServerUrl: (url: string | null) => __TAURI_INVOKE<null>("set_default_server_url", { url }),
|
||||||
parseMarkdownCommand: (markdown: string) => __TAURI_INVOKE<string>("parse_markdown_command", { markdown }),
|
parseMarkdownCommand: (markdown: string) => __TAURI_INVOKE<string>("parse_markdown_command", { markdown }),
|
||||||
};
|
}
|
||||||
|
|
||||||
/* Types */
|
/* Types */
|
||||||
export type ServerReadyData = {
|
export type ServerReadyData = {
|
||||||
url: string,
|
url: string
|
||||||
password: string | null,
|
password: string | null
|
||||||
};
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -339,7 +339,9 @@ const createPlatform = (password: Accessor<string | null>): Platform => ({
|
|||||||
return result
|
return result
|
||||||
},
|
},
|
||||||
|
|
||||||
setDefaultServerUrl: async (url: string | null) => { await commands.setDefaultServerUrl(url) },
|
setDefaultServerUrl: async (url: string | null) => {
|
||||||
|
await commands.setDefaultServerUrl(url)
|
||||||
|
},
|
||||||
|
|
||||||
parseMarkdown: (markdown: string) => commands.parseMarkdownCommand(markdown),
|
parseMarkdown: (markdown: string) => commands.parseMarkdownCommand(markdown),
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user