mattrguerra/cortexmainPrivate on GitHub, published here in full

build.rs

Language Rust1.2 KB52 lines

src-tauri/build.rs

  1. // Every app command is declared here, which makes each one need an explicit
  2. // permission: the quick window's capability grants only the few it uses.
  3. const COMMANDS: &[&str] = &[
  4. "app_info",
  5. "window_ready",
  6. "show_main",
  7. "list_providers",
  8. "save_provider",
  9. "delete_provider",
  10. "set_api_key",
  11. "clear_api_key",
  12. "has_api_key",
  13. "list_models",
  14. "refresh_models",
  15. "list_conversations",
  16. "get_conversation",
  17. "create_conversation",
  18. "rename_conversation",
  19. "set_pinned",
  20. "set_archived",
  21. "delete_conversation",
  22. "set_conversation_model",
  23. "set_system_prompt",
  24. "send_message",
  25. "cancel_stream",
  26. "truncate_from",
  27. "estimate_prompt",
  28. "search",
  29. "spend_summary",
  30. "usage_report",
  31. "list_presets",
  32. "save_preset",
  33. "delete_preset",
  34. "get_settings",
  35. "save_settings",
  36. "pick_attachments",
  37. "attach_bytes",
  38. "attachment_bytes",
  39. "discard_attachment",
  40. "export_conversation",
  41. "choose_vault_folder",
  42. "quick_open_in_main",
  43. "hide_quick",
  44. "resize_quick",
  45. ];
  46. fn main() {
  47. tauri_build::try_build(
  48. tauri_build::Attributes::new().app_manifest(tauri_build::AppManifest::new().commands(COMMANDS)),
  49. )
  50. .expect("tauri build script");
  51. }