feat: add snapshot database tables, live snapshot recording, and vi/emacs editing mode toggles
This commit is contained in:
@@ -23,4 +23,15 @@ r_status_t db_load_conversation(db_handle db, const char *session_key, char **da
|
||||
long long db_get_conversation_age(db_handle db, const char *session_key);
|
||||
r_status_t db_delete_conversation(db_handle db, const char *session_key);
|
||||
|
||||
r_status_t db_snapshot_create(db_handle db, const char *session_id, const char *description,
|
||||
const char **paths, const char **contents, int file_count,
|
||||
long long *snapshot_id_out);
|
||||
r_status_t db_snapshot_list(db_handle db, const char *session_id, struct json_object **result);
|
||||
r_status_t db_snapshot_get_files(db_handle db, long long snapshot_id, struct json_object **result);
|
||||
|
||||
r_status_t db_snapshot_ensure_live(db_handle db, const char *session_id,
|
||||
const char *description, long long *snapshot_id_out);
|
||||
r_status_t db_snapshot_upsert_file(db_handle db, long long snapshot_id,
|
||||
const char *path, const char *content);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -35,4 +35,6 @@ char *messages_to_string(messages_handle msgs);
|
||||
char *messages_to_json_string(messages_handle msgs);
|
||||
int messages_count(messages_handle msgs);
|
||||
|
||||
char *messages_generate_session_id(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -36,4 +36,7 @@ int r_config_get_max_total_spawns(r_config_handle cfg);
|
||||
|
||||
const char *r_config_get_deepsearch_system_message(void);
|
||||
|
||||
void r_config_set_current_prompt(r_config_handle cfg, const char *prompt);
|
||||
const char *r_config_get_current_prompt(r_config_handle cfg);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -48,4 +48,6 @@ typedef enum {
|
||||
|
||||
tool_registry_t *tool_registry_get_specialized(tool_registry_type_t type);
|
||||
|
||||
void snapshot_live_record(const char *path, const char *content);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user