kodit 0.1.12__tar.gz → 0.1.13__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.
Potentially problematic release.
This version of kodit might be problematic. Click here for more details.
- {kodit-0.1.12 → kodit-0.1.13}/PKG-INFO +1 -1
- {kodit-0.1.12 → kodit-0.1.13}/docs/_index.md +27 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/_version.py +2 -2
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/cli.py +0 -7
- {kodit-0.1.12 → kodit-0.1.13}/.cursor/rules/kodit.mdc +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/.github/CODE_OF_CONDUCT.md +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/.github/CONTRIBUTING.md +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/.github/workflows/docker.yaml +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/.github/workflows/docs.yaml +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/.github/workflows/pypi-test.yaml +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/.github/workflows/pypi.yaml +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/.github/workflows/test.yaml +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/.gitignore +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/.python-version +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/.vscode/launch.json +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/.vscode/settings.json +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/Dockerfile +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/LICENSE +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/README.md +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/alembic.ini +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/docs/developer/index.md +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/pyproject.toml +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/.gitignore +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/__init__.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/app.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/bm25/__init__.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/bm25/bm25.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/config.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/database.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/embedding/__init__.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/embedding/embedding.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/embedding/embedding_models.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/indexing/__init__.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/indexing/indexing_models.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/indexing/indexing_repository.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/indexing/indexing_service.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/log.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/mcp.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/middleware.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/migrations/README +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/migrations/__init__.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/migrations/env.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/migrations/script.py.mako +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/migrations/versions/7c3bbc2ab32b_add_embeddings_table.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/migrations/versions/85155663351e_initial.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/migrations/versions/__init__.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/search/__init__.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/search/search_repository.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/search/search_service.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/snippets/__init__.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/snippets/languages/__init__.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/snippets/languages/csharp.scm +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/snippets/languages/python.scm +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/snippets/method_snippets.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/snippets/snippets.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/source/__init__.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/source/source_models.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/source/source_repository.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/src/kodit/source/source_service.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/__init__.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/conftest.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/experiments/embedding.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/kodit/__init__.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/kodit/cli_test.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/kodit/e2e.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/kodit/embedding/__init__.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/kodit/embedding/embedding_test.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/kodit/indexing/__init__.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/kodit/indexing/indexing_service_test.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/kodit/mcp_test.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/kodit/search/__init__.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/kodit/search/search_repository_test.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/kodit/search/search_service_test.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/kodit/snippets/__init__.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/kodit/snippets/csharp.cs +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/kodit/snippets/detect_language_test.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/kodit/snippets/method_extraction_test.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/kodit/snippets/python.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/kodit/source/__init__.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/kodit/source/source_service_test.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/performance/similarity.py +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/tests/smoke.sh +0 -0
- {kodit-0.1.12 → kodit-0.1.13}/uv.lock +0 -0
|
@@ -95,6 +95,33 @@ You MUST use the code-search MCP tool and always include any file context the us
|
|
|
95
95
|
|
|
96
96
|
Alternatively, you can browse to the cursor settings and set this prompt globally.
|
|
97
97
|
|
|
98
|
+
### Integration with Cline
|
|
99
|
+
|
|
100
|
+
1. Click on the Cline icon in the menu
|
|
101
|
+
2. Click the `MCP Servers` button at the top right of the Cline window (looks like a
|
|
102
|
+
server)
|
|
103
|
+
3. Click the `Remote Servers` tab.
|
|
104
|
+
4. Click `Edit Configuration`
|
|
105
|
+
5. Add the following configuration:
|
|
106
|
+
|
|
107
|
+
```json
|
|
108
|
+
{
|
|
109
|
+
"mcpServers": {
|
|
110
|
+
"kodit": {
|
|
111
|
+
"autoApprove": [],
|
|
112
|
+
"disabled": true,
|
|
113
|
+
"timeout": 60,
|
|
114
|
+
"url": "http://localhost:8080/sse",
|
|
115
|
+
"transportType": "sse"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
6. Save the configuration and browse to the `Installed` tab.
|
|
122
|
+
|
|
123
|
+
Kodit should be listed and responding. Now code on!
|
|
124
|
+
|
|
98
125
|
## Configuring Kodit
|
|
99
126
|
|
|
100
127
|
Configuration of Kodit is performed by setting environmental variables or adding
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"""Command line interface for kodit."""
|
|
2
2
|
|
|
3
|
-
import os
|
|
4
3
|
import signal
|
|
5
4
|
from pathlib import Path
|
|
6
5
|
from typing import Any
|
|
@@ -226,9 +225,7 @@ async def hybrid(
|
|
|
226
225
|
@cli.command()
|
|
227
226
|
@click.option("--host", default="127.0.0.1", help="Host to bind the server to")
|
|
228
227
|
@click.option("--port", default=8080, help="Port to bind the server to")
|
|
229
|
-
@with_app_context
|
|
230
228
|
def serve(
|
|
231
|
-
app_context: AppContext,
|
|
232
229
|
host: str,
|
|
233
230
|
port: int,
|
|
234
231
|
) -> None:
|
|
@@ -237,10 +234,6 @@ def serve(
|
|
|
237
234
|
log.info("Starting kodit server", host=host, port=port)
|
|
238
235
|
log_event("kodit_server_started")
|
|
239
236
|
|
|
240
|
-
# Dump AppContext to a dictionary of strings, and set the env vars
|
|
241
|
-
app_context_dict = {k: str(v) for k, v in app_context.model_dump().items()}
|
|
242
|
-
os.environ.update(app_context_dict)
|
|
243
|
-
|
|
244
237
|
# Configure uvicorn with graceful shutdown
|
|
245
238
|
config = uvicorn.Config(
|
|
246
239
|
"kodit.app:app",
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kodit-0.1.12 → kodit-0.1.13}/src/kodit/migrations/versions/7c3bbc2ab32b_add_embeddings_table.py
RENAMED
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|