feat: Add OpenClaw agent spawning, backend configuration, and frontend API types.
This commit is contained in:
@@ -6,7 +6,10 @@ TELEGRAM_BOT_TOKEN=your-telegram-bot-token
|
||||
TELEGRAM_CHAT_ID=your-chat-id
|
||||
|
||||
# ─── OpenClaw ──────────────────────────────────────────────
|
||||
OPENCLAW_WORKSPACE=/home/foxy/.openclaw/workspace
|
||||
# Path on the HOST (where openclaw workspace is stored)
|
||||
OPENCLAW_WORKSPACE=/home/openclaw/.openclaw/workspace
|
||||
# Path in the CONTAINER (keep as is)
|
||||
FOXY_WORKSPACE=/home/foxy/.openclaw/workspace
|
||||
|
||||
# ─── Gitea ─────────────────────────────────────────────────
|
||||
GITEA_SERVER=https://gitea.your.server
|
||||
|
||||
@@ -16,7 +16,7 @@ class Settings(BaseSettings):
|
||||
TELEGRAM_CHAT_ID: str = ""
|
||||
|
||||
# OpenClaw
|
||||
OPENCLAW_WORKSPACE: str = "/home/foxy/.openclaw/workspace"
|
||||
FOXY_WORKSPACE: str = "/home/foxy/.openclaw/workspace"
|
||||
|
||||
# Gitea
|
||||
GITEA_SERVER: str = ""
|
||||
|
||||
@@ -128,7 +128,7 @@ async def spawn_agent(
|
||||
*cmd,
|
||||
stdout=asyncio.subprocess.PIPE,
|
||||
stderr=asyncio.subprocess.PIPE,
|
||||
cwd=settings.OPENCLAW_WORKSPACE,
|
||||
cwd=settings.FOXY_WORKSPACE,
|
||||
)
|
||||
|
||||
# Wait briefly to check for immediate failure
|
||||
|
||||
Reference in New Issue
Block a user