From d7d3c901523349efa4026122b676578b625099c9 Mon Sep 17 00:00:00 2001 From: buenosairesam Date: Tue, 20 Jan 2026 09:53:11 -0300 Subject: [PATCH] more decoupling --- cfg/amar/.env.example | 5 +- cfg/amar/config.json | 3 - cfg/amar/soleprint/.env | 3 - cfg/standalone/config.json | 3 - cfg/standalone/data/books.json | 69 +-------------- soleprint/atlas/index.html | 2 +- soleprint/atlas/main.py | 87 ++++++++++++------- soleprint/main.py | 19 +--- soleprint/run.py | 36 ++++++-- .../station/tools/modelgen/config_loader.py | 41 +++++---- 10 files changed, 112 insertions(+), 156 deletions(-) diff --git a/cfg/amar/.env.example b/cfg/amar/.env.example index 2a1c049..71093e5 100644 --- a/cfg/amar/.env.example +++ b/cfg/amar/.env.example @@ -36,11 +36,8 @@ DB_DUMP=test.sql BACKEND_PORT=8000 FRONTEND_PORT=3000 -# Soleprint ports +# Soleprint port SOLEPRINT_PORT=12000 -ARTERY_PORT=12001 -ATLAS_PORT=12002 -STATION_PORT=12003 # ============================================================================= # BACKEND SERVER (Uvicorn) diff --git a/cfg/amar/config.json b/cfg/amar/config.json index 9af9c57..8971389 100644 --- a/cfg/amar/config.json +++ b/cfg/amar/config.json @@ -22,7 +22,6 @@ "slug": "artery", "title": "Artery", "tagline": "Todo lo vital", - "port": 12001, "icon": "💉" }, { @@ -31,7 +30,6 @@ "slug": "atlas", "title": "Atlas", "tagline": "Documentación accionable", - "port": 12002, "icon": "🗺️" }, { @@ -40,7 +38,6 @@ "slug": "station", "title": "Station", "tagline": "Monitores, Entornos y Herramientas", - "port": 12003, "icon": "🎛️" } ], diff --git a/cfg/amar/soleprint/.env b/cfg/amar/soleprint/.env index 5436253..1e23f82 100644 --- a/cfg/amar/soleprint/.env +++ b/cfg/amar/soleprint/.env @@ -21,9 +21,6 @@ SOLEPRINT_BARE_PATH=/home/mariano/wdir/spr/gen # PORTS # ============================================================================= SOLEPRINT_PORT=12000 -ARTERY_PORT=12001 -ATLAS_PORT=12002 -STATION_PORT=12003 # ============================================================================= # DATABASE (amar's DB for station tools) diff --git a/cfg/standalone/config.json b/cfg/standalone/config.json index ec62d31..74572a2 100644 --- a/cfg/standalone/config.json +++ b/cfg/standalone/config.json @@ -15,7 +15,6 @@ "slug": "artery", "title": "Artery", "tagline": "Todo lo vital", - "port": 12001, "icon": "💉" }, { @@ -24,7 +23,6 @@ "slug": "atlas", "title": "Atlas", "tagline": "Documentación accionable", - "port": 12002, "icon": "🗺️" }, { @@ -33,7 +31,6 @@ "slug": "station", "title": "Station", "tagline": "Monitores, Entornos y Herramientas", - "port": 12003, "icon": "🎛️" } ], diff --git a/cfg/standalone/data/books.json b/cfg/standalone/data/books.json index d201c7f..69852c7 100644 --- a/cfg/standalone/data/books.json +++ b/cfg/standalone/data/books.json @@ -1,79 +1,14 @@ { "items": [ - { - "name": "arch-model", - "slug": "arch-model", - "title": "Architecture Model", - "status": "ready", - "template": null, - "larder": { - "name": "arch-model", - "slug": "arch-model", - "title": "Architecture Model", - "status": "ready", - "source_template": null, - "data_path": "album/book/arch-model" - }, - "output_larder": null, - "system": "album" - }, { "name": "feature-flow", "slug": "feature-flow", "title": "Feature Flow Pipeline", "status": "ready", "template": null, - "larder": { - "name": "feature-flow", - "slug": "feature-flow", - "title": "Feature Flow Pipeline", - "status": "ready", - "source_template": null, - "data_path": "album/book/feature-flow" - }, + "larder": null, "output_larder": null, - "system": "album" - }, - { - "name": "gherkin-samples", - "slug": "gherkin-samples", - "title": "Gherkin Samples", - "status": "ready", - "template": null, - "larder": { - "name": "gherkin-samples", - "slug": "gherkin-samples", - "title": "Gherkin Samples", - "status": "ready", - "source_template": null, - "data_path": "album/book/gherkin-samples" - }, - "output_larder": null, - "system": "album" - }, - { - "name": "feature-form-samples", - "slug": "feature-form-samples", - "title": "Feature Form Samples", - "status": "ready", - "template": { - "name": "feature-form", - "slug": "feature-form", - "title": "Feature Form Template", - "status": "ready", - "template_path": "album/template/feature-form", - "system": "album" - }, - "larder": { - "name": "feature-form", - "slug": "feature-form", - "title": "Feature Forms", - "status": "ready", - "source_template": "feature-form", - "data_path": "album/book/feature-form-samples/feature-form" - }, - "output_larder": null, - "system": "album" + "system": "atlas" } ] } diff --git a/soleprint/atlas/index.html b/soleprint/atlas/index.html index 95da078..dea9e62 100644 --- a/soleprint/atlas/index.html +++ b/soleprint/atlas/index.html @@ -205,7 +205,7 @@