browse
Version:
Unified Browserbase CLI for browser automation and cloud APIs.
20 lines (18 loc) • 775 B
JavaScript
import { Help } from "@oclif/core";
// 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.
`;
export default class BrowseHelp extends Help {
async showRootHelp() {
this.log(AGENT_HEADER);
await super.showRootHelp();
}
}