feat(web): Go plugin W-G1 assemble/render + SQLite smoke path
Port table/compose/style/render/db/form/app bags, register ABI symbols, prefer MARQDO_WEB_PLUGIN over ~/.marqdo, and pass web-smoke + web-zh-smoke. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
fd3f1724e6
commit
7a0309284a
17 files changed
+4120
-18
No files matched your search
+9
-6
@@ -435,12 +435,21 @@ pub fn remove_ext(id: &str) -> Result<()> {
|
||||
|
||||
/// Resolve installed native plugin path for `name` (`agent`, `web`, …).
|
||||
/// Also falls back to cargo `target/{debug,release}` artifacts for local runs.
|
||||
///
|
||||
/// `MARQDO_*_PLUGIN` env overrides installed `~/.marqdo/ext` so developers can
|
||||
/// point at a freshly built Go `libweb.so` during the web rewrite.
|
||||
pub fn installed_native_path(name: &str) -> Option<PathBuf> {
|
||||
let short = native_short_name(name);
|
||||
if !matches!(short, "agent" | "web" | "quantum" | "linalg") {
|
||||
return None;
|
||||
}
|
||||
let lib_name = native_lib_filename(short);
|
||||
if let Ok(p) = env::var(native_env_var(short)) {
|
||||
let p = PathBuf::from(p);
|
||||
if p.is_file() {
|
||||
return Some(p);
|
||||
}
|
||||
}
|
||||
for root in trusted_plugin_roots() {
|
||||
let hint = root.join(format!("{short}.plugin"));
|
||||
if let Ok(s) = fs::read_to_string(&hint) {
|
||||
@@ -454,12 +463,6 @@ pub fn installed_native_path(name: &str) -> Option<PathBuf> {
|
||||
return Some(p);
|
||||
}
|
||||
}
|
||||
if let Ok(p) = env::var(native_env_var(short)) {
|
||||
let p = PathBuf::from(p);
|
||||
if p.is_file() {
|
||||
return Some(p);
|
||||
}
|
||||
}
|
||||
find_native_plugin(short).ok()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user