koder 0.1.0__tar.gz → 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. {koder-0.1.0 → koder-0.2.0}/PKG-INFO +25 -9
  2. {koder-0.1.0 → koder-0.2.0}/README.md +24 -8
  3. {koder-0.1.0 → koder-0.2.0}/koder_agent/__init__.py +1 -1
  4. {koder-0.1.0 → koder-0.2.0}/koder_agent/agentic/agent.py +14 -0
  5. {koder-0.1.0 → koder-0.2.0}/koder_agent/tools/__init__.py +0 -2
  6. {koder-0.1.0 → koder-0.2.0}/koder_agent/tools/task_ops.py +12 -0
  7. {koder-0.1.0 → koder-0.2.0}/pyproject.toml +1 -1
  8. {koder-0.1.0 → koder-0.2.0}/uv.lock +1 -1
  9. {koder-0.1.0 → koder-0.2.0}/.claude/settings.local.json +0 -0
  10. {koder-0.1.0 → koder-0.2.0}/.github/dependabot.yml +0 -0
  11. {koder-0.1.0 → koder-0.2.0}/.gitignore +0 -0
  12. {koder-0.1.0 → koder-0.2.0}/CLAUDE.md +0 -0
  13. {koder-0.1.0 → koder-0.2.0}/KODER.md +0 -0
  14. {koder-0.1.0 → koder-0.2.0}/LICENSE +0 -0
  15. {koder-0.1.0 → koder-0.2.0}/koder_agent/agentic/__init__.py +0 -0
  16. {koder-0.1.0 → koder-0.2.0}/koder_agent/agentic/hooks.py +0 -0
  17. {koder-0.1.0 → koder-0.2.0}/koder_agent/cli.py +0 -0
  18. {koder-0.1.0 → koder-0.2.0}/koder_agent/core/__init__.py +0 -0
  19. {koder-0.1.0 → koder-0.2.0}/koder_agent/core/commands.py +0 -0
  20. {koder-0.1.0 → koder-0.2.0}/koder_agent/core/context.py +0 -0
  21. {koder-0.1.0 → koder-0.2.0}/koder_agent/core/interactive.py +0 -0
  22. {koder-0.1.0 → koder-0.2.0}/koder_agent/core/scheduler.py +0 -0
  23. {koder-0.1.0 → koder-0.2.0}/koder_agent/core/security.py +0 -0
  24. {koder-0.1.0 → koder-0.2.0}/koder_agent/mcp/__init__.py +0 -0
  25. {koder-0.1.0 → koder-0.2.0}/koder_agent/mcp/cli_handler.py +0 -0
  26. {koder-0.1.0 → koder-0.2.0}/koder_agent/mcp/server_config.py +0 -0
  27. {koder-0.1.0 → koder-0.2.0}/koder_agent/mcp/server_factory.py +0 -0
  28. {koder-0.1.0 → koder-0.2.0}/koder_agent/mcp/server_manager.py +0 -0
  29. {koder-0.1.0 → koder-0.2.0}/koder_agent/tools/engine.py +0 -0
  30. {koder-0.1.0 → koder-0.2.0}/koder_agent/tools/file_ops.py +0 -0
  31. {koder-0.1.0 → koder-0.2.0}/koder_agent/tools/search_ops.py +0 -0
  32. {koder-0.1.0 → koder-0.2.0}/koder_agent/tools/shell_ops.py +0 -0
  33. {koder-0.1.0 → koder-0.2.0}/koder_agent/tools/todo_ops.py +0 -0
  34. {koder-0.1.0 → koder-0.2.0}/koder_agent/tools/web_ops.py +0 -0
  35. {koder-0.1.0 → koder-0.2.0}/koder_agent/utils/__init__.py +0 -0
  36. {koder-0.1.0 → koder-0.2.0}/koder_agent/utils/client.py +0 -0
  37. {koder-0.1.0 → koder-0.2.0}/koder_agent/utils/prompts.py +0 -0
  38. {koder-0.1.0 → koder-0.2.0}/koder_agent/utils/queue.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: koder
3
- Version: 0.1.0
3
+ Version: 0.2.0
4
4
  Summary: An intuitive AI coding assistant and interactive CLI tool that boosts developer productivity with intelligent automation and context-aware support.
