coderay 1.2.1__tar.gz → 1.2.2__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.
- {coderay-1.2.1/src/coderay.egg-info → coderay-1.2.2}/PKG-INFO +1 -1
- {coderay-1.2.1 → coderay-1.2.2}/pyproject.toml +1 -1
- coderay-1.2.2/src/coderay/__init__.py +1 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/cli/search_input.py +7 -10
- {coderay-1.2.1 → coderay-1.2.2/src/coderay.egg-info}/PKG-INFO +1 -1
- coderay-1.2.1/src/coderay/__init__.py +0 -1
- {coderay-1.2.1 → coderay-1.2.2}/LICENSE +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/MANIFEST.in +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/NOTICE +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/README.md +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/setup.cfg +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/README.md +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/chunking/README.md +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/chunking/__init__.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/chunking/chunker.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/cli/README.md +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/cli/__init__.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/cli/commands.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/core/README.md +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/core/__init__.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/core/config.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/core/defaults/__init__.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/core/defaults/default.coderay.toml +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/core/errors.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/core/index_workspace.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/core/lock.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/core/models.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/core/timing.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/core/utils.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/embedding/README.md +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/embedding/__init__.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/embedding/backend_resolve.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/embedding/base.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/embedding/format.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/embedding/local.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/embedding/mlx_backend.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/embedding/prefixes.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/README.md +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/__init__.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/builder.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/code_graph.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/extractors/__init__.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/extractors/base.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/extractors/js_ts/__init__.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/extractors/js_ts/extractor.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/extractors/python/__init__.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/extractors/python/extractor.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/facts.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/graph_builder.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/handlers/__init__.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/handlers/assignment_binder.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/handlers/call_emitter.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/handlers/decorator_emitter.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/handlers/definition_binder.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/handlers/definition_emitter.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/handlers/helpers.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/handlers/js_ts/__init__.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/handlers/js_ts/import_binder.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/handlers/js_ts/import_emitter.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/handlers/python/__init__.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/handlers/python/assignment_binder.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/handlers/python/function_binder.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/handlers/python/import_binder.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/handlers/python/import_emitter.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/handlers/python/with_binder.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/handlers/typed_annotations.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/handlers/typed_params.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/impact.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/language_plugin.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/lowering/__init__.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/lowering/callee_resolver.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/lowering/callee_strategy.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/lowering/cst_helpers.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/lowering/name_bindings.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/materialise.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/passes/__init__.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/passes/python.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/passes/resolve_bare_phantoms.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/pipeline.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/project_index.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/refs.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/graph/utils.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/mcp_server/README.md +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/mcp_server/__init__.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/mcp_server/errors.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/mcp_server/server.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/parsing/README.md +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/parsing/base.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/parsing/conventions.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/parsing/cst_kind.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/parsing/cst_traversal.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/parsing/languages.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/pipeline/README.md +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/pipeline/__init__.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/pipeline/indexer.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/pipeline/watcher.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/retrieval/README.md +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/retrieval/__init__.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/retrieval/boosting.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/retrieval/models.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/retrieval/search.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/skeleton/README.md +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/skeleton/__init__.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/skeleton/extractor.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/skeleton/path_range.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/state/README.md +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/state/__init__.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/state/machine.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/state/version.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/storage/README.md +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/storage/__init__.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/storage/lancedb.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/vcs/README.md +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/vcs/__init__.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay/vcs/git.py +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay.egg-info/SOURCES.txt +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay.egg-info/dependency_links.txt +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay.egg-info/entry_points.txt +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay.egg-info/requires.txt +0 -0
- {coderay-1.2.1 → coderay-1.2.2}/src/coderay.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.2.2"
|
|
@@ -3,7 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
from dataclasses import replace
|
|
4
4
|
from typing import Annotated
|
|
5
5
|
|
|
6
|
-
from pydantic import BaseModel, Field,
|
|
6
|
+
from pydantic import BaseModel, Field, PrivateAttr
|
|
7
7
|
|
|
8
8
|
from coderay.core.config import Config
|
|
9
9
|
from coderay.core.index_workspace import IndexWorkspace
|
|
@@ -32,18 +32,16 @@ class SearchInput(BaseModel):
|
|
|
32
32
|
include_tests: bool = True
|
|
33
33
|
|
|
34
34
|
# Injected at construction time; excluded from serialisation.
|
|
35
|
-
_config: Config
|
|
35
|
+
_config: Config = PrivateAttr()
|
|
36
36
|
|
|
37
37
|
def __init__(self, *, config: Config, **data):
|
|
38
38
|
super().__init__(**data)
|
|
39
|
-
|
|
39
|
+
self._config = config
|
|
40
|
+
self._validate_repos()
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return self
|
|
45
|
-
if self.repos == ["*"]:
|
|
46
|
-
return self
|
|
42
|
+
def _validate_repos(self) -> None:
|
|
43
|
+
if not self.repos or self.repos == ["*"]:
|
|
44
|
+
return
|
|
47
45
|
known = {e.alias for e in self._config.index.roots if e.alias}
|
|
48
46
|
unknown = [r for r in self.repos if r not in known]
|
|
49
47
|
if unknown:
|
|
@@ -51,7 +49,6 @@ class SearchInput(BaseModel):
|
|
|
51
49
|
f"Unknown repo alias(es): {unknown}. "
|
|
52
50
|
f"Configured aliases: {sorted(known)}"
|
|
53
51
|
)
|
|
54
|
-
return self
|
|
55
52
|
|
|
56
53
|
def to_dto(self) -> SearchRequestDTO:
|
|
57
54
|
"""Resolve scope and return an internal SearchRequestDTO."""
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.2.1"
|
|
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
|
|
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
|
|
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
|