@@ -56,13 +56,6 @@ export type StartHandler = (
5656 agentName : string
5757) => Promise < { success : boolean ; name : string ; port : number ; error ?: string } > ;
5858
59- /**
60- * Custom handler for POST /invocations.
61- * Receives the parsed request body and the raw ServerResponse so it can stream.
62- * Must write headers and end the response itself.
63- */
64- export type InvocationHandler = ( body : string , res : ServerResponse , setCors : ( ) => void ) => Promise < void > ;
65-
6659/**
6760 * Custom handler for GET /api/traces.
6861 * Returns a list of recent traces for the given agent.
@@ -106,8 +99,8 @@ export type RetrieveMemoryRecordsHandler = (
10699) => Promise < { success : boolean ; records ?: unknown [ ] ; error ?: string } > ;
107100
108101export interface WebUIOptions {
109- /** Whether this server is running in dev or invoke mode */
110- mode : 'dev' | 'invoke' ;
102+ /** Server mode identifier (currently only ' dev' is used) */
103+ mode : 'dev' ;
111104 /** Port for the web UI server (API proxy) */
112105 uiPort : number ;
113106 /** Available agents (metadata only — servers are started on demand) */
@@ -126,15 +119,13 @@ export interface WebUIOptions {
126119 onLog ?: ( level : 'info' | 'warn' | 'error' , message : string ) => void ;
127120 /** Custom start handler — overrides the default dev server start logic */
128121 onStart ?: StartHandler ;
129- /** Custom invocation handler — overrides the default local proxy logic */
130- onInvoke ?: InvocationHandler ;
131- /** Custom handler for listing traces (local OTEL in dev mode, CloudWatch in invoke mode) */
122+ /** Custom handler for listing traces */
132123 onListTraces ?: ListTracesHandler ;
133- /** Custom handler for getting a single trace (local OTEL in dev mode, CloudWatch in invoke mode) */
124+ /** Custom handler for getting a single trace */
134125 onGetTrace ?: GetTraceHandler ;
135- /** Custom handler for listing memory records — only available in invoke mode */
126+ /** Custom handler for listing memory records */
136127 onListMemoryRecords ?: ListMemoryRecordsHandler ;
137- /** Custom handler for searching memory records — only available in invoke mode */
128+ /** Custom handler for searching memory records */
138129 onRetrieveMemoryRecords ?: RetrieveMemoryRecordsHandler ;
139130 /** Agent to pre-select in the UI dropdown (set when --runtime is specified) */
140131 selectedAgent ?: string ;
0 commit comments