@elevasis/ui 2.54.0 → 2.56.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 (48) hide show
  1. package/dist/app/index.js +5 -5
  2. package/dist/auth/index.js +5 -5
  3. package/dist/charts/index.js +5 -5
  4. package/dist/{chunk-DQG7FEYZ.js → chunk-36IF4TXC.js} +232 -33
  5. package/dist/{chunk-2FTX4WO2.js → chunk-BI5VDO2K.js} +4 -2
  6. package/dist/{chunk-W2SFTXMT.js → chunk-EIXSQONC.js} +1 -1
  7. package/dist/{chunk-6DO4PE3O.js → chunk-LO7GWG24.js} +1 -1
  8. package/dist/{chunk-SJHM4WDG.js → chunk-T4LA4RY2.js} +1 -1
  9. package/dist/{chunk-K7E352VG.js → chunk-ZAVMRFUP.js} +1 -1
  10. package/dist/components/index.js +5 -5
  11. package/dist/components/navigation/index.js +5 -5
  12. package/dist/features/auth/index.js +6 -6
  13. package/dist/features/clients/index.js +5 -5
  14. package/dist/features/crm/index.js +5 -5
  15. package/dist/features/dashboard/index.js +5 -5
  16. package/dist/features/delivery/index.js +5 -5
  17. package/dist/features/knowledge/index.js +5 -5
  18. package/dist/features/lead-gen/index.js +5 -5
  19. package/dist/features/monitoring/index.js +5 -5
  20. package/dist/features/monitoring/requests/index.js +6 -6
  21. package/dist/features/notes/index.js +4 -4
  22. package/dist/features/operations/index.d.ts +101 -32
  23. package/dist/features/operations/index.js +5 -5
  24. package/dist/features/public-agent-chat/index.js +72 -6
  25. package/dist/features/settings/index.js +5 -5
  26. package/dist/hooks/access/index.js +5 -5
  27. package/dist/hooks/delivery/index.js +5 -5
  28. package/dist/hooks/index.d.ts +9 -2
  29. package/dist/hooks/index.js +5 -5
  30. package/dist/hooks/published.d.ts +9 -2
  31. package/dist/hooks/published.js +5 -5
  32. package/dist/hooks/user-notes/index.js +2 -2
  33. package/dist/index.d.ts +16 -3
  34. package/dist/index.js +5 -5
  35. package/dist/initialization/index.js +4 -4
  36. package/dist/knowledge/index.js +6 -6
  37. package/dist/layout/index.js +5 -5
  38. package/dist/organization/index.js +5 -5
  39. package/dist/profile/index.js +2 -2
  40. package/dist/provider/ElevasisServiceContext.d.ts +14 -1
  41. package/dist/provider/ElevasisServiceContext.js +1 -1
  42. package/dist/provider/index.d.ts +14 -1
  43. package/dist/provider/index.js +5 -5
  44. package/dist/provider/published.d.ts +14 -1
  45. package/dist/provider/published.js +5 -5
  46. package/dist/test-utils/index.d.ts +7 -0
  47. package/dist/test-utils/index.js +1 -1
  48. package/package.json +3 -3
package/dist/app/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { useSessionCheck, AppErrorBoundary, SidebarProvider, ElevasisSystemsProvider, useElevasisSystems, AppShellContainer, Sidebar, AppShellRightSideContainer, AppShellRightSideOuterContainer, SystemShell, ElevasisUIProvider } from '../chunk-DQG7FEYZ.js';
1
+ import { useSessionCheck, AppErrorBoundary, SidebarProvider, ElevasisSystemsProvider, useElevasisSystems, AppShellContainer, Sidebar, AppShellRightSideContainer, AppShellRightSideOuterContainer, SystemShell, ElevasisUIProvider } from '../chunk-36IF4TXC.js';
2
2
  import '../chunk-NZ2F5RQ4.js';
3
3
  import '../chunk-OJJK27GC.js';
4
4
  import '../chunk-ZTWA5H77.js';
@@ -6,10 +6,10 @@ import '../chunk-AUDNF2Q7.js';
6
6
  import '../chunk-6M6OLGQY.js';
7
7
  import '../chunk-MKH2KOAO.js';
8
8
  import '../chunk-7Q5THR43.js';
9
- import '../chunk-SJHM4WDG.js';
9
+ import '../chunk-T4LA4RY2.js';
10
10
  import '../chunk-GMXGDO3I.js';
11
11
  import '../chunk-S3XR4II4.js';
12
- import { useInitialization } from '../chunk-6DO4PE3O.js';
12
+ import { useInitialization } from '../chunk-LO7GWG24.js';
13
13
  import '../chunk-DD3CCMCZ.js';
14
14
  import '../chunk-M7WWRZ5Z.js';
15
15
  import '../chunk-E6NSKXYN.js';
@@ -18,11 +18,11 @@ import '../chunk-Q7DJKLEN.js';
18
18
  import '../chunk-HENXLGVD.js';
19
19
  import '../chunk-I3CFGE3N.js';
20
20
  import '../chunk-RNP5R5I3.js';
21
- import '../chunk-W2SFTXMT.js';
21
+ import '../chunk-EIXSQONC.js';
22
22
  import { listAllSystems } from '../chunk-XOPLS4S6.js';
23
23
  import '../chunk-FVOMKZ7S.js';
24
24
  import '../chunk-KRWALB24.js';
25
- import '../chunk-2FTX4WO2.js';
25
+ import '../chunk-BI5VDO2K.js';
26
26
  import '../chunk-MQZE7SUI.js';
27
27
  import '../chunk-TVTSASST.js';
28
28
  import '../chunk-BRJ3QZ4E.js';
@@ -1,4 +1,4 @@
1
- export { AccessGuard, AccessKeys, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken } from '../chunk-DQG7FEYZ.js';
1
+ export { AccessGuard, AccessKeys, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken } from '../chunk-36IF4TXC.js';
2
2
  import '../chunk-NZ2F5RQ4.js';
3
3
  import '../chunk-OJJK27GC.js';
4
4
  import '../chunk-ZTWA5H77.js';
@@ -6,10 +6,10 @@ import '../chunk-AUDNF2Q7.js';
6
6
  import '../chunk-6M6OLGQY.js';
7
7
  import '../chunk-MKH2KOAO.js';
8
8
  import '../chunk-7Q5THR43.js';
9
- import '../chunk-SJHM4WDG.js';
9
+ import '../chunk-T4LA4RY2.js';
10
10
  import '../chunk-GMXGDO3I.js';
11
11
  import '../chunk-S3XR4II4.js';
12
- import '../chunk-6DO4PE3O.js';
12
+ import '../chunk-LO7GWG24.js';
13
13
  import '../chunk-DD3CCMCZ.js';
14
14
  import '../chunk-M7WWRZ5Z.js';
15
15
  import '../chunk-E6NSKXYN.js';
@@ -18,11 +18,11 @@ import '../chunk-Q7DJKLEN.js';
18
18
  import '../chunk-HENXLGVD.js';
19
19
  import '../chunk-I3CFGE3N.js';
20
20
  import '../chunk-RNP5R5I3.js';
21
- import '../chunk-W2SFTXMT.js';
21
+ import '../chunk-EIXSQONC.js';
22
22
  import '../chunk-XOPLS4S6.js';
23
23
  import '../chunk-FVOMKZ7S.js';
24
24
  import '../chunk-KRWALB24.js';
25
- import '../chunk-2FTX4WO2.js';
25
+ import '../chunk-BI5VDO2K.js';
26
26
  import '../chunk-MQZE7SUI.js';
27
27
  import '../chunk-TVTSASST.js';
28
28
  export { AuthProvider, useAuthContext } from '../chunk-BRJ3QZ4E.js';
