1#ifndef YAZE_APP_PLATFORM_WASM_CONFIG_H_
2#define YAZE_APP_PLATFORM_WASM_CONFIG_H_
53 struct Collaboration {
88 std::string
model =
"gemini-2.5-flash";
95 std::string
server_repo =
"https://github.com/scawful/yaze-server";
101 struct ServerStatus {
135 static WasmConfig&
Get();
141 bool IsLoaded()
const {
return loaded_.load(std::memory_order_acquire); }
147 bool IsLoading()
const {
return loading_.load(std::memory_order_acquire); }
166 std::atomic<bool> loaded_{
false};
167 std::atomic<bool> loading_{
false};
173 char* WasmConfig_GetString(
const char* path,
const char* defaultVal);
174 double WasmConfig_GetNumber(
const char* path,
double defaultVal);
175 int WasmConfig_GetInt(
const char* path,
int defaultVal);
223 std::string
model =
"gemini-2.5-flash";
229 std::string
server_repo =
"https://github.com/scawful/yaze-server";