@useinsider/guido 3.2.0-beta.8209d6d → 3.2.0-beta.8220f9d

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 (94) hide show
  1. package/dist/@types/config/schemas.js +38 -36
  2. package/dist/components/Guido.vue.js +4 -4
  3. package/dist/components/Guido.vue2.js +82 -71
  4. package/dist/components/organisms/chat/blueprint/BlueprintCard.vue.js +20 -0
  5. package/dist/components/organisms/chat/blueprint/BlueprintCard.vue2.js +20 -0
  6. package/dist/components/organisms/chat/blueprint/EmailTemplateBlueprintCard.vue.js +23 -0
  7. package/dist/components/organisms/chat/blueprint/EmailTemplateBlueprintCard.vue2.js +18 -0
  8. package/dist/components/organisms/chat/chatbox/ChatboxContainer.vue.js +18 -0
  9. package/dist/components/organisms/chat/chatbox/ChatboxContainer.vue2.js +16 -0
  10. package/dist/components/organisms/chat/chatbox/ChatboxPanel.vue.js +20 -0
  11. package/dist/components/organisms/chat/chatbox/ChatboxPanel.vue2.js +19 -0
  12. package/dist/components/organisms/chat/conversation/ChatConversation.vue.js +28 -0
  13. package/dist/components/organisms/chat/conversation/ChatConversation.vue2.js +20 -0
  14. package/dist/components/organisms/chat/conversation/ChatWelcome.vue.js +18 -0
  15. package/dist/components/organisms/chat/conversation/ChatWelcome.vue2.js +11 -0
  16. package/dist/components/organisms/chat/conversation/QuickActionChips.vue.js +22 -0
  17. package/dist/components/organisms/chat/conversation/QuickActionChips.vue2.js +42 -0
  18. package/dist/components/organisms/chat/input/ChatInput.vue.js +29 -0
  19. package/dist/components/organisms/chat/input/ChatInput.vue2.js +39 -0
  20. package/dist/components/organisms/chat/input/GuidoAgentSelector.vue.js +22 -0
  21. package/dist/components/organisms/chat/input/GuidoAgentSelector.vue2.js +29 -0
  22. package/dist/components/organisms/chat/messages/AiMessage.vue.js +26 -0
  23. package/dist/components/organisms/chat/messages/AiMessage.vue2.js +41 -0
  24. package/dist/components/organisms/chat/messages/AiMessageActions.vue.js +18 -0
  25. package/dist/components/organisms/chat/messages/AiMessageActions.vue2.js +27 -0
  26. package/dist/components/organisms/chat/messages/ChatLoading.vue.js +18 -0
  27. package/dist/components/organisms/chat/messages/ChatLoading.vue2.js +30 -0
  28. package/dist/components/organisms/chat/messages/ChatMessages.vue.js +26 -0
  29. package/dist/components/organisms/chat/messages/ChatMessages.vue2.js +67 -0
  30. package/dist/components/organisms/chat/messages/UserMessage.vue.js +18 -0
  31. package/dist/components/organisms/chat/messages/UserMessage.vue2.js +26 -0
  32. package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +51 -31
  33. package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +1 -1
  34. package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +23 -22
  35. package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +1 -1
  36. package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +37 -39
  37. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +3 -3
  38. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +30 -41
  39. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +15 -14
  40. package/dist/composables/useChatState.js +130 -0
  41. package/dist/composables/useChatStreaming.js +191 -0
  42. package/dist/composables/useConversationEvents.js +37 -0
  43. package/dist/composables/useEmailTemplateApplier.js +41 -0
  44. package/dist/composables/useRibbonOffset.js +21 -0
  45. package/dist/config/compiler/unsubscribeCompilerRules.js +40 -37
  46. package/dist/enums/onboarding.js +7 -2
  47. package/dist/enums/unsubscribe.js +34 -27
  48. package/dist/guido.css +1 -1
  49. package/dist/node_modules/@vueuse/core/index.js +127 -0
  50. package/dist/node_modules/@vueuse/shared/index.js +68 -27
  51. package/dist/node_modules/dompurify/dist/purify.es.js +595 -0
  52. package/dist/node_modules/marked/lib/marked.esm.js +1152 -0
  53. package/dist/services/chatService.js +163 -0
  54. package/dist/services/templateLibraryApi.js +5 -4
  55. package/dist/src/@types/chat.d.ts +138 -0
  56. package/dist/src/@types/config/schemas.d.ts +4 -0
  57. package/dist/src/components/Guido.vue.d.ts +4 -0
  58. package/dist/src/components/organisms/chat/blueprint/BlueprintCard.vue.d.ts +38 -0
  59. package/dist/src/components/organisms/chat/blueprint/EmailTemplateBlueprintCard.vue.d.ts +35 -0
  60. package/dist/src/components/organisms/chat/chatbox/ChatboxContainer.vue.d.ts +4 -0
  61. package/dist/src/components/organisms/chat/chatbox/ChatboxPanel.vue.d.ts +4 -0
  62. package/dist/src/components/organisms/chat/conversation/ChatConversation.vue.d.ts +31 -0
  63. package/dist/src/components/organisms/chat/conversation/ChatWelcome.vue.d.ts +2 -0
  64. package/dist/src/components/organisms/chat/conversation/QuickActionChips.vue.d.ts +30 -0
  65. package/dist/src/components/organisms/chat/input/ChatInput.vue.d.ts +37 -0
  66. package/dist/src/components/organisms/chat/input/GuidoAgentSelector.vue.d.ts +2 -0
  67. package/dist/src/components/organisms/chat/messages/AiMessage.vue.d.ts +33 -0
  68. package/dist/src/components/organisms/chat/messages/AiMessageActions.vue.d.ts +18 -0
  69. package/dist/src/components/organisms/chat/messages/ChatLoading.vue.d.ts +32 -0
  70. package/dist/src/components/organisms/chat/messages/ChatMessages.vue.d.ts +37 -0
  71. package/dist/src/components/organisms/chat/messages/UserMessage.vue.d.ts +35 -0
  72. package/dist/src/composables/useChatState.d.ts +26 -0
  73. package/dist/src/composables/useChatStreaming.d.ts +26 -0
  74. package/dist/src/composables/useConfig.d.ts +2 -0
  75. package/dist/src/composables/useConversationEvents.d.ts +19 -0
  76. package/dist/src/composables/useEmailTemplateApplier.d.ts +21 -0
  77. package/dist/src/composables/useRibbonOffset.d.ts +4 -0
  78. package/dist/src/enums/onboarding.d.ts +6 -0
  79. package/dist/src/enums/unsubscribe.d.ts +5 -0
  80. package/dist/src/services/chatService.d.ts +16 -0
  81. package/dist/src/stores/chat.d.ts +323 -0
  82. package/dist/src/stores/config.d.ts +18 -0
  83. package/dist/src/stores/editor.d.ts +23 -0
  84. package/dist/src/stores/onboarding.d.ts +4 -0
  85. package/dist/src/utils/generateId.d.ts +1 -0
  86. package/dist/src/utils/markdown.d.ts +1 -0
  87. package/dist/static/templates/empty/style.css.js +1 -0
  88. package/dist/stores/chat.js +26 -0
  89. package/dist/stores/editor.js +1 -0
  90. package/dist/stores/onboarding.js +4 -0
  91. package/dist/utils/generateId.js +7 -0
  92. package/dist/utils/markdown.js +21 -0
  93. package/dist/utils/pairProductVariables.js +89 -88
  94. package/package.json +4 -1
