mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
fix(agents): surface provider errors structurally instead of raw dumps (#1653)
This commit is contained in:
@@ -226,6 +226,7 @@ export type RawManagedAgent = {
|
||||
last_stopped_at: string | null;
|
||||
last_exit_code: number | null;
|
||||
last_error: string | null;
|
||||
last_error_code: number | null;
|
||||
log_path: string;
|
||||
start_on_app_launch: boolean;
|
||||
auto_restart_on_config_change?: boolean;
|
||||
@@ -1004,6 +1005,7 @@ export function fromRawManagedAgent(agent: RawManagedAgent): ManagedAgent {
|
||||
lastStoppedAt: agent.last_stopped_at,
|
||||
lastExitCode: agent.last_exit_code,
|
||||
lastError: agent.last_error,
|
||||
lastErrorCode: agent.last_error_code ?? null,
|
||||
logPath: agent.log_path,
|
||||
startOnAppLaunch: agent.start_on_app_launch,
|
||||
autoRestartOnConfigChange: agent.auto_restart_on_config_change ?? true,
|
||||
|
||||
@@ -416,6 +416,7 @@ export type ManagedAgent = {
|
||||
lastStoppedAt: string | null;
|
||||
lastExitCode: number | null;
|
||||
lastError: string | null;
|
||||
lastErrorCode: number | null;
|
||||
logPath: string;
|
||||
startOnAppLaunch: boolean;
|
||||
autoRestartOnConfigChange: boolean;
|
||||
|
||||
Reference in New Issue
Block a user