feat(db): add projects and project links tables #83
@@ -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
|
||||
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
):
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user