@elevasis/ui 2.51.0 → 2.52.0

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 (55) hide show
  1. package/dist/app/index.d.ts +82 -151
  2. package/dist/app/index.js +6 -5
  3. package/dist/auth/index.js +4 -4
  4. package/dist/charts/index.js +4 -4
  5. package/dist/{chunk-SBNC3FRX.js → chunk-CPIQ5GXG.js} +394 -112
  6. package/dist/{chunk-GUKY77FJ.js → chunk-E6NSKXYN.js} +12 -4
  7. package/dist/{chunk-7FPLLSHN.js → chunk-I3CFGE3N.js} +6 -0
  8. package/dist/chunk-M7WWRZ5Z.js +159 -0
  9. package/dist/components/chat/index.d.ts +9 -1
  10. package/dist/components/chat/index.js +1 -1
  11. package/dist/components/index.d.ts +98 -155
  12. package/dist/components/index.js +4 -4
  13. package/dist/components/navigation/index.js +4 -4
  14. package/dist/execution/index.d.ts +2 -0
  15. package/dist/execution/index.js +1 -1
  16. package/dist/features/auth/index.d.ts +80 -150
  17. package/dist/features/auth/index.js +5 -5
  18. package/dist/features/clients/index.js +4 -4
  19. package/dist/features/crm/index.d.ts +80 -150
  20. package/dist/features/crm/index.js +4 -4
  21. package/dist/features/dashboard/index.js +4 -4
  22. package/dist/features/delivery/index.d.ts +80 -150
  23. package/dist/features/delivery/index.js +4 -4
  24. package/dist/features/knowledge/index.js +4 -4
  25. package/dist/features/lead-gen/index.js +4 -4
  26. package/dist/features/monitoring/index.d.ts +1 -1
  27. package/dist/features/monitoring/index.js +4 -4
  28. package/dist/features/monitoring/requests/index.js +5 -5
  29. package/dist/features/operations/index.js +4 -4
  30. package/dist/features/public-agent-chat/index.d.ts +17 -3
  31. package/dist/features/public-agent-chat/index.js +313 -113
  32. package/dist/features/settings/index.d.ts +80 -150
  33. package/dist/features/settings/index.js +4 -4
  34. package/dist/hooks/access/index.js +4 -4
  35. package/dist/hooks/delivery/index.d.ts +80 -150
  36. package/dist/hooks/delivery/index.js +4 -4
  37. package/dist/hooks/index.d.ts +98 -152
  38. package/dist/hooks/index.js +4 -4
  39. package/dist/hooks/published.d.ts +98 -152
  40. package/dist/hooks/published.js +4 -4
  41. package/dist/index.d.ts +116 -155
  42. package/dist/index.js +4 -4
  43. package/dist/initialization/index.d.ts +80 -150
  44. package/dist/knowledge/index.js +5 -5
  45. package/dist/layout/index.js +4 -4
  46. package/dist/organization/index.js +4 -4
  47. package/dist/profile/index.d.ts +80 -150
  48. package/dist/provider/index.d.ts +80 -150
  49. package/dist/provider/index.js +4 -4
  50. package/dist/provider/published.d.ts +80 -150
  51. package/dist/provider/published.js +4 -4
  52. package/dist/supabase/index.d.ts +159 -292
  53. package/dist/types/index.d.ts +81 -151
  54. package/package.json +3 -3
  55. package/dist/chunk-EJL4U7OZ.js +0 -79
@@ -604,6 +604,7 @@ function ProcessingIndicator() {
604
604
  }
605
605
  );
606
606
  }
