refactor(profile): extract script validation and execution

Share the Boa validation and execution API while preserving the save-side timeout and diagnostics.
This commit is contained in:
Tunglies
2026-11-30 18:13:50 +08:00
parent 96c926c33f
commit b232c4506d
6 changed files with 290 additions and 19 deletions
Generated
+15
View File
@@ -1097,6 +1097,7 @@ dependencies = [
"clash-verge-limiter",
"clash-verge-logging",
"clash-verge-media-unlock",
"clash-verge-profile-script",
"clash-verge-runtime-bundle",
"clash-verge-signal",
"clash-verge-subscription",
@@ -1216,6 +1217,20 @@ dependencies = [
"tokio",
]
[[package]]
name = "clash-verge-profile-script"
version = "0.1.0"
dependencies = [
"boa_engine",
"clash-verge-logging",
"log",
"parking_lot 0.13.0",
"serde_json",
"serde_yaml_ng",
"tokio",
"tristr",
]
[[package]]
name = "clash-verge-runtime-bundle"
version = "0.1.0"