dirsql-plugin-embeddings 0.1.2__tar.gz → 0.1.3__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.
- {dirsql_plugin_embeddings-0.1.2 → dirsql_plugin_embeddings-0.1.3}/PKG-INFO +1 -1
- dirsql_plugin_embeddings-0.1.2/e2e-attestations/claude-on-file-integration-e2e-lpeicb.json → dirsql_plugin_embeddings-0.1.3/e2e-attestations/claude-on-file-integration-e2e-lpeicb-read-content.json +3 -3
- {dirsql_plugin_embeddings-0.1.2 → dirsql_plugin_embeddings-0.1.3}/src/dirsql_plugin_embeddings/on_file/on_file.py +2 -2
- dirsql_plugin_embeddings-0.1.3/src/dirsql_plugin_embeddings/on_file/read_content.py +13 -0
- {dirsql_plugin_embeddings-0.1.2 → dirsql_plugin_embeddings-0.1.3}/.gitignore +0 -0
- {dirsql_plugin_embeddings-0.1.2 → dirsql_plugin_embeddings-0.1.3}/README.md +0 -0
- {dirsql_plugin_embeddings-0.1.2 → dirsql_plugin_embeddings-0.1.3}/pyproject.toml +0 -0
- {dirsql_plugin_embeddings-0.1.2 → dirsql_plugin_embeddings-0.1.3}/src/dirsql_plugin_embeddings/__init__.py +0 -0
- {dirsql_plugin_embeddings-0.1.2 → dirsql_plugin_embeddings-0.1.3}/src/dirsql_plugin_embeddings/dirsql.toml +0 -0
- {dirsql_plugin_embeddings-0.1.2 → dirsql_plugin_embeddings-0.1.3}/src/dirsql_plugin_embeddings/embedder.py +0 -0
- {dirsql_plugin_embeddings-0.1.2 → dirsql_plugin_embeddings-0.1.3}/src/dirsql_plugin_embeddings/on_file/__init__.py +0 -0
- {dirsql_plugin_embeddings-0.1.2 → dirsql_plugin_embeddings-0.1.3}/src/dirsql_plugin_embeddings/on_file/build_rows.py +0 -0
- {dirsql_plugin_embeddings-0.1.2 → dirsql_plugin_embeddings-0.1.3}/src/dirsql_plugin_embeddings/on_file/read_text.py +0 -0
- {dirsql_plugin_embeddings-0.1.2 → dirsql_plugin_embeddings-0.1.3}/src/dirsql_plugin_embeddings/pre_query.py +0 -0
- {dirsql_plugin_embeddings-0.1.2 → dirsql_plugin_embeddings-0.1.3}/testing-conventions.toml +0 -0
- {dirsql_plugin_embeddings-0.1.2 → dirsql_plugin_embeddings-0.1.3}/tests/conftest.py +0 -0
- {dirsql_plugin_embeddings-0.1.2 → dirsql_plugin_embeddings-0.1.3}/tests/e2e/__init__.py +0 -0
- {dirsql_plugin_embeddings-0.1.2 → dirsql_plugin_embeddings-0.1.3}/tests/integration/__init__.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"command": "uv run --with sqlite-vec --with-editable . --with-editable ../../packages/python python -m pytest tests/e2e -x -q",
|
|
3
|
-
"ran_at":
|
|
3
|
+
"ran_at": 1785324484,
|
|
4
4
|
"exit_code": 0,
|
|
5
|
-
"commit": "
|
|
6
|
-
"branch": "claude/on-file-integration-e2e-lpeicb"
|
|
5
|
+
"commit": "e8600a3672b0ecd9c604c3c22ecc5be49adc5df5",
|
|
6
|
+
"branch": "claude/on-file-integration-e2e-lpeicb-read-content"
|
|
7
7
|
}
|
|
@@ -13,13 +13,13 @@ import sys
|
|
|
13
13
|
|
|
14
14
|
from ..embedder import embed
|
|
15
15
|
from .build_rows import build_rows
|
|
16
|
-
from .
|
|
16
|
+
from .read_content import read_content
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
def on_file(argv: list[str] | None = None) -> int:
|
|
20
20
|
if argv is None:
|
|
21
21
|
argv = sys.argv
|
|
22
22
|
path = argv[1]
|
|
23
|
-
text =
|
|
23
|
+
text = read_content(path)
|
|
24
24
|
print(json.dumps(build_rows(path, text, embed(text))))
|
|
25
25
|
return 0
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""The entry point's single read seam: everything the hook reads comes through
|
|
2
|
+
here, so per-format handling has one place to land without touching `on_file`.
|
|
3
|
+
|
|
4
|
+
Annotations are evaluated at runtime (no ``from __future__ import
|
|
5
|
+
annotations``) so a mutated ``X | None`` union in a signature fails at import
|
|
6
|
+
rather than surviving as an inert string.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from .read_text import read_text
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def read_content(path: str) -> str:
|
|
13
|
+
return read_text(path)
|
|
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
|
{dirsql_plugin_embeddings-0.1.2 → dirsql_plugin_embeddings-0.1.3}/tests/integration/__init__.py
RENAMED
|
File without changes
|