{ "schema_version": 1, "diagram_type": "tree", "meta": { "title": "ThothII — struttura dei moduli", "locale": "it", "output": "docs/architecture/thothii-modules.html", "quality_profile": "showcase", "repository": { "url": "https://git.tylconsulting.it/mptyl/ThothII.git", "link_mode": "local-only", "revision": "31e6d3a162e9e5ac71fc2d8da4fe44b16c06aae3" } }, "layout": { "direction": "right" }, "nodes": [ { "id": "root", "label": "ThothII", "sublabel": "monorepo, tre layer + operatore", "sources": [ { "path": "AGENTS.md", "line": 1 } ] }, { "id": "frontend", "label": "frontend/", "parent": "root", "sublabel": "React 18 + Vite", "sources": [ { "path": "frontend/src/main.tsx", "line": 1 } ] }, { "id": "fe_api", "label": "src/api", "parent": "frontend", "sublabel": "client HTTP verso /api", "sources": [ { "path": "frontend/src/api/client.ts", "line": 1 } ] }, { "id": "fe_shell", "label": "src/shell", "parent": "frontend", "sublabel": "AppShell e pagine admin", "sources": [ { "path": "frontend/src/shell/AppShell.tsx", "line": 1 } ] }, { "id": "fe_store", "label": "src/store + stream", "parent": "frontend", "sublabel": "transcript live da SSE", "sources": [ { "path": "frontend/src/store/sessionStore.ts", "line": 1 } ] }, { "id": "fe_widgets", "label": "src/widgets", "parent": "frontend", "sublabel": "widget dei gate reviewer", "sources": [ { "path": "frontend/src/widgets/registry.ts", "line": 1 } ] }, { "id": "fe_i18n", "label": "src/i18n", "parent": "frontend", "sublabel": "cataloghi EN/IT" }, { "id": "backend", "label": "backend/", "parent": "root", "sublabel": "Fastify + TypeScript", "sources": [ { "path": "backend/src/server.ts", "line": 1 } ] }, { "id": "be_routes", "label": "src/routes", "parent": "backend", "sublabel": "API REST e SSE", "sources": [ { "path": "backend/src/routes/sessions.ts", "line": 1 } ] }, { "id": "be_bridge", "label": "src/pi + rpc + bridge", "parent": "backend", "sublabel": "processi Pi e bridge RPC", "sources": [ { "path": "backend/src/pi/pi-process-manager.ts", "line": 1 } ] }, { "id": "be_sse", "label": "src/sse", "parent": "backend", "sublabel": "SseHub con replay", "sources": [ { "path": "backend/src/sse/sse-hub.ts", "line": 1 } ] }, { "id": "be_tht", "label": "src/tht", "parent": "backend", "sublabel": "ThtRunner: shell del CLI", "sources": [ { "path": "backend/src/tht/tht-runner.ts", "line": 1 } ] }, { "id": "be_auth", "label": "src/auth", "parent": "backend", "sublabel": "local, OIDC, upstream", "sources": [ { "path": "backend/src/auth/auth.ts", "line": 1 } ] }, { "id": "be_catalog", "label": "src/catalog", "parent": "backend", "sublabel": "Metadata Catalog, sync, descrizioni", "sources": [ { "path": "backend/src/catalog/service.ts", "line": 1 } ] }, { "id": "be_ws", "label": "src/workspaces", "parent": "backend", "sublabel": "registry Git e preprocessing", "sources": [ { "path": "backend/src/workspaces/preprocessing-service.ts", "line": 1 } ] }, { "id": "harness", "label": "harness/", "parent": "root", "sublabel": "workflow NL→SQL", "sources": [ { "path": "harness/README.md", "line": 1 } ] }, { "id": "h_wf", "label": "workflow.yaml", "parent": "harness", "sublabel": "fasi F1–F8", "sources": [ { "path": "harness/workflow.yaml", "line": 1 } ] }, { "id": "h_pi", "label": ".pi/", "parent": "harness", "sublabel": "estensione gate, skill, prompt", "sources": [ { "path": "harness/.pi/extensions/tht-gate.js", "line": 1 } ] }, { "id": "h_cli", "label": "tht/cli", "parent": "harness", "sublabel": "sottocomandi del CLI tht", "sources": [ { "path": "harness/tht/cli/__init__.py", "line": 1 } ] }, { "id": "h_session", "label": "tht/session + phase", "parent": "harness", "sublabel": "manifest, ledger, fase", "sources": [ { "path": "harness/tht/session/store.py", "line": 1 } ] }, { "id": "h_adapters", "label": "tht/adapters", "parent": "harness", "sublabel": "DWH e Qdrant", "sources": [ { "path": "harness/tht/adapters/factory.py", "line": 1 } ] }, { "id": "h_search", "label": "tht/search + vectorstore", "parent": "harness", "sublabel": "retrieval ibrido", "sources": [ { "path": "harness/tht/vectorstore/embeddings.py", "line": 1 } ] }, { "id": "h_memory", "label": "tht/memory", "parent": "harness", "sublabel": "card e domande risolte", "sources": [ { "path": "harness/tht/memory/repository.py", "line": 1 } ] }, { "id": "h_evidence", "label": "tht/evidence", "parent": "harness", "sublabel": "corpus Evidence", "sources": [ { "path": "harness/tht/evidence/preprocessing.py", "line": 1 } ] }, { "id": "h_mschema", "label": "tht/mschema", "parent": "harness", "sublabel": "snapshot e schema per il modello", "sources": [ { "path": "harness/tht/mschema/catalog_snapshot.py", "line": 1 } ] }, { "id": "tools", "label": "tools/tht", "parent": "root", "sublabel": "CLI host in Go", "sources": [ { "path": "tools/tht/README.md", "line": 1 } ] }, { "id": "t_cmd", "label": "cmd/tht", "parent": "tools", "sublabel": "comandi operatore", "sources": [ { "path": "tools/tht/cmd/tht/main.go", "line": 1 } ] }, { "id": "t_internal", "label": "internal/", "parent": "tools", "sublabel": "compose, setup, doctor, auth", "sources": [ { "path": "tools/tht/internal/compose/runner.go", "line": 1 } ] }, { "id": "deploy", "label": "docker/ + deploy/", "parent": "root", "sublabel": "immagini e profili Compose", "sources": [ { "path": "compose.yaml", "line": 1 } ] }, { "id": "docs", "label": "docs/", "parent": "root", "sublabel": "MkDocs, ADR, contratti", "sources": [ { "path": "mkdocs.yml", "line": 1 } ] } ], "cards": [ { "dot": "cyan", "title": "Lettura", "items": [ "Le linee indicano contenimento, non chiamate", "Alcuni nodi raggruppano più cartelle sorelle con lo stesso ruolo", "Test, script e cartelle generate sono omessi" ] } ] }