kodit 0.3.9__tar.gz → 0.3.11__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.3.9 → kodit-0.3.11}/.github/workflows/test.yaml +6 -6
- kodit-0.3.11/Makefile +17 -0
- {kodit-0.3.9 → kodit-0.3.11}/PKG-INFO +1 -1
- kodit-0.3.11/docs/reference/api/index.md +361 -0
- kodit-0.3.11/docs/reference/api/openapi.json +738 -0
- kodit-0.3.11/docs/reference/api/templates/_content.md.j2 +18 -0
- kodit-0.3.11/docs/reference/api/templates/_example.md.j2 +14 -0
- kodit-0.3.11/docs/reference/api/templates/_object_schema.md.j2 +7 -0
- kodit-0.3.11/docs/reference/api/templates/_security_scheme.md.j2 +10 -0
- kodit-0.3.11/docs/reference/api/templates/api_doc_template.md.j2 +93 -0
- {kodit-0.3.9 → kodit-0.3.11}/docs/reference/deployment/docker-compose.yaml +1 -1
- {kodit-0.3.9 → kodit-0.3.11}/docs/reference/indexing/index.md +102 -0
- {kodit-0.3.9 → kodit-0.3.11}/pyproject.toml +4 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/_version.py +2 -2
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/app.py +38 -18
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/application/services/code_indexing_application_service.py +9 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/config.py +22 -1
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/domain/entities.py +5 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/domain/protocols.py +4 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/domain/services/index_service.py +24 -9
- kodit-0.3.11/src/kodit/infrastructure/api/__init__.py +1 -0
- kodit-0.3.11/src/kodit/infrastructure/api/middleware/__init__.py +1 -0
- kodit-0.3.11/src/kodit/infrastructure/api/middleware/auth.py +34 -0
- kodit-0.3.11/src/kodit/infrastructure/api/v1/__init__.py +5 -0
- kodit-0.3.11/src/kodit/infrastructure/api/v1/dependencies.py +70 -0
- kodit-0.3.11/src/kodit/infrastructure/api/v1/routers/__init__.py +6 -0
- kodit-0.3.11/src/kodit/infrastructure/api/v1/routers/indexes.py +114 -0
- kodit-0.3.11/src/kodit/infrastructure/api/v1/routers/search.py +74 -0
- kodit-0.3.11/src/kodit/infrastructure/api/v1/schemas/__init__.py +25 -0
- kodit-0.3.11/src/kodit/infrastructure/api/v1/schemas/context.py +11 -0
- kodit-0.3.11/src/kodit/infrastructure/api/v1/schemas/index.py +101 -0
- kodit-0.3.11/src/kodit/infrastructure/api/v1/schemas/search.py +219 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/slicing/slicer.py +43 -18
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/sqlalchemy/index_repository.py +29 -0
- kodit-0.3.11/src/kodit/utils/dump_openapi.py +33 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/conftest.py +2 -1
- kodit-0.3.11/tests/kodit/app_test.py +315 -0
- kodit-0.3.11/tests/kodit/domain/services/index_service_test.py +320 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/slicer_test.py +215 -124
- {kodit-0.3.9 → kodit-0.3.11}/uv.lock +159 -3
- kodit-0.3.9/tests/kodit/domain/services/index_service_test.py +0 -162
- {kodit-0.3.9 → kodit-0.3.11}/.claude/commands/debug.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.claude/commands/new-requirement.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.claude/commands/refactor.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.claude/commands/update-docs.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.claude/settings.json +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.cursor/rules/kodit.mdc +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.cursor/rules/style.mdc +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.dockerignore +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.github/CODE_OF_CONDUCT.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.github/CONTRIBUTING.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.github/dependabot.yml +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.github/workflows/docker.yaml +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.github/workflows/docs.yaml +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.github/workflows/pull_request.yaml +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.github/workflows/pypi-test.yaml +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.github/workflows/pypi.yaml +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.gitignore +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.python-version +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.vscode/launch.json +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/.vscode/settings.json +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/CLAUDE.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/Dockerfile +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/LICENSE +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/README.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/alembic.ini +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/docs/_index.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/docs/demos/_index.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/docs/demos/go-simple-microservice/index.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/docs/demos/knock-knock-auth/index.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/docs/developer/index.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/docs/getting-started/_index.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/docs/getting-started/installation/index.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/docs/getting-started/integration/index.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/docs/getting-started/quick-start/index.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/docs/reference/_index.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/docs/reference/configuration/index.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/docs/reference/deployment/index.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/docs/reference/deployment/kubernetes.yaml +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/docs/reference/mcp/index.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/docs/reference/sync/index.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/docs/reference/telemetry/index.md +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/.gitignore +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/application/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/application/factories/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/application/factories/code_indexing_factory.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/application/services/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/application/services/sync_scheduler.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/cli.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/database.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/domain/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/domain/errors.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/domain/interfaces.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/domain/services/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/domain/services/bm25_service.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/domain/services/embedding_service.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/domain/services/enrichment_service.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/domain/services/index_query_service.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/domain/value_objects.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/bm25/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/bm25/bm25_factory.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/bm25/local_bm25_repository.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/bm25/vectorchord_bm25_repository.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/cloning/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/cloning/git/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/cloning/git/working_copy.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/cloning/metadata.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/embedding/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/embedding/embedding_factory.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/embedding/embedding_providers/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/embedding/embedding_providers/batching.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/embedding/embedding_providers/hash_embedding_provider.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/embedding/embedding_providers/local_embedding_provider.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/embedding/embedding_providers/openai_embedding_provider.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/embedding/local_vector_search_repository.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/embedding/vectorchord_vector_search_repository.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/enrichment/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/enrichment/enrichment_factory.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/enrichment/local_enrichment_provider.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/enrichment/null_enrichment_provider.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/enrichment/openai_enrichment_provider.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/git/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/git/git_utils.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/ignore/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/ignore/ignore_pattern_provider.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/indexing/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/indexing/auto_indexing_service.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/indexing/fusion_service.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/mappers/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/mappers/index_mapper.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/slicing/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/slicing/language_detection_service.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/sqlalchemy/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/sqlalchemy/embedding_repository.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/sqlalchemy/entities.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/ui/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/ui/progress.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/infrastructure/ui/spinner.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/log.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/mcp.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/middleware.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/migrations/README +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/migrations/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/migrations/env.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/migrations/script.py.mako +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/migrations/versions/4073b33f9436_add_file_processing_flag.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/migrations/versions/4552eb3f23ce_add_summary.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/migrations/versions/7c3bbc2ab32b_add_embeddings_table.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/migrations/versions/85155663351e_initial.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/migrations/versions/9e53ea8bb3b0_add_authors.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/migrations/versions/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/migrations/versions/c3f5137d30f5_index_all_the_things.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/reporting.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/utils/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/src/kodit/utils/path_utils.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/docker-smoke.sh +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/experiments/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/experiments/cline_prompt_tests/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/experiments/cline_prompt_tests/cline_prompt.txt +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/experiments/cline_prompt_tests/cline_prompt_test.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/application/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/application/services/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/application/services/test_sync_scheduler.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/application/test_code_indexing_application_service.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/cli_test.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/config_test.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/domain/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/domain/bm25_domain_service_test.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/domain/enrichment_domain_service_test.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/domain/entities_test.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/domain/services/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/domain/test_embedding_service.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/domain/test_language_mapping.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/domain/test_multi_search_result.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/e2e.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/bm25/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/bm25/local_bm25_repository_test.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/bm25/vectorchord_bm25_repository_test.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/cloning/git_cloning/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/cloning/git_cloning/working_copy_test.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/embedding/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/embedding/embedding_factory_test.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/embedding/embedding_provider/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/embedding/embedding_provider/test_hash_embedding_provider.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/embedding/embedding_provider/test_local_embedding_provider.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/embedding/embedding_provider/test_openai_embedding_provider.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/embedding/test_batching.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/embedding/test_embedding_integration.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/embedding/test_local_vector_search_repository.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/embedding/test_vectorchord_vector_search_repository.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/enrichment/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/enrichment/enrichment_provider/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/enrichment/enrichment_provider/test_local_enrichment_provider.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/enrichment/enrichment_provider/test_null_enrichment_provider.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/enrichment/enrichment_provider/test_openai_enrichment_provider.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/enrichment/test_enrichment_factory.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/indexing/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/indexing/test_auto_indexing_service.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/mappers/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/mappers/test_index_mapper.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/c/main.c +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/c/models.c +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/c/models.h +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/c/utils.c +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/c/utils.h +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/cpp/main.cpp +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/cpp/models.cpp +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/cpp/models.hpp +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/cpp/utils.cpp +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/cpp/utils.hpp +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/csharp/Main.cs +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/csharp/Models.cs +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/csharp/Utils.cs +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/css/components.css +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/css/main.css +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/css/utilities.css +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/go/main.go +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/go/models.go +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/go/utils.go +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/html/components.html +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/html/forms.html +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/html/main.html +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/java/Main.java +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/java/Models.java +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/java/Utils.java +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/javascript/main.js +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/javascript/models.js +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/javascript/utils.js +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/python/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/python/main.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/python/models.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/python/utils.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/rust/main.rs +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/rust/models.rs +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/slicing/data/rust/utils.rs +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/snippets/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/snippets/csharp.cs +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/snippets/golang.go +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/snippets/javascript.js +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/snippets/knock_knock_server.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/snippets/python.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/snippets/typescript.tsx +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/sqlalchemy/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/infrastructure/sqlalchemy/test_embedding_repository.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/log_test.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/mcp_stdio_test.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/kodit/mcp_test.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/performance/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/performance/similarity.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/smoke.sh +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/utils/__init__.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/utils/test_path_utils.py +0 -0
- {kodit-0.3.9 → kodit-0.3.11}/tests/vectorchord-smoke.sh +0 -0
|
@@ -17,6 +17,9 @@ jobs:
|
|
|
17
17
|
steps:
|
|
18
18
|
- name: Checkout code
|
|
19
19
|
uses: actions/checkout@v4
|
|
20
|
+
with:
|
|
21
|
+
fetch-tags: true
|
|
22
|
+
fetch-depth: 0
|
|
20
23
|
|
|
21
24
|
# Use the official Python action to set up Python because it is faster
|
|
22
25
|
- name: "Set up Python"
|
|
@@ -32,14 +35,11 @@ jobs:
|
|
|
32
35
|
- name: Install the project
|
|
33
36
|
run: uv sync --locked --all-extras --dev
|
|
34
37
|
|
|
35
|
-
- name:
|
|
36
|
-
run:
|
|
37
|
-
|
|
38
|
-
- name: Run type checks
|
|
39
|
-
run: uv run mypy --config-file pyproject.toml .
|
|
38
|
+
- name: API Doc check
|
|
39
|
+
run: make openapi-check
|
|
40
40
|
|
|
41
41
|
- name: Run tests
|
|
42
|
-
run:
|
|
42
|
+
run: make test
|
|
43
43
|
|
|
44
44
|
build-package:
|
|
45
45
|
runs-on: ubuntu-latest
|
kodit-0.3.11/Makefile
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Makefile for Kodit
|
|
2
|
+
|
|
3
|
+
# Generate OpenAPI json schema from the FastAPI app
|
|
4
|
+
openapi:
|
|
5
|
+
uv run src/kodit/utils/dump_openapi.py --out docs/reference/api/ kodit.app:app
|
|
6
|
+
|
|
7
|
+
openapi-check: openapi
|
|
8
|
+
git diff --exit-code docs/reference/api/index.md
|
|
9
|
+
|
|
10
|
+
type:
|
|
11
|
+
uv run mypy --config-file pyproject.toml .
|
|
12
|
+
|
|
13
|
+
lint:
|
|
14
|
+
uv run ruff check --fix --unsafe-fixes
|
|
15
|
+
|
|
16
|
+
test: lint type
|
|
17
|
+
uv run pytest -s --cov=src --cov-report=xml tests/kodit
|
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Server API Reference
|
|
3
|
+
description: Kodit Server REST API Documentation
|
|
4
|
+
weight: 30
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
This file is automatically generated from the Kodit server OpenAPI specification.
|
|
8
|
+
You can view the live API documentation on the `/docs` endpoint of your Kodit server.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
This is the REST API for the Kodit server. Please refer to the
|
|
12
|
+
[Kodit documentation](https://docs.helix.ml/kodit/) for more information.
|
|
13
|
+
|
|
14
|
+
Current version: 0.3.11
|
|
15
|
+
|
|
16
|
+
## Authentication
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Security Schemes
|
|
21
|
+
|
|
22
|
+
| Name | Type | Description | Scheme | Bearer Format |
|
|
23
|
+
|-------------------|-------------------|--------------------------|---------------------|---------------------------|
|
|
24
|
+
| Header (X-API-KEY) | apiKey | API key for authentication (only if set in environmental variables) | | |
|
|
25
|
+
|
|
26
|
+
## APIs
|
|
27
|
+
|
|
28
|
+
### GET /healthz
|
|
29
|
+
|
|
30
|
+
Return a health check for the kodit API.
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
#### Responses
|
|
34
|
+
|
|
35
|
+
- 200: Successful Response
|
|
36
|
+
|
|
37
|
+
- 500: Internal server error
|
|
38
|
+
|
|
39
|
+
### GET /api/v1/indexes
|
|
40
|
+
|
|
41
|
+
List all indexes.
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
#### Responses
|
|
45
|
+
|
|
46
|
+
- 200: Successful Response
|
|
47
|
+
|
|
48
|
+
[IndexListResponse](#indexlistresponse)
|
|
49
|
+
|
|
50
|
+
- 500: Internal server error
|
|
51
|
+
|
|
52
|
+
- 401: Unauthorized
|
|
53
|
+
|
|
54
|
+
- 422: Invalid request
|
|
55
|
+
|
|
56
|
+
### POST /api/v1/indexes
|
|
57
|
+
|
|
58
|
+
Create a new index and start async indexing.
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
#### Request Body
|
|
62
|
+
|
|
63
|
+
[IndexCreateRequest](#indexcreaterequest)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
#### Responses
|
|
67
|
+
|
|
68
|
+
- 202: Successful Response
|
|
69
|
+
|
|
70
|
+
[IndexResponse](#indexresponse)
|
|
71
|
+
|
|
72
|
+
- 500: Internal server error
|
|
73
|
+
|
|
74
|
+
- 401: Unauthorized
|
|
75
|
+
|
|
76
|
+
- 422: Invalid request
|
|
77
|
+
|
|
78
|
+
### GET /api/v1/indexes/{index_id}
|
|
79
|
+
|
|
80
|
+
Get index details.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
#### Parameters
|
|
84
|
+
|
|
85
|
+
| Name | Type | Required | Description |
|
|
86
|
+
|------|------|----------|-------------|
|
|
87
|
+
| index_id | integer | True | |
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
#### Responses
|
|
91
|
+
|
|
92
|
+
- 200: Successful Response
|
|
93
|
+
|
|
94
|
+
[IndexDetailResponse](#indexdetailresponse)
|
|
95
|
+
|
|
96
|
+
- 500: Internal server error
|
|
97
|
+
|
|
98
|
+
- 401: Unauthorized
|
|
99
|
+
|
|
100
|
+
- 422: Invalid request
|
|
101
|
+
|
|
102
|
+
- 404: Index not found
|
|
103
|
+
|
|
104
|
+
### DELETE /api/v1/indexes/{index_id}
|
|
105
|
+
|
|
106
|
+
Delete an index.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
#### Parameters
|
|
110
|
+
|
|
111
|
+
| Name | Type | Required | Description |
|
|
112
|
+
|------|------|----------|-------------|
|
|
113
|
+
| index_id | integer | True | |
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
#### Responses
|
|
117
|
+
|
|
118
|
+
- 204: Successful Response
|
|
119
|
+
|
|
120
|
+
- 500: Internal server error
|
|
121
|
+
|
|
122
|
+
- 401: Unauthorized
|
|
123
|
+
|
|
124
|
+
- 422: Invalid request
|
|
125
|
+
|
|
126
|
+
- 404: Index not found
|
|
127
|
+
|
|
128
|
+
### POST /api/v1/search
|
|
129
|
+
|
|
130
|
+
Search code snippets with filters matching MCP tool.
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
#### Request Body
|
|
134
|
+
|
|
135
|
+
[SearchRequest](#searchrequest)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
#### Responses
|
|
139
|
+
|
|
140
|
+
- 200: Successful Response
|
|
141
|
+
|
|
142
|
+
[SearchResponse](#searchresponse)
|
|
143
|
+
|
|
144
|
+
- 500: Internal server error
|
|
145
|
+
|
|
146
|
+
- 422: Validation Error
|
|
147
|
+
|
|
148
|
+
[HTTPValidationError](#httpvalidationerror)
|
|
149
|
+
|
|
150
|
+
## Components
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
### HTTPValidationError
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
| Field | Type | Description |
|
|
159
|
+
|-------|------|-------------|
|
|
160
|
+
| detail | array | |
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### IndexAttributes
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
Index attributes for JSON:API responses.
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
| Field | Type | Description |
|
|
170
|
+
|-------|------|-------------|
|
|
171
|
+
| created_at | string | |
|
|
172
|
+
| updated_at | string | |
|
|
173
|
+
| uri | string | |
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
### IndexCreateAttributes
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
Attributes for creating an index.
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
| Field | Type | Description |
|
|
183
|
+
|-------|------|-------------|
|
|
184
|
+
| uri | string | URI of the source to index |
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
### IndexCreateData
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
Data for creating an index.
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
| Field | Type | Description |
|
|
194
|
+
|-------|------|-------------|
|
|
195
|
+
| type | string | |
|
|
196
|
+
| attributes | | |
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
### IndexCreateRequest
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
JSON:API request for creating an index.
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
| Field | Type | Description |
|
|
206
|
+
|-------|------|-------------|
|
|
207
|
+
| data | | |
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
### IndexData
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
Index data for JSON:API responses.
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
| Field | Type | Description |
|
|
217
|
+
|-------|------|-------------|
|
|
218
|
+
| type | string | |
|
|
219
|
+
| id | string | |
|
|
220
|
+
| attributes | | |
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
### IndexDetailResponse
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
JSON:API response for index details with included resources.
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
| Field | Type | Description |
|
|
230
|
+
|-------|------|-------------|
|
|
231
|
+
| data | | |
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### IndexListResponse
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
JSON:API response for index list.
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
| Field | Type | Description |
|
|
241
|
+
|-------|------|-------------|
|
|
242
|
+
| data | array | |
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
### IndexResponse
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
JSON:API response for single index.
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
| Field | Type | Description |
|
|
252
|
+
|-------|------|-------------|
|
|
253
|
+
| data | | |
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
### SearchAttributes
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
Search attributes for JSON:API requests.
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
| Field | Type | Description |
|
|
263
|
+
|-------|------|-------------|
|
|
264
|
+
| keywords | | Search keywords |
|
|
265
|
+
| code | | Code search query |
|
|
266
|
+
| text | | Text search query |
|
|
267
|
+
| limit | | Maximum number of results to return |
|
|
268
|
+
| filters | | Search filters |
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
### SearchData
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
Search data for JSON:API requests.
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
| Field | Type | Description |
|
|
278
|
+
|-------|------|-------------|
|
|
279
|
+
| type | string | |
|
|
280
|
+
| attributes | | |
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
### SearchFilters
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
Search filters for JSON:API requests.
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
| Field | Type | Description |
|
|
290
|
+
|-------|------|-------------|
|
|
291
|
+
| languages | | Programming languages to filter by |
|
|
292
|
+
| authors | | Authors to filter by |
|
|
293
|
+
| start_date | | Filter snippets created after this date |
|
|
294
|
+
| end_date | | Filter snippets created before this date |
|
|
295
|
+
| sources | | Source repositories to filter by |
|
|
296
|
+
| file_patterns | | File path patterns to filter by |
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
### SearchRequest
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
JSON:API request for searching snippets.
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
| Field | Type | Description |
|
|
306
|
+
|-------|------|-------------|
|
|
307
|
+
| data | | |
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
### SearchResponse
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
JSON:API response for search results.
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
| Field | Type | Description |
|
|
317
|
+
|-------|------|-------------|
|
|
318
|
+
| data | array | |
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
### SnippetAttributes
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
Snippet attributes for JSON:API responses.
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
| Field | Type | Description |
|
|
328
|
+
|-------|------|-------------|
|
|
329
|
+
| content | string | |
|
|
330
|
+
| created_at | string | |
|
|
331
|
+
| updated_at | string | |
|
|
332
|
+
| original_scores | array | |
|
|
333
|
+
| source_uri | string | |
|
|
334
|
+
| relative_path | string | |
|
|
335
|
+
| language | string | |
|
|
336
|
+
| authors | array | |
|
|
337
|
+
| summary | string | |
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
### SnippetData
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
Snippet data for JSON:API responses.
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
| Field | Type | Description |
|
|
347
|
+
|-------|------|-------------|
|
|
348
|
+
| type | string | |
|
|
349
|
+
| id | integer | |
|
|
350
|
+
| attributes | | |
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
### ValidationError
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
| Field | Type | Description |
|
|
358
|
+
|-------|------|-------------|
|
|
359
|
+
| loc | array | |
|
|
360
|
+
| msg | string | |
|
|
361
|
+
| type | string | |
|