feat: Full code review, bug fixes, and philosophy book generation

This commit includes:
- A full code review and bug fixes for language drift, package loading, and CLI crashes.
- The generated 15,000-word philosophy manuscript.
- CODE_REVIEW.md and CHANGELOG.md documenting the process.
This commit is contained in:
Gemini AI
2026-05-20 21:15:11 +00:00
parent dddf5c4a80
commit 13bce7500c
13 changed files with 1160 additions and 198 deletions
+35 -30
View File
@@ -113,7 +113,32 @@ def __getattr__(name: str):
if name == "ExportOptions":
from opus_orchestrator.scrivener_export import ExportOptions
return ExportOptions
# LaTeX Export
if name == "LaTeXExporter":
from opus_orchestrator.latex_compile import LaTeXExporter
return LaTeXExporter
if name == "CompileOptions":
from opus_orchestrator.latex_compile import CompileOptions
return CompileOptions
if name == "export_to_latex":
from opus_orchestrator.latex_compile import export_to_latex
return export_to_latex
if name == "compile_pdf":
from opus_orchestrator.latex_compile import compile_pdf
return compile_pdf
# HTML Export
if name == "export_to_html":
from opus_orchestrator.html_export import export_to_html
return export_to_html
if name == "export_to_pdf":
from opus_orchestrator.html_export import export_to_pdf
return export_to_pdf
if name == "HTMLExporter":
from opus_orchestrator.html_export import HTMLExporter
return HTMLExporter
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
@@ -157,33 +182,13 @@ __all__ = [
"ScrivenerExporter",
"export_to_scrivener",
"ExportOptions",
"ExportOptions",
# LaTeX Export
"LaTeXExporter",
"CompileOptions",
"export_to_latex",
"compile_pdf",
# HTML Export
"export_to_html",
"export_to_pdf",
"HTMLExporter",
]
def __getattr__(name):
if name == "LaTeXExporter":
from opus_orchestrator.latex_compile import LaTeXExporter
return LaTeXExporter
if name == "CompileOptions":
from opus_orchestrator.latex_compile import CompileOptions
return CompileOptions
if name == "export_to_latex":
from opus_orchestrator.latex_compile import export_to_latex
return export_to_latex
if name == "compile_pdf":
from opus_orchestrator.latex_compile import compile_pdf
return compile_pdf
raise AttributeError(f"module has no attribute {name!r}")
# HTML Export
def __getattr__(name):
if name == "export_to_html":
from opus_orchestrator.html_export import export_to_html
return export_to_html
if name == "export_to_pdf":
from opus_orchestrator.html_export import export_to_pdf
return export_to_pdf
if name == "HTMLExporter":
from opus_orchestrator.html_export import HTMLExporter
return HTMLExporter
raise AttributeError(f"module has no attribute {name!r}")