Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
f7ed709
docs: add CodeWiki introduction article in Chinese
mambo-wang Jun 18, 2026
6be7010
AI IDE驱动
mambo-wang Jun 18, 2026
6fafddd
docs: add IDE-driven mode guide and update README
mambo-wang Jun 18, 2026
e901326
docs: rewrite README with bilingual content and IDE-driven quick start
mambo-wang Jun 18, 2026
9fce135
fix: add missing MCP packages to pyproject.toml and add prerequisites…
mambo-wang Jun 18, 2026
5e06067
docs: 生成 CodeWiki-CN 项目 Wiki 文档
mambo-wang Jun 18, 2026
50ac6fc
skill rule
mambo-wang Jun 18, 2026
77482c6
feat: add incremental update support to MCP analyze_repo
mambo-wang Jun 19, 2026
e95fd14
fix: pass commit_id to metadata.json in CLI mode for --update support
mambo-wang Jun 19, 2026
623f681
assets: add project logo and banner, display banner in README
mambo-wang Jun 19, 2026
03a514f
assets: remove white background from logos, use transparent PNG
mambo-wang Jun 19, 2026
7fbd559
assets: fill banner rounded corners with dark gradient background
mambo-wang Jun 19, 2026
91ab20d
更新logo
mambo-wang Jun 20, 2026
7a698cf
AI IDE驱动
mambo-wang Jun 18, 2026
7213a09
fix: add missing MCP packages to pyproject.toml
mambo-wang Jun 20, 2026
bfbda2e
feat: add incremental update support to MCP analyze_repo
mambo-wang Jun 19, 2026
fe694a5
fix: pass commit_id to metadata.json in CLI mode for --update support
mambo-wang Jun 19, 2026
129f730
SKILL
mambo-wang Jun 20, 2026
5db73ac
fix: paginate analyze_repo response to avoid maxOutputLength overflow
mambo-wang Jun 21, 2026
d3fdcca
fix: run sync MCP handlers in thread pool, prevent mermaid validation…
mambo-wang Jun 21, 2026
30c31df
fix: security hardening and stability improvements for MCP tools
mambo-wang Jun 22, 2026
349d69d
fix: reduce response size limits and write metadata on close_session
mambo-wang Jun 22, 2026
d07d3fd
docs: update wiki for MCP security hardening and pagination changes
mambo-wang Jun 22, 2026
cc6807a
feat: optimize MCP server with file-side-channel architecture
mambo-wang Jun 23, 2026
b71fe1c
merge: sync test branch code (excluding README)
mambo-wang Jun 23, 2026
92b3e98
删除没用的文件
mambo-wang Jun 23, 2026
6582802
fix: add mcp SDK to dependencies and fix file encoding in utils
mambo-wang Jun 23, 2026
4278e93
fix: address PR review feedback from upstream
mambo-wang Jun 26, 2026
58314c2
fix: correct snippet line-number labels and add utf-8 encoding
mambo-wang Jun 28, 2026
90f1ec9
fix: monorepo path support, unstaged change detection, dead code cleanup
mambo-wang Jun 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,4 @@ Thumbs.db
*.tmp
*.log
*.bak
.codewiki/
379 changes: 379 additions & 0 deletions IDE_DRIVEN_GUIDE.md

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions codewiki/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
"""
CodeWiki: Transform codebases into comprehensive documentation using AI-powered analysis.

This package provides a CLI tool for generating documentation from code repositories.
This package provides a CLI tool for generating documentation from code repositories,
and an MCP server for IDE-driven documentation generation.
"""

__version__ = "1.0.1"
__author__ = "CodeWiki Contributors"
__license__ = "MIT"

from codewiki.cli.main import cli

__all__ = ["cli", "__version__"]
__all__ = ["__version__"]

7 changes: 5 additions & 2 deletions codewiki/cli/adapters/doc_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def __init__(
output_dir: Path,
config: Dict[str, Any],
verbose: bool = False,
generate_html: bool = False
generate_html: bool = False,
commit_id: str = None,
):
"""
Initialize the CLI documentation generator.
Expand All @@ -48,12 +49,14 @@ def __init__(
config: LLM configuration
verbose: Enable verbose output
generate_html: Whether to generate HTML viewer
commit_id: Git commit SHA for incremental update tracking
"""
self.repo_path = repo_path
self.output_dir = output_dir
self.config = config
self.verbose = verbose
self.generate_html = generate_html
self.commit_id = commit_id
self.progress_tracker = ProgressTracker(total_stages=5, verbose=verbose)
self.job = DocumentationJob()

Expand Down Expand Up @@ -178,7 +181,7 @@ async def _run_backend_generation(self, backend_config: BackendConfig):
self.progress_tracker.update_stage(0.2, "Initializing dependency analyzer...")

# Create documentation generator
doc_generator = DocumentationGenerator(backend_config)
doc_generator = DocumentationGenerator(backend_config, commit_id=self.commit_id)

if self.verbose:
self.progress_tracker.update_stage(0.5, "Parsing source files...")
Expand Down
6 changes: 4 additions & 2 deletions codewiki/cli/commands/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,8 @@ def generate_command(
agent_instructions_dict = config.agent_instructions.to_dict()

# Create generator
# Get commit_id early so it can be stored in metadata.json for --update support
commit_id = get_git_commit_hash(repo_path)
generator = CLIDocumentationGenerator(
repo_path=repo_path,
output_dir=output_dir,
Expand All @@ -545,7 +547,8 @@ def generate_command(
'max_depth': max_depth if max_depth is not None else config.max_depth,
},
verbose=verbose,
generate_html=github_pages
generate_html=github_pages,
commit_id=commit_id,
)

# Run generation
Expand All @@ -556,7 +559,6 @@ def generate_command(

# Get repository info
repo_url = None
commit_hash = get_git_commit_hash(repo_path)
current_branch = get_git_branch(repo_path)

if is_git_repository(repo_path):
Expand Down
Loading