5
5
  Author: Pengfei Ni
6
6
  License-File: LICENSE
@@ -111,6 +111,30 @@ export KODER_MODEL="gemini/gemini-2.5-pro"
111
111
 
112
112
  <details>
113
113
 
114
+ <summary>Anthropic Claude</summary>
115
+
116
+ ```bash
117
+ # Anthropic Claude Opus
118
+ export ANTHROPIC_API_KEY="your-anthropic-key"
119
+ export KODER_MODEL="claude-opus-4-20250514"
120
+ ```
121
+
122
+ </details>
123
+
124
+ <details>
125
+
126
+ <summary>Github Copilot</summary>
127
+
128
+ ```bash
129
+ export KODER_MODEL="github_copilot/claude-sonnet-4"
130
+ ```
131
+
132
+ Visit <https://github.com/login/device> and enter code XXXX-XXXXX shown in your first chat to authenticate.
133
+
134
+ </details>
135
+
136
+ <details>
137
+
114
138
  <summary>Azure OpenAI</summary>
115
139
 
116
140
  ```bash
@@ -133,10 +157,6 @@ export AZURE_OPENAI_API_VERSION="2025-04-01-preview" # Default version
133
157
  [LiteLLM](https://docs.litellm.ai/docs/providers) supports 100+ providers including Anthropic, Google, Cohere, Hugging Face, and more:
134
158
 
135
159
  ```bash
136
- # Anthropic Claude
137
- export ANTHROPIC_API_KEY="your-anthropic-key"
138
- export KODER_MODEL="claude-opus-4-20250514"
139
-
140
160
  # Google Vertex AI
141
161
  export GOOGLE_APPLICATION_CREDENTIALS="your-sa-path.json"
142
162
  export VERTEXAI_LOCATION="<your-region>"
@@ -150,8 +170,6 @@ export KODER_MODEL="openai/<your-model-name>"
150
170
 
151
171
  </details>
152
172
 
153
-
154
-
155
173
  ## ⚡ Quick Start
156
174
 
157
175
  ### Basic Usage
@@ -170,8 +188,6 @@ koder --session my-project "Your prompt here"
170
188
  koder --stream "Your prompt here"
171
189
  ```
172
190
 
173
-
174
-
175
191
  ## 🧪 Development
176
192
 
177
193
  ### Setup Development Environment
@@ -90,6 +90,30 @@ export KODER_MODEL="gemini/gemini-2.5-pro"
90
90
 
91
91
  <details>
92
92
 
93
+ <summary>Anthropic Claude</summary>
94
+
95
+ ```bash
96
+ # Anthropic Claude Opus
97
+ export ANTHROPIC_API_KEY="your-anthropic-key"
98
+ export KODER_MODEL="claude-opus-4-20250514"
99
+ ```
100
+
101
+ </details>
102
+
103
+ <details>
104
+
105
+ <summary>Github Copilot</summary>
106
+
107
+ ```bash
108
+ export KODER_MODEL="github_copilot/claude-sonnet-4"
109
+ ```
110
+
111
+ Visit <https://github.com/login/device> and enter code XXXX-XXXXX shown in your first chat to authenticate.
112
+
113
+ </details>
114
+
115
+ <details>
116
+
93
117
  <summary>Azure OpenAI</summary>
94
118
 
95
119
  ```bash
