codenib.integrations.orcaloca
¶
OrcaLoca search-manager compatibility over CodeNib repository views.
The upstream search policy is coupled to several private SearchManager
helpers in addition to its six tools. This provider implements that pinned
duck-typed surface while keeping OrcaLoca's policy, LlamaIndex wrappers, and
queue/scoring types outside CodeNib.
Classes:
| Name | Description |
|---|---|
OrcaLocation |
Dependency-free equivalent of OrcaLoca's |
OrcaLocationInfo |
Dependency-free equivalent of OrcaLoca's |
OrcaLocaSearchProvider |
Duck-typed replacement for OrcaLoca's pinned |
Functions:
| Name | Description |
|---|---|
make_orcaloca_search_manager_factory |
Build the factory accepted by the proposed upstream injection seam. |
orcaloca_bug_location |
Translate one CodeNib entity to OrcaLoca's final location schema. |
OrcaLocation
¶
Bases: NamedTuple
Dependency-free equivalent of OrcaLoca's Loc named tuple.
OrcaLocationInfo
dataclass
¶
OrcaLocationInfo(loc: OrcaLocation, type: str)
Dependency-free equivalent of OrcaLoca's LocInfo wrapper.
OrcaLocaSearchProvider
¶
OrcaLocaSearchProvider(
context: Any,
*,
file_skeleton_threshold: int = 200,
class_skeleton_threshold: int = 100,
max_output_chars: int = 48000
)
Duck-typed replacement for OrcaLoca's pinned SearchManager.
Methods:
| Name | Description |
|---|---|
search_file_tree |
Return the repository file tree, optionally rooted at a directory. |
search_file_contents |
Return one file's content or a graph-derived large-file skeleton. |
search_source_code |
Find the narrowest graph symbol containing a source fragment. |
search_class |
Return one class or ask the agent to disambiguate its file. |
search_method_in_class |
Return a method constrained by class and optional file. |
search_callable |
Return a class, function, method, or symbol definition. |
Source code in codenib/integrations/orcaloca.py
search_file_tree
¶
Return the repository file tree, optionally rooted at a directory.
Source code in codenib/integrations/orcaloca.py
search_file_contents
¶
Return one file's content or a graph-derived large-file skeleton.
Source code in codenib/integrations/orcaloca.py
search_source_code
¶
Find the narrowest graph symbol containing a source fragment.
Source code in codenib/integrations/orcaloca.py
search_class
¶
Return one class or ask the agent to disambiguate its file.
Source code in codenib/integrations/orcaloca.py
search_method_in_class
¶
Return a method constrained by class and optional file.
Source code in codenib/integrations/orcaloca.py
search_callable
¶
Return a class, function, method, or symbol definition.
Source code in codenib/integrations/orcaloca.py
make_orcaloca_search_manager_factory
¶
make_orcaloca_search_manager_factory(
manifest_path: str | Path, **provider_options: Any
) -> Callable[[str], OrcaLocaSearchProvider]
Build the factory accepted by the proposed upstream injection seam.
Source code in codenib/integrations/orcaloca.py
orcaloca_bug_location
¶
orcaloca_bug_location(entity: RepositoryEntity) -> dict[str, str]
Translate one CodeNib entity to OrcaLoca's final location schema.