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
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ dev = [
"pytest>=9.0.3",
"pytest-cov>=7.1.0",
"pytest-asyncio>=1.3.0",
"ruff>=0.8.0",
"mypy>=1.13.0",
"black>=24.10.0",
"isort>=5.13.0",
"ruff>=0.15.10",
"mypy>=1.20.1",
"black>=26.3.1",
"isort>=8.0.1",
]

[build-system]
Expand Down
4 changes: 2 additions & 2 deletions src/api/content/schemas.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"""Pydantic schemas for content API responses."""

from datetime import datetime
from enum import Enum
from enum import StrEnum
from typing import Literal

from pydantic import BaseModel, Field


class DreamType(str, Enum):
class DreamType(StrEnum):
"""Enumeration of dream content types."""

POETRY = "poetry"
Expand Down
4 changes: 2 additions & 2 deletions src/api/events/types.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"""Domain event types for filesystem monitoring."""

from datetime import datetime
from enum import Enum
from enum import StrEnum
from typing import Literal

from pydantic import BaseModel, Field


class EventType(str, Enum):
class EventType(StrEnum):
"""Domain event types for filesystem changes."""

THOUGHT_CREATED = "thought.created"
Expand Down
8 changes: 4 additions & 4 deletions src/api/routes/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import os
import re
from datetime import datetime
from enum import Enum
from enum import StrEnum
from pathlib import Path

import structlog
Expand Down Expand Up @@ -35,7 +35,7 @@ def set_claude_permissions(filepath: Path) -> None:
filepath.chmod(0o644)


class SessionType(str, Enum):
class SessionType(StrEnum):
"""Available wake session types."""

MORNING = "morning"
Expand All @@ -45,15 +45,15 @@ class SessionType(str, Enum):
CUSTOM = "custom"


class NewsType(str, Enum):
class NewsType(StrEnum):
"""Types of news entries."""

NEWS = "news"
PERSONAL = "personal"
ANNOUNCEMENT = "announcement"


class GiftContentType(str, Enum):
class GiftContentType(StrEnum):
"""Allowed content types for gifts."""

MARKDOWN = "text/markdown"
Expand Down
4 changes: 2 additions & 2 deletions src/api/search/schemas.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""Pydantic schemas for full-text search API responses."""

from enum import Enum
from enum import StrEnum

from pydantic import BaseModel, Field


class SearchResultType(str, Enum):
class SearchResultType(StrEnum):
"""Content type discriminator for search results."""

THOUGHT = "thought"
Expand Down
4 changes: 2 additions & 2 deletions src/memory/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations

import os
from enum import Enum
from enum import StrEnum
from pathlib import Path

# Shared model cache readable by both root and claude user
Expand All @@ -12,7 +12,7 @@
os.environ.setdefault("HF_HUB_OFFLINE", "1")


class SourceType(str, Enum):
class SourceType(StrEnum):
"""Content source types for the memory index."""

THOUGHT = "thought"
Expand Down
2 changes: 1 addition & 1 deletion src/orchestrator/hooks/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def run(result: SessionResult) -> HookResult:
logger.warning("git_commit_failed", output=output)
return HookResult("git", "failed", elapsed, output.strip())

logger.info("git_committed", message=commit_msg.split("\n")[0])
logger.info("git_committed", message=commit_msg.split("\n", maxsplit=1)[0])

# Push
rc, output = await _run_git("push", "origin", "main")
Expand Down
432 changes: 227 additions & 205 deletions uv.lock

Large diffs are not rendered by default.

Loading