Add 'fiscal/' from commit '102ba84500dbd9655a0471288c3e278652593ca9'

git-subtree-dir: fiscal
git-subtree-mainline: d95165fc8f
git-subtree-split: 102ba84500
This commit is contained in:
gti
2026-09-29 14:43:23 -03:00
868 changed files with 566394 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
# Hub + local dev-only Firebird settings. Copy to .env locally; never commit
# credentials or database URLs (this file is a template, .env is gitignored).
#
# For a real client Agent installation, use agent/.env.example instead — this
# file's FIREBIRD_* values are for the disposable dev/test database only.
FIREBIRD_DATABASE_PATH=
# Default MUST be 0. Only ever set to 1 against the authorized disposable
# test database (see CLAUDE.md "Firebird write policy"); the agent fails
# closed if the configured path is not exactly that file.
FIREBIRD_WRITES=0
# --- Hub / PostgreSQL ---
# DATABASE_URL takes precedence when set. If you override POSTGRES_DB/POSTGRES_USER
# below, also set DATABASE_URL explicitly to match — the fallback URL built from
# POSTGRES_PASSWORD alone assumes the gti/gti_fiscal defaults.
DATABASE_URL=postgresql+psycopg://gti:development-only@localhost:5432/gti_fiscal
POSTGRES_DB=gti_fiscal
POSTGRES_USER=gti
POSTGRES_PASSWORD=
HUB_PORT=8000
BASE_URL=http://localhost:8000
APP_ENV=development
LOG_LEVEL=INFO
AGENT_ONLINE_THRESHOLD_SECONDS=120
# Local-dev-only agent bootstrap. Leave unset in any shared/pilot environment —
# real Agents are created with central/scripts/register_agent.py.
AGENT_DEV_TOKEN=
NCM_DATASET_URL=https://portalunico.siscomex.gov.br/classif/api/publico/nomenclatura/download/json
CEST_DATASET_URL=https://www.confaz.fazenda.gov.br/legislacao/convenios/2018/CV142_18
DATASET_STORAGE_PATH=./data/datasets
HTTP_TIMEOUT_SECONDS=30
# Company context (Agent). Leave empty when C000004 has one row and CRT sources agree.
# COMPANY_CODE= # C000004.CODIGO of the active company (when C000004 has several rows and EMISSOR cannot disambiguate)
# COMPANY_CNPJ= # alternative selector (digits only); a stable, verifiable identifier
# COMPANY_CRT_SOURCE= # EMISSOR | C000004 — required when the two CRT values disagree (emission programs read EMISSOR)
# Z.ai (OpenAI-compatible). NEVER commit the real key. Key lives only in .env
AI_API_KEY=
AI_BASE_URL=https://api.z.ai/api/paas/v4
AI_MODEL=glm-5.3
# Optional prices (USD per 1M tokens) - only set when confirmed with the provider
AI_PRICE_IN_PER_M=
AI_PRICE_OUT_PER_M=