feat: add TF reference refresh button to Terraform Agent menu

- Add dropdown menu (⋮) in Terraform toolbar with "Atualizar Referência TF" button
- Remove standalone reference-status API endpoint, keep only refresh-reference
- Button triggers `terraform providers schema -json` regeneration with progress feedback
- Shows line count and update timestamp after successful refresh
- Update README with new line counts
This commit is contained in:
nogueiraguh
2026-03-08 01:05:18 -03:00
parent 19e481275d
commit 805286c05f
3 changed files with 51 additions and 16 deletions

View File

@@ -357,14 +357,14 @@ Allow group <group-name> to read buckets in compartment <compartment-name>
```
oci-cis-agent/
├── backend/
│ ├── app.py # FastAPI application (~4200 lines)
│ ├── app.py # FastAPI application (~4195 lines)
│ ├── cis_reports.py # Oracle CIS Benchmark checker (6660 lines, report engine)
│ ├── mcp_cis_server.py # MCP server with 12 granular CIS tools (~700 lines)
│ ├── gen_tf_reference.py # OCI Terraform provider resource catalog generator
│ ├── Dockerfile # Python 3.12 + OCI CLI + Terraform CLI
│ └── requirements.txt # Dependencies
├── frontend/
│ └── index.html # SPA with Oracle Cloud theme (~1980 lines)
│ └── index.html # SPA with Oracle Cloud theme (~2020 lines)
├── nginx/
│ └── default.conf # Reverse proxy config
├── docker-compose.yml # Orchestration
@@ -516,8 +516,7 @@ oci-cis-agent/
| GET | `/api/terraform/workspaces/{wid}/download` | Download workspace `.tf` files |
| POST | `/api/terraform/workspaces/{wid}/cancel` | Cancel running Terraform operation |
| DELETE | `/api/terraform/workspaces/{wid}` | Delete workspace |
| POST | `/api/terraform/refresh-reference` | Regenerate OCI Terraform resource reference |
| GET | `/api/terraform/reference-status` | Check resource reference availability |
| POST | `/api/terraform/refresh-reference` | Regenerate OCI Terraform resource reference (UI button) |
### Chat & Reports