feat(web,agent): hosting H1–H4 — proxy, invoke, MCP stdio, cross-module db
Close GAP-01–05 with ext/web streaming reverse proxy and HTTP→## invoke, transitive object method lookup, corpus_search plugin ensure, and agent MCP server stdio so downstream apps can drop Python side relays. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
2e068e66d4
commit
fc543f1ca5
31 files changed
+2765
-102
No files matched your search
@@ -281,6 +281,8 @@ pub fn listen(
|
||||
middleware: &Middleware,
|
||||
mut site_head: Vec<crate::assets::HeadLink>,
|
||||
mut icon_routes: Vec<crate::assets::IconRoute>,
|
||||
proxy_routes: Vec<(String, crate::proxy::ProxyRoute)>,
|
||||
invoke_routes: Vec<(String, crate::invoke::InvokeRoute)>,
|
||||
) -> Result<Value, String> {
|
||||
let mut form_owners = HashMap::new();
|
||||
collect_page_forms(page, &mut forms, &mut form_owners);
|
||||
@@ -601,6 +603,10 @@ pub fn listen(
|
||||
);
|
||||
}
|
||||
|
||||
// Streaming proxy + HTTP→## invoke (before fallback so paths are explicit).
|
||||
app = crate::proxy::mount_all(app, &proxy_routes);
|
||||
app = crate::invoke::mount_all(app, &invoke_routes);
|
||||
|
||||
app = app.fallback(get(fallback_404));
|
||||
|
||||
let app = crate::middleware::apply(app, middleware);
|
||||
|
||||
Reference in new issue
Block a user