feat: /realm in TUI, daemon instance takeover (0.9.16)
Pidfile records instance+port; login restarts the service when the seat changes. TUI /realm status|login|stop; prompts discourage filler chatter. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -63,8 +63,11 @@ int cst_parliament_apply_sync(unsigned long revision, const char *parliament_id,
|
||||
/* Background parliament service: discover + peer listen + context sync. */
|
||||
int cst_parliament_daemon_pidfile(char *out, size_t n);
|
||||
int cst_parliament_daemon_running(void);
|
||||
/* Read pidfile metadata. Returns 0 when a live service is recorded. */
|
||||
int cst_parliament_daemon_info(int *pid_out, char *instance_out, size_t in_sz,
|
||||
int *port_out);
|
||||
/* Start in background (Unix fork). password unlocks Realm in the child.
|
||||
* Returns 0 and writes pid. If already running, returns 0. */
|
||||
* Returns 0 and writes pid. Restarts if a different instance/port is running. */
|
||||
int cst_parliament_daemon_start(const char *password, const char *instance_id,
|
||||
int peer_port, char *err, size_t err_sz);
|
||||
int cst_parliament_daemon_stop(void);
|
||||
|
||||
Reference in New Issue
Block a user