Files
lyxy-document/scripts/core/__init__.py
lanyuanxiaoyao aaa1171e60 feat: 添加 --advice 参数,支持快速获取执行建议
- 新增 scripts/core/advice_generator.py 建议生成器模块
- 在 config.py 中添加 DEPENDENCIES 依赖配置
- 在 lyxy_document_reader.py 中添加 -a/--advice 参数
- 复用 Reader 实例的 supports 方法检测文件类型
- 支持平台检测,对 macOS x86_64 PDF 返回特殊命令
- 添加单元测试和集成测试
- 更新 SKILL.md,引导优先使用 --advice 参数
- 更新 README.md,添加项目结构说明
- 添加 openspec/specs/cli-advice/spec.md 规范文档
2026-03-09 18:13:00 +08:00

38 lines
847 B
Python

"""Core module for lyxy-document."""
from .exceptions import (
LyxyDocumentError,
FileDetectionError,
ReaderNotFoundError,
ParseError,
DownloadError,
)
from .markdown import (
normalize_markdown_whitespace,
remove_markdown_images,
get_heading_level,
extract_titles,
extract_title_content,
search_markdown,
)
from .parser import parse_input, process_content, output_result
from .advice_generator import generate_advice
__all__ = [
"LyxyDocumentError",
"FileDetectionError",
"ReaderNotFoundError",
"ParseError",
"DownloadError",
"normalize_markdown_whitespace",
"remove_markdown_images",
"get_heading_level",
"extract_titles",
"extract_title_content",
"search_markdown",
"parse_input",
"process_content",
"output_result",
"generate_advice",
]