Session Management
Authentication Flow:
- User authentication via frontend
- Session validation by Orchestrator
- Permissions and context established
Key Endpoints:
- Session validation
- Session termination
The Stavily Orchestrator operates as the central coordination hub, managing complex interactions between multiple system components. Understanding these interactions is crucial for comprehending how the platform achieves reliable, scalable automation.
Purpose: Continuous health monitoring and status reporting from deployed agents.
Interaction Flow:
sequenceDiagram
participant Agent
participant Orchestrator as Orchestrator
Agent->>Orchestrator: Heartbeat {status, metrics}
Orchestrator->>Orchestrator: Process & store data
Orchestrator-->>Agent: Confirmation
Note over Orchestrator: Central health monitoring hub
Key Data Exchanged:
Purpose: Task delegation and result collection from agents.
Interaction Flow:
sequenceDiagram
participant Orchestrator as Orchestrator
participant Agent as Target Agent
Orchestrator->>Agent: Send instruction {config, data}
Agent->>Agent: Execute plugin
Agent->>Orchestrator: Return result {status, output}
Orchestrator->>Orchestrator: Update workflow state
Note over Orchestrator: Central task coordination
Key Data Exchanged:
Purpose: Dynamic plugin distribution and updates to agents.
Interaction Flow:
sequenceDiagram
participant Orchestrator as Orchestrator
participant Agent as Target Agent
Orchestrator->>Agent: Install plugin {name, version}
Agent->>Agent: Download & validate
Agent->>Orchestrator: Installation status
Orchestrator->>Orchestrator: Update inventory
Note over Orchestrator: Central plugin distribution
Key Data Exchanged:
Session Management
Authentication Flow:
Key Endpoints:
Workflow Operations
CRUD Operations:
Key Endpoints:
Agent Monitoring
Fleet Overview:
Key Endpoints:
Repository Management:
graph TD
O[Orchestrator
Central Hub] --> P[Plugin Repositories]
P --> G[Git Providers]
O --> M[Metadata Cache]
O --> V[Version Management]
O --> D[Dependency Resolution]
M --> A[Agent Distribution]
V --> A
D --> A
The Orchestrator serves as the central authority for plugin management, ensuring consistent distribution and updates across all agents.
Marketplace Integration:
graph TD
A[External User] --> B[Authentication]
A --> C[Session Tokens]
D[Agent] --> E[Installation Tokens]
D --> F[Certificates]
G[Internal Service] --> H[Service Certificates]
G --> I[JWT Tokens]
B --> J[Private API]
C --> J
E --> K[Public API]
F --> K
H --> L[Inter-Service]
I --> L
The Orchestrator acts as the central security gateway, managing all authentication and authorization across the platform.
sequenceDiagram
participant Component as Any Component
participant Orchestrator as Orchestrator
Component->>Orchestrator: Log operation
Orchestrator->>Orchestrator: Process & store
Orchestrator-->>Component: Confirmation
Note over Orchestrator: Central audit authority