prodboard 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # prodboard
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#25](https://github.com/G4brym/prodboard/pull/25) [`90edbb4`](https://github.com/G4brym/prodboard/commit/90edbb43b83ef38c797c1c692ace1d9a3996787b) Thanks [@G4brym](https://github.com/G4brym)! - Optimize MCP list handlers: trim prompt from list_schedules, add get_schedule tool, exclude stderr_tail from list_runs defaults
8
+
3
9
  ## 0.5.0
4
10
 
5
11
  ### Minor Changes
package/bin/prodboard.ts CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prodboard",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Self-hosted, CLI-first issue tracker and cron scheduler for AI coding agents",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -89,7 +89,7 @@ export async function scheduleLs(args: string[], dbOverride?: Database): Promise
89
89
  const isJson = !!flags.json;
90
90
  const all = !!(flags.all || flags.a);
91
91
 
92
- const schedules = listSchedules(db, { includeDisabled: all });
92
+ const schedules = listSchedules(db, { includeDisabled: true });
93
93
 
94
94
  if (isJson) {
95
95
  console.log(jsonOutput(schedules));
@@ -9,7 +9,9 @@ import {
9
9
  updateSchedule, deleteSchedule, enableSchedule, disableSchedule,
10
10
  } from "../../queries/schedules.ts";
11
11
  import { validateCron } from "../../cron.ts";
12
- import { getLastRun } from "../../queries/runs.ts";
12
+ import { getLastRun, createRun } from "../../queries/runs.ts";
13
+ import { loadConfig } from "../../config.ts";
14
+ import { ExecutionManager } from "../../scheduler.ts";
13
15
 
14
16
  export function scheduleRoutes(db: Database, _config: Config) {
15
17
  const app = new Hono();
@@ -95,7 +97,10 @@ export function scheduleRoutes(db: Database, _config: Config) {
95
97
  const lastRun = getLastRun(db, s.id);
96
98
  return (
97
99
  <tr class="hover:bg-muted/30 transition-colors" key={s.id}>
98
- <td class="px-4 py-3 text-sm font-medium text-foreground">{s.name}</td>
100
+ <td class="px-4 py-3">
101
+ <div class="text-sm font-medium text-foreground">{s.name}</div>
102
+ <div class="text-xs text-muted-foreground font-mono mt-0.5">{s.id.slice(0, 8)}</div>
103
+ </td>
99
104
  <td class="px-4 py-3 text-sm text-muted-foreground font-mono">{s.cron}</td>
100
105
  <td class="px-4 py-3">
101
106
  {s.enabled
@@ -108,6 +113,11 @@ export function scheduleRoutes(db: Database, _config: Config) {
108
113
  </td>
109
114
  <td class="px-4 py-3 text-right">
110
115
  <div class="flex items-center justify-end gap-1.5">
116
+ <form method="post" action={`/schedules/${s.id}/run`}>
117
+ <button type="submit"
118
+ class="rounded-md border border-border px-2.5 py-1 text-xs font-medium text-foreground hover:bg-accent transition-colors"
119
+ >Run once</button>
120
+ </form>
111
121
  <form method="post" action={`/schedules/${s.id}/toggle`}>
112
122
  <button type="submit"
113
123
  class="rounded-md border border-border px-2.5 py-1 text-xs font-medium text-foreground hover:bg-accent transition-colors"
@@ -184,6 +194,20 @@ export function scheduleRoutes(db: Database, _config: Config) {
184
194
  return c.redirect("/schedules");
185
195
  });
186
196
 
197
+ app.post("/:id/run", async (c) => {
198
+ const id = c.req.param("id");
199
+ const schedule = getScheduleByPrefix(db, id);
200
+ const config = loadConfig();
201
+ const run = createRun(db, {
202
+ schedule_id: schedule.id,
203
+ prompt_used: schedule.prompt,
204
+ agent: config.daemon.agent,
205
+ });
206
+ const em = new ExecutionManager(db, config);
207
+ em.executeRun(schedule, run).catch(() => {});
208
+ return c.redirect("/schedules");
209
+ });
210
+
187
211
  app.post("/:id/delete", (c) => {
188
212
  const id = c.req.param("id");
189
213
  const schedule = getScheduleByPrefix(db, id);