From e273b527696e8824ccb84944a06b0de58b6e784d Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman Date: Sun, 15 Feb 2026 06:28:45 +0000 Subject: [PATCH] feat(db): add projects and project links tables --- alembic/versions/b0_001_projects.py | 4 ++-- features/steps/auto_debug_integration_steps.py | 2 +- noxfile.py | 2 -- src/cleveragents/agents/graphs/auto_debug.py | 5 ++++- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/alembic/versions/b0_001_projects.py b/alembic/versions/b0_001_projects.py index 2b05e0a43..fccae1ed4 100644 --- a/alembic/versions/b0_001_projects.py +++ b/alembic/versions/b0_001_projects.py @@ -10,7 +10,7 @@ This migration creates the two project-related tables: resources with optional alias and read-only override. Revision ID: b0_001_projects -Revises: b1_001_resource_registry +Revises: a5_005_rebaseline_plan_phases Create Date: 2026-02-15 12:00:00 """ @@ -22,7 +22,7 @@ from alembic import op # revision identifiers, used by Alembic. revision: str = "b0_001_projects" -down_revision: str | Sequence[str] | None = "b1_001_resource_registry" +down_revision: str | Sequence[str] | None = "a5_005_rebaseline_plan_phases" branch_labels: str | Sequence[str] | None = None depends_on: str | Sequence[str] | None = None diff --git a/features/steps/auto_debug_integration_steps.py b/features/steps/auto_debug_integration_steps.py index 94ac6ca49..ed9f4d308 100644 --- a/features/steps/auto_debug_integration_steps.py +++ b/features/steps/auto_debug_integration_steps.py @@ -115,7 +115,7 @@ def step_run_auto_debug_build(context: Context, max_attempts: int) -> None: with ( patch.object(plan_service, "build_plan", side_effect=mock_build), patch( - "cleveragents.agents.graphs.auto_debug.FakeListLLM", + "langchain_community.llms.FakeListLLM", return_value=mock_llm, ), ): diff --git a/noxfile.py b/noxfile.py index 59cb30615..6ade00d46 100644 --- a/noxfile.py +++ b/noxfile.py @@ -391,8 +391,6 @@ def integration_tests(session: nox.Session): """ session.install("-e", ".[tests]") session.env["CLEVERAGENTS_AUTO_APPLY_MIGRATIONS"] = "true" - session.env["PYTHONPATH"] = "src:." - # Override PYTHONPATH so the editable install (src/) for this project # is used instead of any inherited PYTHONPATH from the outer environment. session.env["PYTHONPATH"] = "src" diff --git a/src/cleveragents/agents/graphs/auto_debug.py b/src/cleveragents/agents/graphs/auto_debug.py index 3986e453b..c9a1383b1 100644 --- a/src/cleveragents/agents/graphs/auto_debug.py +++ b/src/cleveragents/agents/graphs/auto_debug.py @@ -11,7 +11,6 @@ import logging from collections.abc import AsyncIterator, Iterator from typing import Any, TypedDict, cast -from langchain_community.llms import FakeListLLM # type: ignore[import-unresolved] from langchain_core.language_models import BaseLanguageModel from langchain_core.messages import HumanMessage, SystemMessage from langgraph.checkpoint.memory import MemorySaver @@ -58,6 +57,10 @@ class AutoDebugAgent: self.temperature = temperature if llm is None: + from langchain_community.llms import ( + FakeListLLM, # type: ignore[import-unresolved] + ) + self.llm: BaseLanguageModel = FakeListLLM( responses=[ "Mock LLM response", -- 2.52.0