607
+ var TEXT_MESSAGE_TYPES = /* @__PURE__ */ new Set(["user_message", "assistant_message"]);
607
608
  function MessageAreaContent({
608
609
  isConnected,
609
610
  isProcessing,
@@ -636,6 +637,8 @@ function ChatInterface({
636
637
  input,
637
638
  onInputChange,
638
639
  onSendMessage,
640
+ className,
641
+ style,
639
642
  isProcessing = false,
640
643
  isConnected = true,
641
644
  error,
@@ -643,23 +646,28 @@ function ChatInterface({
643
646
  emptyStateText = "No messages yet",
644
647
  emptyStateSubtext = "Send a message to start the conversation",
645
648
  placeholder = "Message the agent...",
646
- messageAreaVariant = "grid"
649
+ messageAreaVariant = "grid",
650
+ showAgentActivity = true
647
651
  }) {
648
652
  const scrollRef = useRef(null);
649
653
  const scrollContainerRef = useRef(null);
654
+ const visibleMessages = useMemo(
655
+ () => showAgentActivity ? messages : messages.filter((message) => TEXT_MESSAGE_TYPES.has(message.messageType)),
656
+ [messages, showAgentActivity]
657
+ );
650
658
  useEffect(() => {
651
659
  if (scrollContainerRef.current) {
652
660
  scrollContainerRef.current.scrollTop = scrollContainerRef.current.scrollHeight;
653
661
  }
654
- }, [messages.length, isConnected, isProcessing]);
655
- return /* @__PURE__ */ jsxs(Stack, { gap: 0, style: { height: "100%", overflow: "hidden" }, children: [
662
+ }, [visibleMessages.length, isConnected, isProcessing]);
663
+ return /* @__PURE__ */ jsxs(Stack, { className, gap: 0, style: { height: "100%", overflow: "hidden", ...style }, children: [
656
664
  /* @__PURE__ */ jsx(ScrollableContainer, { containerRef: scrollContainerRef, variant: messageAreaVariant, children: /* @__PURE__ */ jsx(
657
665
  MessageAreaContent,
658
666
  {
659
667
  isConnected,
660
668
  isProcessing,
661
669
  error,
662
- messages,
670
+ messages: visibleMessages,
663
671
  emptyStateText,
664
672
  emptyStateSubtext,
665
673
  scrollRef
@@ -656,6 +656,10 @@ function useReactFlowAgent(iterationData, _resourceDefinition, selectedIteration
656
656
  const iteration = iterationData.iterations[i];
657
657
  const isSelected = selectedIterationId === iteration.iterationNumber;
658
658
  const isCurrentIteration = iterationData.currentIteration === iteration.iterationNumber;
659
+ const toolCallActivities = iteration.subActivities.filter((activity) => activity.type === "tool-call");
660
+ const failedToolCallCount = toolCallActivities.filter(
661
+ (activity) => "success" in activity.details && activity.details.success === false
662
+ ).length;
659
663
  nodes.push({
660
664
  id: `iteration-${iteration.iterationNumber}`,
661
665
  type: "agentIteration",
@@ -666,6 +670,8 @@ function useReactFlowAgent(iterationData, _resourceDefinition, selectedIteration
666
670
  status: iteration.status,
667
671
  reasoningCount: iteration.iterationEvents.filter((e) => e.eventType === "reasoning").length,
668
672
  actionCount: iteration.iterationEvents.filter((e) => e.eventType === "action").length,
673
+ toolCallCount: toolCallActivities.length,
674
+ failedToolCallCount,
669
675
  duration: iteration.duration,
670
676
  isLive: isLive && isCurrentIteration
671
677
  },
@@ -0,0 +1,159 @@
1
+ import { UuidSchema } from './chunk-TVTSASST.js';
2
+ import { z } from 'zod';
3
+
4
+ // src/hooks/sessions/mergeSessionMessages.ts
5
+ function canonicalize(value) {
6
+ if (Array.isArray(value)) {
7
+ return value.map(canonicalize);
8
+ }
9
+ if (value && typeof value === "object") {
10
+ const source = value;
11
+ return Object.keys(source).sort().reduce((acc, key) => {
12
+ acc[key] = canonicalize(source[key]);
13
+ return acc;
14
+ }, {});
15
+ }
16
+ return value;
17
+ }
18
+ function stableStringify(value) {
19
+ return JSON.stringify(canonicalize(value));
20
+ }
21
+ function mergeSessionMessages(historyMessages, liveMessages) {
22
+ const messageMap = /* @__PURE__ */ new Map();
23
+ for (const message of historyMessages) {
24
+ messageMap.set(message.id, message);
25
+ }
26
+ for (const message of liveMessages) {
27
+ if (!message.id.startsWith("temp-")) {
28
+ messageMap.set(message.id, message);
29
+ continue;
30
+ }
31
+ const alreadyPersisted = Array.from(messageMap.values()).some((existing) => {
32
+ if (existing.role !== message.role) return false;
33
+ if (existing.messageType !== message.messageType) return false;
34
+ if (message.metadata && existing.metadata) {
35
+ return stableStringify(existing.metadata) === stableStringify(message.metadata);
36
+ }
37
+ return existing.text === message.text;
38
+ });
39
+ if (!alreadyPersisted) {
40
+ messageMap.set(message.id, message);
41
+ }
42
+ }
43
+ return Array.from(messageMap.values()).sort((a, b) => {
44
+ if (a.turnNumber !== b.turnNumber) return a.turnNumber - b.turnNumber;
45
+ return (a.messageIndex ?? 0) - (b.messageIndex ?? 0);
46
+ });
47
+ }
48
+ var SessionIdParamSchema = z.object({
49
+ sessionId: UuidSchema
50
+ }).strict();
51
+ var ExecutionIdParamsSchema = z.object({
52
+ sessionId: UuidSchema,
53
+ executionId: UuidSchema
54
+ }).strict();
55
+ var CreateSessionSchema = z.object({
56
+ resourceId: z.string().min(1).max(100),
57
+ userId: UuidSchema.optional(),
58
+ metadata: z.any().optional()
59
+ }).strict();
60
+ z.object({
61
+ input: z.unknown().refine(
62
+ (val) => {
63
+ let text;
64
+ if (typeof val === "string") {
65
+ text = val;
66
+ } else if (val && typeof val === "object" && "message" in val) {
67
+ text = String(val.message);
68
+ } else {
69
+ text = JSON.stringify(val);
70
+ }
71
+ return text.length > 0 && text.length <= 1e5;
72
+ },
73
+ { message: "Input must be between 1 and 100,000 characters" }
74
+ ),
75
+ metadata: z.any().optional()
76
+ }).strict();
77
+ z.object({
78
+ userId: UuidSchema.optional(),
79
+ resourceId: z.string().optional(),
80
+ limit: z.coerce.number().int().min(1).max(100).default(20)
81
+ }).strict();
82
+ z.object({
83
+ limit: z.coerce.number().int().min(1).max(100).default(100),
84
+ cursor: z.coerce.number().int().min(0).optional()
85
+ }).strict();
86
+ var WebSocketSessionTurnSchema = z.object({
87
+ type: z.literal("session:turn"),
88
+ input: z.unknown().refine(
89
+ (val) => {
90
+ let text;
91
+ if (typeof val === "string") {
92
+ text = val;
93
+ } else if (val && typeof val === "object" && "message" in val) {
94
+ text = String(val.message);
95
+ } else {
96
+ text = JSON.stringify(val) || "";
97
+ }
98
+ return text && text.length > 0 && text.length <= 1e5;
99
+ },
100
+ { message: "Input must be between 1 and 100,000 characters" }
101
+ )
102
+ }).strict();
103
+ var NotificationCategorySchema = z.enum(["info", "queue", "alert", "error", "system"]);
104
+ var GetNotificationsQuerySchema = z.object({
105
+ limit: z.coerce.number().int().min(1).max(100).default(50),
106
+ offset: z.coerce.number().int().min(0).default(0)
107
+ });
108
+ var MarkAsReadParamsSchema = z.object({
109
+ id: UuidSchema
110
+ });
111
+ z.object({
112
+ userId: UuidSchema,
113
+ organizationId: UuidSchema,
114
+ category: NotificationCategorySchema,
115
+ title: z.string().trim().min(1).max(200),
116
+ message: z.string().trim().min(1).max(1e3),
117
+ actionUrl: z.string().url().optional()
118
+ }).strict();
119
+ z.object({
120
+ ids: z.array(UuidSchema).min(1).max(500)
121
+ }).strict();
122
+
123
+ // src/hooks/sessions/sessionWebSocketUtils.ts
124
+ var liveTempMessageCounter = 0;
125
+ function createLiveTempMessageIdentity() {
126
+ liveTempMessageCounter += 1;
127
+ return {
128
+ id: `temp-${liveTempMessageCounter}`,
129
+ messageIndex: liveTempMessageCounter,
130
+ createdAt: /* @__PURE__ */ new Date()
131
+ };
132
+ }
133
+ function formatMessageEvent(event) {
134
+ switch (event.type) {
135
+ case "user_message":
136
+ return event.text;
137
+ case "assistant_message":
138
+ return event.text;
139
+ case "agent:started":
140
+ return "Agent started reasoning";
141
+ case "agent:reasoning":
142
+ return `Reasoning (Iteration ${event.iteration})`;
143
+ case "agent:tool_call":
144
+ return `Tool: ${event.toolName}`;
145
+ case "agent:tool_result":
146
+ return event.success ? "Tool Result" : "Tool Result (Failed)";
147
+ case "agent:completed":
148
+ return "Agent completed";
149
+ case "agent:error":
150
+ return `Agent error: ${event.error}`;
151
+ }
152
+ }
153
+ function getWebSocketBaseUrl(apiUrl) {
154
+ const url = new URL(apiUrl);
155
+ const protocol = url.protocol === "https:" ? "wss:" : "ws:";
156
+ return `${protocol}//${url.host}`;
157
+ }
158
+
159
+ export { CreateSessionSchema, ExecutionIdParamsSchema, GetNotificationsQuerySchema, MarkAsReadParamsSchema, SessionIdParamSchema, WebSocketSessionTurnSchema, createLiveTempMessageIdentity, formatMessageEvent, getWebSocketBaseUrl, mergeSessionMessages };
@@ -166,6 +166,8 @@ interface ChatInterfaceProps {
166
166
  input: string;
167
167
  onInputChange: (value: string) => void;
168
168
  onSendMessage: () => void;
169
+ className?: string;
170
+ style?: React.CSSProperties;
169
171
  isProcessing?: boolean;
170
172
  isConnected?: boolean;
171
173
  error?: string | null;
@@ -174,13 +176,19 @@ interface ChatInterfaceProps {
174
176
  emptyStateSubtext?: string;
175
177
  placeholder?: string;
176
178
  messageAreaVariant?: 'grid' | 'plain';
179
+ /**
180
+ * When false, only user/assistant text messages render — agent-activity
181
+ * bubbles (reasoning, tool calls/results, errors) are filtered out. Defaults
182
+ * to true so studio/session surfaces keep showing full activity.
183
+ */
184
+ showAgentActivity?: boolean;
177
185
  }
178
186
  /**
179
187
  * Shared chat interface component
180
188
  * Used across ai studio sessions and production agent chat
181
189
  * Handles message display, auto-scroll, and input area
182
190
  */
183
- declare function ChatInterface({ messages, input, onInputChange, onSendMessage, isProcessing, isConnected, error, onClearError, emptyStateText, emptyStateSubtext, placeholder, messageAreaVariant }: ChatInterfaceProps): react_jsx_runtime.JSX.Element;
191
+ declare function ChatInterface({ messages, input, onInputChange, onSendMessage, className, style, isProcessing, isConnected, error, onClearError, emptyStateText, emptyStateSubtext, placeholder, messageAreaVariant, showAgentActivity }: ChatInterfaceProps): react_jsx_runtime.JSX.Element;
184
192
 
185
193
  interface MessageBubbleProps {
186
194
  message: ChatMessage;
@@ -1,2 +1,2 @@
1
- export { ChatHeader, ChatInputArea, ChatInterface, ChatSidebar, MessageBubble, ProcessingIndicator } from '../../chunk-GUKY77FJ.js';
1
+ export { ChatHeader, ChatInputArea, ChatInterface, ChatSidebar, MessageBubble, ProcessingIndicator } from '../../chunk-E6NSKXYN.js';
2
2
  import '../../chunk-I2KLQ2HA.js';
@@ -451,9 +451,6 @@ type Json = string | number | boolean | null | {
451
451
  [key: string]: Json | undefined;
452
452
  } | Json[];
453
453
  type Database = {
454
- __InternalSupabase: {
455
- PostgrestVersion: "12.2.3 (519615d)";
456
- };
457
454
  public: {
458
455
  Tables: {
459
456
  acq_artifacts: {
@@ -1653,6 +1650,74 @@ type Database = {
1653
1650
  }
1654
1651
  ];
1655
1652
  };
1653
+ agent_access_grants: {
1654
+ Row: {
1655
+ allowed_origins: string[];
1656
+ branding: Json;
1657
+ capture_fields: Json;
1658
+ code_hash: string | null;
1659
+ code_salt: string | null;
1660
+ created_at: string;
1661
+ disabled_at: string | null;
1662
+ expires_at: string | null;
1663
+ id: string;
1664
+ max_sessions_per_visitor: number;
1665
+ max_turns_per_session: number;
1666
+ mode: string;
1667
+ organization_id: string;
1668
+ resource_id: string;
1669
+ slug: string;
1670
+ tool_policy: Json;
1671
+ updated_at: string;
1672
+ };
1673
+ Insert: {
1674
+ allowed_origins?: string[];
1675
+ branding?: Json;
1676
+ capture_fields?: Json;
1677
+ code_hash?: string | null;
1678
+ code_salt?: string | null;
1679
+ created_at?: string;
1680
+ disabled_at?: string | null;
1681
+ expires_at?: string | null;
1682
+ id?: string;
1683
+ max_sessions_per_visitor?: number;
1684
+ max_turns_per_session?: number;
1685
+ mode?: string;
1686
+ organization_id: string;
1687
+ resource_id: string;
1688
+ slug: string;
1689
+ tool_policy?: Json;
1690
+ updated_at?: string;
1691
+ };
1692
+ Update: {
1693
+ allowed_origins?: string[];
1694
+ branding?: Json;
1695
+ capture_fields?: Json;
1696
+ code_hash?: string | null;
1697
+ code_salt?: string | null;
1698
+ created_at?: string;
1699
+ disabled_at?: string | null;
1700
+ expires_at?: string | null;
1701
+ id?: string;
1702
+ max_sessions_per_visitor?: number;
1703
+ max_turns_per_session?: number;
1704
+ mode?: string;
1705
+ organization_id?: string;
1706
+ resource_id?: string;
1707
+ slug?: string;
1708
+ tool_policy?: Json;
1709
+ updated_at?: string;
1710
+ };
1711
+ Relationships: [
1712
+ {
1713
+ foreignKeyName: "agent_access_grants_organization_id_fkey";
1714
+ columns: ["organization_id"];
1715
+ isOneToOne: false;
1716
+ referencedRelation: "organizations";
1717
+ referencedColumns: ["id"];
1718
+ }
1719
+ ];
1720
+ };
1656
1721
  api_keys: {
1657
1722
  Row: {
1658
1723
  created_at: string | null;
@@ -2560,138 +2625,6 @@ type Database = {
2560
2625
  };
2561
2626
  Relationships: [];
2562
2627
  };
2563
- agent_access_grants: {
2564
- Row: {
2565
- allowed_origins: string[];
2566
- branding: Json;
2567
- capture_fields: Json;
2568
- code_hash: string | null;
2569
- code_salt: string | null;
2570
- created_at: string;
2571
- disabled_at: string | null;
2572
- expires_at: string | null;
2573
- id: string;
2574
- max_sessions_per_visitor: number;
2575
- max_turns_per_session: number;
2576
- mode: string;
2577
- organization_id: string;
2578
- resource_id: string;
2579
- slug: string;
2580
- tool_policy: Json;
2581
- updated_at: string;
2582
- };
2583
- Insert: {
2584
- allowed_origins?: string[];
2585
- branding?: Json;
2586
- capture_fields?: Json;
2587
- code_hash?: string | null;
2588
- code_salt?: string | null;
2589
- created_at?: string;
2590
- disabled_at?: string | null;
2591
- expires_at?: string | null;
2592
- id?: string;
2593
- max_sessions_per_visitor?: number;
2594
- max_turns_per_session?: number;
2595
- mode?: string;
2596
- organization_id: string;
2597
- resource_id: string;
2598
- slug: string;
2599
- tool_policy?: Json;
2600
- updated_at?: string;
2601
- };
2602
- Update: {
2603
- allowed_origins?: string[];
2604
- branding?: Json;
2605
- capture_fields?: Json;
2606
- code_hash?: string | null;
2607
- code_salt?: string | null;
2608
- created_at?: string;
2609
- disabled_at?: string | null;
2610
- expires_at?: string | null;
2611
- id?: string;
2612
- max_sessions_per_visitor?: number;
2613
- max_turns_per_session?: number;
2614
- mode?: string;
2615
- organization_id?: string;
2616
- resource_id?: string;
2617
- slug?: string;
2618
- tool_policy?: Json;
2619
- updated_at?: string;
2620
- };
2621
- Relationships: [
2622
- {
2623
- foreignKeyName: "agent_access_grants_organization_id_fkey";
2624
- columns: ["organization_id"];
2625
- isOneToOne: false;
2626
- referencedRelation: "organizations";
2627
- referencedColumns: ["id"];
2628
- }
2629
- ];
2630
- };
2631
- agent_chat_capabilities: {
2632
- Row: {
2633
- created_at: string;
2634
- expires_at: string;
2635
- grant_id: string;
2636
- id: string;
2637
- organization_id: string;
2638
- origin: string | null;
2639
- resource_id: string;
2640
- revoked_at: string | null;
2641
- session_id: string | null;
2642
- token_hash: string;
2643
- visitor_id: string | null;
2644
- };
2645
- Insert: {
2646
- created_at?: string;
2647
- expires_at: string;
2648
- grant_id: string;
2649
- id?: string;
2650
- organization_id: string;
2651
- origin?: string | null;
2652
- resource_id: string;
2653
- revoked_at?: string | null;
2654
- session_id?: string | null;
2655
- token_hash: string;
2656
- visitor_id?: string | null;
2657
- };
2658
- Update: {
2659
- created_at?: string;
2660
- expires_at?: string;
2661
- grant_id?: string;
2662
- id?: string;
2663
- organization_id?: string;
2664
- origin?: string | null;
2665
- resource_id?: string;
2666
- revoked_at?: string | null;
2667
- session_id?: string | null;
2668
- token_hash?: string;
2669
- visitor_id?: string | null;
2670
- };
2671
- Relationships: [
2672
- {
2673
- foreignKeyName: "agent_chat_capabilities_grant_id_fkey";
2674
- columns: ["grant_id"];
2675
- isOneToOne: false;
2676
- referencedRelation: "agent_access_grants";
2677
- referencedColumns: ["id"];
2678
- },
2679
- {
2680
- foreignKeyName: "agent_chat_capabilities_organization_id_fkey";
2681
- columns: ["organization_id"];
2682
- isOneToOne: false;
2683
- referencedRelation: "organizations";
2684
- referencedColumns: ["id"];
2685
- },
2686
- {
2687
- foreignKeyName: "agent_chat_capabilities_session_id_fkey";
2688
- columns: ["session_id"];
2689
- isOneToOne: false;
2690
- referencedRelation: "sessions";
2691
- referencedColumns: ["session_id"];
2692
- }
2693
- ];
2694
- };
2695
2628
  organizations: {
2696
2629
  Row: {
2697
2630
  config: Json;
@@ -3590,11 +3523,11 @@ type Database = {
3590
3523
  Returns: undefined;
3591
3524
  };
3592
3525
  auth_jwt_claims: {
3593
- Args: never;
3526
+ Args: Record<PropertyKey, never>;
3594
3527
  Returns: Json;
3595
3528
  };
3596
3529
  auth_uid_safe: {
3597
- Args: never;
3530
+ Args: Record<PropertyKey, never>;
3598
3531
  Returns: string;
3599
3532
  };
3600
3533
  can_assign_role_in_org: {
@@ -3605,7 +3538,7 @@ type Database = {
3605
3538
  Returns: boolean;
3606
3539
  };
3607
3540
  current_user_is_platform_admin: {
3608
- Args: never;
3541
+ Args: Record<PropertyKey, never>;
3609
3542
  Returns: boolean;
3610
3543
  };
3611
3544
  current_user_shares_org_with: {
@@ -3615,11 +3548,11 @@ type Database = {
3615
3548
  Returns: boolean;
3616
3549
  };
3617
3550
  current_user_supabase_id: {
3618
- Args: never;
3551
+ Args: Record<PropertyKey, never>;
3619
3552
  Returns: string;
3620
3553
  };
3621
3554
  detect_stalled_executions: {
3622
- Args: never;
3555
+ Args: Record<PropertyKey, never>;
3623
3556
  Returns: undefined;
3624
3557
  };
3625
3558
  execute_session_turn: {
@@ -3640,7 +3573,7 @@ type Database = {
3640
3573
  }[];
3641
3574
  };
3642
3575
  get_platform_credential_kek: {
3643
- Args: never;
3576
+ Args: Record<PropertyKey, never>;
3644
3577
  Returns: string;
3645
3578
  };
3646
3579
  get_storage_org_id: {
@@ -3650,7 +3583,7 @@ type Database = {
3650
3583
  Returns: string;
3651
3584
  };
3652
3585
  get_workos_user_id: {
3653
- Args: never;
3586
+ Args: Record<PropertyKey, never>;
3654
3587
  Returns: string;
3655
3588
  };
3656
3589
  has_org_access: {
@@ -3658,10 +3591,7 @@ type Database = {
3658
3591
  action?: string;
3659
3592
  org_id: string;
3660
3593
  system_path: string;
3661
- };
3662
- Returns: boolean;
3663
- } | {
3664
- Args: {
3594
+ } | {
3665
3595
  action?: string;
3666
3596
  system_path: string;
3667
3597
  };
@@ -3697,15 +3627,15 @@ type Database = {
3697
3627
  Returns: Json;
3698
3628
  };
3699
3629
  process_due_schedules: {
3700
- Args: never;
3630
+ Args: Record<PropertyKey, never>;
3701
3631
  Returns: Json;
3702
3632
  };
3703
3633
  recompute_all_memberships: {
3704
- Args: never;
3634
+ Args: Record<PropertyKey, never>;
3705
3635
  Returns: undefined;
3706
3636
  };
3707
3637
  repair_membership_role_assignments: {
3708
- Args: never;
3638
+ Args: Record<PropertyKey, never>;
3709
3639
  Returns: {
3710
3640
  membership_id: string;
3711
3641
  organization_id: string;
@@ -3735,7 +3665,7 @@ type Database = {
3735
3665
  Returns: string;
3736
3666
  };
3737
3667
  upsert_user_profile: {
3738
- Args: never;
3668
+ Args: Record<PropertyKey, never>;
3739
3669
  Returns: {
3740
3670
  profile_display_name: string;
3741
3671
  profile_email: string;
@@ -4730,7 +4660,7 @@ interface APIExecutionDetail extends APIExecutionSummary {
4730
4660
  */
4731
4661
  type NodeColorType = 'violet' | 'blue' | 'orange' | 'teal' | 'gray' | 'yellow';
4732
4662
 
4733
- type ActivityType = 'workflow_execution' | 'agent_run' | 'hitl_action' | 'webhook_received' | 'webhook_executed' | 'webhook_failed' | 'credential_change' | 'credential_read' | 'api_key_change' | 'deployment_change' | 'membership_change';
4663
+ type ActivityType = 'workflow_execution' | 'agent_run' | 'hitl_action' | 'webhook_received' | 'webhook_executed' | 'webhook_failed' | 'credential_change' | 'credential_read' | 'api_key_change' | 'agent_access_grant_change' | 'deployment_change' | 'membership_change';
4734
4664
  type ActivityStatus = 'success' | 'failure' | 'pending' | 'approved' | 'rejected' | 'completed';
4735
4665
  interface Activity {
4736
4666
  id: string;
@@ -6015,12 +5945,13 @@ declare function WorkflowExecutionTimeline({ timelineData, selectedStepId }: Wor
6015
5945
  interface AgentExecutionVisualizerProps {
6016
5946
  resourceDefinition: SerializedAgentDefinition;
6017
5947
  iterationData: AgentIterationData | null;
5948
+ execution?: APIExecutionDetail;
6018
5949
  selectedExecutionId?: string;
6019
5950
  liveExecutions: Set<string>;
6020
5951
  selectedIterationId: number | 'initialization' | 'completion' | null;
6021
5952
  onIterationSelect: (iterationId: number | 'initialization' | 'completion' | null) => void;
6022
5953
  }
6023
- declare function AgentExecutionVisualizer({ resourceDefinition, iterationData, selectedExecutionId, liveExecutions, selectedIterationId, onIterationSelect }: AgentExecutionVisualizerProps): react_jsx_runtime.JSX.Element;
5954
+ declare function AgentExecutionVisualizer({ resourceDefinition, iterationData, execution, selectedExecutionId, liveExecutions, selectedIterationId, onIterationSelect }: AgentExecutionVisualizerProps): react_jsx_runtime.JSX.Element;
6024
5955
 
6025
5956
  interface AgentExecutionTimelineProps {
6026
5957
  iterationData: AgentIterationData;
@@ -6034,6 +5965,17 @@ interface AgentExecutionTimelineProps {
6034
5965
  */
6035
5966
  declare function AgentExecutionTimeline({ iterationData, selectedIterationId }: AgentExecutionTimelineProps): react_jsx_runtime.JSX.Element;
6036
5967
 
5968
+ interface AgentIterationTotals {
5969
+ totalToolCalls: number;
5970
+ toolErrorCount: number;
5971
+ totalDuration?: number;
5972
+ }
5973
+ interface AgentIterationDetailPanelProps {
5974
+ iteration: AgentIteration | null;
5975
+ totals: AgentIterationTotals;
5976
+ }
5977
+ declare function AgentIterationDetailPanel({ iteration, totals }: AgentIterationDetailPanelProps): react_jsx_runtime.JSX.Element;
5978
+
6037
5979
  declare const AgentIterationNode: React$1.NamedExoticComponent<NodeProps>;
6038
5980
 
6039
5981
  declare const AgentIterationEdge: React$1.NamedExoticComponent<EdgeProps>;
@@ -6518,8 +6460,9 @@ interface ResourceHeaderProps {
6518
6460
  onRun?: () => void;
6519
6461
  onNavigateToResources?: () => void;
6520
6462
  onNavigateToSessions?: () => void;
6463
+ publicAccessControl?: ReactNode;
6521
6464
  }
6522
- declare function ResourceHeader({ resource, type, connected, runningCount, sessionCapable, organizationName: organizationNameProp, onRun, onNavigateToResources, onNavigateToSessions }: ResourceHeaderProps): react_jsx_runtime.JSX.Element;
6465
+ declare function ResourceHeader({ resource, type, connected, runningCount, sessionCapable, organizationName: organizationNameProp, onRun, onNavigateToResources, onNavigateToSessions, publicAccessControl }: ResourceHeaderProps): react_jsx_runtime.JSX.Element;
6523
6466
 
6524
6467
  interface ResourceErrorStateProps {
6525
6468
  error: Error;
@@ -7288,5 +7231,5 @@ declare const OperationsSidebarMiddle: () => react_jsx_runtime.JSX.Element;
7288
7231
 
7289
7232
  declare const operationsManifest: SystemModule;
7290
7233
 
7291
- export { APIErrorAlert, AbsoluteScheduleForm, ActionModal, ActivityCard, ActivityFeedWidget, ActivityFilters as ActivityFiltersBar, ActivityTable, ActivityTimeline, AgentDefinitionDisplay, AgentExecutionLogs, AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationEdge, AgentIterationNode, AllTasksPage, ApiKeyDisplayModal, ApiKeyList, ApiKeySettings, AppErrorBoundary, BaseEdge, BaseExecutionLogs, BaseExecutionLogsHeader, BaseExecutionLogsStates, BaseNode, Breadcrumbs, BusinessImpactCard, CONTAINER_CONSTANTS, CardHeader, CenteredErrorState, CheckpointGroup, CollapsibleJsonSection, CollapsibleSection, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, CommandQueueTaskRow, CompanyDetailPage, ConfigCard, ConfirmationInputModal, ConfirmationModal, ContactDetailPage, ContentSections, ContextUsageBadge, ContextViewer, ContractDisplay, CostBreakdownCard, CostByModelTable, CostMetricsCard, CrashErrorFallback, CreateApiKeyModal, CreateCredentialModal, CreateRoleModal, CreateScheduleModal, CredentialList, CredentialSettings, CrmOverview, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, CustomModal, CustomSelector, DEAL_STAGES, DEFAULT_KANBAN_CONFIG, DealDetailPage, DealKanbanCard, DealsListPage, DeleteScheduleModal, DeploymentDetailModal, DeploymentList, DeploymentSettings, DeploymentStatusBadge, DetailCardSkeleton, EditApiKeyModal, ElevasisLoader, EmptyState, EmptyVisualizer, ErrorAnalysisCard, ErrorBreakdownTable, ErrorReportCard, ExecutionBreakdownTable, ExecutionErrorSection, ExecutionHealthCard, ExecutionLogsFilters as ExecutionLogsFilterBar, ExecutionLogsTable, ExecutionStats, ExecutionStatusBadge, FeatureUnavailableState, FilterBar, GlowDot, GraphBackground, GraphContainer, GraphFitViewButton, GraphFitViewHandler, GraphLegend, HealthStatusCard, JsonViewer, KanbanBoard, LEAD_GEN_ROUTE_LINKS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarMiddle, LeadGenSidebarTop, ListSkeleton, LogEntry, LogGroup, MdxRenderer, MembershipStatusBadge, MetricsStrip, MilestoneTimeline, MyTasksPanel, NavigationButton, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, NoAccessState, NotificationBell, NotificationItem, NotificationList, NotificationPanel, OAuthConnectModal, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationMembershipsList, PIPELINE_FUNNEL_ORDER, PageNotFound, PageTitleCaption, PermissionMatrix, PipelineFunnelWidget, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, QuickCreateActions, RecurringScheduleForm, RelativeScheduleForm, ResourceCard, ResourceDefinitionSection, ResourceErrorState, ResourceFilter, ResourceHeader, ResourceHealthChart, ResourceHealthPanel, ResourceNotFoundState, RichTextEditor, RoleBadge, RunResourceButton, SAVED_VIEW_PRESETS, SEOSidebar, SEOSidebarMiddle, SEOSidebarTop, SHARED_VIZ_CONSTANTS, SavedViewsPanel, ScheduleCard, ScheduleDetailModal, ScheduleTypeSelector, SessionMemory, SortableHeader, StatCard, StatCardSkeleton, StatsCardSkeleton, StatusBadge, StepConfigForm, StyledMarkdown, TabCountBadge, TabSection, TableSelectionToolbar, TaskCard, TaskScheduler, TimeRangeSelector, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, ToolsListDisplay, TrendIndicator, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, UpcomingMilestonesPage, VisualizerContainer, WebhookUrlDisplayModal, WorkflowDefinitionDisplay, WorkflowExecutionLogs, WorkflowExecutionTimeline, ZodFormRenderer, buildErrorReport, calculateProgress, crmManifest, deliveryManifest, formatStatusLabel, getEnrichmentColor, getExecutionStatusConfig, getGraphBackgroundStyles, getHealthColor, getIcon, getLogLevelConfig, getStatusColor, iconMap, leadGenManifest, mdxComponents, milestoneStatusColors, monitoringManifest, noteTypeColors, operationsManifest, projectStatusColors, seoManifest, settingsManifest, showApiErrorNotification, showAuthError, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification, taskStatusColors, taskTypeColors, useCrmPipelineSummary, useCrmQuickMetrics, useDeleteLists, useGraphBackgroundStyles, useGraphTheme, useNewKnowledgeMapLayout, useRecentCrmActivity };
7292
- export type { ActivityEntry, ActivityFiltersProps, ActivityTableProps, AppErrorBoundaryProps, BaseEdgeProps, BaseExecutionLogsProps, BreadcrumbsProps, CompanyDetailPageProps, ContactDetailPageProps, ContextViewerProps, CostByModelTableProps, CrashErrorFallbackProps, CreateRoleModalProps, CrmOverviewProps, DealKanbanCardProps, ErrorAnalysisCardProps, ErrorReportCardProps, ExecutionBreakdownTableProps, ExecutionHealthCardProps, ExecutionLogEntry, ExecutionLogsFiltersProps, ExecutionLogsTableProps, FeatureUnavailableStateProps, FieldPath, FitViewButtonVariant, GraphFitViewHandlerProps, JsonViewerProps, KanbanBoardProps, KnowledgeMapEdgeData, KnowledgeMapNodeData, LogLevel, MdxRendererProps, NavigationButtonProps, PermissionRow, ProjectsSidebarMiddleProps, ResourceHealthPanelProps, RichTextEditorProps, RunResourceButtonProps, RunResourceInputResolver, SavedViewPreset, ScheduleType, SerializedKnowledgeMap, SerializedKnowledgeNode, StatCardProps, StepConfigComponent, StepConfigFieldHint, StepConfigFormProps, StepConfigLayout, StepConfigSection, StyledMarkdownProps, TabSectionProps, TaskFilterStatus, TrendIndicatorProps, ZodFormRendererProps };
7234
+ export { APIErrorAlert, AbsoluteScheduleForm, ActionModal, ActivityCard, ActivityFeedWidget, ActivityFilters as ActivityFiltersBar, ActivityTable, ActivityTimeline, AgentDefinitionDisplay, AgentExecutionLogs, AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationDetailPanel, AgentIterationEdge, AgentIterationNode, AllTasksPage, ApiKeyDisplayModal, ApiKeyList, ApiKeySettings, AppErrorBoundary, BaseEdge, BaseExecutionLogs, BaseExecutionLogsHeader, BaseExecutionLogsStates, BaseNode, Breadcrumbs, BusinessImpactCard, CONTAINER_CONSTANTS, CardHeader, CenteredErrorState, CheckpointGroup, CollapsibleJsonSection, CollapsibleSection, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, CommandQueueTaskRow, CompanyDetailPage, ConfigCard, ConfirmationInputModal, ConfirmationModal, ContactDetailPage, ContentSections, ContextUsageBadge, ContextViewer, ContractDisplay, CostBreakdownCard, CostByModelTable, CostMetricsCard, CrashErrorFallback, CreateApiKeyModal, CreateCredentialModal, CreateRoleModal, CreateScheduleModal, CredentialList, CredentialSettings, CrmOverview, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, CustomModal, CustomSelector, DEAL_STAGES, DEFAULT_KANBAN_CONFIG, DealDetailPage, DealKanbanCard, DealsListPage, DeleteScheduleModal, DeploymentDetailModal, DeploymentList, DeploymentSettings, DeploymentStatusBadge, DetailCardSkeleton, EditApiKeyModal, ElevasisLoader, EmptyState, EmptyVisualizer, ErrorAnalysisCard, ErrorBreakdownTable, ErrorReportCard, ExecutionBreakdownTable, ExecutionErrorSection, ExecutionHealthCard, ExecutionLogsFilters as ExecutionLogsFilterBar, ExecutionLogsTable, ExecutionStats, ExecutionStatusBadge, FeatureUnavailableState, FilterBar, GlowDot, GraphBackground, GraphContainer, GraphFitViewButton, GraphFitViewHandler, GraphLegend, HealthStatusCard, JsonViewer, KanbanBoard, LEAD_GEN_ROUTE_LINKS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarMiddle, LeadGenSidebarTop, ListSkeleton, LogEntry, LogGroup, MdxRenderer, MembershipStatusBadge, MetricsStrip, MilestoneTimeline, MyTasksPanel, NavigationButton, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, NoAccessState, NotificationBell, NotificationItem, NotificationList, NotificationPanel, OAuthConnectModal, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationMembershipsList, PIPELINE_FUNNEL_ORDER, PageNotFound, PageTitleCaption, PermissionMatrix, PipelineFunnelWidget, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, QuickCreateActions, RecurringScheduleForm, RelativeScheduleForm, ResourceCard, ResourceDefinitionSection, ResourceErrorState, ResourceFilter, ResourceHeader, ResourceHealthChart, ResourceHealthPanel, ResourceNotFoundState, RichTextEditor, RoleBadge, RunResourceButton, SAVED_VIEW_PRESETS, SEOSidebar, SEOSidebarMiddle, SEOSidebarTop, SHARED_VIZ_CONSTANTS, SavedViewsPanel, ScheduleCard, ScheduleDetailModal, ScheduleTypeSelector, SessionMemory, SortableHeader, StatCard, StatCardSkeleton, StatsCardSkeleton, StatusBadge, StepConfigForm, StyledMarkdown, TabCountBadge, TabSection, TableSelectionToolbar, TaskCard, TaskScheduler, TimeRangeSelector, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, ToolsListDisplay, TrendIndicator, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, UpcomingMilestonesPage, VisualizerContainer, WebhookUrlDisplayModal, WorkflowDefinitionDisplay, WorkflowExecutionLogs, WorkflowExecutionTimeline, ZodFormRenderer, buildErrorReport, calculateProgress, crmManifest, deliveryManifest, formatStatusLabel, getEnrichmentColor, getExecutionStatusConfig, getGraphBackgroundStyles, getHealthColor, getIcon, getLogLevelConfig, getStatusColor, iconMap, leadGenManifest, mdxComponents, milestoneStatusColors, monitoringManifest, noteTypeColors, operationsManifest, projectStatusColors, seoManifest, settingsManifest, showApiErrorNotification, showAuthError, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification, taskStatusColors, taskTypeColors, useCrmPipelineSummary, useCrmQuickMetrics, useDeleteLists, useGraphBackgroundStyles, useGraphTheme, useNewKnowledgeMapLayout, useRecentCrmActivity };
7235
+ export type { ActivityEntry, ActivityFiltersProps, ActivityTableProps, AgentIterationTotals, AppErrorBoundaryProps, BaseEdgeProps, BaseExecutionLogsProps, BreadcrumbsProps, CompanyDetailPageProps, ContactDetailPageProps, ContextViewerProps, CostByModelTableProps, CrashErrorFallbackProps, CreateRoleModalProps, CrmOverviewProps, DealKanbanCardProps, ErrorAnalysisCardProps, ErrorReportCardProps, ExecutionBreakdownTableProps, ExecutionHealthCardProps, ExecutionLogEntry, ExecutionLogsFiltersProps, ExecutionLogsTableProps, FeatureUnavailableStateProps, FieldPath, FitViewButtonVariant, GraphFitViewHandlerProps, JsonViewerProps, KanbanBoardProps, KnowledgeMapEdgeData, KnowledgeMapNodeData, LogLevel, MdxRendererProps, NavigationButtonProps, PermissionRow, ProjectsSidebarMiddleProps, ResourceHealthPanelProps, RichTextEditorProps, RunResourceButtonProps, RunResourceInputResolver, SavedViewPreset, ScheduleType, SerializedKnowledgeMap, SerializedKnowledgeNode, StatCardProps, StepConfigComponent, StepConfigFieldHint, StepConfigFormProps, StepConfigLayout, StepConfigSection, StyledMarkdownProps, TabSectionProps, TaskFilterStatus, TrendIndicatorProps, ZodFormRendererProps };