@@ -1,4 +1,4 @@
1
- export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-DQG7FEYZ.js';
1
+ export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-36IF4TXC.js';
2
2
  import '../chunk-NZ2F5RQ4.js';
3
3
  import '../chunk-OJJK27GC.js';
4
4
  import '../chunk-ZTWA5H77.js';
@@ -6,10 +6,10 @@ import '../chunk-AUDNF2Q7.js';
6
6
  import '../chunk-6M6OLGQY.js';
7
7
  import '../chunk-MKH2KOAO.js';
8
8
  import '../chunk-7Q5THR43.js';
9
- import '../chunk-SJHM4WDG.js';
9
+ import '../chunk-T4LA4RY2.js';
10
10
  import '../chunk-GMXGDO3I.js';
11
11
  import '../chunk-S3XR4II4.js';
12
- import '../chunk-6DO4PE3O.js';
12
+ import '../chunk-LO7GWG24.js';
13
13
  import '../chunk-DD3CCMCZ.js';
14
14
  import '../chunk-M7WWRZ5Z.js';
15
15
  import '../chunk-E6NSKXYN.js';
@@ -18,11 +18,11 @@ import '../chunk-Q7DJKLEN.js';
18
18
  import '../chunk-HENXLGVD.js';
19
19
  import '../chunk-I3CFGE3N.js';
20
20
  import '../chunk-RNP5R5I3.js';
21
- import '../chunk-W2SFTXMT.js';
21
+ import '../chunk-EIXSQONC.js';
22
22
  import '../chunk-XOPLS4S6.js';
23
23
  import '../chunk-FVOMKZ7S.js';
24
24
  import '../chunk-KRWALB24.js';
25
- import '../chunk-2FTX4WO2.js';
25
+ import '../chunk-BI5VDO2K.js';
26
26
  import '../chunk-MQZE7SUI.js';
27
27
  import '../chunk-TVTSASST.js';
28
28
  import '../chunk-BRJ3QZ4E.js';
@@ -4,18 +4,18 @@ import { useSupabase } from './chunk-MKH2KOAO.js';
4
4
  import { HTTP_HEADERS, ApiClientProvider, useApiClient } from './chunk-7Q5THR43.js';
5
5
  import { sidebarItemGap, sidebarSubLinkPaddingY, sidebarSubLinkPaddingX, sidebarSubLinkIndent, sidebarHoverDelay, sidebarTransitionDuration, sidebarCollapsedWidth, sidebarWidth, topbarHeight, sidebarToggleIconSize, sidebarSectionPadding, sidebarItemPadding, sidebarItemHeight, sidebarIconSize, sidebarIconStroke, sidebarIconInnerSize, sidebarBottomSectionHeight, SubshellNavItem, sidebarGroupChevronSize, SubshellSidebarSection } from './chunk-GMXGDO3I.js';
6
6
  import { CardHeader } from './chunk-S3XR4II4.js';
7
- import { useInitialization, InitializationContext, InitializationProvider } from './chunk-6DO4PE3O.js';
7
+ import { useInitialization, InitializationContext, InitializationProvider } from './chunk-LO7GWG24.js';
8
8
  import { OrganizationContext, useOrganization } from './chunk-DD3CCMCZ.js';
9
- import { SessionIdParamSchema, CreateSessionSchema, GetNotificationsQuerySchema, MarkAsReadParamsSchema, ExecutionIdParamsSchema, createLiveTempMessageIdentity, WebSocketSessionTurnSchema } from './chunk-M7WWRZ5Z.js';
10
- import { StyledMarkdown, ChatHeader, ChatSidebar } from './chunk-E6NSKXYN.js';
9
+ import { SessionIdParamSchema, CreateSessionSchema, GetNotificationsQuerySchema, MarkAsReadParamsSchema, ExecutionIdParamsSchema, createLiveTempMessageIdentity, WebSocketSessionTurnSchema, mergeSessionMessages } from './chunk-M7WWRZ5Z.js';
10
+ import { StyledMarkdown, ChatInterface, ChatHeader, ChatSidebar } from './chunk-E6NSKXYN.js';
11
11
  import { useRouterContext } from './chunk-Q7DJKLEN.js';
12
12
  import { Graph_module_css_default, useDirectedChainHighlighting, useNodeSelection, useFitViewTrigger, useGraphHighlighting, calculateGraphHeight, GRAPH_CONSTANTS } from './chunk-HENXLGVD.js';
13
13
  import { STATUS_COLORS, getStatusIcon, formatDuration, getStatusColors, AGENT_CONSTANTS, shouldAnimateEdge, TIMELINE_CONSTANTS, calculateBarPosition, CONTAINER_CONSTANTS, useExecutionPath, useUnifiedWorkflowLayout, WORKFLOW_CONSTANTS, useReactFlowAgent, getResourceStatusColor, useMergedExecution, useTimelineData, useAgentIterationData } from './chunk-I3CFGE3N.js';
14
- import { useProfile, useUserProfile, ProfileProvider } from './chunk-W2SFTXMT.js';
14
+ import { useProfile, useUserProfile, ProfileProvider } from './chunk-EIXSQONC.js';
15
15
  import { LabelSchema, DescriptionSchema, PathSchema, ModelIdSchema, IconNameSchema, SystemLifecycleSchema, OntologyIdSchema, SystemPathSchema, ActionInvocationSchema, SystemIdSchema, NodeIdStringSchema, JsonValueSchema, SystemInterfaceRefSchema, EntitiesDomainSchema, ActionsDomainSchema, DEFAULT_ORGANIZATION_MODEL_ACTIONS, OntologyScopeSchema, DEFAULT_ONTOLOGY_SCOPE, SystemsDomainSchema, DEFAULT_ORGANIZATION_MODEL_SYSTEMS, defineEntities, defineActions, listAllSystems, listResolvedOntologyRecords, getErrorInfo, getErrorTitle, formatErrorMessage, getSystem, compileOrganizationOntology, isAPIClientError, getResourceIcon, formatTimeAgo, PAGE_SIZE_DEFAULT, STALE_TIME_MONITORING, STALE_TIME_DEFAULT, STALE_TIME_ADMIN, APIClientError, GC_TIME_MEDIUM, GC_TIME_SHORT, formatDateTime, LEAD_GEN_API_INTERFACE, computeInterfaceReadiness, getAllBuildTemplates, getLeadGenStageCatalog, formatDate, formatRelativeTime, getResourcesForSystem, ontologyGraphNodeId, parseOntologyId, getAllProspectingStages, getAllPipelines, getAllProjectStatuses, OAUTH_FLOW_TIMEOUT, devOnlyFor, requiresAdminFor, topLevel, parentOf, ancestorsOf, childrenOf, findById, findByPath, getSystemAncestors, resolveSystemConfig, defaultPathFor } from './chunk-XOPLS4S6.js';
16
16
  import { getTimeRangeLabel, getTimeRangeDates, formatBucketTime, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, debounce } from './chunk-FVOMKZ7S.js';
17
17
  import { ResourceStatusColors, toWorkflowLogMessages } from './chunk-KRWALB24.js';
18
- import { useElevasisServices, ElevasisServiceContext, ElevasisServiceProvider } from './chunk-2FTX4WO2.js';
18
+ import { useElevasisServices, ElevasisServiceContext, ElevasisServiceProvider } from './chunk-BI5VDO2K.js';
19
19
  import { brandSupabaseOrgId, brandWorkOsOrgId } from './chunk-MQZE7SUI.js';
20
20
  import { ResourceTypeSchema, NonEmptyStringSchema, OriginResourceTypeSchema, UuidSchema, CredentialNameSchema } from './chunk-TVTSASST.js';
21
21
  import { useAuthContext } from './chunk-BRJ3QZ4E.js';
