@marketrix.ai/widget 3.8.134 → 3.8.137

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/src/components/chat/SimulationStatusIcon.d.ts +6 -0
  2. package/dist/src/components/navigation/MessengerShell.d.ts +1 -1
  3. package/dist/src/components/views/ChatView.d.ts +1 -1
  4. package/dist/src/context/{ConversationContext.d.ts → ChatContext.d.ts} +16 -16
  5. package/dist/src/context/WidgetProviders.d.ts +2 -2
  6. package/dist/src/context/sseReducer.d.ts +7 -10
  7. package/dist/src/hooks/useWidget.d.ts +4 -4
  8. package/dist/src/index.d.ts +2 -2
  9. package/dist/src/sdk/contract.d.ts +16 -18
  10. package/dist/src/sdk/contracts/activityLog.d.ts +32 -32
  11. package/dist/src/sdk/contracts/application.d.ts +2 -2
  12. package/dist/src/sdk/contracts/common.d.ts +1 -12
  13. package/dist/src/sdk/contracts/entities.d.ts +24 -130
  14. package/dist/src/sdk/contracts/widget.d.ts +21 -26
  15. package/dist/src/sdk/index.d.ts +16 -18
  16. package/dist/src/services/ApiService.d.ts +2 -2
  17. package/dist/src/services/{ToolService.d.ts → BrowserToolService.d.ts} +4 -4
  18. package/dist/src/services/ChatService.d.ts +2 -2
  19. package/dist/src/services/{SessionManager.d.ts → ChatSessionManager.d.ts} +3 -3
  20. package/dist/src/services/DomService.d.ts +1 -1
  21. package/dist/src/services/{SessionRecorder.d.ts → RrwebSessionRecorder.d.ts} +3 -3
  22. package/dist/src/services/ShowModeService.d.ts +1 -1
  23. package/dist/src/services/StorageService.d.ts +5 -5
  24. package/dist/src/services/WidgetService.d.ts +1 -1
  25. package/dist/src/types/browserTools.d.ts +1 -1
  26. package/dist/src/types/index.d.ts +6 -6
  27. package/dist/src/utils/chat.d.ts +7 -7
  28. package/dist/widget.mjs +62 -62
  29. package/dist/widget.mjs.map +1 -1
  30. package/package.json +7 -7
  31. package/dist/src/components/chat/TaskStatusIcon.d.ts +0 -6
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface SimulationStatusIconProps {
3
+ status: 'ongoing' | 'done' | 'failed' | 'stopped';
4
+ }
5
+ export declare const SimulationStatusIcon: React.FC<SimulationStatusIconProps>;
6
+ export {};
@@ -6,7 +6,7 @@ export interface MessengerShellProps {
6
6
  isMinimized: boolean;
7
7
  messages: ChatMessage[];
8
8
  currentMode: InstructionType;
9
- isTaskRunning?: boolean;
9
+ isSimulationRunning?: boolean;
10
10
  activeView: WidgetView;
11
11
  onClose: () => void;
12
12
  onSendMessage: (message: string, mode?: InstructionType, applicationId?: number, question?: string, skipUserMessage?: boolean) => void;
@@ -5,7 +5,7 @@ export interface ChatViewProps {
5
5
  config: MarketrixConfig;
6
6
  messages: ChatMessage[];
7
7
  currentMode: InstructionType;
8
- isTaskRunning?: boolean;
8
+ isSimulationRunning?: boolean;
9
9
  onSendMessage: (message: string, mode?: InstructionType, applicationId?: number, question?: string, skipUserMessage?: boolean) => void;
10
10
  onSetMode: (mode: InstructionType) => void;
11
11
  onAddMessage: (message: ChatMessage) => void;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { ChatMessage, InstructionType } from '../types';
3
3
  import type { UIStateActions } from './UIStateContext';
4
4
  /**
5
- * ConversationContext — the single store for the widget's conversation.
5
+ * ChatContext — the single store for the widget's conversation.
6
6
  *
7
7
  * Holds `{ messages, task }` as ONE `SseState`, so the SSE effect commits each
8
8
  * transition through a single atomic `setState(prev => transition(prev))`. This
@@ -12,9 +12,9 @@ import type { UIStateActions } from './UIStateContext';
12
12
  * (open/minimized/mode/loading/error) stays separate — a genuinely different
13
13
  * concern.
14
14
  */
15
- export interface TaskState {
16
- activeTaskId: string | null;
17
- isTaskRunning: boolean;
15
+ export interface SimulationState {
16
+ activeSimulationId: string | null;
17
+ isSimulationRunning: boolean;
18
18
  }
19
19
  export interface ChatState {
20
20
  messages: ChatMessage[];
@@ -25,32 +25,32 @@ export interface ChatActions {
25
25
  removeMessage: (messageId: string) => void;
26
26
  setMessages: (messages: ChatMessage[]) => void;
27
27
  clearMessages: () => void;
28
- sendMessage: (content: string, mode?: InstructionType, applicationId?: number, question?: string, skipUserMessage?: boolean) => Promise<void>;
28
+ messageDispatch: (content: string, mode?: InstructionType, applicationId?: number, question?: string, skipUserMessage?: boolean) => Promise<void>;
29
29
  }
30
- export interface TaskActions {
30
+ export interface SimulationActions {
31
31
  setTaskState: (payload: {
32
- activeTaskId: string | null;
33
- isTaskRunning: boolean;
32
+ activeSimulationId: string | null;
33
+ isSimulationRunning: boolean;
34
34
  }) => void;
35
35
  stopTask: () => Promise<void>;
36
36
  }
37
- interface ConversationContextType {
37
+ interface ChatContextType {
38
38
  chatState: ChatState;
39
39
  chatActions: ChatActions;
40
- taskState: TaskState;
41
- taskActions: TaskActions;
40
+ taskState: SimulationState;
41
+ taskActions: SimulationActions;
42
42
  }
43
- interface ConversationProviderProps {
43
+ interface ChatProviderProps {
44
44
  children: React.ReactNode;
45
45
  previewMode?: boolean;
46
- /** Current mode from UIState — fallback for sendMessage and progress-line logic. */
46
+ /** Current mode from UIState — fallback for messageDispatch and progress-line logic. */
47
47
  currentMode: InstructionType;
48
48
  /** Injected UI actions so the conversation store drives loading/availability/error without nesting contexts. */
49
49
  uiActions: Pick<UIStateActions, 'setLoading' | 'setAgentAvailable' | 'setError'>;
50
50
  /** One-time hydrated snapshot to seed the store (messages + task) on mount. */
51
51
  initialMessages?: ChatMessage[];
52
- initialTask?: TaskState;
52
+ initialTask?: SimulationState;
53
53
  }
54
- export declare const ConversationProvider: React.FC<ConversationProviderProps>;
55
- export declare const useConversationContext: () => ConversationContextType;
54
+ export declare const ChatProvider: React.FC<ChatProviderProps>;
55
+ export declare const useChatContext: () => ChatContextType;
56
56
  export {};
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * WidgetProviders — composition root that wires UIStateProvider and
3
- * ConversationProvider together.
3
+ * ChatProvider together.
4
4
  *
5
- * Conversation state ({ messages, task }) lives in ONE store (ConversationProvider);
5
+ * Conversation state ({ messages, task }) lives in ONE store (ChatProvider);
6
6
  * UI state (open/minimized/mode/loading/error) lives in UIStateProvider. Both
7
7
  * one-time initialization (SSE connection, ChatService hydration) and persistence
8
8
  * live in inner bridge components that can read every context. React context is
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Pure SSE reducer — the single place where a `WidgetEvent` turns into the next
3
3
  * widget state. No transport, no tool execution, no localStorage: just
4
- * `(state, event) => { state, effects }`. The ConversationContext effect wires
4
+ * `(state, event) => { state, effects }`. The ChatContext effect wires
5
5
  * this up, runs the returned effects (tool exec, wsClient.send, setLoading), and
6
6
  * re-enters via the tool-progress helpers once an async tool finishes.
7
7
  *
@@ -10,18 +10,18 @@
10
10
  */
11
11
  import type { WidgetEvent } from '../sdk';
12
12
  import type { ChatMessage, InstructionType } from '../types';
13
- export interface SseTaskState {
14
- activeTaskId: string | null;
15
- isTaskRunning: boolean;
13
+ export interface SseSimulationState {
14
+ activeSimulationId: string | null;
15
+ isSimulationRunning: boolean;
16
16
  }
17
17
  export interface SseState {
18
18
  messages: ChatMessage[];
19
- task: SseTaskState;
19
+ task: SseSimulationState;
20
20
  }
21
21
  /** Side effects the wiring layer must run after applying a reduced state. */
22
22
  export type SseEffect = {
23
23
  type: 'executeTool';
24
- callId: string;
24
+ toolCallId: string;
25
25
  tool: string;
26
26
  args: Record<string, unknown>;
27
27
  mode: InstructionType;
@@ -29,9 +29,6 @@ export type SseEffect = {
29
29
  } | {
30
30
  type: 'setLoading';
31
31
  value: boolean;
32
- } | {
33
- type: 'activateApiTask';
34
- taskId: string;
35
32
  };
36
33
  export interface ReduceResult {
37
34
  state: SseState;
@@ -39,7 +36,7 @@ export interface ReduceResult {
39
36
  }
40
37
  type ProgressStatus = 'in_progress' | 'completed' | 'failed';
41
38
  /** Public: progress transition used by the wiring layer for tool lifecycle. */
42
- export declare function reduceToolProgress(state: SseState, toolName: string, explanation: string, status: ProgressStatus, currentMode: InstructionType, error?: string): SseState;
39
+ export declare function reduceToolProgress(state: SseState, browserToolName: string, explanation: string, status: ProgressStatus, currentMode: InstructionType, error?: string): SseState;
43
40
  /** Public: terminal `done` tool — strip the in-flight `done` progress line and end the task. */
44
41
  export declare function reduceToolDone(state: SseState, currentMode: InstructionType): SseState;
45
42
  /** Public: user-initiated stop — flag the active message `stopped` and end the task. */
@@ -13,8 +13,8 @@ interface UseWidgetActions {
13
13
  setError: (error: string | undefined) => void;
14
14
  clearError: () => void;
15
15
  setTaskState: (payload: {
16
- activeTaskId: string | null;
17
- isTaskRunning: boolean;
16
+ activeSimulationId: string | null;
17
+ isSimulationRunning: boolean;
18
18
  }) => void;
19
19
  addMessage: (message: ChatMessage) => void;
20
20
  updateMessage: (messageId: string, updates: Partial<ChatMessage>) => void;
@@ -22,10 +22,10 @@ interface UseWidgetActions {
22
22
  setMessages: (messages: ChatMessage[]) => void;
23
23
  stopTask: () => Promise<void>;
24
24
  clearChatHistory: () => void;
25
- sendMessage: (content: string, mode?: InstructionType, applicationId?: number, question?: string, skipUserMessage?: boolean) => Promise<void>;
25
+ messageDispatch: (content: string, mode?: InstructionType, applicationId?: number, question?: string, skipUserMessage?: boolean) => Promise<void>;
26
26
  }
27
27
  /**
28
- * Composes UIStateContext and ConversationContext into the unified
28
+ * Composes UIStateContext and ChatContext into the unified
29
29
  * `{ state, actions, config, … }` shape that the widget UI consumes. New code
30
30
  * can either keep using this hook or read the focused contexts directly.
31
31
  */
@@ -12,8 +12,8 @@ export declare const initWidget: (config: MarketrixConfig, container?: HTMLEleme
12
12
  export declare const unmountWidget: () => void;
13
13
  /**
14
14
  * Stop RRWeb session recording without unmounting the widget.
15
- * Keeps the SessionRecorder instance so recording can be restarted with startRecording().
16
- * SessionRecorder.stop() aborts in-flight start() via stopRequested.
15
+ * Keeps the RrwebSessionRecorder instance so recording can be restarted with startRecording().
16
+ * RrwebSessionRecorder.stop() aborts in-flight start() via stopRequested.
17
17
  */
18
18
  export declare const stopRecording: () => void;
19
19
  /**
@@ -45,10 +45,10 @@ export declare const widgetContract: {
45
45
  widget_question: "widget_question";
46
46
  qa_run_started: "qa_run_started";
47
47
  start_simulation: "start_simulation";
48
- create_automation: "create_automation";
49
- update_automation: "update_automation";
50
- delete_automation: "delete_automation";
51
- toggle_automation: "toggle_automation";
48
+ create_workflow: "create_workflow";
49
+ update_workflow: "update_workflow";
50
+ delete_workflow: "delete_workflow";
51
+ toggle_workflow: "toggle_workflow";
52
52
  slack_command: "slack_command";
53
53
  }>;
54
54
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -79,10 +79,10 @@ export declare const widgetContract: {
79
79
  widget_question: "widget_question";
80
80
  qa_run_started: "qa_run_started";
81
81
  start_simulation: "start_simulation";
82
- create_automation: "create_automation";
83
- update_automation: "update_automation";
84
- delete_automation: "delete_automation";
85
- toggle_automation: "toggle_automation";
82
+ create_workflow: "create_workflow";
83
+ update_workflow: "update_workflow";
84
+ delete_workflow: "delete_workflow";
85
+ toggle_workflow: "toggle_workflow";
86
86
  slack_command: "slack_command";
87
87
  }>;
88
88
  metadata: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -187,7 +187,7 @@ export declare const widgetContract: {
187
187
  }, import("zod/v4/core").$strip>>;
188
188
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
189
189
  chatCreate: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodString, Record<never, never>, Record<never, never>>;
190
- widgetGetDefaults: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
190
+ widgetDefaultGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
191
191
  type: import("zod").ZodEnum<{
192
192
  widget: "widget";
193
193
  }>;
@@ -336,7 +336,7 @@ export declare const widgetContract: {
336
336
  task_id: import("zod").ZodOptional<import("zod").ZodString>;
337
337
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
338
338
  type: import("zod").ZodLiteral<"tool/response">;
339
- call_id: import("zod").ZodString;
339
+ tool_call_id: import("zod").ZodString;
340
340
  success: import("zod").ZodBoolean;
341
341
  data: import("zod").ZodOptional<import("zod").ZodString>;
342
342
  error: import("zod").ZodOptional<import("zod").ZodString>;
@@ -345,7 +345,7 @@ export declare const widgetContract: {
345
345
  type: import("zod").ZodLiteral<"ping">;
346
346
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
347
347
  type: import("zod").ZodLiteral<"rrweb/metadata">;
348
- session_id: import("zod").ZodString;
348
+ rrweb_session_id: import("zod").ZodString;
349
349
  chat_id: import("zod").ZodString;
350
350
  application_id: import("zod").ZodNumber;
351
351
  url: import("zod").ZodOptional<import("zod").ZodString>;
@@ -357,7 +357,7 @@ export declare const widgetContract: {
357
357
  }, import("zod/v4/core").$strip>>;
358
358
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
359
359
  type: import("zod").ZodLiteral<"rrweb/events">;
360
- session_id: import("zod").ZodString;
360
+ rrweb_session_id: import("zod").ZodString;
361
361
  events: import("zod").ZodArray<import("zod").ZodUnknown>;
362
362
  }, import("zod/v4/core").$strip>], "type">;
363
363
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -381,7 +381,6 @@ export declare const widgetContract: {
381
381
  type: "chat/response";
382
382
  request_id: string;
383
383
  text: string;
384
- task_id?: string | undefined;
385
384
  } | {
386
385
  type: "chat/error";
387
386
  request_id: string;
@@ -394,8 +393,8 @@ export declare const widgetContract: {
394
393
  timestamp?: number | undefined;
395
394
  } | {
396
395
  type: "tool/call";
397
- call_id: string;
398
- tool: string;
396
+ tool_call_id: string;
397
+ browser_tool: string;
399
398
  args: Record<string, unknown>;
400
399
  mode?: "show" | "do" | undefined;
401
400
  explanation?: string | undefined;
@@ -412,7 +411,6 @@ export declare const widgetContract: {
412
411
  type: "chat/response";
413
412
  request_id: string;
414
413
  text: string;
415
- task_id?: string | undefined;
416
414
  } | {
417
415
  type: "chat/error";
418
416
  request_id: string;
@@ -425,8 +423,8 @@ export declare const widgetContract: {
425
423
  timestamp?: number | undefined;
426
424
  } | {
427
425
  type: "tool/call";
428
- call_id: string;
429
- tool: string;
426
+ tool_call_id: string;
427
+ browser_tool: string;
430
428
  args: Record<string, unknown>;
431
429
  mode?: "show" | "do" | undefined;
432
430
  explanation?: string | undefined;
@@ -45,10 +45,10 @@ export declare const activityLogCreate: import("@orpc/contract").ContractProcedu
45
45
  widget_question: "widget_question";
46
46
  qa_run_started: "qa_run_started";
47
47
  start_simulation: "start_simulation";
48
- create_automation: "create_automation";
49
- update_automation: "update_automation";
50
- delete_automation: "delete_automation";
51
- toggle_automation: "toggle_automation";
48
+ create_workflow: "create_workflow";
49
+ update_workflow: "update_workflow";
50
+ delete_workflow: "delete_workflow";
51
+ toggle_workflow: "toggle_workflow";
52
52
  slack_command: "slack_command";
53
53
  }>;
54
54
  }, z.core.$strip>, z.ZodObject<{
@@ -79,10 +79,10 @@ export declare const activityLogCreate: import("@orpc/contract").ContractProcedu
79
79
  widget_question: "widget_question";
80
80
  qa_run_started: "qa_run_started";
81
81
  start_simulation: "start_simulation";
82
- create_automation: "create_automation";
83
- update_automation: "update_automation";
84
- delete_automation: "delete_automation";
85
- toggle_automation: "toggle_automation";
82
+ create_workflow: "create_workflow";
83
+ update_workflow: "update_workflow";
84
+ delete_workflow: "delete_workflow";
85
+ toggle_workflow: "toggle_workflow";
86
86
  slack_command: "slack_command";
87
87
  }>;
88
88
  metadata: z.ZodOptional<z.ZodObject<{
@@ -128,10 +128,10 @@ export declare const activityLogSearch: import("@orpc/contract").ContractProcedu
128
128
  widget_question: "widget_question";
129
129
  qa_run_started: "qa_run_started";
130
130
  start_simulation: "start_simulation";
131
- create_automation: "create_automation";
132
- update_automation: "update_automation";
133
- delete_automation: "delete_automation";
134
- toggle_automation: "toggle_automation";
131
+ create_workflow: "create_workflow";
132
+ update_workflow: "update_workflow";
133
+ delete_workflow: "delete_workflow";
134
+ toggle_workflow: "toggle_workflow";
135
135
  slack_command: "slack_command";
136
136
  }>>;
137
137
  application_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
@@ -166,10 +166,10 @@ export declare const activityLogSearch: import("@orpc/contract").ContractProcedu
166
166
  widget_question: "widget_question";
167
167
  qa_run_started: "qa_run_started";
168
168
  start_simulation: "start_simulation";
169
- create_automation: "create_automation";
170
- update_automation: "update_automation";
171
- delete_automation: "delete_automation";
172
- toggle_automation: "toggle_automation";
169
+ create_workflow: "create_workflow";
170
+ update_workflow: "update_workflow";
171
+ delete_workflow: "delete_workflow";
172
+ toggle_workflow: "toggle_workflow";
173
173
  slack_command: "slack_command";
174
174
  }>;
175
175
  metadata: z.ZodOptional<z.ZodObject<{
@@ -242,10 +242,10 @@ export declare const activityLogRoutes: {
242
242
  widget_question: "widget_question";
243
243
  qa_run_started: "qa_run_started";
244
244
  start_simulation: "start_simulation";
245
- create_automation: "create_automation";
246
- update_automation: "update_automation";
247
- delete_automation: "delete_automation";
248
- toggle_automation: "toggle_automation";
245
+ create_workflow: "create_workflow";
246
+ update_workflow: "update_workflow";
247
+ delete_workflow: "delete_workflow";
248
+ toggle_workflow: "toggle_workflow";
249
249
  slack_command: "slack_command";
250
250
  }>;
251
251
  }, z.core.$strip>, z.ZodObject<{
@@ -276,10 +276,10 @@ export declare const activityLogRoutes: {
276
276
  widget_question: "widget_question";
277
277
  qa_run_started: "qa_run_started";
278
278
  start_simulation: "start_simulation";
279
- create_automation: "create_automation";
280
- update_automation: "update_automation";
281
- delete_automation: "delete_automation";
282
- toggle_automation: "toggle_automation";
279
+ create_workflow: "create_workflow";
280
+ update_workflow: "update_workflow";
281
+ delete_workflow: "delete_workflow";
282
+ toggle_workflow: "toggle_workflow";
283
283
  slack_command: "slack_command";
284
284
  }>;
285
285
  metadata: z.ZodOptional<z.ZodObject<{
@@ -325,10 +325,10 @@ export declare const activityLogRoutes: {
325
325
  widget_question: "widget_question";
326
326
  qa_run_started: "qa_run_started";
327
327
  start_simulation: "start_simulation";
328
- create_automation: "create_automation";
329
- update_automation: "update_automation";
330
- delete_automation: "delete_automation";
331
- toggle_automation: "toggle_automation";
328
+ create_workflow: "create_workflow";
329
+ update_workflow: "update_workflow";
330
+ delete_workflow: "delete_workflow";
331
+ toggle_workflow: "toggle_workflow";
332
332
  slack_command: "slack_command";
333
333
  }>>;
334
334
  application_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
@@ -363,10 +363,10 @@ export declare const activityLogRoutes: {
363
363
  widget_question: "widget_question";
364
364
  qa_run_started: "qa_run_started";
365
365
  start_simulation: "start_simulation";
366
- create_automation: "create_automation";
367
- update_automation: "update_automation";
368
- delete_automation: "delete_automation";
369
- toggle_automation: "toggle_automation";
366
+ create_workflow: "create_workflow";
367
+ update_workflow: "update_workflow";
368
+ delete_workflow: "delete_workflow";
369
+ toggle_workflow: "toggle_workflow";
370
370
  slack_command: "slack_command";
371
371
  }>;
372
372
  metadata: z.ZodOptional<z.ZodObject<{
@@ -241,7 +241,7 @@ export declare const applicationGet: import("@orpc/contract").ContractProcedureB
241
241
  snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
242
  }, z.core.$strip>>;
243
243
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
244
- export declare const applicationGraph: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
244
+ export declare const applicationGraphGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
245
245
  application_id: z.ZodCoercedNumber<unknown>;
246
246
  }, z.core.$strip>, z.ZodObject<{
247
247
  nodes: z.ZodArray<z.ZodObject<{
@@ -510,7 +510,7 @@ export declare const applicationRoutes: {
510
510
  snippet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
511
511
  }, z.core.$strip>>;
512
512
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
513
- applicationGraph: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
513
+ applicationGraphGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
514
514
  application_id: z.ZodCoercedNumber<unknown>;
515
515
  }, z.core.$strip>, z.ZodObject<{
516
516
  nodes: z.ZodArray<z.ZodObject<{
@@ -47,17 +47,6 @@ export declare const listOf: <T extends z.ZodTypeAny>(schema: T) => z.ZodObject<
47
47
  items: z.ZodArray<T>;
48
48
  count: z.ZodNumber;
49
49
  }, z.core.$strip>;
50
- /** Value types in QA test case version diffs */
51
- export declare const DiffValueSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodNull]>;
52
- export declare const ContextRefSchema: z.ZodObject<{
53
- type: z.ZodEnum<{
54
- doc: "doc";
55
- sim: "sim";
56
- session: "session";
57
- }>;
58
- id: z.ZodString;
59
- label: z.ZodString;
60
- }, z.core.$strip>;
61
50
  export declare const SuccessSchema: z.ZodObject<{
62
51
  success: z.ZodLiteral<true>;
63
52
  }, z.core.$strip>;
@@ -104,7 +93,7 @@ export declare const GraphSectionSchema: z.ZodObject<{
104
93
  }, z.core.$loose>;
105
94
  /**
106
95
  * Graph node schema - unique page state observed during simulation.
107
- * Matches agent's PageNode model (perception/graph.py).
96
+ * Matches agent's PageNode model (knowledge/graph.py).
108
97
  * Uses passthrough() because the agent model may evolve faster than the schema.
109
98
  */
110
99
  export declare const GraphNodeSchema: z.ZodObject<{