chore: auto-commit (8 archivos)
- backend/handlers.go - data.cpp - data.h - main.cpp - panel_board.cpp - panel_filters.cpp - appicon.ico - backend/kanban_cpp_backend.exe Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <mutex>
|
||||
#include <set>
|
||||
#include <string>
|
||||
@@ -48,20 +49,25 @@ struct Filters {
|
||||
std::set<std::string> priorities;
|
||||
std::set<std::string> tags;
|
||||
bool include_completed = false;
|
||||
bool show_issues = true;
|
||||
bool show_flows = true;
|
||||
};
|
||||
|
||||
struct State {
|
||||
std::mutex mu;
|
||||
std::string backend_url = "http://127.0.0.1:8487";
|
||||
std::vector<Issue> issues;
|
||||
std::vector<Flow> flows;
|
||||
Meta meta;
|
||||
Filters filters;
|
||||
std::string selected_issue_id;
|
||||
Issue selected_issue_detail;
|
||||
bool loading = false;
|
||||
std::string last_error;
|
||||
long long last_refresh_ns = 0;
|
||||
std::mutex mu;
|
||||
std::string backend_url = "http://127.0.0.1:8487";
|
||||
std::vector<Issue> issues;
|
||||
std::vector<Flow> flows;
|
||||
Meta meta;
|
||||
Filters filters;
|
||||
std::string selected_issue_id;
|
||||
Issue selected_issue_detail;
|
||||
bool loading = false;
|
||||
std::string last_error;
|
||||
long long last_refresh_ns = 0;
|
||||
std::map<std::string, std::string> agent_active; // issue_id -> run_id
|
||||
bool agent_runner_up = false;
|
||||
std::string last_launch_msg;
|
||||
};
|
||||
|
||||
State& state();
|
||||
@@ -73,6 +79,9 @@ bool refresh_meta();
|
||||
bool refresh_issue_detail(const std::string& id);
|
||||
bool patch_issue_status(const std::string& id, const std::string& new_status);
|
||||
bool patch_issue_fields(const std::string& id, const std::string& json_partial);
|
||||
bool refresh_agent_status();
|
||||
bool launch_agent(const std::string& issue_id);
|
||||
bool is_agent_active(const std::string& issue_id);
|
||||
|
||||
// Background SSE subscription (no-op if already started).
|
||||
void start_sse();
|
||||
|
||||
Reference in New Issue
Block a user