@@ -9235,9 +9235,19 @@ function ServiceStackInner({
9235
9235
  }) {
9236
9236
  const { apiRequest } = useApiClient(apiUrl);
9237
9237
  const resolvedNotifications = notifications16 ?? consoleNotificationAdapter;
9238
- return /* @__PURE__ */ jsx(ProfileProvider, { apiRequest, children: /* @__PURE__ */ jsx(OrganizationProvider, { apiRequest, children: /* @__PURE__ */ jsx(OrgServiceBridge, { orgIdRef, apiRequest, notifications: resolvedNotifications, children }) }) });
9238
+ return /* @__PURE__ */ jsx(ProfileProvider, { apiRequest, children: /* @__PURE__ */ jsx(OrganizationProvider, { apiRequest, children: /* @__PURE__ */ jsx(
9239
+ OrgServiceBridge,
9240
+ {
9241
+ apiUrl,
9242
+ orgIdRef,
9243
+ apiRequest,
9244
+ notifications: resolvedNotifications,
9245
+ children
9246
+ }
9247
+ ) }) });
9239
9248
  }
9240
9249
  function OrgServiceBridge({
9250
+ apiUrl,
9241
9251
  orgIdRef,
9242
9252
  apiRequest,
9243
9253
  notifications: notifications16,
@@ -9249,6 +9259,7 @@ function OrgServiceBridge({
9249
9259
  return /* @__PURE__ */ jsx(
9250
9260
  ElevasisServiceProvider,
9251
9261
  {
9262
+ apiUrl,
9252
9263
  apiRequest,
9253
9264
  workOSOrganizationId: currentWorkOSOrganizationId,
9254
9265
  isReady,
@@ -9835,7 +9846,7 @@ var operationsKeys = {
9835
9846
  agents: (org) => [...operationsKeys.all, "agents", org],
9836
9847
  agentDetails: (org) => [...operationsKeys.agents(org), "details"],
9837
9848
  agent: (id, org) => [...operationsKeys.agents(org), id],
9838
- sessions: (org, params) => [...operationsKeys.all, "sessions", org, params],
9849
+ sessions: (org, params) => params ? [...operationsKeys.all, "sessions", org, params] : [...operationsKeys.all, "sessions", org],
9839
9850
  session: (org, sessionId) => [...operationsKeys.all, "session", org, sessionId]
9840
9851
  };
9841
9852
 
@@ -10761,7 +10772,7 @@ function useSortedData(data, defaultColumn, accessors, defaultDirection = "desc"
10761
10772
  // src/hooks/sessions/queryKeys.ts
10762
10773
  var sessionsKeys = {
10763
10774
  all: ["sessions"],
10764
- sessions: (org, params) => [...sessionsKeys.all, "list", org, params],
10775
+ sessions: (org, params) => params ? [...sessionsKeys.all, "list", org, params] : [...sessionsKeys.all, "list", org],
10765
10776
  session: (org, sessionId) => [...sessionsKeys.all, "detail", org, sessionId],
10766
10777
  executions: (org, sessionId) => [...sessionsKeys.all, org, sessionId, "executions"],
10767
10778
  execution: (org, sessionId, executionId) => [...sessionsKeys.all, org, sessionId, "executions", executionId],
@@ -10942,6 +10953,9 @@ function useSessionWebSocket(sessionId, apiUrl) {
10942
10953
  const currentSupabaseOrgIdRef = useRef(currentSupabaseOrganizationId);
10943
10954
  currentSupabaseOrgIdRef.current = currentSupabaseOrganizationId;
10944
10955
  const connect = useCallback(async () => {
10956
+ if (!sessionId) {
10957
+ return;
10958
+ }
10945
10959
  if (!currentWorkOSOrgIdRef.current) {
10946
10960
  return;
10947
10961
  }
@@ -34551,6 +34565,9 @@ var noteTypeOptions = [
34551
34565
  { value: "blocker", label: "Blocker" },
34552
34566
  { value: "agent_learning", label: "Agent Learning" }
34553
34567
  ];
34568
+ function isTaskDone(status) {
34569
+ return status === "completed" || status === "approved";
34570
+ }
34554
34571
  function parseChecklist2(milestone) {
34555
34572
  const raw = milestone.checklist;
34556
34573
  if (!Array.isArray(raw)) return [];
@@ -34940,6 +34957,11 @@ function ProjectDetailPage({ projectId, onBack, backLabel = "Projects" }) {
34940
34957
  const milestoneTasks = tasks.filter((task) => task.milestone_id === milestone.id);
34941
34958
  const checklistItems = parseChecklist2(milestone);
34942
34959
  const completedChecklistItems = checklistItems.filter((item) => item.completed).length;
34960
+ const completedTasks = milestoneTasks.filter(
34961
+ (t) => isTaskDone(t.status ?? "planned")
34962
+ ).length;
34963
+ const progressNumerator = milestoneTasks.length > 0 ? completedTasks : completedChecklistItems;
34964
+ const progressDenominator = milestoneTasks.length > 0 ? milestoneTasks.length : checklistItems.length;
34943
34965
  return /* @__PURE__ */ jsx(
34944
34966
  Timeline.Item,
34945
34967
  {
@@ -35012,9 +35034,9 @@ function ProjectDetailPage({ projectId, onBack, backLabel = "Projects" }) {
35012
35034
  }
35013
35035
  },
35014
35036
  children: [
35015
- completedChecklistItems,
35037
+ progressNumerator,
35016
35038
  "/",
35017
- checklistItems.length,
35039
+ progressDenominator,
35018
35040
  " complete"
35019
35041
  ]
35020
35042
  }
@@ -44145,6 +44167,81 @@ function ExecuteWorkflowModal({
44145
44167
  }
44146
44168
  );
44147
44169
  }
44170
+ var DRAFT_SENTINEL = "new";
44171
+ function SessionConversationView({
44172
+ sessionId,
44173
+ apiUrl,
44174
+ onConnectionStateChange,
44175
+ emptyStateText = "No messages yet",
44176
+ emptyStateSubtext = "Send a message to start the conversation",
44177
+ placeholder = "Message the agent...",
44178
+ onFirstSend,
44179
+ pendingFirstMessage,
44180
+ onPendingSent
44181
+ }) {
44182
+ const [input, setInput] = useState("");
44183
+ const [isDraftSubmitting, setIsDraftSubmitting] = useState(false);
44184
+ const [draftError, setDraftError] = useState(null);
44185
+ const isDraft = sessionId === DRAFT_SENTINEL && !!onFirstSend;
44186
+ const { data: historyMessages = [] } = useSessionMessages(isDraft ? "" : sessionId);
44187
+ const {
44188
+ messages: liveMessages,
44189
+ state,
44190
+ sendMessage,
44191
+ clearError
44192
+ } = useSessionWebSocket(isDraft ? "" : sessionId, apiUrl);
44193
+ useEffect(() => {
44194
+ if (isDraft) return;
44195
+ onConnectionStateChange?.(state);
44196
+ }, [state, onConnectionStateChange, isDraft]);
44197
+ useEffect(() => {
44198
+ if (isDraft) return;
44199
+ if (!pendingFirstMessage) return;
44200
+ if (!state.isConnected) return;
44201
+ sendMessage(pendingFirstMessage);
44202
+ onPendingSent?.();
44203
+ }, [isDraft, pendingFirstMessage, state.isConnected, sendMessage, onPendingSent]);
44204
+ const allMessages = useMemo(
44205
+ () => mergeSessionMessages(historyMessages, liveMessages),
44206
+ [historyMessages, liveMessages]
44207
+ );
44208
+ const handleSend = () => {
44209
+ const trimmed = input.trim();
44210
+ if (!trimmed) return;
44211
+ if (isDraft) {
44212
+ if (isDraftSubmitting) return;
44213
+ setIsDraftSubmitting(true);
44214
+ setDraftError(null);
44215
+ onFirstSend(trimmed).catch((err) => {
44216
+ setDraftError(err instanceof Error ? err.message : "Failed to start session");
44217
+ setIsDraftSubmitting(false);
44218
+ });
44219
+ setInput("");
44220
+ return;
44221
+ }
44222
+ if (state.isProcessing) return;
44223
+ sendMessage(trimmed);
44224
+ setInput("");
44225
+ };
44226
+ const effectiveState = isDraft ? { isConnected: false, isProcessing: isDraftSubmitting, error: draftError } : state;
44227
+ const handleClearError = isDraft ? () => setDraftError(null) : clearError;
44228
+ return /* @__PURE__ */ jsx(
44229
+ ChatInterface,
44230
+ {
44231
+ messages: allMessages,
44232
+ input,
44233
+ onInputChange: setInput,
44234
+ onSendMessage: handleSend,
44235
+ isProcessing: effectiveState.isProcessing,
44236
+ isConnected: effectiveState.isConnected,
44237
+ error: effectiveState.error,
44238
+ onClearError: handleClearError,
44239
+ emptyStateText,
44240
+ emptyStateSubtext,
44241
+ placeholder
44242
+ }
44243
+ );
44244
+ }
44148
44245
  function SessionListItem({ session, onClick, isSelected = false, onDeleted }) {
44149
44246
  const deleteSession = useDeleteSession();
44150
44247
  const [isDeleting, setIsDeleting] = useState(false);
@@ -44243,7 +44340,6 @@ function SessionsPage({
44243
44340
  onNavigate
44244
44341
  }) {
44245
44342
  const { data: resourcesData, isLoading: isResourcesLoading } = useResources();
44246
- const createSession = useCreateSession();
44247
44343
  const [statusFilter, setStatusFilter] = useState("all");
44248
44344
  const allAgents = (resourcesData?.agents || []).filter((agent) => agent.sessionCapable === true);
44249
44345
  const filteredAgents = statusFilter === "all" ? allAgents : allAgents.filter((agent) => agent.status === statusFilter);
@@ -44252,14 +44348,9 @@ function SessionsPage({
44252
44348
  resourceId: agentParam
44253
44349
  });
44254
44350
  const agentSessions = Array.isArray(sessionsData) ? sessionsData : [];
44255
- const handleCreateSession = async () => {
44351
+ const handleCreateSession = () => {
44256
44352
  if (!selectedAgent) return;
44257
- try {
44258
- const result = await createSession.mutateAsync(selectedAgent.resourceId);
44259
- onNavigate(buildSessionDetailUrl(result.sessionId));
44260
- } catch (error) {
44261
- console.error("Failed to create session:", error);
44262
- }
44353
+ onNavigate(`${buildSessionDetailUrl("new")}?resourceId=${selectedAgent.resourceId}`);
44263
44354
  };
44264
44355
  const hasResourcesData = allAgents.length > 0;
44265
44356
  if (!isReady || isResourcesLoading && !hasResourcesData) return /* @__PURE__ */ jsx(SubshellLoader, {});
@@ -44279,15 +44370,7 @@ function SessionsPage({
44279
44370
  icon: /* @__PURE__ */ jsx(IconRobot, { size: 18 }),
44280
44371
  title: selectedAgent.name,
44281
44372
  subtitle: selectedAgent.description || "Simplest possible agent using GPT-5-mini",
44282
- rightSection: /* @__PURE__ */ jsx(
44283
- Button,
44284
- {
44285
- leftSection: /* @__PURE__ */ jsx(IconPlus, { size: 16 }),
44286
- onClick: handleCreateSession,
44287
- loading: createSession.isPending,
44288
- children: "New Agent Session"
44289
- }
44290
- )
44373
+ rightSection: /* @__PURE__ */ jsx(Button, { leftSection: /* @__PURE__ */ jsx(IconPlus, { size: 16 }), onClick: handleCreateSession, children: "New Agent Session" })
44291
44374
  }
44292
44375
  ),
44293
44376
  agentSessions.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -44346,11 +44429,17 @@ function SessionHeader({
44346
44429
  function SessionChatInterface({
44347
44430
  sessionId,
44348
44431
  onConnectionStateChange,
44432
+ onFirstSend,
44433
+ pendingFirstMessage,
44434
+ onPendingSent,
44349
44435
  renderConversationView
44350
44436
  }) {
44351
44437
  return /* @__PURE__ */ jsx(Fragment, { children: renderConversationView({
44352
44438
  sessionId,
44353
44439
  onConnectionStateChange,
44440
+ onFirstSend,
44441
+ pendingFirstMessage,
44442
+ onPendingSent,
44354
44443
  emptyStateText: "No messages yet",
44355
44444
  emptyStateSubtext: "Send a message to start the conversation",
44356
44445
  placeholder: "Message the agent..."
@@ -44777,6 +44866,7 @@ function ExecutionItem({ execution, session: _session, buildExecutionUrl }) {
44777
44866
  }
44778
44867
  );
44779
44868
  }
44869
+ var DRAFT_SENTINEL2 = "new";
44780
44870
  function AgentChatOuterSubshellContainer({ children }) {
44781
44871
  return /* @__PURE__ */ jsx(
44782
44872
  "div",
@@ -44791,16 +44881,113 @@ function AgentChatOuterSubshellContainer({ children }) {
44791
44881
  }
44792
44882
  );
44793
44883
  }
44884
+ function useDefaultConversationViewRenderer() {
44885
+ const { apiUrl } = useElevasisServices();
44886
+ if (!apiUrl) {
44887
+ throw new Error(
44888
+ "SessionChatPage default conversation view requires apiUrl on ElevasisCoreProvider; mount with apiUrl or pass renderConversationView."
44889
+ );
44890
+ }
44891
+ return useCallback(
44892
+ (args) => /* @__PURE__ */ jsx(SessionConversationView, { apiUrl, ...args }),
44893
+ [apiUrl]
44894
+ );
44895
+ }
44794
44896
  function SessionChatPage({
44795
44897
  sessionId,
44796
44898
  isReady,
44797
44899
  renderConversationView,
44798
44900
  buildExecutionUrl,
44799
44901
  buildSessionListUrl: _buildSessionListUrl,
44800
- organizationName
44902
+ organizationName,
44903
+ buildSessionDetailUrl
44904
+ }) {
44905
+ const [createdSessionId, setCreatedSessionId] = useState(null);
44906
+ const [pendingFirstMessage, setPendingFirstMessage] = useState(null);
44907
+ const { mutateAsync: createSession } = useCreateSession();
44908
+ const defaultRenderer = useDefaultConversationViewRenderer();
44909
+ const resolvedRenderer = renderConversationView ?? defaultRenderer;
44910
+ const isDraft = sessionId === DRAFT_SENTINEL2 && !createdSessionId;
44911
+ const effectiveSessionId = createdSessionId ?? sessionId;
44912
+ const onFirstSend = useCallback(
44913
+ async (message) => {
44914
+ const resourceId = new URLSearchParams(window.location.search).get("resourceId");
44915
+ if (!resourceId) throw new Error("resourceId missing from query string");
44916
+ const result = await createSession(resourceId);
44917
+ const realId = result.sessionId;
44918
+ const realUrl = buildSessionDetailUrl ? buildSessionDetailUrl(realId) : window.location.pathname.replace(/\/new(\/)?$/, `/${realId}/`);
44919
+ window.history.replaceState(null, "", realUrl);
44920
+ setPendingFirstMessage(message);
44921
+ setCreatedSessionId(realId);
44922
+ },
44923
+ [createSession, buildSessionDetailUrl]
44924
+ );
44925
+ const onPendingSent = useCallback(() => {
44926
+ setPendingFirstMessage(null);
44927
+ }, []);
44928
+ if (!isReady) {
44929
+ return /* @__PURE__ */ jsx(SubshellLoader, {});
44930
+ }
44931
+ if (isDraft) {
44932
+ return /* @__PURE__ */ jsx(AgentChatOuterSubshellContainer, { children: /* @__PURE__ */ jsx(PageContainer, { children: /* @__PURE__ */ jsx(
44933
+ "div",
44934
+ {
44935
+ style: {
44936
+ position: "relative",
44937
+ display: "flex",
44938
+ flexDirection: "column",
44939
+ gap: "16px",
44940
+ height: `calc(100vh - ${topbarHeight}px)`,
44941
+ flexShrink: 0,
44942
+ overflowX: "hidden"
44943
+ },
44944
+ children: /* @__PURE__ */ jsx(
44945
+ "div",
44946
+ {
44947
+ style: {
44948
+ height: "100%",
44949
+ display: "flex",
44950
+ flexDirection: "column",
44951
+ gap: "16px",
44952
+ overflow: "hidden",
44953
+ borderRadius: "var(--mantine-radius-md)",
44954
+ position: "relative",
44955
+ padding: 8
44956
+ },
44957
+ children: resolvedRenderer({
44958
+ sessionId: DRAFT_SENTINEL2,
44959
+ onFirstSend,
44960
+ emptyStateText: "No messages yet",
44961
+ emptyStateSubtext: "Send a message to start the conversation",
44962
+ placeholder: "Message the agent..."
44963
+ })
44964
+ }
44965
+ )
44966
+ }
44967
+ ) }) });
44968
+ }
44969
+ return /* @__PURE__ */ jsx(
44970
+ SessionChatPageLive,
44971
+ {
44972
+ sessionId: effectiveSessionId,
44973
+ renderConversationView: resolvedRenderer,
44974
+ buildExecutionUrl,
44975
+ organizationName,
44976
+ pendingFirstMessage: pendingFirstMessage ?? void 0,
44977
+ onPendingSent
44978
+ }
44979
+ );
44980
+ }
44981
+ function SessionChatPageLive({
44982
+ sessionId,
44983
+ renderConversationView,
44984
+ buildExecutionUrl,
44985
+ organizationName,
44986
+ pendingFirstMessage,
44987
+ onPendingSent
44801
44988
  }) {
44802
44989
  const { data: session, isLoading: isSessionLoading } = useSession(sessionId);
44803
- if (!isReady || isSessionLoading) {
44990
+ if (isSessionLoading) {
44804
44991
  return /* @__PURE__ */ jsx(SubshellLoader, {});
44805
44992
  }
44806
44993
  if (!session) {
@@ -44816,7 +45003,9 @@ function SessionChatPage({
44816
45003
  session,
44817
45004
  renderConversationView,
44818
45005
  buildExecutionUrl,
44819
- organizationName
45006
+ organizationName,
45007
+ pendingFirstMessage,
45008
+ onPendingSent
44820
45009
  }
44821
45010
  );
44822
45011
  }
@@ -44825,9 +45014,19 @@ function SessionChatPageContent({
44825
45014
  session,
44826
45015
  renderConversationView,
44827
45016
  buildExecutionUrl,
44828
- organizationName
45017
+ organizationName,
45018
+ pendingFirstMessage,
45019
+ onPendingSent
44829
45020
  }) {
44830
45021
  const { data: resourceDefinition } = useResourceDefinition(session.resourceId);
45022
+ const renderConversationViewWithPending = useCallback(
45023
+ (args) => renderConversationView({
45024
+ ...args,
45025
+ pendingFirstMessage,
45026
+ onPendingSent
45027
+ }),
45028
+ [renderConversationView, pendingFirstMessage, onPendingSent]
45029
+ );
44831
45030
  return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(AgentChatOuterSubshellContainer, { children: /* @__PURE__ */ jsxs(PageContainer, { children: [
44832
45031
  /* @__PURE__ */ jsx(
44833
45032
  SessionChatArea,
@@ -44835,7 +45034,7 @@ function SessionChatPageContent({
44835
45034
  sessionId,
44836
45035
  session,
44837
45036
  organizationName,
44838
- renderConversationView
45037
+ renderConversationView: renderConversationViewWithPending
44839
45038
  }
44840
45039
  ),
44841
45040
  /* @__PURE__ */ jsx("div", { style: { padding: "8px", display: "flex", flexDirection: "column", gap: "8px" }, children: /* @__PURE__ */ jsxs(Stack, { style: { flex: 1, height: "100%" }, children: [
@@ -51392,4 +51591,4 @@ function useAccess(key) {
51392
51591
  };
51393
51592
  }
51394
51593
 
51395
- export { APIErrorAlert, AbsoluteScheduleForm, AccessGuard, AccessKeys, AccountSettings, ActionModal, ActivityCard, ActivityFeed, ActivityFeedWidget, ActivityFilters, ActivityLog, ActivityTable, ActivityTimeline, ActivityTrendChart, AgentDefinitionDisplay, AgentExecutionLogs, AgentExecutionPanel, AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationDetailPanel, AgentIterationEdge, AgentIterationNode, AgentResourceEntrySchema, AgentSessionGroup, AllTasksPage, ApiKeyDisplayModal, ApiKeyList, ApiKeyService, ApiKeySettings, AppErrorBoundary, AppShellCenteredContainer, AppShellContainer, AppShellContentContainer, AppShellError, AppShellLoader, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, AppearanceContext, AppearanceProvider, AppearanceSettings, BaseEdge, BaseExecutionLogs, BaseExecutionLogsHeader, BaseExecutionLogsStates, BaseNode, Breadcrumbs, BusinessImpactCard, CRM_ITEMS, CenteredErrorState, ChartFrame, Checklist, CheckpointGroup, CollapsibleJsonSection, CollapsibleSection, CollapsibleSidebarGroup, CombinedTrendChart, CommandQueueDetailPage, CommandQueuePage, CommandQueueShell, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, CommandQueueTaskRow, CommandViewPage, CompanyDetailPage, ConfigCard, ConfirmationInputModal, ConfirmationModal, ContactDetailPage, ContentSections, ContextUsageBadge, ContextViewer, ContractDisplay, ConversationThread, CostAnalytics, CostBreakdownCard, CostByModelTable, CostMetricsCard, CostTrendChart, CrashErrorFallback, CreateApiKeyModal, CreateCredentialModal, CreateDeliveryEntityModal, CreateRoleModal, CreateScheduleModal, CreateWebhookEndpointModal, CredentialList, CredentialService, CredentialSettings, CrmActionsProvider, CrmOverview, CrmSettingsPage, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, CustomModal, CustomSelector, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, CyberParticles, DEAL_STAGES, DEAL_STAGE_COLORS, DEAL_STAGE_OPTIONS, DEFAULT_KANBAN_CONFIG, DEFAULT_SEMANTIC_ICON_REGISTRY, DELIVERY_COMMUNICATION_ITEMS, DELIVERY_PROJECT_ITEMS, DELIVERY_WORK_ITEMS, Dashboard, DashboardOperationsOverview, DealDetailPage, DealKanbanCard, DealsListPage, DeleteScheduleModal, DeploymentDetailModal, DeploymentList, DeploymentService, DeploymentSettings, DeploymentStatusBadge, DetailCardSkeleton, EMPTY_LIST_ACTIONS, EditApiKeyModal, EditCredentialModal, EditWebhookEndpointModal, ElevasisCoreProvider, ElevasisLoader, ElevasisSystemsProvider, ElevasisUIProvider, EmptyState, EmptyVisualizer, ErrorAnalysisCard, ErrorBreakdownTable, ErrorDetailsModal, ErrorReportCard, ExecuteWorkflowModal, ExecutionBreakdownTable, ExecutionErrorSection, ExecutionHealth, ExecutionHealthCard, ExecutionLogsFilters, ExecutionLogsPage, ExecutionLogsTable, ExecutionPanel, ExecutionStats, ExecutionStatusBadge, FILTERABLE_DOMAIN_KEYS, FeatureUnavailableState, FilterBar, GlowDot, GraphBackground, GraphContainer, GraphFitViewButton, GraphFitViewHandler, GraphLegend, HealthStatusCard, HeroStatsRow, IdentityDomainSchema, IntegrationResourceEntrySchema, JsonViewer, KNOWLEDGE_DOMAINS_WITH_PANELS, KNOWLEDGE_ICON_TOKEN_BY_KIND, KanbanBoard, KnowledgeSearchBar, KnowledgeTree, LEAD_GEN_ITEMS, LEAD_GEN_ROUTE_LINKS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarMiddle, LeadGenSidebarTop, LinksGroup, ListActionsProvider, ListBuilderIndexPage, ListBuilderPage, ListSkeleton, LogEntry, LogGroup, MdxRenderer, MemberAccessModal, MembershipStatusBadge, MetricsStrip, MilestoneTimeline, MyRolesPage, MyTasksPanel, NavigationButton, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, NoAccessState, NotificationBell, NotificationCenter, NotificationItem, NotificationList, NotificationPanel, NotificationProvider, OAuthConnectModal, OAuthIntegrationsCard, OM_NESTED_TREE_GROUPS, OM_TREE_GROUPS, ORPHAN_STAGE_ORDER, OperationsOverview, OperationsService, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrgMembersList, OrganizationGraphPage, OrganizationMembershipService, OrganizationMembershipsList, OrganizationProvider, OrganizationSettings, OrganizationSwitcher, OrganizationSwitcherConnected, PIPELINE_FUNNEL_ORDER, PageContainer, PageNotFound, PageTitleCaption, PermissionMatrix, PipelineFunnelWidget, PolicySchema, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, ProtectedRoute, QuickCreateActions, RecentExecutionsByResource, RecurringScheduleForm, RelativeScheduleForm, RequestActionIcon, RequestModal, ResourceCard, ResourceDefinitionSection, ResourceDetailPage, ResourceErrorState, ResourceFilter, ResourceHeader, ResourceHealthChart, ResourceHealthPanel, ResourceNotFoundState, ResourceOverview, ResourcesPage, ResourcesSidebar, RichTextEditor, RoleBadge, RoleSchema, RunResourceButton, SAVED_VIEW_PRESETS, SavedViewsPanel, ScheduleCard, ScheduleDetailModal, ScheduleTypeSelector, ScriptResourceEntrySchema, SemanticIcon, SessionChatArea, SessionChatInterface, SessionChatPage, SessionDetailsSidebar, SessionExecutionLogs, SessionHeader, SessionListItem, SessionMemory, SessionsPage, SessionsSidebar, Sidebar, SidebarContext, SidebarProvider, SortableHeader, StatCard, StatCardSkeleton, StatsCardSkeleton, StatusBadge, StepConfigForm, SubshellContainer, SubshellContentContainer, SubshellLoader, SubshellNavList, SubshellRightSideContainer, SubshellSidebar, SubshellSidebarLoader, SurfaceDefinitionSchema, SystemOpsView, SystemShell, TabCountBadge, TabSection, TableSelectionToolbar, TaskCard, TaskScheduler, TimeRangeSelector, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, ToolsListDisplay, Topbar, TopbarActions, TopbarContainer, TrendIndicator, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, UnresolvedErrorsTeaser, UpcomingMilestonesPage, Vignette, VisualizerContainer, WebhookEndpointList, WebhookEndpointService, WebhookEndpointSettings, WebhookUrlDisplayModal, WorkflowDefinitionDisplay, WorkflowExecutionLogs, WorkflowExecutionPanel, WorkflowExecutionTimeline, WorkflowResourceEntrySchema, ZodFormRenderer, acquisitionListKeys, aggregateSystemMetrics, buildErrorReport, buildKnowledgeOmTreeData, calculateProgress, clientsKeys, collectResourceFilterFacets, companyKeys, contactKeys, createOrganizationsSlice, createTestSystemsProvider, createUseOrgInitialization, createUseOrganizations, crmManifest, crmPrioritySettingsKeys, dealKeys, dealNoteKeys, dealTaskKeys, deliveryManifest, deriveBusinessProgress, executionsKeys, extendSemanticIconRegistry, filterByDomainFilters, findKnowledgeTreeNodeByValue, findListActionByAction, findOmTreeGroup, formatDate3 as formatDate, formatDealStageLabel, formatResourceAttribution, formatStatusLabel, getConceptDefinition, getEnrichmentColor, getEnrichmentStatus, getExecutionStatusConfig, getGraphBackgroundStyles, getHealthColor, getIcon, getKnowledgeDomainFolderCommand, getKnowledgeGraphNodeCommand, getKnowledgeIconToken, getKnowledgeNodeReadCommand, getKnowledgeOntologyProjection, getKnowledgeTreeFolderCommand, getLeadGenApiInterfaceReadiness, getLeadGenExportWorkflowId, getListActionWorkflowId, getLogLevelConfig, getOntologyDomainLabel, getPrimaryOntologyItemsForDomain, getResourceFilterFacetIds, getSemanticIconComponent, getSeriesColor, getSharedOrganizationGraph, getStateKeyColor, getStatusColor4 as getStatusColor, getStepActionLabel, iconMap, isLeadGenExportAction, isSessionCapable, knowledgeManifest, labelResourceFilterFacet, leadGenArtifactKeys, leadGenListCompanyKeys, leadGenListMemberKeys, leadGenManifest, mdxComponents, milestoneKeys, milestoneStatusColors, monitoringManifest, normaliseConceptKey, noteKeys, noteTypeColors, observabilityKeys, operationsKeys, operationsManifest, projectActivityKeys, projectKeys, projectNavigationGroups, projectNavigationSurfaces, projectStatusColors, requestTopbarActionManifest, requestsKeys, resolveBuildPlanSteps, resolveBuildState, resolveSemanticIconComponent, scheduleKeys, sessionsKeys, settingsManifest, showApiErrorNotification, showAuthError, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification, sortData, sortStageKeys, subsidebarWidth, taskKeys, taskStatusColors, taskTypeColors, useAccess, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useAddCompaniesToList, useAddContactsToList, useAppearance, useArchiveSession, useArchivedLogs, useArtifacts, useAssignRole, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBreadcrumbs, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useClient, useClientStatus, useClients, useCommandQueue, useCommandQueueTask, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateArtifact, useCreateClient, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateList, useCreateMilestone, useCreateNote, useCreateOrgRole, useCreateProject, useCreateSchedule, useCreateSession, useCreateTask, useCreateWebhookEndpoint, useCredentials, useCrmActions, useCrmPipelineSummary, useCrmPrioritySettings, useCrmQuickMetrics, useCyberColors, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteApiKey, useDeleteClient, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteLists, useDeleteMilestone, useDeleteOrgRole, useDeleteProject, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask, useDeleteTask2, useDeleteWebhookEndpoint, useDeriveActions, useEffectivePermissions, useElevasisSystems, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAction, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionSSE, useExecutions, useGetExecutionHistory, useGetSchedule, useGraphBackgroundStyles, useGraphTheme, useInFlightExecutions, useLeadGenConfig, useList, useListActions, useListApiKeys, useListDeployments, useListExecutions, useListMember, useListMembers, useListProgress, useListRecords, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMilestones, useNewKnowledgeMapLayout, useNotificationAdapter, useNotificationCount, useNotifications, useOptionalElevasisSystems, useOrgRoles, useOrganizationMembers, usePaginationState, usePatchTask, usePauseSchedule, usePermissionCatalog, useProject, useProjectActivities, useProjectMilestones, useProjectNotes, useProjectRealtime, useProjectTasks, useProjects, useReactivateMembership, useRecentCrmActivity, useRecentExecutionsByResource, useRemoveCompaniesFromList, useRequest, useRequestsList, useResetCrmPrioritySettings, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResolvedOrganizationModel, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRevokeRole, useSSEConnection, useScheduledTasks, useSession, useSessionCheck, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSidebar, useSidebarCollapse, useSortedData, useStableAccessToken, useStatusFilter, useSubmitAction, useSubmitRequest, useSuccessNotification, useSystemHealth, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTopFailingResources, useTransitionItem, useTransitionListCompany, useTransitionListMember, useTransitionState, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateClient, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateCrmPrioritySettings, useUpdateList, useUpdateListConfig, useUpdateListStatus, useUpdateMilestone, useUpdateOrgRole, useUpdateProject, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useVerifyCredential, useVisibleResources, useWarningNotification, useWorkflowExecution };
51594
+ export { APIErrorAlert, AbsoluteScheduleForm, AccessGuard, AccessKeys, AccountSettings, ActionModal, ActivityCard, ActivityFeed, ActivityFeedWidget, ActivityFilters, ActivityLog, ActivityTable, ActivityTimeline, ActivityTrendChart, AgentDefinitionDisplay, AgentExecutionLogs, AgentExecutionPanel, AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationDetailPanel, AgentIterationEdge, AgentIterationNode, AgentResourceEntrySchema, AgentSessionGroup, AllTasksPage, ApiKeyDisplayModal, ApiKeyList, ApiKeyService, ApiKeySettings, AppErrorBoundary, AppShellCenteredContainer, AppShellContainer, AppShellContentContainer, AppShellError, AppShellLoader, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, AppearanceContext, AppearanceProvider, AppearanceSettings, BaseEdge, BaseExecutionLogs, BaseExecutionLogsHeader, BaseExecutionLogsStates, BaseNode, Breadcrumbs, BusinessImpactCard, CRM_ITEMS, CenteredErrorState, ChartFrame, Checklist, CheckpointGroup, CollapsibleJsonSection, CollapsibleSection, CollapsibleSidebarGroup, CombinedTrendChart, CommandQueueDetailPage, CommandQueuePage, CommandQueueShell, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, CommandQueueTaskRow, CommandViewPage, CompanyDetailPage, ConfigCard, ConfirmationInputModal, ConfirmationModal, ContactDetailPage, ContentSections, ContextUsageBadge, ContextViewer, ContractDisplay, ConversationThread, CostAnalytics, CostBreakdownCard, CostByModelTable, CostMetricsCard, CostTrendChart, CrashErrorFallback, CreateApiKeyModal, CreateCredentialModal, CreateDeliveryEntityModal, CreateRoleModal, CreateScheduleModal, CreateWebhookEndpointModal, CredentialList, CredentialService, CredentialSettings, CrmActionsProvider, CrmOverview, CrmSettingsPage, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, CustomModal, CustomSelector, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, CyberParticles, DEAL_STAGES, DEAL_STAGE_COLORS, DEAL_STAGE_OPTIONS, DEFAULT_KANBAN_CONFIG, DEFAULT_SEMANTIC_ICON_REGISTRY, DELIVERY_COMMUNICATION_ITEMS, DELIVERY_PROJECT_ITEMS, DELIVERY_WORK_ITEMS, Dashboard, DashboardOperationsOverview, DealDetailPage, DealKanbanCard, DealsListPage, DeleteScheduleModal, DeploymentDetailModal, DeploymentList, DeploymentService, DeploymentSettings, DeploymentStatusBadge, DetailCardSkeleton, EMPTY_LIST_ACTIONS, EditApiKeyModal, EditCredentialModal, EditWebhookEndpointModal, ElevasisCoreProvider, ElevasisLoader, ElevasisSystemsProvider, ElevasisUIProvider, EmptyState, EmptyVisualizer, ErrorAnalysisCard, ErrorBreakdownTable, ErrorDetailsModal, ErrorReportCard, ExecuteWorkflowModal, ExecutionBreakdownTable, ExecutionErrorSection, ExecutionHealth, ExecutionHealthCard, ExecutionLogsFilters, ExecutionLogsPage, ExecutionLogsTable, ExecutionPanel, ExecutionStats, ExecutionStatusBadge, FILTERABLE_DOMAIN_KEYS, FeatureUnavailableState, FilterBar, GlowDot, GraphBackground, GraphContainer, GraphFitViewButton, GraphFitViewHandler, GraphLegend, HealthStatusCard, HeroStatsRow, IdentityDomainSchema, IntegrationResourceEntrySchema, JsonViewer, KNOWLEDGE_DOMAINS_WITH_PANELS, KNOWLEDGE_ICON_TOKEN_BY_KIND, KanbanBoard, KnowledgeSearchBar, KnowledgeTree, LEAD_GEN_ITEMS, LEAD_GEN_ROUTE_LINKS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarMiddle, LeadGenSidebarTop, LinksGroup, ListActionsProvider, ListBuilderIndexPage, ListBuilderPage, ListSkeleton, LogEntry, LogGroup, MdxRenderer, MemberAccessModal, MembershipStatusBadge, MetricsStrip, MilestoneTimeline, MyRolesPage, MyTasksPanel, NavigationButton, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, NoAccessState, NotificationBell, NotificationCenter, NotificationItem, NotificationList, NotificationPanel, NotificationProvider, OAuthConnectModal, OAuthIntegrationsCard, OM_NESTED_TREE_GROUPS, OM_TREE_GROUPS, ORPHAN_STAGE_ORDER, OperationsOverview, OperationsService, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrgMembersList, OrganizationGraphPage, OrganizationMembershipService, OrganizationMembershipsList, OrganizationProvider, OrganizationSettings, OrganizationSwitcher, OrganizationSwitcherConnected, PIPELINE_FUNNEL_ORDER, PageContainer, PageNotFound, PageTitleCaption, PermissionMatrix, PipelineFunnelWidget, PolicySchema, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, ProtectedRoute, QuickCreateActions, RecentExecutionsByResource, RecurringScheduleForm, RelativeScheduleForm, RequestActionIcon, RequestModal, ResourceCard, ResourceDefinitionSection, ResourceDetailPage, ResourceErrorState, ResourceFilter, ResourceHeader, ResourceHealthChart, ResourceHealthPanel, ResourceNotFoundState, ResourceOverview, ResourcesPage, ResourcesSidebar, RichTextEditor, RoleBadge, RoleSchema, RunResourceButton, SAVED_VIEW_PRESETS, SavedViewsPanel, ScheduleCard, ScheduleDetailModal, ScheduleTypeSelector, ScriptResourceEntrySchema, SemanticIcon, SessionChatArea, SessionChatInterface, SessionChatPage, SessionConversationView, SessionDetailsSidebar, SessionExecutionLogs, SessionHeader, SessionListItem, SessionMemory, SessionsPage, SessionsSidebar, Sidebar, SidebarContext, SidebarProvider, SortableHeader, StatCard, StatCardSkeleton, StatsCardSkeleton, StatusBadge, StepConfigForm, SubshellContainer, SubshellContentContainer, SubshellLoader, SubshellNavList, SubshellRightSideContainer, SubshellSidebar, SubshellSidebarLoader, SurfaceDefinitionSchema, SystemOpsView, SystemShell, TabCountBadge, TabSection, TableSelectionToolbar, TaskCard, TaskScheduler, TimeRangeSelector, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, ToolsListDisplay, Topbar, TopbarActions, TopbarContainer, TrendIndicator, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, UnresolvedErrorsTeaser, UpcomingMilestonesPage, Vignette, VisualizerContainer, WebhookEndpointList, WebhookEndpointService, WebhookEndpointSettings, WebhookUrlDisplayModal, WorkflowDefinitionDisplay, WorkflowExecutionLogs, WorkflowExecutionPanel, WorkflowExecutionTimeline, WorkflowResourceEntrySchema, ZodFormRenderer, acquisitionListKeys, aggregateSystemMetrics, buildErrorReport, buildKnowledgeOmTreeData, calculateProgress, clientsKeys, collectResourceFilterFacets, companyKeys, contactKeys, createOrganizationsSlice, createTestSystemsProvider, createUseOrgInitialization, createUseOrganizations, crmManifest, crmPrioritySettingsKeys, dealKeys, dealNoteKeys, dealTaskKeys, deliveryManifest, deriveBusinessProgress, executionsKeys, extendSemanticIconRegistry, filterByDomainFilters, findKnowledgeTreeNodeByValue, findListActionByAction, findOmTreeGroup, formatDate3 as formatDate, formatDealStageLabel, formatResourceAttribution, formatStatusLabel, getConceptDefinition, getEnrichmentColor, getEnrichmentStatus, getExecutionStatusConfig, getGraphBackgroundStyles, getHealthColor, getIcon, getKnowledgeDomainFolderCommand, getKnowledgeGraphNodeCommand, getKnowledgeIconToken, getKnowledgeNodeReadCommand, getKnowledgeOntologyProjection, getKnowledgeTreeFolderCommand, getLeadGenApiInterfaceReadiness, getLeadGenExportWorkflowId, getListActionWorkflowId, getLogLevelConfig, getOntologyDomainLabel, getPrimaryOntologyItemsForDomain, getResourceFilterFacetIds, getSemanticIconComponent, getSeriesColor, getSharedOrganizationGraph, getStateKeyColor, getStatusColor4 as getStatusColor, getStepActionLabel, iconMap, isLeadGenExportAction, isSessionCapable, knowledgeManifest, labelResourceFilterFacet, leadGenArtifactKeys, leadGenListCompanyKeys, leadGenListMemberKeys, leadGenManifest, mdxComponents, milestoneKeys, milestoneStatusColors, monitoringManifest, normaliseConceptKey, noteKeys, noteTypeColors, observabilityKeys, operationsKeys, operationsManifest, projectActivityKeys, projectKeys, projectNavigationGroups, projectNavigationSurfaces, projectStatusColors, requestTopbarActionManifest, requestsKeys, resolveBuildPlanSteps, resolveBuildState, resolveSemanticIconComponent, scheduleKeys, sessionsKeys, settingsManifest, showApiErrorNotification, showAuthError, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification, sortData, sortStageKeys, subsidebarWidth, taskKeys, taskStatusColors, taskTypeColors, useAccess, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useAddCompaniesToList, useAddContactsToList, useAppearance, useArchiveSession, useArchivedLogs, useArtifacts, useAssignRole, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBreadcrumbs, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useClient, useClientStatus, useClients, useCommandQueue, useCommandQueueTask, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateArtifact, useCreateClient, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateList, useCreateMilestone, useCreateNote, useCreateOrgRole, useCreateProject, useCreateSchedule, useCreateSession, useCreateTask, useCreateWebhookEndpoint, useCredentials, useCrmActions, useCrmPipelineSummary, useCrmPrioritySettings, useCrmQuickMetrics, useCyberColors, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteApiKey, useDeleteClient, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteLists, useDeleteMilestone, useDeleteOrgRole, useDeleteProject, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask, useDeleteTask2, useDeleteWebhookEndpoint, useDeriveActions, useEffectivePermissions, useElevasisSystems, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAction, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionSSE, useExecutions, useGetExecutionHistory, useGetSchedule, useGraphBackgroundStyles, useGraphTheme, useInFlightExecutions, useLeadGenConfig, useList, useListActions, useListApiKeys, useListDeployments, useListExecutions, useListMember, useListMembers, useListProgress, useListRecords, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMilestones, useNewKnowledgeMapLayout, useNotificationAdapter, useNotificationCount, useNotifications, useOptionalElevasisSystems, useOrgRoles, useOrganizationMembers, usePaginationState, usePatchTask, usePauseSchedule, usePermissionCatalog, useProject, useProjectActivities, useProjectMilestones, useProjectNotes, useProjectRealtime, useProjectTasks, useProjects, useReactivateMembership, useRecentCrmActivity, useRecentExecutionsByResource, useRemoveCompaniesFromList, useRequest, useRequestsList, useResetCrmPrioritySettings, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResolvedOrganizationModel, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRevokeRole, useSSEConnection, useScheduledTasks, useSession, useSessionCheck, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSidebar, useSidebarCollapse, useSortedData, useStableAccessToken, useStatusFilter, useSubmitAction, useSubmitRequest, useSuccessNotification, useSystemHealth, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTopFailingResources, useTransitionItem, useTransitionListCompany, useTransitionListMember, useTransitionState, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateClient, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateCrmPrioritySettings, useUpdateList, useUpdateListConfig, useUpdateListStatus, useUpdateMilestone, useUpdateOrgRole, useUpdateProject, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useVerifyCredential, useVisibleResources, useWarningNotification, useWorkflowExecution };
@@ -17,6 +17,7 @@ function ElevasisServiceProvider({
17
17
  organizationId,
18
18
  workOSOrganizationId,
19
19
  isReady,
20
+ apiUrl = "",
20
21
  children
21
22
  }) {
22
23
  const resolvedOrganizationId = brandWorkOsOrgId(workOSOrganizationId ?? organizationId ?? null);
@@ -25,9 +26,10 @@ function ElevasisServiceProvider({
25
26
  apiRequest,
26
27
  organizationId: resolvedOrganizationId,
27
28
  workOSOrganizationId: resolvedOrganizationId,
28
- isReady
29
+ isReady,
30
+ apiUrl
29
31
  }),
30
- [apiRequest, resolvedOrganizationId, isReady]
32
+ [apiRequest, resolvedOrganizationId, isReady, apiUrl]
31
33
  );
32
34
  return /* @__PURE__ */ jsx(ElevasisServiceContext.Provider, { value, children });
33
35
  }
@@ -1,4 +1,4 @@
1
- import { ElevasisServiceContext } from './chunk-2FTX4WO2.js';
1
+ import { ElevasisServiceContext } from './chunk-BI5VDO2K.js';
2
2
  import { useAuthContext } from './chunk-BRJ3QZ4E.js';
3
3
  import { createContext, useContext, useState, useEffect, createElement } from 'react';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { useOrganization } from './chunk-DD3CCMCZ.js';
2
- import { useProfile } from './chunk-W2SFTXMT.js';
2
+ import { useProfile } from './chunk-EIXSQONC.js';
3
3
  import { useAuthContext } from './chunk-BRJ3QZ4E.js';
4
4
  import { createContext, useContext, useMemo, useCallback, createElement } from 'react';
5
5
 
@@ -1,4 +1,4 @@
1
- import { useUserProfile } from './chunk-W2SFTXMT.js';
1
+ import { useUserProfile } from './chunk-EIXSQONC.js';
2
2
  import { useAuthContext } from './chunk-BRJ3QZ4E.js';
3
3
  import { useMemo, useCallback } from 'react';
4
4
 
@@ -1,4 +1,4 @@
1
- import { useElevasisServices } from './chunk-2FTX4WO2.js';
1
+ import { useElevasisServices } from './chunk-BI5VDO2K.js';
2
2
  import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
3
3
 
4
4
  var PRIORITY_ORDER = {