@@ -112,10 +136,6 @@ export AZURE_OPENAI_API_VERSION="2025-04-01-preview" # Default version
112
136
  [LiteLLM](https://docs.litellm.ai/docs/providers) supports 100+ providers including Anthropic, Google, Cohere, Hugging Face, and more:
113
137
 
114
138
  ```bash
115
- # Anthropic Claude
116
- export ANTHROPIC_API_KEY="your-anthropic-key"
117
- export KODER_MODEL="claude-opus-4-20250514"
118
-
119
139
  # Google Vertex AI
120
140
  export GOOGLE_APPLICATION_CREDENTIALS="your-sa-path.json"
121
141
  export VERTEXAI_LOCATION="<your-region>"
@@ -129,8 +149,6 @@ export KODER_MODEL="openai/<your-model-name>"
129
149
 
130
150
  </details>
131
151
 
132
-
133
-
134
152
  ## ⚡ Quick Start
135
153
 
136
154
  ### Basic Usage
@@ -149,8 +167,6 @@ koder --session my-project "Your prompt here"
149
167
  koder --stream "Your prompt here"
150
168
  ```
151
169
 
152
-
153
-
154
170
  ## 🧪 Development
155
171
 
156
172
  ### Setup Development Environment
@@ -1,6 +1,6 @@
1
1
  """Koder Agent - An advanced AI coding assistant and interactive CLI tool."""
2
2
 
3
- __version__ = "0.1.0"
3
+ __version__ = "0.2.0"
4
4
 
5
5
  from .cli import main, run
6
6
 
@@ -1,6 +1,7 @@
1
1
  """Agent definitions and hooks for Koder."""
2
2
 
3
3
  import logging
4
+ import uuid
4
5
 
5
6
  from agents import Agent
6
7
  from rich.console import Console
@@ -40,5 +41,18 @@ async def create_dev_agent(tools) -> Agent:
40
41
  # handoffs=[planner],
41
42
  mcp_servers=mcp_servers,
42
43
  )
44
+
45
+ if "github_copilot" in model:
46
+ dev_agent.model_settings.extra_headers = {
47
+ "copilot-integration-id": "vscode-chat",
48
+ "editor-version": "vscode/1.98.1",
49
+ "editor-plugin-version": "copilot-chat/0.26.7",
50
+ "user-agent": "GitHubCopilotChat/0.26.7",
51
+ "openai-intent": "conversation-panel",
52
+ "x-github-api-version": "2025-04-01",
53
+ "x-request-id": str(uuid.uuid4()),
54
+ "x-vscode-user-agent-library-version": "electron-fetch",
55
+ }
56
+
43
57
  # planner.handoffs.append(dev_agent)
44
58
  return dev_agent
@@ -65,7 +65,6 @@ def get_all_tools() -> List[Tool]:
65
65
  __all__ = [
66
66
  "tool_engine",
67
67
  "get_all_tools",
68
-
69
68
  # Models
70
69
  "FileReadModel",
71
70
  "FileWriteModel",
@@ -80,7 +79,6 @@ __all__ = [
80
79
  "TodoWriteModel",
81
80
  "TaskModel",
82
81
  "TaskDelegateModel",
83
-
84
82
  # Functions
85
83
  "read_file",
86
84
  "write_file",
@@ -1,6 +1,7 @@
1
1
  """Task delegation operations."""
2
2
 
3
3
  import asyncio
4
+ import uuid
4
5
  from typing import List, Union
5
6
 
6
7
  from agents import Agent, RunConfig, Runner, function_tool
@@ -56,6 +57,17 @@ Return your findings or results directly without unnecessary explanation.""",
56
57
  tools=tools,
57
58
  mcp_servers=mcp_servers,
58
59
  )
60
+ if "github_copilot" in get_model_name():
61
+ delegated_agent.model_settings.extra_headers = {
62
+ "copilot-integration-id": "vscode-chat",
63
+ "editor-version": "vscode/1.98.1",
64
+ "editor-plugin-version": "copilot-chat/0.26.7",
65
+ "user-agent": "GitHubCopilotChat/0.26.7",
66
+ "openai-intent": "conversation-panel",
67
+ "x-github-api-version": "2025-04-01",
68
+ "x-request-id": str(uuid.uuid4()),
69
+ "x-vscode-user-agent-library-version": "electron-fetch",
70
+ }
59
71
 
60
72
  # Run the delegated agent
61
73
  result = await Runner.run(
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "koder"
3
- version = "0.1.0"
3
+ version = "0.2.0"
4
4
  description = "An intuitive AI coding assistant and interactive CLI tool that boosts developer productivity with intelligent automation and context-aware support."
5
5
  authors = [
6
6
  { name = "Pengfei Ni" }
@@ -1091,7 +1091,7 @@ wheels = [
1091
1091
 
1092
1092
  [[package]]
1093
1093
  name = "koder"
1094
- version = "0.1.0"
1094
+ version = "0.2.0"
1095
1095
  source = { editable = "." }
1096
1096
  dependencies = [
1097
1097
  { name = "aiosqlite" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes