feat: solo default, job completion reports, tools wave-1 (0.9.32)
Password Realm no longer auto-enables parliament (keeps task/worker tools); finished jobs fan out to agent notes + TUI; raise PAR_MAX/grep caps and tag truncations. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -7,6 +7,17 @@ extern "C" {
|
||||
typedef struct cst_runtime cst_runtime_t;
|
||||
typedef int (*cst_job_fn)(void *data, volatile int *cancel, cst_tool_result_t *result);
|
||||
typedef void (*cst_job_free_fn)(void *data);
|
||||
|
||||
/* One finished job ready for TUI / next-turn agent notes. */
|
||||
typedef struct cst_job_completion {
|
||||
char id[32];
|
||||
char kind[24];
|
||||
char status[32]; /* completed | failed | cancelled */
|
||||
char summary[200];
|
||||
int exit_code;
|
||||
long ms;
|
||||
} cst_job_completion_t;
|
||||
|
||||
cst_runtime_t *cst_runtime_open(const char *session_path);
|
||||
void cst_runtime_close(cst_runtime_t *r);
|
||||
unsigned long cst_runtime_begin(cst_runtime_t *r, const char *goal);
|
||||
@@ -31,6 +42,12 @@ int cst_runtime_jobs_pending(cst_runtime_t *r);
|
||||
int cst_runtime_current_jobs_pending(cst_runtime_t *r);
|
||||
int cst_runtime_resource_busy(cst_runtime_t *r, const char *resource);
|
||||
int cst_runtime_wait(cst_runtime_t *r, int timeout_ms);
|
||||
/* Drain finished-job reports for the agent loop (destructive). */
|
||||
int cst_runtime_take_completions(cst_runtime_t *r, cst_job_completion_t *out,
|
||||
int max);
|
||||
/* Drain the UI fan-out queue (destructive; independent of take_completions). */
|
||||
int cst_runtime_take_ui_completions(cst_runtime_t *r, cst_job_completion_t *out,
|
||||
int max);
|
||||
/* Model tools, shared by every front end. */
|
||||
int cst_runtime_register_tools(void);
|
||||
struct cst_tool_ctx;
|
||||
|
||||
Reference in New Issue
Block a user