feat: Implement Remote Management Command Center with unified UI and B010/B017 integration
All checks were successful
star-cloud-deploy-demo / deploy-demo (push) Successful in 1m2s

This commit is contained in:
2026-04-01 16:50:37 +08:00
parent 3dbb394862
commit d2131aaf06
6 changed files with 578 additions and 69 deletions

View File

@@ -11,16 +11,15 @@ class RemoteCommand extends Model
protected $fillable = [
'machine_id',
'command',
'command_type',
'payload',
'status',
'response_payload',
'ttl',
'executed_at',
];
protected $casts = [
'payload' => 'array',
'response_payload' => 'array',
'executed_at' => 'datetime',
];
@@ -28,4 +27,12 @@ class RemoteCommand extends Model
{
return $this->belongsTo(Machine::class);
}
/**
* Scope for pending commands
*/
public function scopePending($query)
{
return $query->where('status', 'pending')->orderBy('created_at', 'asc');
}
}