kb_workflow/metadata/zhihu_extractor.py - Removed sys.path, switched to pure relative import
kb_workflow/metadata/zhihu_metadata.py - Removed sys.path, switched to relative import
kb_workflow/pipeline/processors/analyze.py - Moved sys.path to lazy import with flag
kb_workflow/pipeline/__init__.py - Added Pipeline import and export
tests/test_zhihu_metadata/test_markdown_converter.py - Updated to use package import
Decisions Made
Lazy sys.path for external deps: kb-deep-analyzer is an external project outside the package, so sys.path manipulation is still required but moved inside _run_analysis() method with a module-level flag to ensure it only executes once
Test alignment: Test files were also updated to use the new package import structure for consistency
Deviations from Plan
Auto-fixed Issues
1. [Rule 1 - Bug] Test file using old import path
Found during: Task 6 (Verification)
Issue: test_markdown_converter.py was using from markdown_converter import MarkdownConverter with sys.path manipulation pointing to old kb-zhihu-metadata directory
Fix: Updated to use from kb_workflow.metadata.markdown_converter import MarkdownConverter and removed sys.path manipulation