@@ -0,0 +1,37 @@
1
+ import type { Message } from '@@/Types/chat';
2
+ type __VLS_Props = {
3
+ messages: Message[];
4
+ autoScroll?: boolean;
5
+ };
6
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
7
+ autoScroll: boolean;
8
+ }>, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
9
+ "copy-message": (id: string) => void;
10
+ retry: (id: string) => void;
11
+ scroll: (payload: {
12
+ isAtBottom: boolean;
13
+ scrollTop: number;
14
+ }) => void;
15
+ }, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
16
+ autoScroll: boolean;
17
+ }>>>, {
18
+ autoScroll: boolean;
19
+ }>;
20
+ export default _default;
21
+ type __VLS_WithDefaults<P, D> = {
22
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
23
+ default: D[K];
24
+ }> : P[K];
25
+ };
26
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
+ type __VLS_TypePropsToOption<T> = {
28
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
29
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
30
+ } : {
31
+ type: import('vue').PropType<T[K]>;
32
+ required: true;
33
+ };
34
+ };
35
+ type __VLS_PrettifyLocal<T> = {
36
+ [K in keyof T]: T[K];
37
+ } & {};
@@ -0,0 +1,35 @@
1
+ type __VLS_Props = {
2
+ content: string;
3
+ timestamp?: number | string | Date;
4
+ showActions?: boolean;
5
+ };
6
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
7
+ timestamp: () => number;
8
+ showActions: boolean;
9
+ }>, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
10
+ copy: () => void;
11
+ }, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
12
+ timestamp: () => number;
13
+ showActions: boolean;
14
+ }>>>, {
15
+ timestamp: number | string | Date;
16
+ showActions: boolean;
17
+ }>;
18
+ export default _default;
19
+ type __VLS_WithDefaults<P, D> = {
20
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
21
+ default: D[K];
22
+ }> : P[K];
23
+ };
24
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
+ type __VLS_TypePropsToOption<T> = {
26
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
27
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
28
+ } : {
29
+ type: import('vue').PropType<T[K]>;
30
+ required: true;
31
+ };
32
+ };
33
+ type __VLS_PrettifyLocal<T> = {
34
+ [K in keyof T]: T[K];
35
+ } & {};
@@ -0,0 +1,26 @@
1
+ import type { Blueprint, Message, ViewMode } from '@@/Types/chat';
2
+ import type { Ref } from 'vue';
3
+ /**
4
+ * Singleton composable. Mutation logic lives here; the Pinia store is synced
5
+ * for cross-feature read access.
6
+ */
7
+ export declare const useChatState: () => {
8
+ messages: Ref<Message[]>;
9
+ conversationId: Ref<string | null>;
10
+ isLoading: Ref<boolean>;
11
+ draft: Ref<string>;
12
+ blueprints: Ref<Blueprint[]>;
13
+ hasMessages: import("vue").ComputedRef<boolean>;
14
+ lastMessage: import("vue").ComputedRef<Message>;
15
+ activeBlueprint: import("vue").ComputedRef<Blueprint>;
16
+ addOrUpdateBlueprint: (blueprint: Blueprint) => void;
17
+ sendMessage: (content: string) => Promise<void>;
18
+ cancelStream: () => void;
19
+ retryLastUserMessage: () => Promise<void>;
20
+ clearConversation: () => void;
21
+ setViewMode: (mode: ViewMode) => void;
22
+ openChat: () => void;
23
+ shrinkChat: () => void;
24
+ closeChat: () => void;
25
+ };
26
+ export declare const resetChatModuleState: () => void;
@@ -0,0 +1,26 @@
1
+ import type { Blueprint, Message, MessageSegment, StreamEvent } from '@@/Types/chat';
2
+ import type { Ref } from 'vue';
3
+ interface StreamHandlerOptions {
4
+ messages: Ref<Message[]>;
5
+ conversationId: Ref<string | null>;
6
+ isLoading: Ref<boolean>;
7
+ assistantMsgId: string;
8
+ addOrUpdateBlueprint?: (blueprint: Blueprint) => void;
9
+ }
10
+ interface StreamHandlerResult {
11
+ handleEvent: (event: StreamEvent) => void;
12
+ segments: MessageSegment[];
13
+ flushText: () => void;
14
+ }
15
+ /**
16
+ * Builds message segments incrementally from NDJSON stream events.
17
+ *
18
+ * `segments` is a plain JS array (not reactive). Mutations are batched through
19
+ * `updateMessage()` which uses Vue 2.7's splice pattern for reactivity.
20
+ *
21
+ * Trimmed port of cortex-fe's createStreamHandler — drops widget rendering,
22
+ * ask_user, action_request, and pending-gates handling that Guido does not
23
+ * surface. Keeps blueprint, text, status, tool, agent_*, done, error, cancelled.
24
+ */
25
+ export declare const createStreamHandler: (options: StreamHandlerOptions) => StreamHandlerResult;
26
+ export {};
@@ -62,6 +62,7 @@ export declare const useConfig: () => {
62
62
  unsubscribe: boolean;
63
63
  modulesDisabled: boolean;
64
64
  liquidSyntax: boolean;
65
+ aiAssistant: boolean;
65
66
  };
