37e40073ef
Iter 19. Patrón con 4 consumers idénticos: cada main() repetía el mismo ~20 líneas de boot (Application::new + Theme::install_default + cx.open_window + WindowOptions + cx.activate). Sólo varían título, tamaño y root factory. crates/modules/ui_engine/libs/launcher/: - pub fn launch_app(title, size, root_factory) → 1-line boot. - pub fn launch_app_with(config, root_factory) → variante con config armado afuera (env-var driven, etc). - pub struct AppLaunchConfig::new(title, size). - 2 tests cubren normalización del config. Migración 4 consumers (nakui/nouser/minga/brahman-broker explorer): - main() pasa de ~20 líneas a 1: launch_app(...). - Imports gpui podados (no más App/Application/Bounds/WindowOpts/etc). - Cada uno agrega dep yahweh-launcher. Naming: yahweh-shell ya existe (bootstrap heavyweight con file/db/text viewers en crates/apps/). Helper liviano queda como yahweh-launcher. Ahorro ~75 líneas de boot hardcoded. Cambios de window/theme boot ahora en un solo lugar. 2/2 tests launcher; 4 consumer suites intactas, todo verde. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
26 lines
1.0 KiB
TOML
26 lines
1.0 KiB
TOML
[package]
|
|
name = "nakui-explorer"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "Explorador GPUI del event log de Nakui: timeline de seeds + morphisms, schema hashes, breakdown por entity. Standalone (lee un .jsonl) — futura integración con sidecar brahman cuando nakui se daemonice."
|
|
|
|
[dependencies]
|
|
nakui-core = { path = "../../modules/nakui/core" }
|
|
yahweh-meta-runtime = { path = "../../modules/ui_engine/libs/meta-runtime" }
|
|
yahweh-widget-banner = { path = "../../modules/ui_engine/widgets/banner" }
|
|
yahweh-widget-card = { path = "../../modules/ui_engine/widgets/card" }
|
|
yahweh-theme = { path = "../../modules/ui_engine/libs/theme" }
|
|
yahweh-launcher = { path = "../../modules/ui_engine/libs/launcher" }
|
|
yahweh-widget-app-header = { path = "../../modules/ui_engine/widgets/app-header" }
|
|
gpui = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
uuid = { workspace = true, features = ["serde"] }
|
|
|
|
[dev-dependencies]
|
|
tempfile = { workspace = true }
|
|
|
|
[[bin]]
|
|
name = "nakui-explorer"
|
|
path = "src/main.rs"
|