feat(monitoring): dispatch monitoring tasks to desktop via AMQP outbox
Replace SSE /desktop/events with priority AMQP dispatch for monitoring
runs, and add phase1/phase2 infrastructure so desktop workers can lease,
resume, report, skip, and cancel monitoring tasks over the existing
dispatch WebSocket.
- Add monitoring collect outbox worker and phase2 desktop task fields
- Add /desktop/monitoring/tasks/{lease,resume,result,skip,cancel} routes
- Introduce execution-devtools and network-observer on desktop runtime
- Refactor runtime-controller, LoginView, and doubao adapter for the new flow
- Add channelName column to tracking views
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
export type DesktopObservedRequestPhase = "request" | "response" | "close" | "error";
|
||||
|
||||
export type DesktopObservedRequestKind = "http" | "sse" | "ws";
|
||||
|
||||
export type DesktopObservedRequestSource = "session" | "main" | "transport";
|
||||
|
||||
export interface DesktopObservedRequest {
|
||||
id: string;
|
||||
at: number;
|
||||
phase: DesktopObservedRequestPhase;
|
||||
kind: DesktopObservedRequestKind;
|
||||
source: DesktopObservedRequestSource;
|
||||
label: string;
|
||||
method: string;
|
||||
url: string;
|
||||
partition: string | null;
|
||||
resourceType: string | null;
|
||||
status: number | null;
|
||||
durationMs: number | null;
|
||||
error: string | null;
|
||||
}
|
||||
|
||||
export interface DesktopObservedRequestSnapshot {
|
||||
rendererAttached: boolean;
|
||||
activeCount: number;
|
||||
recent: DesktopObservedRequest[];
|
||||
}
|
||||
Reference in New Issue
Block a user