chore: monorepo inicial con arje + minga + yahweh absorbidos

Workspace en 4 ejes (core/modules/apps/shared):

- core/: 24 crates de arje (Init systemd-compatible: ente-card, ente-zero,
  ente-kernel, ente-bus, ente-cas, ente-soma, ente-wasm, ente-snapshot,
  ente-brain, ente-echo, ente-policy-provider, + 12 crates *-compat)
- modules/semantic_dht/: 5 crates de minga (minga-core con AST/CAS/MST,
  minga-p2p con libp2p Kad, minga-store, minga-vfs, minga-cli)
- modules/ui_engine/: 11 crates de yahweh (libs/{core,theme,bus,providers},
  widgets/{tree,splitter,tabs,tiled,container_core,text_input})
- apps/: 5 crates de yahweh (file_explorer, database_explorer, text_viewer,
  image_viewer, yahweh-shell)
- shared_wit/protocol.wit: handshake/lifecycle inicial

Cargo.toml unificado: thiserror bumped a 2 (transparente para arje), tokio
"full", paths intra-workspace de yahweh redirigidos a su nueva ubicación.

cargo check --workspace: 0 errores, 17 warnings (dead code preexistente).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Sergio
2026-05-08 04:45:44 +00:00
commit 53dbdf0f1d
176 changed files with 34845 additions and 0 deletions
+63
View File
@@ -0,0 +1,63 @@
//! Yahweh — bootstrap GPUI.
//!
//! Fase 6: además del LayoutModel, la Shell crea un `AppBus` (Entity) y se
//! lo pasa al LayoutHost. El bus circula a viewers (TextViewer,
//! ImageViewer) que se subscriben directo, y el LayoutHost forwardea los
//! eventos tipados de los explorers (FileExplorer, DatabaseExplorer)
//! traducidos a AppEvent.
mod hot_reload;
mod layout_host;
mod layout_model;
mod managed_tree;
mod persister;
mod status_panel;
use gpui::{App, Application, Bounds, WindowBounds, WindowOptions, prelude::*, px, size};
use yahweh_bus::AppBus;
use yahweh_core::LayerConfig;
use yahweh_theme::Theme;
use crate::layout_host::LayoutHost;
use crate::layout_model::LayoutModel;
use crate::persister::Persister;
const LAYOUT_PATH: &str = "layout.json";
fn main() {
Application::new().run(|cx: &mut App| {
Theme::install_default(cx);
let config = LayerConfig::load_or_default(LAYOUT_PATH);
let bounds = Bounds::centered(None, size(px(1300.), px(800.)), cx);
cx.open_window(
WindowOptions {
window_bounds: Some(WindowBounds::Windowed(bounds)),
..Default::default()
},
|_w, cx| {
let model = cx.new(|_| LayoutModel::new(config.clone()));
let bus = cx.new(|_| AppBus);
let persister = cx.new(|cx| {
Persister::new(LAYOUT_PATH.into(), model.clone(), cx)
});
// Hot-reload: notify watcher en el dir del JSON. El
// watcher debe mantenerse vivo (drop ⇒ stop), así que lo
// movemos a una static atómica vía Box::leak.
match hot_reload::spawn_watch(LAYOUT_PATH.into(), model.clone(), cx) {
Ok(watcher) => {
Box::leak(Box::new(watcher));
}
Err(e) => {
eprintln!("[hot_reload] no se pudo iniciar watcher: {}", e);
}
}
cx.new(|cx| LayoutHost::new(model, bus, persister, cx))
},
)
.unwrap();
cx.activate(true);
});
}