fix(backends,storage,core): setuid in exec wrapper, missing-column migration, runner config dir for mirror, tagged prompt sources

This commit is contained in:
hh
2026-08-28 02:10:19 +02:00
parent e1f242a87a
commit 50b7057fa4
6 changed files with 127 additions and 23 deletions
+5 -3
View File
@@ -1,8 +1,9 @@
"""Claude agent definition, backed by the Claude Agent SDK.
The system prompt is either ``system_prompt`` verbatim or, when
``prompt_sources`` is set, the concatenation of those files assembled at
every session spawn (see ``core/prompt.py``). ``skill_sets`` are
``prompt_sources`` is set, the concatenation of those files (or
``(tag, file)`` pairs) assembled at every session spawn (see
``core/prompt.py``). ``skill_sets`` are
directories of ``<skill>/SKILL.md`` folders; each becomes a local SDK
plugin. Nothing from disk is loaded otherwise: the adapter runs with
``setting_sources=[]``.
@@ -16,6 +17,7 @@ from pathlib import Path # noqa: TC003 - pydantic runtime
from pydantic import BaseModel, ConfigDict, Field
from beaver_gateway.agents.base import BaseAgent
from beaver_gateway.core.prompt import PromptSource # noqa: TC001 - pydantic runtime
__all__ = ["ClaudeAgent", "ClaudeOptions"]
@@ -49,6 +51,6 @@ class ClaudeOptions(BaseModel):
class ClaudeAgent(BaseAgent):
cwd: Path
system_prompt: str = ""
prompt_sources: tuple[Path, ...] = ()
prompt_sources: tuple[PromptSource, ...] = ()
skill_sets: tuple[Path, ...] = ()
options: ClaudeOptions = Field(default_factory=ClaudeOptions)