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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

import hashlib
from coding_agent.context_pack import (
from coding_agent.topics.context_pack import (
ContextPack,
ContextPackItem,
ContextPackRenderer,
Expand Down
6 changes: 0 additions & 6 deletions coding-agent/src/coding_agent/adapter_types.py

This file was deleted.

6 changes: 0 additions & 6 deletions coding-agent/src/coding_agent/agent_identity.py

This file was deleted.

6 changes: 0 additions & 6 deletions coding-agent/src/coding_agent/agent_observability.py

This file was deleted.

6 changes: 0 additions & 6 deletions coding-agent/src/coding_agent/app.py

This file was deleted.

2 changes: 1 addition & 1 deletion coding-agent/src/coding_agent/approval/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from math import isfinite
from typing import Protocol, cast

from coding_agent.runtime_store import (
from coding_agent.stores.runtime_store import (
AgentInteractionRecord,
JSONObject,
JSONValue,
Expand Down
6 changes: 3 additions & 3 deletions coding-agent/src/coding_agent/bee/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
write_bee_workspace_run_artifacts,
)
from coding_agent.observability import record_bee_launch_metric
from coding_agent.scheduled_runs import ScheduledLaunchIntent, ScheduleTriggerRecord
from coding_agent.topic_lifecycle import TopicLifecycle
from coding_agent.topic_store import JSONObject, JSONValue, TopicRecord
from coding_agent.runs.scheduled import ScheduledLaunchIntent, ScheduleTriggerRecord
from coding_agent.topics.lifecycle import TopicLifecycle
from coding_agent.topics.store import JSONObject, JSONValue, TopicRecord

BeeLaunchSource = str
BeeLaunchStatus = str
Expand Down
2 changes: 1 addition & 1 deletion coding-agent/src/coding_agent/bee/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from agentkit.storage.pg import AsyncPGPool, PGPool
from agentkit.tape.anchor import Anchor
from agentkit.tape.tape import Tape
from coding_agent.topic_store import (
from coding_agent.topics.store import (
JSONObject,
JSONValue,
TopicAnchorRecord,
Expand Down
2 changes: 1 addition & 1 deletion coding-agent/src/coding_agent/bee/template_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
load_bee_workspace_command_intents,
load_bee_workspace_template,
)
from coding_agent.topic_store import JSONObject
from coding_agent.topics.store import JSONObject

_MANIFEST_CANDIDATES: Final[tuple[tuple[str, str], ...]] = (
("bee-pack.yaml", "yaml"),
Expand Down
2 changes: 1 addition & 1 deletion coding-agent/src/coding_agent/bee/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import yaml

from coding_agent.bee.runtime import BeeTaskManifest, parse_bee_task_manifest
from coding_agent.topic_store import JSONObject
from coding_agent.topics.store import JSONObject

_BEE_DIR: Final[str] = ".bee"
_TEMPLATES_DIR: Final[str] = "templates"
Expand Down
6 changes: 0 additions & 6 deletions coding-agent/src/coding_agent/bee_command_bridge.py

This file was deleted.

6 changes: 0 additions & 6 deletions coding-agent/src/coding_agent/bee_launch.py

This file was deleted.

6 changes: 0 additions & 6 deletions coding-agent/src/coding_agent/bee_runtime.py

This file was deleted.

6 changes: 0 additions & 6 deletions coding-agent/src/coding_agent/bee_template_pack.py

This file was deleted.

6 changes: 0 additions & 6 deletions coding-agent/src/coding_agent/bee_workspace.py

This file was deleted.

2 changes: 1 addition & 1 deletion coding-agent/src/coding_agent/cli/acp_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from coding_agent.acp import AcpServer, AcpMode, run_stdio
from coding_agent.approval import ApprovalPolicy
from coding_agent.cli.local_runtime import create_local_cli_session_manager
from coding_agent.local_storage import (
from coding_agent.stores.local import (
local_data_dir,
local_sqlite_path,
local_sqlite_storage_config,
Expand Down
6 changes: 3 additions & 3 deletions coding-agent/src/coding_agent/cli/local_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
from coding_agent.adapter import PipelineAdapter
from coding_agent.core.config import Config
from coding_agent.runs import UNSET, UnsetType
from coding_agent.local_storage import local_sqlite_storage_config
from coding_agent.local_storage import local_sqlite_path_from_storage_config
from coding_agent.stores.local import local_sqlite_storage_config
from coding_agent.stores.local import local_sqlite_path_from_storage_config
from coding_agent.server.session_manager import SessionManager
from coding_agent.server.stores.session_owner_store import SQLiteSessionOwnerStore

Expand Down Expand Up @@ -360,7 +360,7 @@ def create_local_cli_session_manager(


def create_agent(*args: Any, **kwargs: Any) -> tuple[Any, Any]:
return importlib.import_module("coding_agent.app").create_agent(*args, **kwargs)
return importlib.import_module("coding_agent.core.app").create_agent(*args, **kwargs)


def create_local_cli_runtime(config: Config, consumer: Any) -> LocalCliRuntime:
Expand Down
6 changes: 3 additions & 3 deletions coding-agent/src/coding_agent/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import click

from coding_agent.app import create_agent, create_child_pipeline # noqa: F401
from coding_agent.core.app import create_agent, create_child_pipeline # noqa: F401
from coding_agent.cli.acp_command import acp
from coding_agent.cli.kb_commands import kb
from coding_agent.cli.oauth_commands import oauth_cli
Expand All @@ -30,8 +30,8 @@
create_local_cli_session_manager,
local_cli_session_origin,
)
from coding_agent.storage_migration import migrate_legacy_storage_to_sqlite
from coding_agent.local_storage import local_sqlite_storage_config
from coding_agent.stores.migration import migrate_legacy_storage_to_sqlite
from coding_agent.stores.local import local_sqlite_storage_config
from coding_agent.ui.headless import HeadlessConsumer
from coding_agent.ui.rich_tui import CodingAgentTUI
from coding_agent.wire.protocol import TurnEnd, WireMessage
Expand Down
4 changes: 2 additions & 2 deletions coding-agent/src/coding_agent/cli/remote_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def _remote_run_once(
get_remote,
stream_prompt,
)
from coding_agent.workspace_archive import (
from coding_agent.environment.archive import (
create_workspace_archive_base64,
)

Expand Down Expand Up @@ -1528,7 +1528,7 @@ def _download_and_restore_workspace(
download_workspace_archive,
download_workspace_manifest,
)
from coding_agent.workspace_archive import extract_workspace_archive_base64
from coding_agent.environment.archive import extract_workspace_archive_base64

manifest = download_workspace_manifest(
base_url=base_url,
Expand Down
2 changes: 1 addition & 1 deletion coding-agent/src/coding_agent/cli/stats_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@click.option("--session", "-s", help="Session ID (default: last)")
def stats(session: str | None):
"""Show session statistics."""
from coding_agent.metrics import collector
from coding_agent.observability.metrics import collector

if not session:
# Use last session
Expand Down
6 changes: 0 additions & 6 deletions coding-agent/src/coding_agent/context_pack.py

This file was deleted.

2 changes: 1 addition & 1 deletion coding-agent/src/coding_agent/core/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from coding_agent.plugins.storage import StoragePlugin
from coding_agent.plugins.summarizer import SummarizerPlugin
from coding_agent.subagents.coordinator import ChildWorkerCoordinator
from coding_agent.topic_memory import MemoryReviewStore
from coding_agent.topics.memory import MemoryReviewStore
from coding_agent.tools.web_search import create_web_search_backend

ToolFilter = Any
Expand Down
2 changes: 1 addition & 1 deletion coding-agent/src/coding_agent/events/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import uuid
from typing import Literal, cast

from coding_agent.runtime_store import JSONObject, JSONValue, RuntimeEventRecord
from coding_agent.stores.runtime_store import JSONObject, JSONValue, RuntimeEventRecord

DisplayEventKind = Literal[
"assistant_text_delta",
Expand Down
2 changes: 1 addition & 1 deletion coding-agent/src/coding_agent/events/replay.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from dataclasses import dataclass

from coding_agent.runtime_store import RuntimeEventRecord
from coding_agent.stores.runtime_store import RuntimeEventRecord
from coding_agent.stores import RuntimeEventStore

from .display import DisplayEvent, project_runtime_events_to_display
Expand Down
4 changes: 2 additions & 2 deletions coding-agent/src/coding_agent/executors/external.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
from agentkit.storage.pg import AsyncPGPool, PGPool
from coding_agent.action_safety.approval_routing import ActionApprovalRoute
from coding_agent.action_safety.command_policy import CommandPolicyDecision
from coding_agent.bee_command_bridge import (
from coding_agent.bee.command_bridge import (
BeeCommandIntentPlan,
BeeNodeCompletionEvidence,
is_authorized_bee_command_plan,
)
from coding_agent.topic_store import JSONObject, JSONValue
from coding_agent.topics.store import JSONObject, JSONValue

ExecutorKind = str
ExecutorRunStatus = str
Expand Down
4 changes: 0 additions & 4 deletions coding-agent/src/coding_agent/external_executor.py

This file was deleted.

4 changes: 0 additions & 4 deletions coding-agent/src/coding_agent/local_durable_store.py

This file was deleted.

6 changes: 0 additions & 6 deletions coding-agent/src/coding_agent/local_storage.py

This file was deleted.

6 changes: 0 additions & 6 deletions coding-agent/src/coding_agent/metrics.py

This file was deleted.

4 changes: 0 additions & 4 deletions coding-agent/src/coding_agent/pg_durable_store.py

This file was deleted.

2 changes: 1 addition & 1 deletion coding-agent/src/coding_agent/plugins/kb.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from agentkit.observability import ObservationSink, record_span
from agentkit.tape.tape import Tape

from coding_agent.context_pack import (
from coding_agent.topics.context_pack import (
ContextPack,
ContextPackItem,
ContextPackRenderer,
Expand Down
2 changes: 1 addition & 1 deletion coding-agent/src/coding_agent/plugins/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from agentkit.directive.types import MemoryRecord
from agentkit.tape.models import Entry
from agentkit.tape.tape import Tape
from coding_agent.context_pack import (
from coding_agent.topics.context_pack import (
ContextPack,
ContextPackItem,
ContextPackRenderer,
Expand Down
2 changes: 1 addition & 1 deletion coding-agent/src/coding_agent/plugins/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from collections import defaultdict
from typing import Any, Callable

from coding_agent.agent_identity import effective_agent_id, legacy_agent_id_str
from coding_agent.core.agent_identity import effective_agent_id, legacy_agent_id_str


class SessionMetricsPlugin:
Expand Down
2 changes: 1 addition & 1 deletion coding-agent/src/coding_agent/plugins/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from agentkit.storage.session import FileSessionStore
from agentkit.storage.sqlite import SQLiteTapeStore
from agentkit.tape.store import ForkTapeStore
from coding_agent.local_storage import local_sqlite_path_from_storage_config
from coding_agent.stores.local import local_sqlite_path_from_storage_config


def _load_pg_types() -> tuple[Any, Any, Any, Any]:
Expand Down
6 changes: 0 additions & 6 deletions coding-agent/src/coding_agent/recall_context.py

This file was deleted.

6 changes: 0 additions & 6 deletions coding-agent/src/coding_agent/recall_evaluation.py

This file was deleted.

4 changes: 2 additions & 2 deletions coding-agent/src/coding_agent/remote/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

from agentkit.observability import ObservationSink, record_span
from coding_agent.adapter import PipelineAdapter
from coding_agent.app import create_agent
from coding_agent.adapter_types import TurnOutcome
from coding_agent.core.app import create_agent
from coding_agent.adapter.types import TurnOutcome
from coding_agent.ui.headless import HeadlessConsumer
from coding_agent.wire.protocol import (
ApprovalRequest,
Expand Down
2 changes: 1 addition & 1 deletion coding-agent/src/coding_agent/runs/attached_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from datetime import UTC, datetime, timedelta
from typing import Any, AsyncContextManager, Protocol, cast

from coding_agent.runtime_store import AgentRunRecord, JSONObject, RuntimeEventRecord
from coding_agent.stores.runtime_store import AgentRunRecord, JSONObject, RuntimeEventRecord
from coding_agent.stores import RuntimeRunStore

from .lifecycle import RuntimeRunResumeContext
Expand Down
2 changes: 1 addition & 1 deletion coding-agent/src/coding_agent/runs/cancel.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from datetime import UTC, datetime
from typing import Any, Literal, Protocol, cast

from coding_agent.runtime_store import AgentRunRecord, JSONObject
from coding_agent.stores.runtime_store import AgentRunRecord, JSONObject
from coding_agent.stores import RuntimeRunLifecycleStore


Expand Down
4 changes: 2 additions & 2 deletions coding-agent/src/coding_agent/runs/lifecycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from types import TracebackType
from typing import Any, Protocol, cast

from coding_agent.adapter_types import StopReason, TurnOutcome
from coding_agent.runtime_store import AgentRunRecord, JSONObject
from coding_agent.adapter.types import StopReason, TurnOutcome
from coding_agent.stores.runtime_store import AgentRunRecord, JSONObject
from coding_agent.stores import RuntimeRunLifecycleStore

RuntimeRunStore = RuntimeRunLifecycleStore
Expand Down
2 changes: 1 addition & 1 deletion coding-agent/src/coding_agent/runs/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from dataclasses import dataclass
from typing import Protocol, cast

from coding_agent.runtime_store import JSONObject, JSONValue
from coding_agent.stores.runtime_store import JSONObject, JSONValue

from .lifecycle import RuntimeRunResumeContext
from .target import (
Expand Down
4 changes: 2 additions & 2 deletions coding-agent/src/coding_agent/runs/observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
from agentkit.observability import ObservationSink
from agentkit.tape.extract import TurnTrace, extract_turns

from coding_agent.agent_observability import (
from coding_agent.observability.agent import (
AgentObservationRecorder,
AgentObservationStatus,
AgentObservationStore,
)
from coding_agent.runtime_store import JSONObject
from coding_agent.stores.runtime_store import JSONObject
from coding_agent.runs.lifecycle import RuntimeRunResumeContext
from coding_agent.runs.target import (
RunTarget,
Expand Down
2 changes: 1 addition & 1 deletion coding-agent/src/coding_agent/runs/persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from math import isfinite
from typing import Any, Protocol, cast

from coding_agent.runtime_store import JSONObject, JSONValue, RunMessageSnapshotRecord
from coding_agent.stores.runtime_store import JSONObject, JSONValue, RunMessageSnapshotRecord
from coding_agent.stores import RuntimeCheckpointStore, RuntimeRunLifecycleStore

from .lifecycle import (
Expand Down
Loading
Loading