feat: Terraform resource reference from provider schema, provider alias fixes, and timestamps

- Add gen_tf_reference.py to generate OCI Terraform provider resource catalog (~937 resources) from `terraform providers schema -json`
- Auto-inject categorized resource reference into Terraform Agent system prompt to prevent invalid resource type names
- Build-time reference generation in Dockerfile, refreshable via POST /api/terraform/refresh-reference
- Provider alias detection with brace-matching parser for multi-region deployments
- Clean old .tf files before writing new ones on Re-plan
- Message timestamps in terraform chat and history
- Partial DOM rendering to eliminate screen flickering
- Layout overflow fix (no scroll beyond viewport)
This commit is contained in:
nogueiraguh
2026-03-08 01:00:47 -03:00
parent 8bccf9367e
commit 19e481275d
5 changed files with 327 additions and 28 deletions

View File

@@ -19,10 +19,14 @@ RUN pip install --no-cache-dir -r requirements.txt && \
COPY app.py .
COPY cis_reports.py .
COPY mcp_cis_server.py .
COPY gen_tf_reference.py .
# Data volume
RUN mkdir -p /data
# Generate OCI Terraform resource reference at build time
RUN python gen_tf_reference.py || echo "WARN: tf reference generation skipped (terraform init may need network)"
EXPOSE 8000
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "8"]