Skip to content

Commit 105a6bf

Browse files
committed
modify proj name
1 parent 50d375f commit 105a6bf

17 files changed

Lines changed: 35 additions & 38 deletions

DOCKER_README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# DeepwikiAgent Docker Setup
1+
# CodeWiki Docker Setup
22

3-
This document explains how to run DeepwikiAgent using Docker and Docker Compose.
3+
This document explains how to run CodeWiki using Docker and Docker Compose.
44

55
## Quick Start
66

77
1. **Clone the repository** (if not already done):
88
```bash
99
git clone <repository-url>
10-
cd DeepwikiAgent
10+
cd CodeWiki
1111
```
1212

1313
2. **Set up environment variables**:
@@ -18,7 +18,7 @@ This document explains how to run DeepwikiAgent using Docker and Docker Compose.
1818

1919
3. **Create network**
2020
```bash
21-
docker network create deepwiki-agent-network
21+
docker network create codewiki-network
2222
```
2323

2424
3. **Start the services**:

docker-compose.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
version: '3.8'
22

33
services:
4-
5-
# DeepwikiAgent Web Application
6-
deepwiki-agent:
7-
image: deepwiki-agent:0.0.1
4+
codewiki:
5+
image: codewiki:0.0.1
86
build:
97
context: .
108
dockerfile: Dockerfile
11-
container_name: deepwiki-agent
9+
container_name: codewiki
1210
ports:
1311
- "${APP_PORT:-8000}:8000"
1412
environment:
@@ -35,4 +33,4 @@ services:
3533
networks:
3634
net:
3735
external: true
38-
name: deepwiki-agent-network
36+
name: codewiki-network

env.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# DeepwikiAgent Environment Configuration
21
# Copy this file to .env and fill in your API keys
32

43
# =============================================================================

run_web_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22
"""
3-
Startup script for DeepwikiAgent Web Application
3+
Startup script for CodeWiki Web Application
44
"""
55

66
import os

src/agent_orchestrator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
logger.warning(f"Failed to configure logfire: {e}")
1616

1717
# Local imports
18-
from agent_tools.deps import DeepwikiAgentDeps
18+
from agent_tools.deps import CodeWikiDeps
1919
from agent_tools.read_code_components import read_code_components_tool
2020
from agent_tools.str_replace_editor import str_replace_editor_tool
2121
from agent_tools.generate_sub_module_documentations import generate_sub_module_documentation_tool
@@ -48,7 +48,7 @@ def create_agent(self, module_name: str, components: Dict[str, Any],
4848
return Agent(
4949
fallback_models,
5050
name=module_name,
51-
deps_type=DeepwikiAgentDeps,
51+
deps_type=CodeWikiDeps,
5252
tools=[
5353
read_code_components_tool,
5454
str_replace_editor_tool,
@@ -60,7 +60,7 @@ def create_agent(self, module_name: str, components: Dict[str, Any],
6060
return Agent(
6161
fallback_models,
6262
name=module_name,
63-
deps_type=DeepwikiAgentDeps,
63+
deps_type=CodeWikiDeps,
6464
tools=[read_code_components_tool, str_replace_editor_tool],
6565
system_prompt=LEAF_SYSTEM_PROMPT.format(module_name=module_name),
6666
)
@@ -78,7 +78,7 @@ async def process_module(self, module_name: str, components: Dict[str, Node],
7878
agent = self.create_agent(module_name, components, core_component_ids)
7979

8080
# Create dependencies
81-
deps = DeepwikiAgentDeps(
81+
deps = CodeWikiDeps(
8282
absolute_docs_path=working_dir,
8383
absolute_repo_path=str(os.path.abspath(self.config.repo_path)),
8484
registry={},

src/agent_tools/deps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from dependency_analyzer.models.core import Node
33

44
@dataclass
5-
class DeepwikiAgentDeps:
5+
class CodeWikiDeps:
66
absolute_docs_path: str
77
absolute_repo_path: str
88
registry: dict

src/agent_tools/generate_sub_module_documentations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from pydantic_ai import RunContext, Tool, Agent
22
import json
33

4-
from .deps import DeepwikiAgentDeps
4+
from .deps import CodeWikiDeps
55
from .read_code_components import read_code_components_tool
66
from .str_replace_editor import str_replace_editor_tool
77
from llm_services import fallback_models
@@ -13,7 +13,7 @@
1313

1414

1515
async def generate_sub_module_documentation(
16-
ctx: RunContext[DeepwikiAgentDeps],
16+
ctx: RunContext[CodeWikiDeps],
1717
sub_module_specs: dict[str, list[str]]
1818
) -> str:
1919
"""Generate detailed description of a given sub-module specs to the sub-agents
@@ -40,15 +40,15 @@ async def generate_sub_module_documentation(
4040
sub_agent = Agent(
4141
model=fallback_models,
4242
name=sub_module_name,
43-
deps_type=DeepwikiAgentDeps,
43+
deps_type=CodeWikiDeps,
4444
system_prompt=SYSTEM_PROMPT.format(module_name=sub_module_name),
4545
tools=[read_code_components_tool, str_replace_editor_tool, generate_sub_module_documentation_tool],
4646
)
4747
else:
4848
sub_agent = Agent(
4949
model=fallback_models,
5050
name=sub_module_name,
51-
deps_type=DeepwikiAgentDeps,
51+
deps_type=CodeWikiDeps,
5252
system_prompt=LEAF_SYSTEM_PROMPT.format(module_name=sub_module_name),
5353
tools=[read_code_components_tool, str_replace_editor_tool],
5454
)

src/agent_tools/read_code_components.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from pydantic_ai import RunContext, Tool
2-
from .deps import DeepwikiAgentDeps
2+
from .deps import CodeWikiDeps
33

44

5-
async def read_code_components(ctx: RunContext[DeepwikiAgentDeps], component_ids: list[str]) -> str:
5+
async def read_code_components(ctx: RunContext[CodeWikiDeps], component_ids: list[str]) -> str:
66
"""Read the code of a given component id
77
88
Args:

src/agent_tools/str_replace_editor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import io
1717

1818
from pydantic_ai import RunContext, Tool
19-
from .deps import DeepwikiAgentDeps
19+
from .deps import CodeWikiDeps
2020
from utils import validate_mermaid_diagrams
2121

2222

@@ -702,7 +702,7 @@ def _make_output(
702702
return f"Here's the result of running `cat -n` on {file_descriptor}:\n" + file_content + "\n"
703703

704704
async def str_replace_editor(
705-
ctx: RunContext[DeepwikiAgentDeps],
705+
ctx: RunContext[CodeWikiDeps],
706706
working_dir: Literal["repo", "docs"],
707707
command: Literal["view", "create", "str_replace", "insert", "undo_edit"],
708708
path: str,

src/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
@dataclass
2525
class Config:
26-
"""Configuration class for DeepwikiAgent."""
26+
"""Configuration class for CodeWiki."""
2727
repo_path: str
2828
output_dir: str
2929
dependency_graph_dir: str

0 commit comments

Comments
 (0)