66
67
  blocks: {
67
68
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -159,6 +160,7 @@ export declare const useConfig: () => {
159
160
  unsubscribe: boolean;
160
161
  modulesDisabled: boolean;
161
162
  liquidSyntax: boolean;
163
+ aiAssistant: boolean;
162
164
  } | null>;
163
165
  blocks: import("vue").ComputedRef<{
164
166
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Thin wrapper around useChatState that exposes the conversation event
3
+ * handlers consumed by ChatboxPanel. Keeps the panel template free of
4
+ * direct mutation calls.
5
+ *
6
+ * Trimmed port of cortex-fe's useConversationEvents — drops ask-user /
7
+ * action / regenerate handlers that Guido does not surface.
8
+ */
9
+ export declare const useConversationEvents: () => {
10
+ messages: import("vue").Ref<import("../@types/chat").Message[]>;
11
+ isLoading: import("vue").Ref<boolean>;
12
+ hasMessages: import("vue").ComputedRef<boolean>;
13
+ blueprints: import("vue").Ref<import("../@types/chat").Blueprint[]>;
14
+ activeBlueprint: import("vue").ComputedRef<import("../@types/chat").Blueprint>;
15
+ handleSend: (content: string) => void;
16
+ handleStop: () => void;
17
+ handleRetry: () => void;
18
+ handleCopyMessage: (messageId: string) => void;
19
+ };
@@ -0,0 +1,21 @@
1
+ type ApplyStatus = 'pending' | 'applying' | 'applied' | 'failed';
2
+ /**
3
+ * Applies email_template blueprints from the chat agent to the Stripo editor.
4
+ *
5
+ * - blueprint_create + manual Apply click: immediate.
6
+ * - blueprint_update: debounced 250 ms trailing so rapid mid-stream updates
7
+ * don't thrash updateHtmlAndCss.
8
+ */
9
+ export declare const useEmailTemplateApplier: () => {
10
+ applyStatus: import("vue").Ref<Record<string, ApplyStatus>>;
11
+ applyTemplate: (blueprintId: string, data: {
12
+ html?: string;
13
+ css?: string;
14
+ }) => void;
15
+ applyTemplateDebounced: (blueprintId: string, data: {
16
+ html?: string;
17
+ css?: string;
18
+ }) => void;
19
+ };
20
+ export declare const resetEmailTemplateApplier: () => void;
21
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const useRibbonOffset: () => {
2
+ ribbonOffset: import("vue").Ref<number>;
3
+ getTopPosition: (baseTop: number) => string;
4
+ };
@@ -3,3 +3,9 @@ export declare const UI_EDITOR_SELECTOR = "ui-editor";
3
3
  export declare const CARD_COMPOSITION_TAB_SELECTOR = "button[role=\"tab\"][aria-label=\"Card Composition\"]";
4
4
  export declare const SETTINGS_TAB_SELECTOR = "button[role=\"tab\"][aria-label=\"Settings\"]";
5
5
  export declare const RIBBON_SELECTOR = ".in-ribbons-wrapper";
6
+ export declare const DYNAMIC_CONTENT_BUTTON_SELECTOR = "#guido__btn-add-dynamic-content";
7
+ export declare const AMP_TOGGLE_BUTTON_SELECTOR = ".guido__amp-toggle-html";
8
+ export declare const AMP_TOGGLE_WRAPPER_SELECTOR = ".in-segments-wrapper";
9
+ export declare const HEADER_SELECTOR = "[data-testid=\"guido-header\"]";
10
+ export declare const POPOVER_LEFT_OFFSET = 158;
11
+ export declare const POPOVER_TOP_GAP = 10;
@@ -12,6 +12,11 @@ export declare const URLS: {
12
12
  UNSUBSCRIBE_URL: string;
13
13
  PREFERENCES_URL: string;
14
14
  };
15
+ export declare const PRODUCT_TYPE_URL_SEGMENTS: {
16
+ readonly 60: "email";
17
+ readonly 49: "journey";
18
+ readonly 97: "email";
19
+ };
15
20
  export declare const INSIDER_ID = "iid";
16
21
  export declare const DEFAULT_UNSUBSCRIBE_GROUP: {
17
22
  readonly name: "Global Unsubscribe";
@@ -0,0 +1,16 @@
1
+ import type { ChatStreamOptions, VisibleAgent } from '@@/Types/chat';
2
+ declare class ChatService {
3
+ conversationId: string | null;
4
+ selectedAgent: string | null;
5
+ private abortController;
6
+ get activeAgent(): string;
7
+ get defaultAgent(): string;
8
+ clearSelectedAgent(): void;
9
+ fetchVisibleAgents(): Promise<VisibleAgent[]>;
10
+ sendMessageStream(agentName: string, message: string, { conversationId, gate, clientState, onEvent }: ChatStreamOptions): Promise<void>;
11
+ private openStreamWithRetry;
12
+ cancelStream(): boolean;
13
+ newConversation(): void;
14
+ }
15
+ export declare const chatService: ChatService;
16
+ export {};
@@ -0,0 +1,323 @@
1
+ import type { Message, ViewMode } from '@@/Types/chat';
2
+ interface ChatStoreState {
3
+ messages: Message[];
4
+ isLoading: boolean;
5
+ activeConversationId: string | null;
6
+ viewMode: ViewMode;
7
+ draft: string;
8
+ }
9
+ export declare const useChatStore: import("pinia").StoreDefinition<"guidoChat", ChatStoreState, {
10
+ hasMessages: (state: {
11
+ messages: {
12
+ id: string;
13
+ role: "user" | "assistant";
14
+ content: string;
15
+ timestamp: number;
16
+ toolCalls?: {
17
+ id: string;
18
+ toolName: string;
19
+ status: "pending" | "running" | "completed" | "error";
20
+ input?: Record<string, unknown> | undefined;
21
+ output?: unknown;
22
+ }[] | undefined;
23
+ isStreaming?: boolean | undefined;
24
+ segments?: {
25
+ _id: string;
26
+ type: "text" | "tool" | "error" | "blueprint";
27
+ content?: string | undefined;
28
+ toolCallId?: string | undefined;
29
+ name?: string | undefined;
30
+ title?: string | undefined;
31
+ isRunning?: boolean | undefined;
32
+ error?: boolean | undefined;
33
+ startedAt?: number | undefined;
34
+ endedAt?: number | undefined;
35
+ ownerAgentId?: (string | null) | undefined;
36
+ blueprintId?: string | undefined;
37
+ blueprintType?: string | undefined;
38
+ blueprintData?: Record<string, unknown> | undefined;
39
+ version?: number | undefined;
40
+ status?: string | undefined;
41
+ }[] | undefined;
42
+ isError?: boolean | undefined;
43
+ isCancelled?: boolean | undefined;
44
+ traceId?: (string | null) | undefined;
45
+ currentStatus?: string | undefined;
46
+ agentFlow?: {
47
+ id: string;
48
+ name: string;
49
+ success?: boolean | undefined;
50
+ startedAt?: number | undefined;
51
+ endedAt?: number | undefined;
52
+ parentId?: (string | null) | undefined;
53
+ description?: string | undefined;
54
+ }[] | undefined;
55
+ agentName?: string | undefined;
56
+ }[];
57
+ isLoading: boolean;
58
+ activeConversationId: string | null;
59
+ viewMode: ViewMode;
60
+ draft: string;
61
+ } & import("pinia").PiniaCustomStateProperties<ChatStoreState>) => boolean;
62
+ lastMessage: (state: {
63
+ messages: {
64
+ id: string;
65
+ role: "user" | "assistant";
66
+ content: string;
67
+ timestamp: number;
68
+ toolCalls?: {
69
+ id: string;
70
+ toolName: string;
71
+ status: "pending" | "running" | "completed" | "error";
72
+ input?: Record<string, unknown> | undefined;
73
+ output?: unknown;
74
+ }[] | undefined;
75
+ isStreaming?: boolean | undefined;
76
+ segments?: {
77
+ _id: string;
78
+ type: "text" | "tool" | "error" | "blueprint";
79
+ content?: string | undefined;
80
+ toolCallId?: string | undefined;
81
+ name?: string | undefined;
82
+ title?: string | undefined;
83
+ isRunning?: boolean | undefined;
84
+ error?: boolean | undefined;
85
+ startedAt?: number | undefined;
86
+ endedAt?: number | undefined;
87
+ ownerAgentId?: (string | null) | undefined;
88
+ blueprintId?: string | undefined;
89
+ blueprintType?: string | undefined;
90
+ blueprintData?: Record<string, unknown> | undefined;
91
+ version?: number | undefined;
92
+ status?: string | undefined;
93
+ }[] | undefined;
94
+ isError?: boolean | undefined;
95
+ isCancelled?: boolean | undefined;
96
+ traceId?: (string | null) | undefined;
97
+ currentStatus?: string | undefined;
98
+ agentFlow?: {
99
+ id: string;
100
+ name: string;
101
+ success?: boolean | undefined;
102
+ startedAt?: number | undefined;
103
+ endedAt?: number | undefined;
104
+ parentId?: (string | null) | undefined;
105
+ description?: string | undefined;
106
+ }[] | undefined;
107
+ agentName?: string | undefined;
108
+ }[];
109
+ isLoading: boolean;
110
+ activeConversationId: string | null;
111
+ viewMode: ViewMode;
112
+ draft: string;
113
+ } & import("pinia").PiniaCustomStateProperties<ChatStoreState>) => Message | null;
114
+ lastUserMessageId: (state: {
115
+ messages: {
116
+ id: string;
117
+ role: "user" | "assistant";
118
+ content: string;
119
+ timestamp: number;
120
+ toolCalls?: {
121
+ id: string;
122
+ toolName: string;
123
+ status: "pending" | "running" | "completed" | "error";
124
+ input?: Record<string, unknown> | undefined;
125
+ output?: unknown;
126
+ }[] | undefined;
127
+ isStreaming?: boolean | undefined;
128
+ segments?: {
129
+ _id: string;
130
+ type: "text" | "tool" | "error" | "blueprint";
131
+ content?: string | undefined;
132
+ toolCallId?: string | undefined;
133
+ name?: string | undefined;
134
+ title?: string | undefined;
135
+ isRunning?: boolean | undefined;
136
+ error?: boolean | undefined;
137
+ startedAt?: number | undefined;
138
+ endedAt?: number | undefined;
139
+ ownerAgentId?: (string | null) | undefined;
140
+ blueprintId?: string | undefined;
141
+ blueprintType?: string | undefined;
142
+ blueprintData?: Record<string, unknown> | undefined;
143
+ version?: number | undefined;
144
+ status?: string | undefined;
145
+ }[] | undefined;
146
+ isError?: boolean | undefined;
147
+ isCancelled?: boolean | undefined;
148
+ traceId?: (string | null) | undefined;
149
+ currentStatus?: string | undefined;
150
+ agentFlow?: {
151
+ id: string;
152
+ name: string;
153
+ success?: boolean | undefined;
154
+ startedAt?: number | undefined;
155
+ endedAt?: number | undefined;
156
+ parentId?: (string | null) | undefined;
157
+ description?: string | undefined;
158
+ }[] | undefined;
159
+ agentName?: string | undefined;
160
+ }[];
161
+ isLoading: boolean;
162
+ activeConversationId: string | null;
163
+ viewMode: ViewMode;
164
+ draft: string;
165
+ } & import("pinia").PiniaCustomStateProperties<ChatStoreState>) => string | null;
166
+ isStreaming: (state: {
167
+ messages: {
168
+ id: string;
169
+ role: "user" | "assistant";
170
+ content: string;
171
+ timestamp: number;
172
+ toolCalls?: {
173
+ id: string;
174
+ toolName: string;
175
+ status: "pending" | "running" | "completed" | "error";
176
+ input?: Record<string, unknown> | undefined;
177
+ output?: unknown;
178
+ }[] | undefined;
179
+ isStreaming?: boolean | undefined;
180
+ segments?: {
181
+ _id: string;
182
+ type: "text" | "tool" | "error" | "blueprint";
183
+ content?: string | undefined;
184
+ toolCallId?: string | undefined;
185
+ name?: string | undefined;
186
+ title?: string | undefined;
187
+ isRunning?: boolean | undefined;
188
+ error?: boolean | undefined;
189
+ startedAt?: number | undefined;
190
+ endedAt?: number | undefined;
191
+ ownerAgentId?: (string | null) | undefined;
192
+ blueprintId?: string | undefined;
193
+ blueprintType?: string | undefined;
194
+ blueprintData?: Record<string, unknown> | undefined;
195
+ version?: number | undefined;
196
+ status?: string | undefined;
197
+ }[] | undefined;
198
+ isError?: boolean | undefined;
199
+ isCancelled?: boolean | undefined;
200
+ traceId?: (string | null) | undefined;
201
+ currentStatus?: string | undefined;
202
+ agentFlow?: {
203
+ id: string;
204
+ name: string;
205
+ success?: boolean | undefined;
206
+ startedAt?: number | undefined;
207
+ endedAt?: number | undefined;
208
+ parentId?: (string | null) | undefined;
209
+ description?: string | undefined;
210
+ }[] | undefined;
211
+ agentName?: string | undefined;
212
+ }[];
213
+ isLoading: boolean;
214
+ activeConversationId: string | null;
215
+ viewMode: ViewMode;
216
+ draft: string;
217
+ } & import("pinia").PiniaCustomStateProperties<ChatStoreState>) => boolean;
218
+ isShrunk: (state: {
219
+ messages: {
220
+ id: string;
221
+ role: "user" | "assistant";
222
+ content: string;
223
+ timestamp: number;
224
+ toolCalls?: {
225
+ id: string;
226
+ toolName: string;
227
+ status: "pending" | "running" | "completed" | "error";
228
+ input?: Record<string, unknown> | undefined;
229
+ output?: unknown;
230
+ }[] | undefined;
231
+ isStreaming?: boolean | undefined;
232
+ segments?: {
233
+ _id: string;
234
+ type: "text" | "tool" | "error" | "blueprint";
235
+ content?: string | undefined;
236
+ toolCallId?: string | undefined;
237
+ name?: string | undefined;
238
+ title?: string | undefined;
239
+ isRunning?: boolean | undefined;
240
+ error?: boolean | undefined;
241
+ startedAt?: number | undefined;
242
+ endedAt?: number | undefined;
243
+ ownerAgentId?: (string | null) | undefined;
244
+ blueprintId?: string | undefined;
245
+ blueprintType?: string | undefined;
246
+ blueprintData?: Record<string, unknown> | undefined;
247
+ version?: number | undefined;
248
+ status?: string | undefined;
249
+ }[] | undefined;
250
+ isError?: boolean | undefined;
251
+ isCancelled?: boolean | undefined;
252
+ traceId?: (string | null) | undefined;
253
+ currentStatus?: string | undefined;
254
+ agentFlow?: {
255
+ id: string;
256
+ name: string;
257
+ success?: boolean | undefined;
258
+ startedAt?: number | undefined;
259
+ endedAt?: number | undefined;
260
+ parentId?: (string | null) | undefined;
261
+ description?: string | undefined;
262
+ }[] | undefined;
263
+ agentName?: string | undefined;
264
+ }[];
265
+ isLoading: boolean;
266
+ activeConversationId: string | null;
267
+ viewMode: ViewMode;
268
+ draft: string;
269
+ } & import("pinia").PiniaCustomStateProperties<ChatStoreState>) => boolean;
270
+ isClosed: (state: {
271
+ messages: {
272
+ id: string;
273
+ role: "user" | "assistant";
274
+ content: string;
275
+ timestamp: number;
276
+ toolCalls?: {
277
+ id: string;
278
+ toolName: string;
279
+ status: "pending" | "running" | "completed" | "error";
280
+ input?: Record<string, unknown> | undefined;
281
+ output?: unknown;
282
+ }[] | undefined;
283
+ isStreaming?: boolean | undefined;
284
+ segments?: {
285
+ _id: string;
286
+ type: "text" | "tool" | "error" | "blueprint";
287
+ content?: string | undefined;
288
+ toolCallId?: string | undefined;
289
+ name?: string | undefined;
290
+ title?: string | undefined;
291
+ isRunning?: boolean | undefined;
292
+ error?: boolean | undefined;
293
+ startedAt?: number | undefined;
294
+ endedAt?: number | undefined;
295
+ ownerAgentId?: (string | null) | undefined;
296
+ blueprintId?: string | undefined;
297
+ blueprintType?: string | undefined;
298
+ blueprintData?: Record<string, unknown> | undefined;
299
+ version?: number | undefined;
300
+ status?: string | undefined;
301
+ }[] | undefined;
302
+ isError?: boolean | undefined;
303
+ isCancelled?: boolean | undefined;
304
+ traceId?: (string | null) | undefined;
305
+ currentStatus?: string | undefined;
306
+ agentFlow?: {
307
+ id: string;
308
+ name: string;
309
+ success?: boolean | undefined;
310
+ startedAt?: number | undefined;
311
+ endedAt?: number | undefined;
312
+ parentId?: (string | null) | undefined;
313
+ description?: string | undefined;
314
+ }[] | undefined;
315
+ agentName?: string | undefined;
316
+ }[];
317
+ isLoading: boolean;
318
+ activeConversationId: string | null;
319
+ viewMode: ViewMode;
320
+ draft: string;
321
+ } & import("pinia").PiniaCustomStateProperties<ChatStoreState>) => boolean;
322
+ }, {}>;
323
+ export {};