Write a layered technical-to-business specification for `T2TiERP-2-Delphi` of repo `T2TiERP-2-Delphi`.
💭 Model notes
✓ get_languages({"repo": "T2TiERP-2-Delphi"})
{"repo": "T2TiERP-2-Delphi", "languages": {"delphi": {"files": 2458, "loc": 989023, "units": 1895}, "sql": {"files": 2, "loc": 15698, "units": 742}}, "sql_objects": [{"name": "adm_modulo", "kind": "table", "file": "Frente de Caixa/NFC-e/DUMP_MySQL.sql", "line": 23, "github_url": "https://github.com…
✓ get_code_graph({"repo": "T2TiERP-2-Delphi"})
{'scope': '', 'focus': None, 'folders': [{'name': 'Retaguarda', 'path': 'Retaguarda', 'files': 1354, 'ui': 447, 'delphi': 907, 'python': 0, 'java': 0, 'sql': 0, 'database': 747, 'http': 5, 'other': 45}, {'name': 'Frente de Caixa', 'path': 'Frente de Caixa', 'files': 529, 'ui': 96, 'delphi': 431, 'p…
✓ get_complexity({"repo": "T2TiERP-2-Delphi"})
{"summary": {"files": 1897, "loc_source": "units", "weights": {"loc": 0.4, "fan_out": 0.25, "fan_in": 0.15, "symbols": 0.1, "resources": 0.1}, "file": {"most_complex": {"level": "file", "name": "Frente de Caixa/PAF-ECF-SN/Tela/UCaixa.pas", "file": "Frente de Caixa/PAF-ECF-SN/Tela/UCaixa.pas", "gith…
💭 Model notes
✓ get_code_graph({"repo": "T2TiERP-2-Delphi", "scope": "Retaguarda"})
{'scope': 'Retaguarda', 'focus': None, 'folders': [{'name': 'Comum', 'path': 'Retaguarda/Comum', 'files': 736, 'ui': 0, 'delphi': 736, 'python': 0, 'java': 0, 'sql': 0, 'database': 378, 'http': 0, 'other': 0}, {'name': 'Cliente', 'path': 'Retaguarda/Cliente', 'files': 609, 'ui': 446, 'delphi': 163,…
✓ get_code_graph({"repo": "T2TiERP-2-Delphi", "scope": "Frente de Caixa"})
{'scope': 'Frente de Caixa', 'focus': None, 'folders': [{'name': 'PAF-ECF', 'path': 'Frente de Caixa/PAF-ECF', 'files': 132, 'ui': 28, 'delphi': 104, 'python': 0, 'java': 0, 'sql': 0, 'database': 59, 'http': 1, 'other': 3}, {'name': 'PAF-ECF-SN', 'path': 'Frente de Caixa/PAF-ECF-SN', 'files': 130, …
✓ get_code_map({"repo": "T2TiERP-2-Delphi"})
# T2TiERP-2-Delphi — code map

Read this map before opening source. Pick the service, then the unit/route/client, and open only the files listed (each entry gives `file:line`).

- `get_code_map(repo, service=...)` — one service's units/routes/clients drawn as trees
- `get_code_map(repo, symbol=...)…
✓ get_interfaces({"kind": "routes", "repo": "T2TiERP-2-Delphi"})
{'routes': {}}
✓ get_interfaces({"kind": "clients", "repo": "T2TiERP-2-Delphi"})
{'clients': {}}
💭 Model notes
✓ get_code_graph({"repo": "T2TiERP-2-Delphi", "scope": "Retaguarda/Cliente"})
{'scope': 'Retaguarda/Cliente', 'focus': None, 'folders': [{'name': 'NFC-e Mobile', 'path': 'Retaguarda/Cliente/NFC-e Mobile', 'files': 102, 'ui': 5, 'delphi': 97, 'python': 0, 'java': 0, 'sql': 0, 'database': 31, 'http': 1, 'other': 0}, {'name': 'Cadastros', 'path': 'Retaguarda/Cliente/Cadastros',…
✓ get_code_graph({"repo": "T2TiERP-2-Delphi", "scope": "Retaguarda/Comum"})
{'scope': 'Retaguarda/Comum', 'focus': None, 'folders': [{'name': 'VO', 'path': 'Retaguarda/Comum/VO', 'files': 424, 'ui': 0, 'delphi': 424, 'python': 0, 'java': 0, 'sql': 0, 'database': 79, 'http': 0, 'other': 0}, {'name': 'Controller', 'path': 'Retaguarda/Comum/Controller', 'files': 295, 'ui': 0,…
✓ get_code_graph({"repo": "T2TiERP-2-Delphi", "scope": "Frente de Caixa/PAF-ECF-SN"})
{"scope": "Frente de Caixa/PAF-ECF-SN", "focus": null, "folders": [{"name": "VO", "path": "Frente de Caixa/PAF-ECF-SN/VO", "files": 57, "ui": 0, "delphi": 57, "python": 0, "java": 0, "sql": 0, "database": 4, "http": 0, "other": 0}, {"name": "Controller", "path": "Frente de Caixa/PAF-ECF-SN/Controll…
✓ get_code_graph({"repo": "T2TiERP-2-Delphi", "scope": "Frente de Caixa/NFC-e"})
{"scope": "Frente de Caixa/NFC-e", "focus": null, "folders": [{"name": "VO", "path": "Frente de Caixa/NFC-e/VO", "files": 68, "ui": 0, "delphi": 68, "python": 0, "java": 0, "sql": 0, "database": 3, "http": 0, "other": 0}, {"name": "Controller", "path": "Frente de Caixa/NFC-e/Controller", "files": 2…
✓ get_code_map({"depth": 1, "repo": "T2TiERP-2-Delphi", "symbol": "UTelaCadastro"})
### UTelaCadastro

unit · [Retaguarda/Cliente/Comum/Tela/UTelaCadastro.pas:36](https://github.com/alberteije/T2TiERP-2-Delphi/blob/277a36dea23ed2de1f651aa99cd7fb797743c576/Retaguarda/Cliente/Comum/Tela/UTelaCadastro.pas#L36)
classes: TFTelaCadastro(TFTela)
external: Windows, Messages, SysUtils, Var…
✓ get_code_map({"depth": 1, "repo": "T2TiERP-2-Delphi", "symbol": "UDataModule"})
### UDataModule

unit · [Frente de Caixa/Configurador/UDataModule.pas:36](https://github.com/alberteije/T2TiERP-2-Delphi/blob/277a36dea23ed2de1f651aa99cd7fb797743c576/Frente de Caixa/Configurador/UDataModule.pas#L36)
classes: TFDataModule(TDataModule)
external: SysUtils, Forms, ACBrBase, DBXMySql, …
💭 Model notes
✓ get_code_map({"depth": 1, "repo": "T2TiERP-2-Delphi", "symbol": "T2TiORM"})
### T2TiORM

unit · [Frente de Caixa/NFC-e/Util/T2TiORM.pas:36](https://github.com/alberteije/T2TiERP-2-Delphi/blob/277a36dea23ed2de1f651aa99cd7fb797743c576/Frente de Caixa/NFC-e/Util/T2TiORM.pas#L36)
classes: TT2TiORM
external: Rtti, SysUtils, SQLExpr, TypInfo, DBXCommon, Classes, Generics.Collect…
✓ get_code_map({"depth": 1, "repo": "T2TiERP-2-Delphi", "symbol": "NfeCabecalhoController"})
### NfeCabecalhoController

unit · [Retaguarda/Comum/Controller/NfeCabecalhoController.pas:36](https://github.com/alberteije/T2TiERP-2-Delphi/blob/277a36dea23ed2de1f651aa99cd7fb797743c576/Retaguarda/Comum/Controller/NfeCabecalhoController.pas#L36)
classes: TNfeCabecalhoController(TController)
exter…
✓ search_code_map({"limit": 15, "query": "Gerador", "repo": "T2TiERP-2-Delphi"})
Symbols matching `Gerador` (pass one as `symbol` to get its relations):

- program `Gerador` — T2Ti ERP - Gerador - Copia/Gerador.dpr:1
- program `Gerador` — T2Ti ERP - Gerador/Gerador.dpr:1
✓ search_code_map({"limit": 15, "query": "Servidor", "repo": "T2TiERP-2-Delphi"})
Symbols matching `Servidor` (pass one as `symbol` to get its relations):

- column `IP_SERVIDOR` in `ecf_configuracao` — Frente de Caixa/NFC-e/DUMP_MySQL.sql:1563
- column `EMAIL_SERVIDOR_SMTP` in `nfe_configuracao` — Frente de Caixa/NFC-e/DUMP_MySQL.sql:4661
- column `IP_SERVIDOR` in `ecf_configur…
💭 Model notes