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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ Supported formatting profile values:
Current profile application scope:

- Historical workbook append rows written by the pipeline.
- CPRS-CH/CPRS-FCM static table PNG renderers when invoked with `formatting_profile`.

Legacy packaging path is still available for release validation only:

Expand Down
4 changes: 4 additions & 0 deletions docs/operator_ux_decision.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ This document defines the operator experience for running the monthly counterpar
7. Click `Open Output Folder` to access produced artifacts.
8. Use `Open Manifest`, `Open Summary`, and `Open PPT Folder` for post-run review.

Formatting profile support currently applies to:
- Historical workbook append rows.
- CPRS table PNG rendering helpers (when that renderer path is used).

### Runner Backend Command Contract

The Excel runner should execute workflow mode, not fixture replay:
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ disable_error_code = ["import-untyped"]
module = "counter_risk.pipeline.run"
disable_error_code = ["import-untyped"]

[[tool.mypy.overrides]]
module = "counter_risk.chat.context"
disable_error_code = ["import-untyped", "import-not-found"]

[[tool.mypy.overrides]]
module = "counter_risk.mosers.workbook_generation"
disable_error_code = ["import-untyped"]
Expand Down
4 changes: 2 additions & 2 deletions src/counter_risk/chat/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from typing import Any, cast

try:
import pyarrow.lib as _pyarrow_lib # type: ignore[import-not-found]
import pyarrow.lib as _pyarrow_lib
except (ImportError, ModuleNotFoundError):
_PYARROW_IO_ERROR_TYPES: tuple[type[BaseException], ...] = (OSError,)
else:
Expand Down Expand Up @@ -192,7 +192,7 @@ def _load_csv_table(path: Path) -> list[dict[str, Any]]:

def _load_parquet_table(path: Path) -> list[dict[str, Any]]:
try:
import pandas as pd # type: ignore[import-untyped]
import pandas as pd
except (ImportError, ModuleNotFoundError) as exc:
raise RunContextError(
f"Parquet table found but pandas is unavailable: {path}. "
Expand Down
4 changes: 2 additions & 2 deletions src/counter_risk/chat/providers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
from dataclasses import dataclass
from typing import Final, Protocol, cast

from tools.langchain_client import (
from counter_risk.chat.providers.langchain_runtime import (
PROVIDER_ANTHROPIC,
PROVIDER_GITHUB,
PROVIDER_OPENAI,
build_chat_client,
build_langsmith_metadata,
get_provider_model_catalog,
missing_provider_dependencies,
)
from tools.llm_provider import build_langsmith_metadata

_GITHUB_ENV_KEYS: Final[tuple[str, ...]] = ("GITHUB_TOKEN",)
_OPENAI_API_ENV_KEYS: Final[tuple[str, ...]] = ("OPENAI_API_KEY",)
Expand Down
Loading
Loading