Commit Graph

16 Commits

Author SHA1 Message Date
348c758392 fix(config): Ensure API keys are loaded by orchestrator
- Reverts docker-compose.yml to use volume mount for gemini_api_key.txt, due to format constraints.
- Restores and refines Config.load_api_keys() in config.py.
- **Crucially, calls Config.load_api_keys() at the start of gtm_architect_orchestrator.py to ensure keys are loaded.**
- Adjusts _get_gemini_api_key in helpers.py to prioritize keys from Config.API_KEYS.
- This definitively addresses the 'API Key missing' error by guaranteeing key initialization.
2026-01-03 09:33:33 +00:00
ac36aa245a fix(debug): Add version info and API key debugging
- Adds a version and timestamp to the orchestrator's startup logs to verify code deployment.
- Introduces extensive debug logging in config.py and helpers.py to trace the API key loading process, including exact file paths and environment variable checks. This will help diagnose the persistent 'API Key missing' error.
2026-01-03 09:06:00 +00:00
6d5d9926ac feat(gtm-architect): Finalize migration and implement web scraping
- Refactors the gtm-architect Dockerfile for a flat, more efficient build process.
- Implements robust web scraping via BeautifulSoup in helpers.py for URL analysis in phase1.
- Makes shared library imports (gspread, pandas, etc.) in helpers.py optional to prevent ModuleNotFoundErrors in microservices.
- Implements the main execution logic in the orchestrator to handle command-line arguments.
- Updates documentation to reflect the new architecture, scraping feature, and dependency handling.
2026-01-03 08:43:53 +00:00
416cb28446 Refactor GTM Architect to v2: Python-driven architecture, 9-phase process, new DB and Docker setup 2026-01-02 19:00:05 +00:00
21ea1e478c Fix GTM Architect: Robust prompt syntax, Gemini API migration, Docker logging 2026-01-01 22:39:43 +00:00
df58878973 fix(gtm-architect): Stabilize Docker environment and fix frontend
- Refactor Docker build process for gtm-app to ensure reliability
- Correct volume mounts and build context in docker-compose.yml to prevent stale code
- Fix frontend 404 error by using relative paths in index.html
- Ensure API key is correctly mounted into the container
- Stabilize Node.js to Python data passing via explicit --data argument
- Update gtm_architect_documentation.md with extensive troubleshooting guide
2026-01-01 08:36:48 +00:00
df78055ecf fix(gtm): Implement ultimate prompt robustness, version logging, and final doc update 2025-12-31 15:34:45 +00:00
21478f4f71 fix(gtm): Ultimate prompt syntax robustness, add versions to logs, update migration docs 2025-12-31 15:26:23 +00:00
71bbfc6ac5 fix(gtm): Final robust prompt construction to eliminate SyntaxError and update migration guide 2025-12-31 15:04:45 +00:00
1f8bdfa821 fix(gtm): Resolve SyntaxError in multi-line prompt by changing "2. " to "2) " numbering 2025-12-31 14:55:06 +00:00
1da1d5433b fix(gtm): Final syntax fix for dictionaries and f-strings 2025-12-31 14:30:02 +00:00
e349cefe4b fix(gtm): Correct dictionary merge syntax error and add debug logging 2025-12-31 14:27:04 +00:00
34700e7103 fix(gtm): Replace risky ternary operators in f-strings with explicit if/else blocks to fix SyntaxError 2025-12-31 14:23:45 +00:00
5d54200c94 fix(gtm): Resolve f-string SyntaxError and helpers.py incompatibility in orchestrator 2025-12-31 14:20:30 +00:00
c4fd7d4365 fix(gtm): Remove unsupported 'system_message' arg from call_openai_chat calls and fix indentation 2025-12-31 14:11:25 +00:00
2b4d8d6f7b feat(gtm-architect): Integrate GTM Architect app with Python backend, DB persistence, and Docker stack 2025-12-31 12:38:28 +00:00