From 623574bad3a1ae9d46c5d092ea318e63786c7c88 Mon Sep 17 00:00:00 2001 From: Developers Digest <124798203+developersdigest@users.noreply.github.com> Date: Fri, 22 May 2026 17:32:25 -0400 Subject: [PATCH] monitor create: add --goal flag --- src/commands/monitor.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/commands/monitor.ts b/src/commands/monitor.ts index f042ec922..d369b8f98 100644 --- a/src/commands/monitor.ts +++ b/src/commands/monitor.ts @@ -143,6 +143,7 @@ function buildCreateBody(opts: { webhookEvents?: string[]; emailRecipients?: string[]; retentionDays?: number; + goal?: string; }): unknown { if (!opts.name) { throw new Error('--name is required (or pass a JSON file / stdin payload)'); @@ -190,6 +191,7 @@ function buildCreateBody(opts: { } if (opts.retentionDays !== undefined) body.retentionDays = opts.retentionDays; + if (opts.goal !== undefined) body.goal = opts.goal; return body; } @@ -247,6 +249,10 @@ export function createMonitorCommand(): Command { parseCommaList ) .option('--retention-days ', 'Snapshot retention window', parseInt) + .option( + '--goal ', + 'Plain-language goal for the AI change judge (auto-enables the judge)' + ) ).action(async (file: string | undefined, options) => { try { const fromJson = await readJsonPayload(file); @@ -263,6 +269,7 @@ export function createMonitorCommand(): Command { webhookEvents: options.webhookEvents, emailRecipients: options.email, retentionDays: options.retentionDays, + goal: options.goal, }); const payload = await monitorRequest('/monitor', options, { method: 'POST',