From 94b8c8705bc15b8fbd0b09ec799edfcf0df6c818 Mon Sep 17 00:00:00 2001 From: Rohit Rajan Date: Sat, 6 Jun 2026 14:52:51 +0530 Subject: [PATCH] feat: add support for summary format --- src/commands/robots.ts | 6 +++--- src/commands/run.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/robots.ts b/src/commands/robots.ts index ae19486..3ad8e52 100644 --- a/src/commands/robots.ts +++ b/src/commands/robots.ts @@ -60,7 +60,7 @@ robotsCommand .command('scrape ') .description('Create a scrape robot for a URL') .option('-n, --name ', 'Robot name') - .option('-f, --format ', 'Formats: markdown, html, text, links, screenshot-visible, screenshot-fullpage (comma-separated)', 'markdown') + .option('-f, --format ', 'Formats: markdown, html, text, links, summary, screenshot-visible, screenshot-fullpage (comma-separated)', 'markdown') .option('-p, --prompt ', 'Smart Queries: LLM prompt to analyze the page after scraping (+2 credits per run)') .action(async (url, options) => { const formats = options.format.split(',').map((f: string) => f.trim()); @@ -101,7 +101,7 @@ robotsCommand .command('crawl ') .description('Create a crawl robot for a URL') .option('-n, --name ', 'Robot name') - .option('-f, --format ', 'Formats: markdown, html, text, links, screenshot-visible, screenshot-fullpage (comma-separated)', 'markdown') + .option('-f, --format ', 'Formats: markdown, html, text, links, summary, screenshot-visible, screenshot-fullpage (comma-separated)', 'markdown') .option('--limit ', 'Max pages to crawl', parseInt, 10) .option('--max-depth ', 'Max depth to crawl', parseInt, 3) .option('--include ', 'Include path patterns (comma-separated)') @@ -140,7 +140,7 @@ robotsCommand .command('search ') .description('Create a search robot for a query') .option('-n, --name ', 'Robot name') - .option('-f, --format ', 'Formats: markdown, html, text, links, screenshot-visible, screenshot-fullpage (comma-separated)') + .option('-f, --format ', 'Formats: markdown, html, text, links, summary, screenshot-visible, screenshot-fullpage (comma-separated)') .option('--limit ', 'Max search results', parseInt, 10) .option('--mode ', 'Search mode: discover, scrape', 'discover') .action(async (query, options) => { diff --git a/src/commands/run.ts b/src/commands/run.ts index e54162b..5856a85 100644 --- a/src/commands/run.ts +++ b/src/commands/run.ts @@ -6,7 +6,7 @@ import { spinner, statusBadge, printDataTable, printJSON, success } from '../lib export const runCommand = new Command('run') .description('Run a Maxun robot by its ID') .argument('', 'Robot ID to execute') - .option('-f, --format ', 'Formats: markdown, html, text, links, screenshot-visible, screenshot-fullpage (comma-separated)') + .option('-f, --format ', 'Formats: markdown, html, text, links, summary, screenshot-visible, screenshot-fullpage (comma-separated)') .option('-t, --table', 'Output results in table format') .action(async (id, options) => { const spin = spinner(`Running robot ${chalk.cyan(id)}...`);