@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.
- package/dist/src/components/chat/SimulationStatusIcon.d.ts +6 -0
- package/dist/src/components/navigation/MessengerShell.d.ts +1 -1
- package/dist/src/components/views/ChatView.d.ts +1 -1
- package/dist/src/context/{ConversationContext.d.ts → ChatContext.d.ts} +16 -16
- package/dist/src/context/WidgetProviders.d.ts +2 -2
- package/dist/src/context/sseReducer.d.ts +7 -10
- package/dist/src/hooks/useWidget.d.ts +4 -4
- package/dist/src/index.d.ts +2 -2
- package/dist/src/sdk/contract.d.ts +16 -18
- package/dist/src/sdk/contracts/activityLog.d.ts +32 -32
- package/dist/src/sdk/contracts/application.d.ts +2 -2
- package/dist/src/sdk/contracts/common.d.ts +1 -12
- package/dist/src/sdk/contracts/entities.d.ts +24 -130
- package/dist/src/sdk/contracts/widget.d.ts +21 -26
- package/dist/src/sdk/index.d.ts +16 -18
- package/dist/src/services/ApiService.d.ts +2 -2
- package/dist/src/services/{ToolService.d.ts → BrowserToolService.d.ts} +4 -4
- package/dist/src/services/ChatService.d.ts +2 -2
- package/dist/src/services/{SessionManager.d.ts → ChatSessionManager.d.ts} +3 -3
- package/dist/src/services/DomService.d.ts +1 -1
- package/dist/src/services/{SessionRecorder.d.ts → RrwebSessionRecorder.d.ts} +3 -3
- package/dist/src/services/ShowModeService.d.ts +1 -1
- package/dist/src/services/StorageService.d.ts +5 -5
- package/dist/src/services/WidgetService.d.ts +1 -1
- package/dist/src/types/browserTools.d.ts +1 -1
- package/dist/src/types/index.d.ts +6 -6
- package/dist/src/utils/chat.d.ts +7 -7
- package/dist/widget.mjs +62 -62
- package/dist/widget.mjs.map +1 -1
- package/package.json +7 -7
- package/dist/src/components/chat/TaskStatusIcon.d.ts +0 -6
|
@@ -6,7 +6,7 @@ export interface MessengerShellProps {
|
|
|
6
6
|
isMinimized: boolean;
|
|
7
7
|
messages: ChatMessage[];
|
|
8
8
|
currentMode: InstructionType;
|
|
9
|
-
|
|
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
|
-
|
|
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
|
-
*
|
|
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
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
28
|
+
messageDispatch: (content: string, mode?: InstructionType, applicationId?: number, question?: string, skipUserMessage?: boolean) => Promise<void>;
|
|
29
29
|
}
|
|
30
|
-
export interface
|
|
30
|
+
export interface SimulationActions {
|
|
31
31
|
setTaskState: (payload: {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
activeSimulationId: string | null;
|
|
33
|
+
isSimulationRunning: boolean;
|
|
34
34
|
}) => void;
|
|
35
35
|
stopTask: () => Promise<void>;
|
|
36
36
|
}
|
|
37
|
-
interface
|
|
37
|
+
interface ChatContextType {
|
|
38
38
|
chatState: ChatState;
|
|
39
39
|
chatActions: ChatActions;
|
|
40
|
-
taskState:
|
|
41
|
-
taskActions:
|
|
40
|
+
taskState: SimulationState;
|
|
41
|
+
taskActions: SimulationActions;
|
|
42
42
|
}
|
|
43
|
-
interface
|
|
43
|
+
interface ChatProviderProps {
|
|
44
44
|
children: React.ReactNode;
|
|
45
45
|
previewMode?: boolean;
|
|
46
|
-
/** Current mode from UIState — fallback for
|
|
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?:
|
|
52
|
+
initialTask?: SimulationState;
|
|
53
53
|
}
|
|
54
|
-
export declare const
|
|
55
|
-
export declare const
|
|
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
|
-
*
|
|
3
|
+
* ChatProvider together.
|
|
4
4
|
*
|
|
5
|
-
* Conversation state ({ messages, task }) lives in ONE store (
|
|
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
|
|
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
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
export interface SseSimulationState {
|
|
14
|
+
activeSimulationId: string | null;
|
|
15
|
+
isSimulationRunning: boolean;
|
|
16
16
|
}
|
|
17
17
|
export interface SseState {
|
|
18
18
|
messages: ChatMessage[];
|
|
19
|
-
task:
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
17
|
-
|
|
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
|
-
|
|
25
|
+
messageDispatch: (content: string, mode?: InstructionType, applicationId?: number, question?: string, skipUserMessage?: boolean) => Promise<void>;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
* Composes UIStateContext and
|
|
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
|
*/
|
package/dist/src/index.d.ts
CHANGED
|
@@ -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
|
|
16
|
-
*
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
398
|
-
|
|
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
|
-
|
|
429
|
-
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
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
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
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
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
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
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
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
|
|
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
|
-
|
|
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 (
|
|
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<{
|