81std::optional<std::pair<std::string, bool>>
ack_request(std::string_view queue_json,
@ path
Definition scene_node.hpp:93
Definition agent_context.hpp:7
std::optional< std::string > enqueue_to_file(const std::string &path, AgentRequest request)
Read + append + atomically rewrite the queue at path.
std::string requests_to_json(const std::vector< AgentRequest > &requests)
Serialize a request list to the canonical, stable JSON document.
std::string_view queue_filename()
The canonical queue filename (beside .pulp-design-meta.json).
std::optional< std::vector< AgentRequest > > requests_from_json(std::string_view queue_json)
Parse a queue document.
std::optional< std::string > append_request(std::string_view queue_json, AgentRequest request)
Append request to the queue encoded in queue_json, assigning a fresh id when request....
std::vector< AgentRequest > pending_requests(std::string_view queue_json)
The not-yet-consumed requests in queue_json, in order.
std::vector< AgentRequest > read_pending_file(const std::string &path)
The pending requests in the queue file at path (empty when the file is absent or unreadable).
std::optional< std::pair< std::string, bool > > ack_request(std::string_view queue_json, std::string_view id)
Mark the request whose id is id consumed in queue_json.
bool ack_in_file(const std::string &path, std::string_view id)
Ack id in the queue file at path, rewriting atomically.
std::string queue_path(std::string_view project_dir)
The queue file path inside project_dir.
One queued request from the human, with the context the agent needs to act without guessing which des...
Definition agent_request_queue.hpp:44
std::string text
the human's free-text request
Definition agent_request_queue.hpp:46
std::string design
design/asset name (ties to the ledger)
Definition agent_request_queue.hpp:47
std::string screen
optional screen within the design
Definition agent_request_queue.hpp:48
std::string editmode_state
the current EDITMODE block JSON, for context
Definition agent_request_queue.hpp:49
bool consumed
true once the agent has acked it
Definition agent_request_queue.hpp:52
std::string created_at
caller-supplied timestamp (the core keeps no clock)
Definition agent_request_queue.hpp:51
std::string screenshot_path
optional path to a captured screenshot
Definition agent_request_queue.hpp:50
std::string id
stable id; assigned on append when empty
Definition agent_request_queue.hpp:45