mdcopilot
v0.0.5
Published
Markdown Copilot CLI.
Downloads
24
Readme
Markdown Copilot CLI
Markdown Copilot (mdcopilot) is a command-line tool that enhances your markdown files by automatically processing URLs, fetching content, generating titles, and adding AI-powered summaries.

Examples
Before:
- https://github.com/vercel/aiAfter:
- **[AI SDK by Vercel](https://github.com/vercel/ai)** 一个全面的库,用于构建 AI 驱动的应用程序,支持各种 LLM 提供商、流式响应以及一套开发者工具。Usage
$ mdcopilot <path-to-markdown-file> --model=<model-name> --summary-prompt=<summary-prompt>Options
--model: The model to use for processing the markdown file.--summary-prompt: The prompt to use for summarizing the linked content.--watch: Watch the markdown file for changes and process it automatically.
Examples
# Process a markdown file once
$ OPEN_ROUTER_API_KEY=sk-or-xxxxxx npx -y mdcopilot <path-to-markdown-file> --model=OpenRouter/openai/gpt-4o-2024-11-20
# Watch mode: automatically process changes when the file is modified
$ OPEN_ROUTER_API_KEY=sk-or-xxxxxx npx -y mdcopilot <path-to-markdown-file> --watch --model=OpenRouter/anthropic/claude-3.5-sonnetCheck src/summarizer/model.ts for all supported models.
