refactor: move standalone scripts to scripts/ directory

Move batch_runner, trajectory_compressor, mini_swe_runner, and rl_cli
from the project root into scripts/, update all imports, logger names,
pyproject.toml, and downstream test references.
This commit is contained in:
alt-glitch 2026-04-21 15:23:23 +05:30
parent 224e6d46d9
commit ca2b6a529e
20 changed files with 51 additions and 41 deletions

View file

@ -9,7 +9,7 @@ from unittest.mock import AsyncMock, patch, MagicMock
import pytest
from trajectory_compressor import (
from scripts.trajectory_compressor import (
CompressionConfig,
TrajectoryMetrics,
AggregateMetrics,
@ -25,8 +25,8 @@ def test_import_loads_env_from_hermes_home(tmp_path, monkeypatch):
monkeypatch.setenv("HERMES_HOME", str(home))
monkeypatch.delenv("OPENROUTER_API_KEY", raising=False)
sys.modules.pop("trajectory_compressor", None)
importlib.import_module("trajectory_compressor")
sys.modules.pop("scripts.trajectory_compressor", None)
importlib.import_module("scripts.trajectory_compressor")
assert os.getenv("OPENROUTER_API_KEY") == "from-hermes-home"