Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ This document provides foundational context, architectural principles, and opera
- When invoking external commands, background workers, or container runtimes via `subprocess.Popen`, never terminate processes using simple `proc.kill()`, which leaves spawned subshells or grandchild processes running as zombie leaks adopted by PID 1.
- Always isolate execution into a dedicated POSIX process group (`start_new_session=True` on `subprocess.Popen`) and terminate the entire process hierarchy (`os.killpg(os.getpgid(proc.pid), signal.SIGTERM/SIGKILL)`). Avoid `preexec_fn=os.setsid` in multithreaded runtimes to prevent fork-deadlocks.
- **Defensive Filesystem, Symlink & Resource Containment**:
- Always enforce pre-flight file size caps (e.g. `MAX_REPOMAP_FILE_SIZE_BYTES` $\le 5$MB) before ingesting, parsing, or packing files into memory (via Python AST, Tree-Sitter, or text loaders) to prevent out-of-memory crashes and denial-of-service from minified bundles, database dumps, or large binaries.
- Always enforce pre-flight file size caps (e.g. `MAX_REPOMAP_FILE_SIZE_BYTES` $\le 50$MB) before ingesting, parsing, or packing files into memory (via Python AST, Tree-Sitter, or text loaders) to prevent out-of-memory crashes and denial-of-service from minified bundles, database dumps, or large binaries.
- Always defensively resolve filesystem symlinks (`path.resolve()`) and verify that target paths remain strictly confined within the intended root workspace (`resolved_path.is_relative_to(base_root)`), catching `(OSError, RuntimeError)` to prevent circular symlink loops (`ELOOP`) and directory traversal escapes.
- **Never Lower Security Standards or Quality Thresholds**: Never lower, relax, disable, bypass, or weaken security standards, quality thresholds (such as minimum 90% code coverage, strict static type checks, or lint rules), or compliance validations unless explicitly instructed by the user.
- **Continuous Standards Compliance & Solution Refinement**: Ensure every proposed solution, design, code change, or architecture meets all project standards and conventions, iteratively refining until every standard is met or exceeded.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Task 344: Centralize AI Network Slot Leasing Defaults & Elevate File Size Limits to Minimum 50 MiB

