MCPcopy Create free account

hub / github.com/ZeroxZhang/huashu-bookwriter / functions

Functions32 in github.com/ZeroxZhang/huashu-bookwriter

↓ 6 callersMethodadd_error
添加验证错误
scripts/validate_structure.py:39
↓ 4 callersFunctionget_system
获取操作系统类型
scripts/export_pdf.py:24
↓ 3 callersMethod_save_state
保存状态到文件
scripts/agent_scheduler.py:284
↓ 2 callersFunctioncheck_pandoc
检查pandoc是否安装
scripts/export_pdf.py:70
↓ 2 callersFunctioncheck_xelatex
检查xelatex是否安装
scripts/export_pdf.py:83
↓ 2 callersFunctionget_chinese_fonts
根据系统返回可用的中文字体列表
scripts/export_pdf.py:29
↓ 2 callersFunctionget_install_instructions
返回安装指南
scripts/export_pdf.py:109
↓ 1 callersMethod_generate_prompt
生成Agent执行提示
scripts/agent_scheduler.py:205
↓ 1 callersMethodadvance_phase
推进到下一阶段
scripts/agent_scheduler.py:176
↓ 1 callersMethodcan_spawn
检查是否可以启动该角色的Agent
scripts/agent_scheduler.py:127
↓ 1 callersMethodcheck_chapters
检查章节结构
scripts/validate_structure.py:136
↓ 1 callersFunctioncheck_fc_list
检查fc-list是否可用(用于字体检测)
scripts/export_pdf.py:96
↓ 1 callersMethodcheck_forbidden_words_optimized
检查禁用词(优化版本:使用单次正则扫描)
scripts/validate_structure.py:159
↓ 1 callersMethodcheck_metadata
检查元数据块
scripts/validate_structure.py:110
↓ 1 callersMethodcheck_structure
检查章节结构
scripts/validate_structure.py:170
↓ 1 callersMethodcomplete_task
标记任务完成
scripts/agent_scheduler.py:166
↓ 1 callersFunctionexport_pdf
将Markdown转换为PDF Args: input_file: 输入的Markdown文件路径 output_file: 输出的PDF文件路径 toc: 是否生成目录 toc_depth: 目录深度
scripts/export_pdf.py:133
↓ 1 callersFunctionfind_available_font
尝试找到系统中可用的字体 Args: fonts: 字体列表 Returns: 第一个可用的字体名称,如果都不可用返回None
scripts/export_pdf.py:42
↓ 1 callersMethodget_next_tasks
获取下一批任务
scripts/agent_scheduler.py:187
↓ 1 callersFunctionlist_fonts
列出系统可用的中文字体
scripts/export_pdf.py:213
↓ 1 callersMethodload_state
从文件加载状态
scripts/agent_scheduler.py:290
↓ 1 callersFunctionmain
()
scripts/agent_scheduler.py:313
↓ 1 callersFunctionmain
()
scripts/validate_structure.py:231
↓ 1 callersFunctionmain
()
scripts/export_pdf.py:250
↓ 1 callersMethodprint_results
输出验证结果
scripts/validate_structure.py:208
↓ 1 callersMethodspawn_agent
启动Agent执行任务 Args: role: Agent角色 task: 任务描述 Returns: 执行结果
scripts/agent_scheduler.py:131
↓ 1 callersMethodto_dict
转换为字典
scripts/agent_scheduler.py:60
↓ 1 callersMethodvalidate
执行完整验证
scripts/validate_structure.py:98
Method__init__
初始化调度器 Args: book_id: 书籍ID work_dir: 工作目录
scripts/agent_scheduler.py:107
Method__init__
(self, content: str)
scripts/validate_structure.py:88
Methoderror_count
错误数量
scripts/validate_structure.py:44
Methodwarning_count
警告数量
scripts/validate_structure.py:49