feat: OpenClaw WebSocket integration with workspace file preview
- Migrate OpenClaw from HTTP (port 8004) to WebSocket (port 18789) - Add workspace file list and content preview handlers - Add OpenClawStatus component with agent/skills view - Add OpenClawView panel in trader interface - Add Zustand store for OpenClaw state management - Fix gateway logging noise (yfinance, websockets) - Fix RunWorkspaceManager.get_agent_asset_dir attribute error - Handle missing workspace files gracefully in preview Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
36
shared/models/__init__.py
Normal file
36
shared/models/__init__.py
Normal file
@@ -0,0 +1,36 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""Shared data models."""
|
||||
|
||||
from shared.models.openclaw import (
|
||||
OpenClawStatus,
|
||||
SessionEntry,
|
||||
SessionHistory,
|
||||
SessionHistoryEvent,
|
||||
SessionsList,
|
||||
CronJob,
|
||||
CronList,
|
||||
ApprovalRequest,
|
||||
ApprovalsList,
|
||||
normalize_status,
|
||||
normalize_sessions,
|
||||
normalize_session_history,
|
||||
normalize_cron_jobs,
|
||||
normalize_approvals,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"OpenClawStatus",
|
||||
"SessionEntry",
|
||||
"SessionHistory",
|
||||
"SessionHistoryEvent",
|
||||
"SessionsList",
|
||||
"CronJob",
|
||||
"CronList",
|
||||
"ApprovalRequest",
|
||||
"ApprovalsList",
|
||||
"normalize_status",
|
||||
"normalize_sessions",
|
||||
"normalize_session_history",
|
||||
"normalize_cron_jobs",
|
||||
"normalize_approvals",
|
||||
]
|
||||
Reference in New Issue
Block a user