Commit Graph

86 Commits

Author SHA1 Message Date
9e0a795b4b Revert "fix(hub): use LlmAgent with explicit Vertex AI client"
This reverts commit c8af73304dbfddaccb65ecbcffcdc014a7c036f4.
2026-09-05 16:55:19 +00:00
1a1d4ae99b fix(hub): use LlmAgent with explicit Vertex AI client 2026-09-05 16:55:19 +00:00
d93398eafa Revert "fix(hub): explicit Vertex AI client + ADC auth"
This reverts commit be7aa3e5f9ad189418bc4ed1558ae385148db64b.
2026-09-05 16:55:19 +00:00
cffef7e430 fix(hub): explicit Vertex AI client + ADC auth 2026-09-05 16:55:19 +00:00
434f591f9c feat: gemini_guard — rate limiter + circuit breaker på alle Gemini-kall 2026-07-02 17:14:06 +00:00
54a86568b6 fix: gjør /run og /run/dag async — fjerner asyncio.run()-konflikt med uvicorn event loop
Some checks failed
Check Python Version Consistency / Check Python Version (push) Has been cancelled
2026-06-24 17:15:05 +00:00
5a10cdda3b fix: upgrade base image to python:3.13-slim to match dev environment 2026-06-23 14:21:11 +00:00
0f663c1d3d fix(startup): lazy-init root_agent in lifespan — fix Cloud Run startup probe 2026-06-23 12:17:58 +00:00
4dfcffd0b3 fix(startup): move all blocking calls to lifespan event 2026-06-23 11:54:44 +00:00
4610521e73 Merge remote-tracking branch github/main 2026-06-23 11:15:16 +00:00
2950542c29 fix(startup): move BQ table init to lifespan event — fixes Cloud Run startup probe timeout 2026-06-23 11:01:24 +00:00
ee50f8318e feat(agent): initial implementation of OPAX agent
Adds the core logic for the OPAX agent, including the main agent file, a deployment script, and an MCP client. This provides the foundation for the new agent-based architecture.
2026-06-23 09:51:32 +00:00
9627da37ae fix(agent): legg til vertexai.init() — ADK må initialiseras eksplisitt for Cloud Run 2026-06-17 17:59:05 +02:00
afabe8d2a9 fix: inline opax_mcp_client 2026-06-15 19:33:39 +00:00
294f455d67 fix(agent): inline opax_mcp_client direkte i agent.py — fjern ekstern import 2026-06-15 21:32:21 +02:00
31f58e4ce0 fix(deploy): gjer opax_mcp_client til Python-pakke med __init__.py for Vertex AI 2026-06-15 21:19:03 +02:00
61d1fa47ed fix(deploy): extra_packages peikar på .py-fil, ikkje mappe 2026-06-15 21:07:16 +02:00
a7e92cfba7 fix(deploy): legg til extra_packages for opax_mcp_client 2026-06-15 20:44:59 +02:00
bfd4d37f6e fix(jason): kopier opax_mcp_client inn i core-logic, redeploy med tools 2026-06-15 20:08:39 +02:00
5d137c1be7 fix(deploy_agent): rett import til vertexai.agent_engines (SDK 1.157.0) 2026-06-15 18:41:12 +02:00
beb466eab0 fix(docker): start main:app fra /app — ikke agents/core-logic 2026-06-13 16:40:14 +02:00
5916d26d1e fix(Dockerfile): WORKDIR /app + uvicorn main:app — starter riktig hovudapp 2026-06-13 06:55:34 +02:00
1d413a56d5 feat(CG4-budget): token-budsjett + context-trimming + Flash-first routing 2026-06-13 06:17:03 +02:00
950220166f fix: add GET / route serving opax.html from static/ 2026-06-10 21:15:31 +02:00
40788c35d4 fix: copy static/ into image so FileResponse can serve opax.html 2026-06-10 21:09:23 +02:00
b1464bd065 chore: revert debug endpoint and smoke test to /health 2026-06-10 16:48:08 +00:00
f7de25a411 feat(debug): add /debug-health endpoint for smoke testing 2026-06-10 16:17:41 +00:00
73d9898a7c fix(docker): correct python path and workdir for uvicorn 2026-06-10 15:34:56 +00:00
8b793a5408 fix(docker): correct Dockerfile WORKDIR and COPY for app context 2026-06-10 15:15:53 +00:00
0e16a5bf68 fix(docker): correct uvicorn entrypoint to app:app 2026-06-10 14:59:17 +00:00
1b8c8ac79c fix(ci): explicitly run agents.core-logic.app in Dockerfile 2026-06-10 14:54:02 +00:00
7bb12a0459 cleanup: slett midlertidig main.py wrapper i agents/core-logic 2026-06-10 11:08:45 +02:00
1a7d46d310 revert: fjern PYTHONPATH, tilbake til fungerende 8-stegs Dockerfile 2026-06-10 11:05:37 +02:00
5ccb95a1c3 fix: tilbakestill Dockerfile til fungerende versjon (6981359) + fiks main.py plassering 2026-06-10 10:43:22 +02:00
189042e366 fix: rett CMD til main:app (uvicorn bruker filnavn, ikke pakkenavn) 2026-06-10 10:33:10 +02:00
17cf2467a5 fix: erstatt printf-generert main.py med ekte fil + rydd Dockerfile 2026-06-10 10:32:55 +02:00
f5ac0ce0c1 fix: legg til agents/__init__.py og utvid PYTHONPATH til å inkludere /app/agents 2026-06-10 10:25:08 +02:00
f815901918 fix: bruk main.py wrapper i stedet for bindestrek-modul-navn 2026-06-10 10:19:19 +02:00
bddaf6cc6b fix: sett PYTHONPATH=/app og kjør uvicorn fra riktig modul-sti 2026-06-10 10:19:04 +02:00
66e7d1eff8 fix: uvicorn --app-dir peker direkte på agents/core-logic/app.py 2026-06-10 10:13:59 +02:00
20dabd3d2b fix: rett uvicorn-modul fra main:app til app:app 2026-06-10 10:13:45 +02:00
6981359223 CI6 post-mortem: legg til RUNBOOK.md og oppdater .env.example med MCP_SECRET 2026-06-10 07:55:30 +02:00
3bb95c8af9 CI6: fjern RAG fra root_agent — blokkerer AFC/MCP FunctionTools (TODO: RAG som sub-agent når korpus er oppdatert) 2026-06-10 07:17:26 +02:00
e5b4e2faa5 fix(CI3): bruk get_opax_tools() FunctionTools i stedet for MCPToolset 2026-06-10 03:49:38 +02:00
a095abd8bd feat(CI3): koble opax-mcp toolset til Jason-agenten 2026-06-10 03:30:48 +02:00
749a107e9d feat(OX1b+CG4): Embedded TUI i opax.html + token intelligence endepunkter
OX1b:
- opax.html: ny TUI-panel med xterm.js via /opax/tui-proxy WebSocket-bridge
- Jason-chat flyttes til primærpanel, TUI som sekundærfane
- Fullskjerm-toggle, kopier output, klar-knapp

