UNPKG

browse

Version:

Browser automation CLI for AI agents: local Chrome, Browserbase cloud, snapshots, and skills.

27 lines (25 loc) • 991 B
import { Help } from "@oclif/core"; import { DISCORD_INVITE_URL, GITHUB_ISSUES_URL } from "./lib/support-links.js"; // Custom root-help formatter so `browse --help` (and bare `browse`) lead with // a short block pointing agents at the bundled skill, ahead of oclif's // auto-generated VERSION/USAGE/DESCRIPTION/COMMANDS sections. Only the root // help view is customized -- individual `browse <command> --help` views are // unaffected. const AGENT_HEADER = `Start here (for AI agents): browse skills show The bundled skill ships with the CLI (always version-matched) and covers workflows, session management, and common failure recovery. Prefer it over guessing commands from flag docs alone. `; const HELP_FOOTER = ` COMMUNITY Discord: ${DISCORD_INVITE_URL} Report a bug: ${GITHUB_ISSUES_URL} `; export default class BrowseHelp extends Help { async showRootHelp() { this.log(AGENT_HEADER); await super.showRootHelp(); this.log(HELP_FOOTER); } }