422c8931d6
实现: 在rust内存里维护错误事件队列, webview调用tauri command传入, 后台任务agent工具等直接插入 把rust , webview console的日志统一写到AppData文件夹下的(滚动保存的)日志文件. rust对传入的错误进行筛选,脱敏, 防抖,后通知前端提醒用户. 用户提醒是一个不阻塞的小UI, 展开后可以选择错误上报, 可以附加文字描述 上传时附带最近日志, 错误堆栈等信息 元数据存在数据库, 考虑到字符串信息很难查询, 所以在api server打包成zip存在OSS. 管理页面新增错误报告的查看页面     --------- Co-authored-by: 段舒康 <kdletters@qq.com> Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/240 Co-authored-by: 王德宇 <kvtodev@outlook.com> Co-committed-by: 王德宇 <kvtodev@outlook.com>
83 lines
2.6 KiB
TOML
83 lines
2.6 KiB
TOML
[package]
|
|
name = "genarrative-ai-game-creator-shell"
|
|
version = "0.1.12"
|
|
edition = "2021"
|
|
publish = false
|
|
|
|
[features]
|
|
default = []
|
|
|
|
[build-dependencies]
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
sha2 = "0.10"
|
|
shared-contracts = { path = "../../../server-rs/crates/shared-contracts", default-features = false }
|
|
tauri-build = { version = "2.6.2", features = [] }
|
|
|
|
[dependencies]
|
|
ts-rs = "12.0.1"
|
|
typed_floats = { version = "1.0.7", features = ["serde"] }
|
|
nalgebra = { version = "0.35.0", features = ["serde-serialize"] }
|
|
agent-runtime-core = { path = "../../../server-rs/crates/agent-runtime-core" }
|
|
base64 = "0.22"
|
|
axum = "0.8"
|
|
chromiumoxide = "0.9.1"
|
|
futures = "0.3"
|
|
getrandom = "0.3"
|
|
http = "1"
|
|
image = { version = "0.25", default-features = false, features = ["jpeg", "png", "webp"] }
|
|
jsonschema = { version = "0.49.3", default-features = false }
|
|
oxc_allocator = "0.143.0"
|
|
oxc_ast = "0.143.0"
|
|
oxc_ast_visit = "0.143.0"
|
|
oxc_parser = "0.143.0"
|
|
oxc_semantic = "0.143.0"
|
|
oxc_span = "0.143.0"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
serde_yaml = "0.9"
|
|
schemars = "1.2.1"
|
|
sha2 = "0.10"
|
|
similar = "2.7"
|
|
platform-llm = { path = "../../../server-rs/crates/platform-llm" }
|
|
platform-agent = { path = "../../../server-rs/crates/platform-agent" }
|
|
portable-pty = "0.9"
|
|
percent-encoding = "2"
|
|
reqwest = { version = "0.12", default-features = false, features = ["json", "multipart", "native-tls", "stream"] }
|
|
regex = "1"
|
|
shared-contracts = { path = "../../../server-rs/crates/shared-contracts", default-features = false }
|
|
tauri = { version = "2.11.2", features = [] }
|
|
tauri-plugin-dialog = "2.7.1"
|
|
tauri-plugin-http = { version = "2.5.9", default-features = false, features = ["charset", "cookies", "http2", "rustls-tls"] }
|
|
tauri-plugin-opener = "2"
|
|
tempfile = "3"
|
|
toml = "0.8"
|
|
ttf-parser = "0.25.1"
|
|
tokio = { version = "1", features = ["io-util", "macros", "process", "rt-multi-thread", "signal", "sync", "time"] }
|
|
url = "2"
|
|
unicode-normalization = "0.1"
|
|
uuid = { version = "1", features = ["v4"] }
|
|
zip = { version = "2", default-features = false, features = ["deflate"] }
|
|
tauri-plugin-clipboard-manager = "2.3.2"
|
|
maud = "0.27.0"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2"
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-sys = { version = "0.61", features = ["Wdk_Storage_FileSystem", "Win32_Foundation", "Win32_Storage_FileSystem", "Win32_System_Diagnostics_ToolHelp", "Win32_System_IO", "Win32_System_JobObjects", "Win32_System_Threading", "Win32_UI_WindowsAndMessaging"] }
|
|
|
|
[profile.dev]
|
|
opt-level = 0
|
|
debug = 1
|
|
codegen-units = 256
|
|
lto = "off"
|
|
incremental = true
|
|
|
|
[profile.test]
|
|
opt-level = 0
|
|
debug = 1
|
|
codegen-units = 256
|
|
lto = "off"
|
|
incremental = false
|