CG4a:
- app.py: GET /billing/tokens/by-module — aggreger per module_name + caller_type
- app.py: GET /billing/tokens/estimate — prosjektestimator (snitt-tokens × faktor)
- Begge fallback til tomme lister ved BQ-feil (OQ-15 safe)

ROADMAP: OX1a , OX1b , CG4a  — oppdatert NOW/NEXT
2026-06-10 01:17:53 +02:00
1c447c4d3a feat(OX1a+ML-3b): Cloud Build live-widget i opax.html + /opax/build-status endepunkt + Gemma world.md
- app.py: ny GET /opax/build-status — poller Cloud Build API, returnerer siste build status/timing
- static/opax.html: ny Deploy-seksjon med live spinner → /, poller hvert 10s under aktiv build
- docs/gemma/world.md: Gemma kontekstpakke opprettet — alt Gemma trenger å forstå Vauco fra dag 1
2026-06-10 01:11:09 +02:00
7686fc7623 feat(CG3e+CG4): utvidet token-logging — caller_type, module_name, session_id + CG4-fase i ROADMAP
- token_logger.py: nytt schema med caller_type (agent|cli|browser|cron|api), module_name (jason/opax, costguard, threadstone, cli/gemini-tui, billing_agent), session_id
- agent.py: agent_name → strukturert label (module_name + mode), caller_type satt til 'agent'
- ROADMAP.md: CG4 Token Intelligence-fase lagt til (CG4a–CG4d) under NEXT
2026-06-10 00:36:25 +02:00
fe923d9d17 feat(CG6): modular drag+collapse dashboard, anomalies/budget/history endpoints, fix missing DOM refs 2026-06-10 00:02:44 +02:00
fd6aa1f2aa feat(CG5): add get_service_totals to BillingAgent + complete /billing/by-service in app.py 2026-06-09 23:45:08 +02:00