kodit 0.2.7__py3-none-any.whl → 0.2.8__py3-none-any.whl
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/_version.py +2 -2
- kodit/infrastructure/cloning/git/working_copy.py +5 -2
- {kodit-0.2.7.dist-info → kodit-0.2.8.dist-info}/METADATA +1 -1
- {kodit-0.2.7.dist-info → kodit-0.2.8.dist-info}/RECORD +7 -7
- {kodit-0.2.7.dist-info → kodit-0.2.8.dist-info}/WHEEL +0 -0
- {kodit-0.2.7.dist-info → kodit-0.2.8.dist-info}/entry_points.txt +0 -0
- {kodit-0.2.7.dist-info → kodit-0.2.8.dist-info}/licenses/LICENSE +0 -0
kodit/_version.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"""Working copy provider for git-based sources."""
|
|
2
2
|
|
|
3
|
+
import hashlib
|
|
3
4
|
from pathlib import Path
|
|
4
5
|
|
|
5
6
|
import git
|
|
@@ -21,8 +22,10 @@ class GitWorkingCopyProvider:
|
|
|
21
22
|
# Sanitize the URI for directory name to prevent credential leaks
|
|
22
23
|
sanitized_uri = sanitize_git_url(uri)
|
|
23
24
|
|
|
24
|
-
#
|
|
25
|
-
|
|
25
|
+
# Use a repeatable, short sha256 hash of the sanitized URI for the directory
|
|
26
|
+
dir_hash = hashlib.sha256(sanitized_uri.encode("utf-8")).hexdigest()[:16]
|
|
27
|
+
dir_name = f"repo-{dir_hash}"
|
|
28
|
+
clone_path = self.clone_dir / dir_name
|
|
26
29
|
clone_path.mkdir(parents=True, exist_ok=True)
|
|
27
30
|
|
|
28
31
|
try:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
kodit/.gitignore,sha256=ztkjgRwL9Uud1OEi36hGQeDGk3OLK1NfDEO8YqGYy8o,11
|
|
2
2
|
kodit/__init__.py,sha256=aEKHYninUq1yh6jaNfvJBYg-6fenpN132nJt1UU6Jxs,59
|
|
3
|
-
kodit/_version.py,sha256=
|
|
3
|
+
kodit/_version.py,sha256=zkhRarrvPoGA1yWjS9_zVM80dWqpDesNn9DiHcF4JWM,511
|
|
4
4
|
kodit/app.py,sha256=qKBWJ0VNSY_M6G3VFfAQ0133q5bnS99cUFD0p396taw,1032
|
|
5
5
|
kodit/cli.py,sha256=JnhTlG1s04O0m8AzsBdrwP8T_BqSZMPXnRLvI7T_Gxc,12004
|
|
6
6
|
kodit/config.py,sha256=3yh7hfLSILjZK_qJMhcExwRcrWJ0b5Eb1JjjOvMPJZo,4146
|
|
@@ -42,7 +42,7 @@ kodit/infrastructure/cloning/folder/factory.py,sha256=vl1hwnYA7lczjotn2fahJQAt7I
|
|
|
42
42
|
kodit/infrastructure/cloning/folder/working_copy.py,sha256=FPhwzuPj40yGoYvwcm9VG8mv8MbJxwfby_N5JS-_daA,1154
|
|
43
43
|
kodit/infrastructure/cloning/git/__init__.py,sha256=20ePcp0qE6BuLsjsv4KYB1DzKhMIMsPXwEqIEZtjTJs,34
|
|
44
44
|
kodit/infrastructure/cloning/git/factory.py,sha256=cY0cxapp0NCvjMRpzesW_qRzbWbh-tMKIeAj0Eodyhw,5409
|
|
45
|
-
kodit/infrastructure/cloning/git/working_copy.py,sha256=
|
|
45
|
+
kodit/infrastructure/cloning/git/working_copy.py,sha256=IwXQ0Ta59ykVkrxAyhJk0ijOO6aaub7UI-bXFDyNT0k,1562
|
|
46
46
|
kodit/infrastructure/embedding/__init__.py,sha256=F-8nLlWAerYJ0MOIA4tbXHLan8bW5rRR84vzxx6tRKI,39
|
|
47
47
|
kodit/infrastructure/embedding/embedding_factory.py,sha256=1AypjhWJGxvLnZt1SEH_FHPk9P0Vkt9fXdSGzFPp2ow,3432
|
|
48
48
|
kodit/infrastructure/embedding/local_vector_search_repository.py,sha256=UO8A3Eb_djFVrWKKSukAo4u7k8djDD1SlOPHk2pP9ps,3921
|
|
@@ -93,8 +93,8 @@ kodit/migrations/versions/85155663351e_initial.py,sha256=Cg7zlF871o9ShV5rQMQ1v7h
|
|
|
93
93
|
kodit/migrations/versions/9e53ea8bb3b0_add_authors.py,sha256=a32Zm8KUQyiiLkjKNPYdaJDgjW6VsV-GhaLnPnK_fpI,3884
|
|
94
94
|
kodit/migrations/versions/__init__.py,sha256=9-lHzptItTzq_fomdIRBegQNm4Znx6pVjwD4MiqRIdo,36
|
|
95
95
|
kodit/migrations/versions/c3f5137d30f5_index_all_the_things.py,sha256=rI8LmjF-I2OMxZ2nOIF_NRmqOLXe45hL_iz_nx97DTQ,1680
|
|
96
|
-
kodit-0.2.
|
|
97
|
-
kodit-0.2.
|
|
98
|
-
kodit-0.2.
|
|
99
|
-
kodit-0.2.
|
|
100
|
-
kodit-0.2.
|
|
96
|
+
kodit-0.2.8.dist-info/METADATA,sha256=uxuFXAnAellsx3-Isah750l4jBAme9DT2imIzjjBmHg,5867
|
|
97
|
+
kodit-0.2.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
98
|
+
kodit-0.2.8.dist-info/entry_points.txt,sha256=hoTn-1aKyTItjnY91fnO-rV5uaWQLQ-Vi7V5et2IbHY,40
|
|
99
|
+
kodit-0.2.8.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
100
|
+
kodit-0.2.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|