chore: auto-commit (5 archivos)
- CMakeLists.txt - agent.cpp - agent.h - gx-cli - main.cpp Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
#include "project_manager.h"
|
||||
#include "jobs.h"
|
||||
#include "enrichers.h"
|
||||
#include "chat.h"
|
||||
#include "agent.h"
|
||||
#include "extract_panel.h"
|
||||
|
||||
#include "../../../../cpp/vendor/sqlite3/sqlite3.h"
|
||||
@@ -725,7 +725,7 @@ static bool load_input(bool first_load) {
|
||||
// issue 0026 — apunta el JobRunner a la nueva operations.db.
|
||||
if (g_input.uri) ge::jobs_set_ops_db(g_input.uri);
|
||||
// Chat agent — refrescar contexto de la nueva operations.db.
|
||||
if (g_input.uri) ge::chat_set_ops_db(g_input.uri);
|
||||
if (g_input.uri) app_agent::chat_set_ops_db(g_input.uri);
|
||||
|
||||
// Cargar posiciones guardadas para este graph_hash. Ahora ANTES del
|
||||
// bootstrap circular: si tenemos posiciones guardadas las respetamos;
|
||||
@@ -1351,12 +1351,12 @@ static void render() {
|
||||
static int s_throttle = 0;
|
||||
if (++s_throttle >= 8) {
|
||||
s_throttle = 0;
|
||||
int m = ge::chat_mutations_counter();
|
||||
int m = app_agent::chat_mutations_counter();
|
||||
if (s_last_mut == -1) {
|
||||
// Primera lectura: solo memorizar, sin disparar reload.
|
||||
s_last_mut = m;
|
||||
} else if (m != s_last_mut) {
|
||||
ge::chat_log("mut",
|
||||
app_agent::chat_log("mut",
|
||||
"marker mtime cambio %d -> %d, disparando reload",
|
||||
s_last_mut, m);
|
||||
s_last_mut = m;
|
||||
@@ -2178,7 +2178,7 @@ static void render() {
|
||||
ImGui::SetNextWindowPos (ImVec2(vp->WorkPos.x + W * 0.55f, top + 40.0f),
|
||||
ImGuiCond_FirstUseEver);
|
||||
ImGui::SetNextWindowSize(ImVec2(520.0f, 720.0f), ImGuiCond_FirstUseEver);
|
||||
ge::chat_render(&g_app.panel_chat);
|
||||
app_agent::chat_render(&g_app.panel_chat);
|
||||
|
||||
// Extract panel (issue 0013) — flotante, dockeable.
|
||||
ImGui::SetNextWindowPos (ImVec2(vp->WorkPos.x + W * 0.30f, top + 50.0f),
|
||||
@@ -2501,7 +2501,7 @@ int main(int argc, char** argv) {
|
||||
// Chat panel (claude -p) — el agente invoca gx-cli para mutar
|
||||
// operations.db. agent_mutations counter en graph_explorer.db dispara
|
||||
// reload del viewport en cada cambio.
|
||||
if (!ge::chat_init(g_input.uri ? g_input.uri : "",
|
||||
if (!app_agent::chat_init(g_input.uri ? g_input.uri : "",
|
||||
app_db, app_dir.c_str())) {
|
||||
std::fprintf(stderr,
|
||||
"[graph_explorer] chat_init: claude no detectado "
|
||||
@@ -2586,7 +2586,7 @@ int main(int argc, char** argv) {
|
||||
sizeof(g_panels) / sizeof(g_panels[0]));
|
||||
|
||||
// Cleanup
|
||||
ge::chat_shutdown();
|
||||
app_agent::chat_shutdown();
|
||||
ge::extract_panel_shutdown();
|
||||
ge::jobs_shutdown();
|
||||
if (g_layout_storage) {
|
||||
|
||||
Reference in New Issue
Block a user