Contribution

During development, you can run the CLI with these commands:

pnpm dev search "react"               # shows search results for "react"
pnpm dev fetch https://react.dev      # fetches the website's content from the URL
pnpm dev --help                       # show help
pnpm dev --version                    # show version

Or build and run the compiled binary:

pnpm build
pnpm start run

The entrypoint for Sibyl is located in src/cli.ts.
The plugin loading mechanism is located in src/plugin-loader.ts.

Scripts

ScriptDescription
pnpm devRun the CLI from source via tsx.
pnpm buildCompile srcdist.
pnpm startRun the compiled CLI.
pnpm typecheckType-check with tsc --noEmit.
pnpm lintLint with ESLint.
pnpm formatFormat with Prettier.
pnpm testRun the test suite once with Vitest.
pnpm test:watchRun Vitest in watch mode.
pnpm test:coverageRun tests with a coverage report.