**Issue**: [#344](https://github.com/dan-petty/devops-cli/issues/344)
**PR**: Tracking PR targeting `release/v0.2.22`
**Status**: Completed
**Milestone**: `v0.2.22`
**Priority**: `priority/p2-medium`
**Scope**: `type/bug`, `scope/ai`, `priority/p2-medium`

---

## 1. Description & Objectives

Arbitrary magic numbers and defaults were previously declared inline in `src/devops_cli/ai/client/network.py` and across parsing/scanner modules (e.g., `max_parallel=2`, timeout fallback `300.0s`, poll interval `0.5s`, and disparate file size limits ranging from 2 MiB to 20 MiB) rather than in centralized configuration submodules (`defaults.py`, `constants.py`).

This task centralizes all slot leasing defaults, establishes standardized constants, and increases all pre-flight and ingestion file size limits across the codebase to a minimum of 50 MiB (`50 * 1024 * 1024` = 52,428,800 bytes) to accommodate modern large-scale enterprise repositories, monorepos, and dense multi-language codebases.

#### Key Deliverables:
- [x] **Config Submodule Centralization**:
- Added `CONST_AI_ALLOW_PRIVATE_NETWORK_ENV` in `src/devops_cli/config/constants.py`.
- Added `DEFAULT_OLLAMA_SLOT_TIMEOUT_SECONDS = 900.0` and `DEFAULT_OLLAMA_SLOT_POLL_INTERVAL_SECONDS = 2.0` in `src/devops_cli/config/defaults.py`.
- Added `DEFAULT_AI_MAX_RESPONSE_BYTES = 50 * 1024 * 1024` (50 MiB) in `src/devops_cli/config/defaults.py`.
- [x] **Network & Ollama Slot Leasing Refactor**:
- Bound `acquire_ollama_slot`, `track_ollama_url`, and `_wait_for_slot` in `src/devops_cli/ai/client/network.py` to centralized defaults (`DEFAULT_OLLAMA_MAX_PARALLEL`, `DEFAULT_OLLAMA_SLOT_TIMEOUT_SECONDS`, `DEFAULT_OLLAMA_SLOT_POLL_INTERVAL_SECONDS`).
- Bound `read_limited_json` in `network.py` and `unified.py` to `DEFAULT_AI_MAX_RESPONSE_BYTES`.
- Updated `_preload_single_ollama_url` and `_ollama_stream` in `src/devops_cli/ai/client/ollama.py` to use `DEFAULT_AI_PREWARM_KEEP_ALIVE` and `DEFAULT_OLLAMA_MAX_PARALLEL`.
- Unified `_ALLOW_PRIVATE_NETWORK_ENV` across `validation.py` and `network.py` using `CONST_AI_ALLOW_PRIVATE_NETWORK_ENV`.
- [x] **File Size Limit Elevation (Minimum 50 MiB)**:
- Elevated `DEFAULT_MAX_AST_FILE_SIZE_BYTES` to 50 MiB (`50 * 1024 * 1024`).
- Elevated `DEFAULT_REPOMAP_MAX_FILE_SIZE_BYTES` to 50 MiB (`50 * 1024 * 1024`).
- Elevated `DEFAULT_JSON_REPAIR_MAX_LENGTH` to 50 MiB (`50 * 1024 * 1024`).
- Elevated `DEFAULT_TOOL_MAX_BYTES_LIMIT` to 50 MiB (`50 * 1024 * 1024`).
- Elevated `CONST_MAX_INSPECT_FILE_SIZE_BYTES` to 50 MiB (`50 * 1024 * 1024`).
- Elevated `MAX_CHUNK_FILE_SIZE_BYTES` in RAG chunker to 50 MiB (`50 * 1024 * 1024`).
- Updated AST parser engine, repository scanner, document chunker, drift detector, indexer, workspace loader, and milestones parser to adhere to the 50 MiB minimum.
- Updated `AGENTS.md` defensive containment guidelines to reflect the 50 MiB cap.
- [x] **Test Verification & Quality Gates**:
- Enhanced `tests/test_ollama_dynamic_leasing.py` to assert that slot leasing, URL tracking, and JSON reading helpers bind to centralized defaults.
- Verified 100% passing across unit test suites.
- Verified cyclomatic complexity $M \le 10$ and nesting depth $\le 5$.
- 100% compliance with Gated CI validation suite (`uv run devops ci`).

---

## 2. Verification Summary

- **Unit Tests**: 100% passed in `tests/test_ollama_dynamic_leasing.py`, `tests/test_ai_request_priority.py`, `tests/test_ai_inspection.py`, and `tests/test_consolidation_ast_cache.py`.
- **Architectural Invariants**: Complexity check passed ($M \le 10$, depth $\le 5$).
- **Gated CI Quality Gates**: All 10 gates passed locally via `uv run devops ci`.
7 changes: 5 additions & 2 deletions src/devops_cli/ai/analyze/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
from pathlib import Path
from typing import TYPE_CHECKING

from devops_cli.config.defaults import DEFAULT_CURRENT_PATH
from devops_cli.config.defaults import (
DEFAULT_CURRENT_PATH,
DEFAULT_MAX_AST_FILE_SIZE_BYTES,
)

if TYPE_CHECKING:
from devops_cli.models.ai import FileAnalysisMeta
Expand Down Expand Up @@ -378,7 +381,7 @@ def scan_directory(target_dir: Path = DEFAULT_CURRENT_PATH) -> list[FileAnalysis
if file_path.is_file():
try:
size_bytes = file_path.stat().st_size
if size_bytes <= 5 * 1024 * 1024:
if size_bytes <= DEFAULT_MAX_AST_FILE_SIZE_BYTES:
content = file_path.read_text(encoding="utf-8", errors="replace")
except OSError:
pass
Expand Down
3 changes: 2 additions & 1 deletion src/devops_cli/ai/ast/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

from devops_cli.ai.ast.fallback import FallbackASTParser
from devops_cli.ai.ast.models import CodeSpan, PolyglotFileMap, PolyglotSymbol, SymbolKind
from devops_cli.config.defaults import DEFAULT_MAX_AST_FILE_SIZE_BYTES

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -96,7 +97,7 @@ def _extract_node_name(node: Any) -> str:
class TreeSitterEngine:
"""Multilingual syntax tree parser supporting Tree-Sitter grammars and AST fallback."""

def __init__(self, max_file_size_bytes: int = 5 * 1024 * 1024) -> None:
def __init__(self, max_file_size_bytes: int = DEFAULT_MAX_AST_FILE_SIZE_BYTES) -> None:
self.max_file_size_bytes = max_file_size_bytes
self._fallback = FallbackASTParser()
self._parsers: dict[str, Any] = {}
Expand Down
5 changes: 3 additions & 2 deletions src/devops_cli/ai/benchmark/document_chunker.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

from devops_cli.ai.kb import get_knowledge_base_dir, list_knowledge_base_articles
from devops_cli.ai.task_loader import load_task_prompt
from devops_cli.config.defaults import DEFAULT_MAX_AST_FILE_SIZE_BYTES

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -176,7 +177,7 @@ def _read_architecture_extra_docs(repo_root: Path) -> list[str]:
resolved = p_extra.resolve()
if not resolved.is_relative_to(root_resolved) or p_extra.is_symlink():
continue
if resolved.is_file() and resolved.stat().st_size <= 5 * 1024 * 1024:
if resolved.is_file() and resolved.stat().st_size <= DEFAULT_MAX_AST_FILE_SIZE_BYTES:
extras.append(resolved.read_text(encoding="utf-8", errors="replace"))
except OSError, RuntimeError:
continue
Expand All @@ -193,7 +194,7 @@ def _read_kb_topic_docs(kb_dir: Path, rel_paths: Sequence[str]) -> list[str]:
resolved = path.resolve()
if not resolved.is_relative_to(kb_resolved) or path.is_symlink():
continue
if resolved.is_file() and resolved.stat().st_size <= 5 * 1024 * 1024:
if resolved.is_file() and resolved.stat().st_size <= DEFAULT_MAX_AST_FILE_SIZE_BYTES:
doc_texts.append(resolved.read_text(encoding="utf-8", errors="replace"))
except OSError, RuntimeError:
continue
Expand Down
21 changes: 15 additions & 6 deletions src/devops_cli/ai/client/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,17 @@
import httpx2

from devops_cli.ai.client.models import AIClientError, RequestPriority
from devops_cli.config.constants import CONST_AI_ALLOW_PRIVATE_NETWORK_ENV
from devops_cli.config.defaults import (
DEFAULT_AI_MAX_RESPONSE_BYTES,
DEFAULT_OLLAMA_MAX_PARALLEL,
DEFAULT_OLLAMA_SLOT_POLL_INTERVAL_SECONDS,
DEFAULT_OLLAMA_SLOT_TIMEOUT_SECONDS,
)

logger = logging.getLogger(__name__)

ALLOW_PRIVATE_NETWORK_ENV = "DEVOPS_CLI_AI_ALLOW_PRIVATE_NETWORK"
ALLOW_PRIVATE_NETWORK_ENV = CONST_AI_ALLOW_PRIVATE_NETWORK_ENV
active_ollama_requests: dict[str, int] = {}
ollama_active_lock = threading.Lock()
ollama_semaphores: dict[str, threading.Semaphore] = {}
Expand Down Expand Up @@ -143,7 +150,9 @@ def _wait_for_slot(
raise AIClientError(
f"Timed out after {eff_timeout}s waiting for available slot across Ollama nodes: {candidates}"
)
ollama_slot_condition.wait(timeout=min(remaining, 0.5))
ollama_slot_condition.wait(
timeout=min(remaining, DEFAULT_OLLAMA_SLOT_POLL_INTERVAL_SECONDS)
)


def _release_ollama_slot(leased_url: str | None) -> None:
Expand All @@ -159,7 +168,7 @@ def _release_ollama_slot(leased_url: str | None) -> None:
@contextmanager
def acquire_ollama_slot(
candidates: list[str],
max_parallel: int = 2,
max_parallel: int = DEFAULT_OLLAMA_MAX_PARALLEL,
timeout: float | None = None,
priority: RequestPriority | str | None = None,
) -> Generator[str]:
Expand All @@ -176,7 +185,7 @@ def acquire_ollama_slot(
eff_timeout = (
0.0
if (timeout is None and resolved_p == RequestPriority.AS_AVAILABLE)
else (timeout if timeout is not None else 300.0)
else (timeout if timeout is not None else DEFAULT_OLLAMA_SLOT_TIMEOUT_SECONDS)
)

deadline = time.monotonic() + eff_timeout
Expand All @@ -200,7 +209,7 @@ def acquire_ollama_slot(
@contextmanager
def track_ollama_url(
url: str,
max_parallel: int = 2,
max_parallel: int = DEFAULT_OLLAMA_MAX_PARALLEL,
priority: RequestPriority | str | None = None,
) -> Generator[None]:
"""Acquire concurrency slot and track active in-flight requests per Ollama server node."""
Expand Down Expand Up @@ -230,7 +239,7 @@ def reset_ollama_slots() -> None:


def read_limited_json(
response: httpx2.Response, limit_bytes: int = 20 * 1024 * 1024
response: httpx2.Response, limit_bytes: int = DEFAULT_AI_MAX_RESPONSE_BYTES
) -> dict[str, Any]:
"""Parse JSON response while enforcing a maximum response body size limit."""
headers = getattr(response, "headers", {})
Expand Down
12 changes: 8 additions & 4 deletions src/devops_cli/ai/client/ollama.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
_consume_streaming_lines,
_extract_ollama_stream_tuple,
)
from devops_cli.config.defaults import DEFAULT_AI_EVICT_KEEP_ALIVE
from devops_cli.config.defaults import (
DEFAULT_AI_EVICT_KEEP_ALIVE,
DEFAULT_AI_PREWARM_KEEP_ALIVE,
DEFAULT_OLLAMA_MAX_PARALLEL,
)
from devops_cli.models.ai import ChatMessage
from devops_cli.security.sanitizer import mask_secrets
from devops_cli.telemetry import ContextPropagatingThreadPoolExecutor as ThreadPoolExecutor
Expand All @@ -40,7 +44,7 @@ def _preload_single_ollama_url(
self,
url: str,
model: str | None = None,
keep_alive: str | int = "1h",
keep_alive: str | int = DEFAULT_AI_PREWARM_KEEP_ALIVE,
) -> tuple[str, bool]:
"""Prewarm or evict model on a single Ollama endpoint."""
target_model = model or self._config.model
Expand Down Expand Up @@ -233,7 +237,7 @@ def _ollama_messages(
priority: RequestPriority | str | None = None,
) -> LLMResponse:
candidates = [url for _idx, url in self._get_ollama_urls_loop()]
max_par = getattr(self._config, "ollama_max_parallel", 2)
max_par = getattr(self._config, "ollama_max_parallel", DEFAULT_OLLAMA_MAX_PARALLEL)
last_exc: Exception | None = None
remaining_candidates = list(candidates)

Expand Down Expand Up @@ -406,7 +410,7 @@ def _ollama_stream(
priority: RequestPriority | str | None = None,
) -> Generator[str]:
candidates = [url for _idx, url in self._get_ollama_urls_loop()]
max_par = getattr(self._config, "ollama_max_parallel", 2)
max_par = getattr(self._config, "ollama_max_parallel", DEFAULT_OLLAMA_MAX_PARALLEL)
last_exc: Exception | None = None
remaining_candidates = list(candidates)

Expand Down
3 changes: 2 additions & 1 deletion src/devops_cli/ai/client/unified.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
from devops_cli.config.defaults import (
DEFAULT_AI_CONTEXT_WINDOW,
DEFAULT_AI_GATEWAY_URL,
DEFAULT_AI_MAX_RESPONSE_BYTES,
DEFAULT_HTTP_TIMEOUT_SECONDS,
)
from devops_cli.config.settings import AIConfig
Expand Down Expand Up @@ -331,7 +332,7 @@ def _validate_base_url(

@staticmethod
def _read_limited_json(
response: httpx2.Response, limit_bytes: int = 20 * 1024 * 1024
response: httpx2.Response, limit_bytes: int = DEFAULT_AI_MAX_RESPONSE_BYTES
) -> dict[str, Any]:
return read_limited_json(response, limit_bytes=limit_bytes)

Expand Down
3 changes: 2 additions & 1 deletion src/devops_cli/ai/harness/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from pydantic import Field

from devops_cli.ai.agents.pydantic_agent import AgentTool, BaseCapability, RunContext, Tool
from devops_cli.config.defaults import DEFAULT_MAX_AST_FILE_SIZE_BYTES

DEFAULT_PYAI_DOCS_TOPICS: tuple[str, ...] = (
"agent",
Expand Down Expand Up @@ -97,7 +98,7 @@ def _read_local_doc(self, local_file: Path) -> str | None:
try:
if local_file.is_symlink():
return None
if local_file.stat().st_size > 5 * 1024 * 1024:
if local_file.stat().st_size > DEFAULT_MAX_AST_FILE_SIZE_BYTES:
return None
return local_file.read_text(encoding="utf-8", errors="replace")
except Exception as e:
Expand Down
4 changes: 2 additions & 2 deletions src/devops_cli/ai/rag/chunker.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

logger = logging.getLogger(__name__)

MAX_CHUNK_FILE_SIZE_BYTES = 20 * 1024 * 1024 # 20 MiB safety cap
MAX_CHUNK_FILE_SIZE_BYTES = 50 * 1024 * 1024 # 50 MiB safety cap

_LANGUAGE_PATTERNS: dict[str, tuple[re.Pattern[str], str]] = {
"go": (
Expand Down Expand Up @@ -196,7 +196,7 @@ def chunk_file(
if (
file_path.is_symlink()
or not file_path.is_file()
or file_path.stat().st_size > 5 * 1024 * 1024
or file_path.stat().st_size > MAX_CHUNK_FILE_SIZE_BYTES
):
return []
content = file_path.read_text(encoding="utf-8", errors="replace")
Expand Down
10 changes: 8 additions & 2 deletions src/devops_cli/ai/rag/drift.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@

from devops_cli.ai.rag.chunker import SemanticChunker
from devops_cli.ai.rag.indexer import WorkspaceIndexer, detect_project_name
from devops_cli.config.defaults import DEFAULT_RAG_CACHE_DIR
from devops_cli.config.defaults import (
DEFAULT_MAX_AST_FILE_SIZE_BYTES,
DEFAULT_RAG_CACHE_DIR,
)
from devops_cli.telemetry import record_metric, trace_span

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -99,7 +102,10 @@ def _scan_file_drift(
resolved_fpath = fpath.resolve()
if fpath.is_symlink() or not resolved_fpath.is_relative_to(resolved_root):
return
if not resolved_fpath.is_file() or resolved_fpath.stat().st_size > 5 * 1024 * 1024:
if (
not resolved_fpath.is_file()
or resolved_fpath.stat().st_size > DEFAULT_MAX_AST_FILE_SIZE_BYTES
):
return
rel_str = str(fpath.relative_to(root_dir))
except ValueError, OSError, RuntimeError:
Expand Down
3 changes: 2 additions & 1 deletion src/devops_cli/ai/rag/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from devops_cli.ai.rag.qdrant import QdrantClient
from devops_cli.config.constants import CONST_INDEX_CACHE_FILENAME
from devops_cli.config.defaults import (
DEFAULT_MAX_AST_FILE_SIZE_BYTES,
DEFAULT_RAG_CACHE_DIR,
DEFAULT_RAG_CHUNK_OVERLAP,
DEFAULT_RAG_CHUNK_SIZE,
Expand Down Expand Up @@ -101,7 +102,7 @@ def _is_indexable_file(p: Path, root: Path, *, gitignore_spec: Any = None) -> bo
if is_ignored_by_git(root, p):
return False
try:
if p.stat().st_size > 2 * 1024 * 1024:
if p.stat().st_size > DEFAULT_MAX_AST_FILE_SIZE_BYTES:
return False
except OSError:
return False
Expand Down
5 changes: 3 additions & 2 deletions src/devops_cli/ai/response_repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@
_TOOL_EXTRACT_OVERLAP = DEFAULT_TOOL_EXTRACT_OVERLAP


def repair_json_string(text: str, *, max_length: int = DEFAULT_JSON_REPAIR_MAX_LENGTH) -> Any:
def repair_json_string(text: str, *, max_length: int | None = None) -> Any:
"""Extract and repair valid or partially-malformed JSON from text using json-repair."""
if not text or not text.strip() or len(text) > max_length:
effective_max = DEFAULT_JSON_REPAIR_MAX_LENGTH if max_length is None else max_length
if not text or not text.strip() or len(text) > effective_max:
return None

from devops_cli.ai.thinking_stream import strip_think_blocks
Expand Down
3 changes: 2 additions & 1 deletion src/devops_cli/commands/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from devops_cli.config.constants import CONST_VSCODE_CLI
from devops_cli.config.defaults import (
DEFAULT_CLEAN_WORKSPACE_DAYS,
DEFAULT_MAX_AST_FILE_SIZE_BYTES,
DEFAULT_SUBPROCESS_TIMEOUT_SECONDS,
)
from devops_cli.core.cli import new_typer
Expand Down Expand Up @@ -104,7 +105,7 @@ def _workspace_data_from_repos(root: Path) -> dict[str, Any]:
def _load(ws_file: Path) -> dict[str, Any]:
if ws_file.exists():
try:
if ws_file.stat().st_size > 10 * 1024 * 1024: # 10 MiB guard
if ws_file.stat().st_size > DEFAULT_MAX_AST_FILE_SIZE_BYTES: # 50 MiB guard
_get("print_warning")(ERRORS.workspace.file_too_large.format(ws_file=str(ws_file)))
return {"folders": [], "settings": {}}
data = json.loads(ws_file.read_text(encoding="utf-8"))
Expand Down
3 changes: 2 additions & 1 deletion src/devops_cli/config/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,7 @@
CONST_AI_PROMPT_CACHE_TTLS: Final[tuple[str, ...]] = ("5m", "1h")
CONST_AI_CASCADE_PROVIDERS: Final[tuple[str, ...]] = ("litellm", "portkey", "lightllm", "ollama")
CONST_AI_DEFAULT_CACHE_MARKER_KIND: Final[str] = "cache-point"
CONST_AI_ALLOW_PRIVATE_NETWORK_ENV: Final[str] = "DEVOPS_CLI_AI_ALLOW_PRIVATE_NETWORK"
CONST_TASK_TAXONOMY_EMBEDDING: Final[frozenset[str]] = frozenset(
{"embedding", "embed_documents", "vector_index", "rag_index", "semantic_search"}
)
Expand Down Expand Up @@ -800,7 +801,7 @@
}

# ── Multi-Scale Semantic Outline & Inspection Scanner ────────────────────────
CONST_MAX_INSPECT_FILE_SIZE_BYTES: Final[int] = 5 * 1024 * 1024
CONST_MAX_INSPECT_FILE_SIZE_BYTES: Final[int] = 50 * 1024 * 1024 # 50 MiB limit
CONST_DEFAULT_FOCAL_WINDOW_SIZE: Final[int] = 30
CONST_HOTSPOT_COMPLEXITY_THRESHOLD: Final[int] = 5

Expand Down
Loading
Loading