drop tmux/planner/sysinfo, tasks becomes processes, no capitalised calls

- plugins/tmux, plugins/planner and plugins/sysinfo are gone (plugin list,
  Makefile rules, tests, docs). The config no longer loads them; the stale
  .so files were removed from the install tree.
- plugins/tasks is plugins/processes: plugin name "processes", widget
  "processes", tools process_start/process_list/process_result/process_kill.
  The sidebar now lists only running work: a finished task keeps its output
  in process_result but stops taking a row forever.
- the dead planner link in the delegate (link_plan_quota -> command "tasks")
  is removed with the planner.
- tool call rows are no longer capitalised: "run  ls -l", "read  src/x.c" as
  the model sent them, not "Run "/"Read ".
- tests updated (delegate panel expects no finished row, engine/UI expect the
  lowercase call row, secrets/delegate use the processes plugin and tools).
- the user's config gets a Delegate/Scheduler section: the three providers
  carry review/plan/docs tags and keep max_parallel=2; plugin scheduler stays
  loaded so waiting jobs are retried.

make check: all tests passed.
This commit is contained in:
lotherk committed 2026-11-17 21:06:55 +00:00
1 parent 1e15c91e4e
commit 8aee12e9d4
17 files changed
+73 -2074

No files matched your search

-14
View File
@@ -1310,7 +1310,6 @@ run_child_fb(const struct del_ctx *c, const struct sp_delegate **dp,
static const struct sp_delegate *find_delegate(const struct sp_config *cfg, const char *id);
static int looks_transient(const char *e);
static int looks_quota_wait(const char *e, long *ready_at);
static void link_plan_quota(struct del_ctx *c, const char *plan_task_id, const char *run_after, const char *job_id);
static int
tool_delegate(const char *args, struct sp_buf *out, void *ctx)
@@ -1445,7 +1444,6 @@ tool_delegate(const char *args, struct sp_buf *out, void *ctx)
if (ra>0) { snprintf(jr.run_after,sizeof(jr.run_after),"%ld",ra); snprintf(jr.next_poll_at,sizeof(jr.next_poll_at),"%ld",ra); }
else snprintf(jr.next_poll_at,sizeof(jr.next_poll_at),"%ld",(long)time(NULL)+3600);
jobrec_write(c, &jr);
link_plan_quota(c, jr.plan_task_id, jr.run_after[0]?jr.run_after:jr.next_poll_at, jr.id);
sp_buf_printf(out, "quota: %s\n[job %s: waiting_quota run_after=%s, auto-scheduled]\n", err.p?err.p:"quota", jr.id, jr.run_after);
} else if (looks_transient(err.p)) {
snprintf(jr.state, sizeof(jr.state), "waiting_poll");
@@ -2195,17 +2193,6 @@ sp_delegate_tick(struct sp_buf *out)
}
static void
link_plan_quota(struct del_ctx *c, const char *plan_task_id, const char *run_after, const char *job_id)
{
struct sp_buf out, args;
if (!c || !c->host || !plan_task_id || !*plan_task_id) return;
if (sp_buf_init(&out)!=0 || sp_buf_init(&args)!=0) return;
sp_buf_printf(&args, "wait %s %s job:%s", plan_task_id,
(run_after && *run_after) ? run_after : "+3600", job_id ? job_id : "");
(void)sp_host_command(c->host, "tasks", args.p ? args.p : "", &out);
sp_buf_free(&out); sp_buf_free(&args);
}
int
sp_delegate_retry_job(const char *id, int force, struct sp_buf *out)
@@ -2287,7 +2274,6 @@ sp_delegate_retry_job(const char *id, int force, struct sp_buf *out)
snprintf(jr.state,sizeof(jr.state),"waiting_quota");
if(ra>0){snprintf(jr.run_after,sizeof(jr.run_after),"%ld",ra); snprintf(jr.next_poll_at,sizeof(jr.next_poll_at),"%ld",ra);}
else snprintf(jr.next_poll_at,sizeof(jr.next_poll_at),"%ld",(long)time(NULL)+3600);
link_plan_quota(c, jr.plan_task_id, jr.run_after[0]?jr.run_after:jr.next_poll_at, jr.id);
} else if (looks_transient(err.p)) {
snprintf(jr.state,sizeof(jr.state),"waiting_poll");
snprintf(jr.next_poll_at,sizeof(jr.next_poll_at),"%ld",(long)time(NULL)+60);
-2
View File
@@ -520,8 +520,6 @@ sp_call_summary(const char *name, const char *args, char *out, size_t cap)
if (detail[0] == '\0')
pretty_args(args != NULL ? args : "", detail, sizeof(detail));
snprintf(out, cap, "%s", name);
if (out[0] >= 'a' && out[0] <= 'z')
out[0] = (char)(out[0] - 'a' + 'A');
n = strlen(out);
if (*detail != '\0' && n + 2 < cap)
snprintf(out + n, cap - n, " %s", detail);