feat: Add OpenClaw agent spawning, backend configuration, and frontend API types.
This commit is contained in:
parent
071461dc82
commit
8486604fdd
@ -6,7 +6,10 @@ TELEGRAM_BOT_TOKEN=your-telegram-bot-token
|
|||||||
TELEGRAM_CHAT_ID=your-chat-id
|
TELEGRAM_CHAT_ID=your-chat-id
|
||||||
|
|
||||||
# ─── OpenClaw ──────────────────────────────────────────────
|
# ─── 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 ─────────────────────────────────────────────────
|
||||||
GITEA_SERVER=https://gitea.your.server
|
GITEA_SERVER=https://gitea.your.server
|
||||||
|
|||||||
@ -16,7 +16,7 @@ class Settings(BaseSettings):
|
|||||||
TELEGRAM_CHAT_ID: str = ""
|
TELEGRAM_CHAT_ID: str = ""
|
||||||
|
|
||||||
# OpenClaw
|
# OpenClaw
|
||||||
OPENCLAW_WORKSPACE: str = "/home/foxy/.openclaw/workspace"
|
FOXY_WORKSPACE: str = "/home/foxy/.openclaw/workspace"
|
||||||
|
|
||||||
# Gitea
|
# Gitea
|
||||||
GITEA_SERVER: str = ""
|
GITEA_SERVER: str = ""
|
||||||
|
|||||||
@ -128,7 +128,7 @@ async def spawn_agent(
|
|||||||
*cmd,
|
*cmd,
|
||||||
stdout=asyncio.subprocess.PIPE,
|
stdout=asyncio.subprocess.PIPE,
|
||||||
stderr=asyncio.subprocess.PIPE,
|
stderr=asyncio.subprocess.PIPE,
|
||||||
cwd=settings.OPENCLAW_WORKSPACE,
|
cwd=settings.FOXY_WORKSPACE,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Wait briefly to check for immediate failure
|
# Wait briefly to check for immediate failure
|
||||||
|
|||||||
@ -24,7 +24,7 @@ services:
|
|||||||
- backend/.env
|
- backend/.env
|
||||||
volumes:
|
volumes:
|
||||||
- foxy-data:/app/data
|
- foxy-data:/app/data
|
||||||
- foxy-workspace:/home/foxy/.openclaw/workspace
|
- "${OPENCLAW_WORKSPACE}:${FOXY_WORKSPACE}"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:7000/api/health"]
|
test: ["CMD", "curl", "-f", "http://localhost:7000/api/health"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
@ -60,8 +60,6 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
foxy-data:
|
foxy-data:
|
||||||
driver: local
|
driver: local
|
||||||
foxy-workspace:
|
|
||||||
driver: local
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
foxy-net:
|
foxy-net:
|
||||||
|
|||||||
@ -136,7 +136,7 @@ export interface GitServer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface AppConfig {
|
export interface AppConfig {
|
||||||
OPENCLAW_WORKSPACE: string;
|
FOXY_WORKSPACE: string;
|
||||||
GITEA_SERVER: string;
|
GITEA_SERVER: string;
|
||||||
DEPLOYMENT_SERVER: string;
|
DEPLOYMENT_SERVER: string;
|
||||||
DEPLOYMENT_USER: string;
|
DEPLOYMENT_USER: string;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user