@elevasis/ui 2.74.0 → 2.75.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 (64) hide show
  1. package/dist/api/index.js +3 -3
  2. package/dist/app/index.js +8 -8
  3. package/dist/auth/index.js +4 -4
  4. package/dist/charts/index.js +4 -4
  5. package/dist/{chunk-BA3AZJUR.js → chunk-2ZRY3ARL.js} +1 -1
  6. package/dist/{chunk-RFNJ2PTO.js → chunk-3H5DIJN7.js} +1 -1
  7. package/dist/{chunk-5A6KCFS5.js → chunk-47YJVIZE.js} +8 -8
  8. package/dist/{chunk-E6YGA5WH.js → chunk-5RH6NYZH.js} +1 -1
  9. package/dist/{chunk-3QHX4ZKV.js → chunk-5SLRGUC4.js} +1 -1
  10. package/dist/{chunk-7ARBBELS.js → chunk-5VF5LPYS.js} +1 -1
  11. package/dist/{chunk-4MXNHJTA.js → chunk-6BJ5HMMC.js} +242 -546
  12. package/dist/{chunk-ZWI62BQ6.js → chunk-7OOFMEX6.js} +10 -7
  13. package/dist/{chunk-R5UGIFYU.js → chunk-A2SB32YV.js} +25 -1
  14. package/dist/{chunk-GO4XJ5D4.js → chunk-CRPH5AAB.js} +1 -1
  15. package/dist/{chunk-43LC6XAX.js → chunk-D3XXPCCK.js} +1 -1
  16. package/dist/{chunk-BRTGCFBH.js → chunk-DMSTDZCJ.js} +1 -1
  17. package/dist/{chunk-GPQQGQGT.js → chunk-DTEGVSJ6.js} +8 -8
  18. package/dist/{chunk-GDOR57D7.js → chunk-DVAOCHIF.js} +3 -3
  19. package/dist/{chunk-3LOKYZJC.js → chunk-G7O4CBMC.js} +1 -1
  20. package/dist/{chunk-CQPULKKL.js → chunk-GDTK33QT.js} +4 -4
  21. package/dist/{chunk-HYQOGRWG.js → chunk-ICHDIVQO.js} +1 -1
  22. package/dist/{chunk-DCQKTDIG.js → chunk-IYATYH5I.js} +1 -1
  23. package/dist/{chunk-CRA7WQZH.js → chunk-L3NBMLRN.js} +1 -1
  24. package/dist/{chunk-LN4UW6S4.js → chunk-LFLM723H.js} +1 -1
  25. package/dist/{chunk-FZSG6M6W.js → chunk-M6VAZAQW.js} +3 -3
  26. package/dist/{chunk-7RJ7P6S6.js → chunk-MLHZUN2X.js} +5 -5
  27. package/dist/{chunk-FA7LMNQO.js → chunk-NMHQAYZU.js} +2 -2
  28. package/dist/{chunk-ZYNVCWDZ.js → chunk-NYIIRZSA.js} +3 -3
  29. package/dist/{chunk-2MRRDF32.js → chunk-OGHTJKBV.js} +9 -9
  30. package/dist/{chunk-ARAFQBNI.js → chunk-QFS2GZMV.js} +3 -3
  31. package/dist/{chunk-6JN2TLV2.js → chunk-SB3IHM5Y.js} +6 -6
  32. package/dist/{chunk-WZU3MCKI.js → chunk-SEYOVNS5.js} +1 -1
  33. package/dist/{chunk-4M2BSHVT.js → chunk-SN7X5N2A.js} +1 -1
  34. package/dist/{chunk-ZFA56VSR.js → chunk-TX3UHDL5.js} +2 -2
  35. package/dist/{chunk-W2QRBQQA.js → chunk-VWGCURZF.js} +3 -3
  36. package/dist/{chunk-O32UQ26A.js → chunk-ZG6YJUT4.js} +1 -1
  37. package/dist/components/index.d.ts +48 -11
  38. package/dist/components/index.js +315 -39
  39. package/dist/components/navigation/index.js +5 -5
  40. package/dist/features/auth/index.js +6 -6
  41. package/dist/features/clients/index.js +6 -6
  42. package/dist/features/content/index.js +13 -10
  43. package/dist/features/crm/index.js +8 -8
  44. package/dist/features/dashboard/index.js +6 -6
  45. package/dist/features/delivery/index.js +17 -17
  46. package/dist/features/knowledge/index.js +4 -4
  47. package/dist/features/lead-gen/index.js +10 -10
  48. package/dist/features/monitoring/index.js +8 -8
  49. package/dist/features/monitoring/requests/index.js +6 -6
  50. package/dist/features/operations/index.js +11 -11
  51. package/dist/features/settings/index.d.ts +8 -3
  52. package/dist/features/settings/index.js +8 -8
  53. package/dist/hooks/access/index.js +4 -4
  54. package/dist/hooks/delivery/index.js +3 -3
  55. package/dist/hooks/published.d.ts +6 -2
  56. package/dist/hooks/published.js +16 -16
  57. package/dist/knowledge/index.js +8 -8
  58. package/dist/layout/index.js +7 -7
  59. package/dist/provider/index.js +4 -4
  60. package/dist/provider/published.js +4 -4
  61. package/dist/test-utils/index.js +3 -3
  62. package/dist/types/index.d.ts +14 -0
  63. package/dist/utils/index.js +1 -1
  64. package/package.json +7 -3
@@ -1,15 +1,15 @@
1
- import { useDealDetail, useExecuteAction } from './chunk-FZSG6M6W.js';
2
- import { CRM_API_INTERFACE } from './chunk-ZFA56VSR.js';
3
- import { useTableSort, sortData, useCompany, useContact, deriveActions } from './chunk-ZYNVCWDZ.js';
1
+ import { useDealDetail, useExecuteAction } from './chunk-M6VAZAQW.js';
2
+ import { CRM_API_INTERFACE } from './chunk-TX3UHDL5.js';
3
+ import { useTableSort, sortData, useCompany, useContact, deriveActions } from './chunk-NYIIRZSA.js';
4
4
  import { useTableSelection } from './chunk-WDBNW44Z.js';
5
5
  import { PageContainer } from './chunk-BZZCNLT6.js';
6
6
  import { TableSelectionToolbar, SortableHeader } from './chunk-TUMSNGTX.js';
7
7
  import { FilterBar } from './chunk-PDHTXPSF.js';
8
- import { CrmSidebarMiddle, useDealsSummary, useOptionalElevasisSystems, getCrmPipelineCatalog, CenteredErrorState, StatCard, PageTitleCaption, useDeleteDeal, usePaginationState, useDeals, SubshellContentContainer, EmptyState, CustomModal, useCrmActions, ActivityTimeline, ContextViewer, JsonViewer, dealKeys } from './chunk-6JN2TLV2.js';
9
- import { showApiErrorNotification, showSuccessNotification } from './chunk-HYQOGRWG.js';
8
+ import { CrmSidebarMiddle, useDealsSummary, useOptionalElevasisSystems, getCrmPipelineCatalog, CenteredErrorState, StatCard, PageTitleCaption, useDeleteDeal, usePaginationState, useDeals, SubshellContentContainer, EmptyState, CustomModal, useCrmActions, ActivityTimeline, ContextViewer, JsonViewer, dealKeys } from './chunk-SB3IHM5Y.js';
9
+ import { showApiErrorNotification, showSuccessNotification } from './chunk-ICHDIVQO.js';
10
10
  import { SubshellSidebarSection } from './chunk-MISHPEJX.js';
11
11
  import { CardHeader } from './chunk-62GVNH5U.js';
12
- import { computeInterfaceReadiness, getSystem, PAGE_SIZE_DEFAULT, formatTimeAgo } from './chunk-R5UGIFYU.js';
12
+ import { computeInterfaceReadiness, getSystem, PAGE_SIZE_DEFAULT, formatTimeAgo } from './chunk-A2SB32YV.js';
13
13
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
14
14
  import { Stack, Paper, Center, Loader, Group, Box, Text, Alert, Table, SimpleGrid, Button, Select, TextInput, Tabs, Checkbox, Badge, Tooltip, Pagination, Title, Code, Card, SegmentedControl, Switch, NumberInput, ColorSwatch, Popover, ActionIcon, Anchor, CopyButton, Divider, Textarea } from '@mantine/core';
15
15
  import { IconAddressBook, IconColumns, IconHistory, IconAlertCircle, IconCurrencyDollar, IconChartBar, IconBriefcase, IconTrophy, IconSearch, IconTargetArrow, IconAlertTriangle, IconMessages, IconArrowLeft, IconFileText, IconInbox, IconUser, IconBolt, IconBuilding, IconSettings, IconRestore, IconInfoCircle, IconMailForward, IconPlus, IconArrowRight, IconNote, IconCheck, IconCopy } from '@tabler/icons-react';
@@ -1671,7 +1671,10 @@ function CrmSettingsPage() {
1671
1671
  {
1672
1672
  label: "Priority Enabled",
1673
1673
  checked: draft.enabled,
1674
- onChange: (event) => setDraft((current) => ({ ...current, enabled: event.currentTarget.checked }))
1674
+ onChange: (event) => {
1675
+ const enabled = event.currentTarget.checked;
1676
+ setDraft((current) => ({ ...current, enabled }));
1677
+ }
1675
1678
  }
1676
1679
  ) : null
1677
1680
  }
@@ -1380,6 +1380,30 @@ function computeInterfaceReadiness(model, request) {
1380
1380
  };
1381
1381
  }
1382
1382
 
1383
+ // ../core/src/organization-model/readiness/remedies.ts
1384
+ var REDEPLOY_REMEDY = "Deploy the organization model again to fix this: elevasis-sdk deploy";
1385
+ var FAMILY_REMEDY = {
1386
+ SYSTEM_INTERFACE_MISSING: "The System does not declare this interface. Add an apiInterface block for it in the organization model, then deploy again.",
1387
+ SYSTEM_INTERFACE_DISABLED: "The interface is declared but not enabled. Set its lifecycle to enabled in the organization model, then deploy again.",
1388
+ SYSTEM_INTERFACE_INVALID: "The interface declaration did not validate. Fix the declaration named in the issues above, then deploy again.",
1389
+ SYSTEM_INTERFACE_NOT_READY: "The interface is declared and enabled but its readiness contract is unsatisfied. Resolve the issues above, then deploy again.",
1390
+ SYSTEM_BRIDGE_NOT_READY: "The bridge between two Systems is not ready. Resolve the issues above on both Systems, then deploy again.",
1391
+ STALE_OM_SNAPSHOT: REDEPLOY_REMEDY
1392
+ };
1393
+ var RESOLUTION_ISSUE_CODES = [
1394
+ "model-parse-failed",
1395
+ "stale-om-snapshot",
1396
+ "active-deployment-model-missing",
1397
+ "canonical-fallback-not-allowed"
1398
+ ];
1399
+ function isResolutionIssue(issue) {
1400
+ return RESOLUTION_ISSUE_CODES.includes(issue.code);
1401
+ }
1402
+ function resolveReadinessRemedy(issue) {
1403
+ if (isResolutionIssue(issue)) return REDEPLOY_REMEDY;
1404
+ return FAMILY_REMEDY[issue.family] ?? FAMILY_REMEDY.SYSTEM_INTERFACE_NOT_READY;
1405
+ }
1406
+
1383
1407
  // ../core/src/platform/registry/resource-metadata.ts
1384
1408
  var resourceTypeIconNames = {
1385
1409
  agent: "IconBrain",
@@ -1504,4 +1528,4 @@ function setupBrowserMocks() {
1504
1528
  setupResizeObserver();
1505
1529
  }
1506
1530
 
1507
- export { APIClientError, API_URL, ActionInvocationSchema, ActionSchema, ActionsDomainSchema, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DEFAULT_ONTOLOGY_SCOPE, DEFAULT_ORGANIZATION_MODEL_ACTIONS, DEFAULT_ORGANIZATION_MODEL_SYSTEMS, DescriptionSchema, EntitiesDomainSchema, EntitySchema, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, IconNameSchema, JsonValueSchema, LIMIT_ACTIVITY_FEED, LabelSchema, ModelIdSchema, NodeIdStringSchema, OAUTH_FLOW_TIMEOUT, OntologyIdSchema, OntologyScopeSchema, PAGE_SIZE_DEFAULT, PathSchema, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, SYSTEM_INTERFACE_PROFILES, SystemEntrySchema, SystemIdSchema, SystemInterfaceRefSchema, SystemLifecycleSchema, SystemPathSchema, SystemsDomainSchema, addReadinessIssue, ancestorsOf, childrenOf, compileOrganizationOntology, computeInterfaceReadiness, defaultPathFor, devOnlyFor, findById, findByPath, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatInterfaceIdentity, formatOntologyId, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, getResourcesForSystem, getSystem, getSystemAncestors, getSystemReadinessServerErrorDetails, isAPIClientError, isSystemLifecycleVisible, listAllSystems, listResolvedOntologyRecords, ontologyGraphNodeId, parentOf, parseOntologyId, registerBuiltInReadinessProfile, registerReadinessInterfaceMarker, requireCatalogReadiness, requireContractReadiness, requireScopedBinding, resolveSystemConfig, resourceBindingIds, restoreConsole, setupBrowserMocks, suppressKnownWarnings, systemLifecycleAllowsAccess, topLevel, validateEmail };
1531
+ export { APIClientError, API_URL, ActionInvocationSchema, ActionSchema, ActionsDomainSchema, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DEFAULT_ONTOLOGY_SCOPE, DEFAULT_ORGANIZATION_MODEL_ACTIONS, DEFAULT_ORGANIZATION_MODEL_SYSTEMS, DescriptionSchema, EntitiesDomainSchema, EntitySchema, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, IconNameSchema, JsonValueSchema, LIMIT_ACTIVITY_FEED, LabelSchema, ModelIdSchema, NodeIdStringSchema, OAUTH_FLOW_TIMEOUT, OntologyIdSchema, OntologyScopeSchema, PAGE_SIZE_DEFAULT, PathSchema, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, SYSTEM_INTERFACE_PROFILES, SystemEntrySchema, SystemIdSchema, SystemInterfaceRefSchema, SystemLifecycleSchema, SystemPathSchema, SystemsDomainSchema, addReadinessIssue, ancestorsOf, childrenOf, compileOrganizationOntology, computeInterfaceReadiness, defaultPathFor, devOnlyFor, findById, findByPath, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatInterfaceIdentity, formatOntologyId, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, getResourcesForSystem, getSystem, getSystemAncestors, getSystemReadinessServerErrorDetails, isAPIClientError, isSystemLifecycleVisible, listAllSystems, listResolvedOntologyRecords, ontologyGraphNodeId, parentOf, parseOntologyId, registerBuiltInReadinessProfile, registerReadinessInterfaceMarker, requireCatalogReadiness, requireContractReadiness, requireScopedBinding, resolveReadinessRemedy, resolveSystemConfig, resourceBindingIds, restoreConsole, setupBrowserMocks, suppressKnownWarnings, systemLifecycleAllowsAccess, topLevel, validateEmail };
@@ -1,4 +1,4 @@
1
- import { NavigationButton, useAppearance, useElevasisSystems } from './chunk-6JN2TLV2.js';
1
+ import { NavigationButton, useAppearance, useElevasisSystems } from './chunk-SB3IHM5Y.js';
2
2
  import { sidebarItemGap, sidebarSubLinkPaddingY, sidebarSubLinkPaddingX, sidebarSubLinkIndent, sidebarHoverDelay, sidebarTransitionDuration, sidebarCollapsedWidth, sidebarWidth, topbarHeight, sidebarToggleIconSize, sidebarSectionPadding, sidebarGroupChevronSize, sidebarIconInnerSize, SubshellNavItem } from './chunk-MISHPEJX.js';
3
3
  import { useRouterContext } from './chunk-Q7DJKLEN.js';
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -1,4 +1,4 @@
1
- import { requestsKeys } from './chunk-6JN2TLV2.js';
1
+ import { requestsKeys } from './chunk-SB3IHM5Y.js';
2
2
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
3
3
  import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { GetNotificationsQuerySchema, MarkAsReadParamsSchema } from './chunk-VM2OWOXL.js';
2
- import { useNotificationAdapter } from './chunk-6JN2TLV2.js';
2
+ import { useNotificationAdapter } from './chunk-SB3IHM5Y.js';
3
3
  import { getTimeRangeDates } from './chunk-Y6I3IC45.js';
4
4
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
5
5
  import { useCallback, useState } from 'react';
@@ -1,12 +1,12 @@
1
- import { projectKeys, noteKeys, taskKeys, milestoneKeys } from './chunk-DCQKTDIG.js';
2
- import { leadGenListMemberKeys } from './chunk-GDOR57D7.js';
3
- import { companyKeys, contactKeys } from './chunk-ZYNVCWDZ.js';
4
- import { useErrorNotification } from './chunk-BRTGCFBH.js';
5
- import { useNotificationAdapter, dealKeys, acquisitionListKeys, useListsTelemetry, useOptionalElevasisSystems, useSSEConnection } from './chunk-6JN2TLV2.js';
6
- import { HTTP_HEADERS } from './chunk-O32UQ26A.js';
7
- import { showApiErrorNotification, showSuccessNotification } from './chunk-HYQOGRWG.js';
1
+ import { projectKeys, noteKeys, taskKeys, milestoneKeys } from './chunk-IYATYH5I.js';
2
+ import { leadGenListMemberKeys } from './chunk-DVAOCHIF.js';
3
+ import { companyKeys, contactKeys } from './chunk-NYIIRZSA.js';
4
+ import { useErrorNotification } from './chunk-DMSTDZCJ.js';
5
+ import { useNotificationAdapter, dealKeys, acquisitionListKeys, useListsTelemetry, useOptionalElevasisSystems, useSSEConnection } from './chunk-SB3IHM5Y.js';
6
+ import { HTTP_HEADERS } from './chunk-ZG6YJUT4.js';
7
+ import { showApiErrorNotification, showSuccessNotification } from './chunk-ICHDIVQO.js';
8
8
  import { OrganizationContext, useOrganization } from './chunk-DD3CCMCZ.js';
9
- import { STALE_TIME_DEFAULT, STALE_TIME_ADMIN } from './chunk-R5UGIFYU.js';
9
+ import { STALE_TIME_DEFAULT, STALE_TIME_ADMIN } from './chunk-A2SB32YV.js';
10
10
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
11
11
  import { useAuthContext } from './chunk-BRJ3QZ4E.js';
12
12
  import { useContext, useEffect, useState, useRef, useCallback, useMemo } from 'react';
@@ -1,6 +1,6 @@
1
- import { deriveActions } from './chunk-ZYNVCWDZ.js';
2
- import { acquisitionListKeys } from './chunk-6JN2TLV2.js';
3
- import { showApiErrorNotification, showSuccessNotification } from './chunk-HYQOGRWG.js';
1
+ import { deriveActions } from './chunk-NYIIRZSA.js';
2
+ import { acquisitionListKeys } from './chunk-SB3IHM5Y.js';
3
+ import { showApiErrorNotification, showSuccessNotification } from './chunk-ICHDIVQO.js';
4
4
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
5
5
  import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
6
6
  import { useMemo } from 'react';
@@ -1,4 +1,4 @@
1
- import { useNotificationAdapter } from './chunk-6JN2TLV2.js';
1
+ import { useNotificationAdapter } from './chunk-SB3IHM5Y.js';
2
2
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
3
3
  import { CredentialNameSchema, UuidSchema } from './chunk-TVTSASST.js';
4
4
  import { z } from 'zod';
@@ -1,11 +1,11 @@
1
- import { useMarkAsRead, useExecutionLogsFilters, useExecutionLogs, useExecutionHealth, useCostSummary, useActivityFilters, useActivityTrend, useActivities, useNotifications, useMarkAllAsRead } from './chunk-BRTGCFBH.js';
1
+ import { useMarkAsRead, useExecutionLogsFilters, useExecutionLogs, useExecutionHealth, useCostSummary, useActivityFilters, useActivityTrend, useActivities, useNotifications, useMarkAllAsRead } from './chunk-DMSTDZCJ.js';
2
2
  import { useTimeRangeDates } from './chunk-YQQ5GRUR.js';
3
- import { AppShellLoader } from './chunk-E6YGA5WH.js';
3
+ import { AppShellLoader } from './chunk-5RH6NYZH.js';
4
4
  import { FilterBar } from './chunk-PDHTXPSF.js';
5
- import { CenteredErrorState, StatsCardSkeleton, CyberAreaChart, TrendIndicator, DetailCardSkeleton, useResolveError, useResolveAllErrors, usePaginationState, useErrorDetails, EmptyState, PageTitleCaption, useErrorAnalysis, useErrorDetail, useResolveErrorsByExecution, useResources, CustomModal, JsonViewer, useCostTrends, useCostByModel, useCostBreakdown, CostTrendChart, ActivityTrendChart } from './chunk-6JN2TLV2.js';
5
+ import { CenteredErrorState, StatsCardSkeleton, CyberAreaChart, TrendIndicator, DetailCardSkeleton, useResolveError, useResolveAllErrors, usePaginationState, useErrorDetails, EmptyState, PageTitleCaption, useErrorAnalysis, useErrorDetail, useResolveErrorsByExecution, useResources, CustomModal, JsonViewer, useCostTrends, useCostByModel, useCostBreakdown, CostTrendChart, ActivityTrendChart } from './chunk-SB3IHM5Y.js';
6
6
  import { CardHeader } from './chunk-62GVNH5U.js';
7
7
  import { formatDuration } from './chunk-BLXJEIQS.js';
8
- import { PAGE_SIZE_DEFAULT } from './chunk-R5UGIFYU.js';
8
+ import { PAGE_SIZE_DEFAULT } from './chunk-A2SB32YV.js';
9
9
  import { formatBucketTime, getTimeRangeDates } from './chunk-Y6I3IC45.js';
10
10
  import { useRouterContext } from './chunk-Q7DJKLEN.js';
11
11
  import { useState, useMemo, useCallback } from 'react';
@@ -1,4 +1,4 @@
1
- import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-R5UGIFYU.js';
1
+ import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-A2SB32YV.js';
2
2
  import { notifications } from '@mantine/notifications';
3
3
 
4
4
  var showInfoNotification = (message) => {
@@ -1,4 +1,4 @@
1
- import { showApiErrorNotification } from './chunk-HYQOGRWG.js';
1
+ import { showApiErrorNotification } from './chunk-ICHDIVQO.js';
2
2
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
3
3
  import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
4
4
 
@@ -1,4 +1,4 @@
1
- import { computeInterfaceReadiness, getSystem } from './chunk-R5UGIFYU.js';
1
+ import { computeInterfaceReadiness, getSystem } from './chunk-A2SB32YV.js';
2
2
 
3
3
  // src/features/operations/systems/systemInterfaceReadiness.ts
4
4
  function summarizeReadinessIssues(issues) {
@@ -1,4 +1,4 @@
1
- import { useAppearance } from './chunk-6JN2TLV2.js';
1
+ import { useAppearance } from './chunk-SB3IHM5Y.js';
2
2
  import { useState, Component } from 'react';
3
3
  import { CopyButton, Tooltip } from '@mantine/core';
4
4
  import { IconCheck, IconCopy } from '@tabler/icons-react';
@@ -1,6 +1,6 @@
1
- import { dealKeys } from './chunk-6JN2TLV2.js';
2
- import { showApiErrorNotification } from './chunk-HYQOGRWG.js';
3
- import { APIClientError } from './chunk-R5UGIFYU.js';
1
+ import { dealKeys } from './chunk-SB3IHM5Y.js';
2
+ import { showApiErrorNotification } from './chunk-ICHDIVQO.js';
3
+ import { APIClientError } from './chunk-A2SB32YV.js';
4
4
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
5
5
  import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
6
6
 
@@ -1,15 +1,15 @@
1
- import { useProjectRealtime, useProjectActivities } from './chunk-GPQQGQGT.js';
2
- import { useCreateTask, useCreateMilestone, useProjectMilestones, useUpdateTask, useProjects, useDeleteProject, useProject, useProjectNotes, useUpdateMilestone, useCreateNote } from './chunk-DCQKTDIG.js';
3
- import { useTableSort, sortData } from './chunk-ZYNVCWDZ.js';
1
+ import { useProjectRealtime, useProjectActivities } from './chunk-DTEGVSJ6.js';
2
+ import { useCreateTask, useCreateMilestone, useProjectMilestones, useUpdateTask, useProjects, useDeleteProject, useProject, useProjectNotes, useUpdateMilestone, useCreateNote } from './chunk-IYATYH5I.js';
3
+ import { useTableSort, sortData } from './chunk-NYIIRZSA.js';
4
4
  import { useTableSelection } from './chunk-WDBNW44Z.js';
5
5
  import { milestoneStatusColors, formatStatusLabel, taskTypeColors, taskStatusColors, projectStatusColors, calculateProgress, noteTypeColors } from './chunk-DLR4SDZW.js';
6
6
  import { PageContainer } from './chunk-BZZCNLT6.js';
7
7
  import { TableSelectionToolbar, SortableHeader } from './chunk-TUMSNGTX.js';
8
8
  import { FilterBar } from './chunk-PDHTXPSF.js';
9
- import { StatusBadge, EmptyState, SubshellContentContainer, PageTitleCaption, usePaginationState, CenteredErrorState, CustomModal, StatCard } from './chunk-6JN2TLV2.js';
9
+ import { StatusBadge, EmptyState, SubshellContentContainer, PageTitleCaption, usePaginationState, CenteredErrorState, CustomModal, StatCard } from './chunk-SB3IHM5Y.js';
10
10
  import { SubshellSidebarSection, SubshellNavItem } from './chunk-MISHPEJX.js';
11
11
  import { CardHeader } from './chunk-62GVNH5U.js';
12
- import { PAGE_SIZE_DEFAULT, formatTimeAgo, formatDate, formatRelativeTime } from './chunk-R5UGIFYU.js';
12
+ import { PAGE_SIZE_DEFAULT, formatTimeAgo, formatDate, formatRelativeTime } from './chunk-A2SB32YV.js';
13
13
  import { useRouterContext } from './chunk-Q7DJKLEN.js';
14
14
  import { useState, useMemo } from 'react';
15
15
  import { Stack, Text, Group, Checkbox, ActionIcon, TextInput, Button, Modal, Title, Textarea, Select, SimpleGrid, Card, ThemeIcon, RingProgress, Paper, Timeline, Badge, Collapse, Center, Loader, Table, Pagination, Alert, CopyButton, Tooltip, Space, Tabs, Divider, Anchor, Chip, List } from '@mantine/core';
@@ -1,8 +1,8 @@
1
1
  import { createLiveTempMessageIdentity } from './chunk-QFGNRKIE.js';
2
- import { sessionsKeys } from './chunk-6JN2TLV2.js';
2
+ import { sessionsKeys } from './chunk-SB3IHM5Y.js';
3
3
  import { SessionIdParamSchema, WebSocketSessionTurnSchema, ExecutionIdParamsSchema } from './chunk-2GIJBHZT.js';
4
4
  import { useOrganization } from './chunk-DD3CCMCZ.js';
5
- import { STALE_TIME_MONITORING, STALE_TIME_DEFAULT } from './chunk-R5UGIFYU.js';
5
+ import { STALE_TIME_MONITORING, STALE_TIME_DEFAULT } from './chunk-A2SB32YV.js';
6
6
  import { WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, REFETCH_INTERVAL_RUNNING } from './chunk-Y6I3IC45.js';
7
7
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
8
8
  import { useAuthContext } from './chunk-BRJ3QZ4E.js';
@@ -1,6 +1,6 @@
1
- import { acquisitionListKeys } from './chunk-6JN2TLV2.js';
2
- import { showApiErrorNotification, showSuccessNotification } from './chunk-HYQOGRWG.js';
3
- import { APIClientError } from './chunk-R5UGIFYU.js';
1
+ import { acquisitionListKeys } from './chunk-SB3IHM5Y.js';
2
+ import { showApiErrorNotification, showSuccessNotification } from './chunk-ICHDIVQO.js';
3
+ import { APIClientError } from './chunk-A2SB32YV.js';
4
4
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
5
5
  import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
6
6
  import { z } from 'zod';
@@ -1,23 +1,23 @@
1
- import { SubshellLoader } from './chunk-BA3AZJUR.js';
2
- import { CollapsibleJsonSection, ExecutionStats, UnifiedWorkflowGraph, WorkflowExecutionTimeline, AgentExecutionVisualizer, AgentExecutionTimeline, AgentIterationDetailPanel } from './chunk-W2QRBQQA.js';
3
- import { useCommandViewData, useCommandViewStats, useCommandViewStore, useResourceExecutions, useCheckpointTasks, useSessionMessages, useSessionWebSocket, useSessionExecutions } from './chunk-FA7LMNQO.js';
4
- import { findNavigationSurfaceForSystem, getSystemApiInterfaceReadiness } from './chunk-CRA7WQZH.js';
1
+ import { SubshellLoader } from './chunk-2ZRY3ARL.js';
2
+ import { CollapsibleJsonSection, ExecutionStats, UnifiedWorkflowGraph, WorkflowExecutionTimeline, AgentExecutionVisualizer, AgentExecutionTimeline, AgentIterationDetailPanel } from './chunk-VWGCURZF.js';
3
+ import { useCommandViewData, useCommandViewStats, useCommandViewStore, useResourceExecutions, useCheckpointTasks, useSessionMessages, useSessionWebSocket, useSessionExecutions } from './chunk-NMHQAYZU.js';
4
+ import { findNavigationSurfaceForSystem, getSystemApiInterfaceReadiness } from './chunk-L3NBMLRN.js';
5
5
  import { FormFieldRenderer } from './chunk-3MEXPLWT.js';
6
6
  import { ChatInterface, ChatHeader } from './chunk-SNZDFCOQ.js';
7
7
  import { mergeSessionMessages } from './chunk-QFGNRKIE.js';
8
- import { ResourceHealthPanel } from './chunk-WZU3MCKI.js';
8
+ import { ResourceHealthPanel } from './chunk-SEYOVNS5.js';
9
9
  import { Graph_module_css_default } from './chunk-HENXLGVD.js';
10
- import { AppShellLoader } from './chunk-E6YGA5WH.js';
10
+ import { AppShellLoader } from './chunk-5RH6NYZH.js';
11
11
  import { PageContainer } from './chunk-BZZCNLT6.js';
12
- import { DEFAULT_ORGANIZATION_GRAPH_FILTERS, resolveSemanticIconComponent, CustomModal, useAppearance, useErrorDetail, JsonViewer, useExecution, useArchivedLogs, useDeleteExecution, useRetryExecution, useCancelExecution, ConfirmationModal, PageTitleCaption, CollapsibleSection, useStatusFilter, useResourceSearch, useResourcesDomainFilters, usePaginationState, useResources, useRecentExecutionsByResource, filterByDomainFilters, TabCountBadge, ResourceCard, useResourceDefinition, isSessionCapable, useOptionalElevasisSystems, useDeleteTask, useCommandQueue, useSubmitAction, useCommandQueueTask, ContextViewer, useElevasisSystems, buildOrganizationGraph, EmptyState, useExecutionPanelState, useSessions, SessionListItem, useDeleteSession, useEndSession, useCreateSession, useSession, getSessionView, SubshellContentContainer, collectResourceFilterFacets, SemanticIcon, useSystemsViewState, aggregateSystemMetrics, useSystemHealth, ORGANIZATION_GRAPH_NODE_KIND_ORDER, formatResourceAttribution, SYSTEM_RESOURCE_KINDS, ORGANIZATION_GRAPH_NODE_KIND_LABELS, ORGANIZATION_GRAPH_EDGE_KIND_LABELS, ORGANIZATION_GRAPH_NODE_KIND_DETAIL_LABELS, ORGANIZATION_GRAPH_NODE_KIND_MEANINGS, ORGANIZATION_GRAPH_EDGE_KIND_MEANINGS } from './chunk-6JN2TLV2.js';
13
- import { showApiErrorNotification, showSuccessNotification } from './chunk-HYQOGRWG.js';
12
+ import { DEFAULT_ORGANIZATION_GRAPH_FILTERS, resolveSemanticIconComponent, CustomModal, useAppearance, useErrorDetail, JsonViewer, useExecution, useArchivedLogs, useDeleteExecution, useRetryExecution, useCancelExecution, ConfirmationModal, PageTitleCaption, CollapsibleSection, useStatusFilter, useResourceSearch, useResourcesDomainFilters, usePaginationState, useResources, useRecentExecutionsByResource, filterByDomainFilters, TabCountBadge, ResourceCard, useResourceDefinition, isSessionCapable, useOptionalElevasisSystems, useDeleteTask, useCommandQueue, useSubmitAction, useCommandQueueTask, ContextViewer, useElevasisSystems, buildOrganizationGraph, EmptyState, useExecutionPanelState, useSessions, SessionListItem, useDeleteSession, useEndSession, useCreateSession, useSession, getSessionView, SubshellContentContainer, collectResourceFilterFacets, SemanticIcon, useSystemsViewState, aggregateSystemMetrics, useSystemHealth, ORGANIZATION_GRAPH_NODE_KIND_ORDER, formatResourceAttribution, SYSTEM_RESOURCE_KINDS, ORGANIZATION_GRAPH_NODE_KIND_LABELS, ORGANIZATION_GRAPH_EDGE_KIND_LABELS, ORGANIZATION_GRAPH_NODE_KIND_DETAIL_LABELS, ORGANIZATION_GRAPH_NODE_KIND_MEANINGS, ORGANIZATION_GRAPH_EDGE_KIND_MEANINGS } from './chunk-SB3IHM5Y.js';
13
+ import { showApiErrorNotification, showSuccessNotification } from './chunk-ICHDIVQO.js';
14
14
  import { topbarHeight } from './chunk-MISHPEJX.js';
15
15
  import { CardHeader } from './chunk-62GVNH5U.js';
16
16
  import { useInitialization } from './chunk-P45GQ3ZW.js';
17
17
  import { StyledMarkdown } from './chunk-3KMDHCAR.js';
18
18
  import { getResourceStatusColor, useMergedExecution, useTimelineData, useAgentIterationData } from './chunk-BLXJEIQS.js';
19
19
  import { useOrganization } from './chunk-DD3CCMCZ.js';
20
- import { getErrorInfo, formatErrorMessage, getResourceIcon, formatRelativeTime, PAGE_SIZE_DEFAULT, listAllSystems, getSystem, compileOrganizationOntology, getSystemAncestors } from './chunk-R5UGIFYU.js';
20
+ import { getErrorInfo, formatErrorMessage, getResourceIcon, formatRelativeTime, PAGE_SIZE_DEFAULT, listAllSystems, getSystem, compileOrganizationOntology, getSystemAncestors } from './chunk-A2SB32YV.js';
21
21
  import { ResourceStatusColors, toWorkflowLogMessages } from './chunk-6SSQGWK7.js';
22
22
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
23
23
  import { useRouterContext } from './chunk-Q7DJKLEN.js';
@@ -1,7 +1,7 @@
1
- import { useNotificationAdapter } from './chunk-6JN2TLV2.js';
2
- import { showApiErrorNotification } from './chunk-HYQOGRWG.js';
1
+ import { useNotificationAdapter } from './chunk-SB3IHM5Y.js';
2
+ import { showApiErrorNotification } from './chunk-ICHDIVQO.js';
3
3
  import { OrganizationContext } from './chunk-DD3CCMCZ.js';
4
- import { STALE_TIME_DEFAULT, GC_TIME_MEDIUM, GC_TIME_SHORT, STALE_TIME_MONITORING } from './chunk-R5UGIFYU.js';
4
+ import { STALE_TIME_DEFAULT, GC_TIME_MEDIUM, GC_TIME_SHORT, STALE_TIME_MONITORING } from './chunk-A2SB32YV.js';
5
5
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
6
6
  import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
7
7
  import { z } from 'zod';
@@ -1,7 +1,7 @@
1
1
  import { mantineThemeOverride, createCssVariablesResolver, PresetsProvider } from './chunk-R6NMRXNO.js';
2
2
  import { PRESETS, getPreset, AppBackground, generateShades } from './chunk-RBGVNPA6.js';
3
- import { HTTP_HEADERS, ApiClientProvider, useApiClient } from './chunk-O32UQ26A.js';
4
- import { showApiErrorNotification, showSuccessNotification } from './chunk-HYQOGRWG.js';
3
+ import { HTTP_HEADERS, ApiClientProvider, useApiClient } from './chunk-ZG6YJUT4.js';
4
+ import { showApiErrorNotification, showSuccessNotification } from './chunk-ICHDIVQO.js';
5
5
  import { topbarHeight, sidebarTransitionDuration, sidebarBottomSectionHeight, SubshellSidebarSection, sidebarItemPadding, sidebarItemHeight, sidebarIconSize, sidebarIconStroke, sidebarIconInnerSize, SubshellNavItem } from './chunk-MISHPEJX.js';
6
6
  import { CardHeader } from './chunk-62GVNH5U.js';
7
7
  import { InitializationContext, useInitialization, InitializationProvider } from './chunk-P45GQ3ZW.js';
@@ -11,7 +11,7 @@ import { getStatusIcon } from './chunk-BLXJEIQS.js';
11
11
  import { invalidateOrgScopedQueries, OrganizationProvider } from './chunk-UD657ICS.js';
12
12
  import { OrganizationContext, useOrganization } from './chunk-DD3CCMCZ.js';
13
13
  import { ProfileProvider } from './chunk-RT4KRGZT.js';
14
- 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, formatOntologyId, isSystemLifecycleVisible, listResolvedOntologyRecords, getErrorInfo, getErrorTitle, formatErrorMessage, compileOrganizationOntology, listAllSystems, ontologyGraphNodeId, parseOntologyId, getSystem, STALE_TIME_DEFAULT, GC_TIME_SHORT, STALE_TIME_MONITORING, getResourceIcon, formatTimeAgo, getResourcesForSystem, formatRelativeTime, PAGE_SIZE_DEFAULT, devOnlyFor, topLevel, parentOf, ancestorsOf, childrenOf, findById, findByPath, systemLifecycleAllowsAccess, resolveSystemConfig, defaultPathFor } from './chunk-R5UGIFYU.js';
14
+ 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, formatOntologyId, isSystemLifecycleVisible, listResolvedOntologyRecords, getErrorInfo, getErrorTitle, formatErrorMessage, compileOrganizationOntology, listAllSystems, ontologyGraphNodeId, parseOntologyId, getSystem, STALE_TIME_DEFAULT, GC_TIME_SHORT, STALE_TIME_MONITORING, getResourceIcon, formatTimeAgo, resolveReadinessRemedy, getResourcesForSystem, formatRelativeTime, PAGE_SIZE_DEFAULT, devOnlyFor, topLevel, parentOf, ancestorsOf, childrenOf, findById, findByPath, systemLifecycleAllowsAccess, resolveSystemConfig, defaultPathFor } from './chunk-A2SB32YV.js';
15
15
  import { getTimeRangeLabel, getTimeRangeDates, formatBucketTime, REFETCH_INTERVAL_DASHBOARD, debounce } from './chunk-Y6I3IC45.js';
16
16
  import { ResourceStatusColors } from './chunk-6SSQGWK7.js';
17
17
  import { ElevasisServiceContext, useElevasisServices, ElevasisServiceProvider } from './chunk-BI5VDO2K.js';
@@ -5871,7 +5871,6 @@ function ActivityTimeline({ activities }) {
5871
5871
  );
5872
5872
  }) }) });
5873
5873
  }
5874
- var STALE_SNAPSHOT_HINT = "Redeploy with `pnpm operations:deploy` to refresh the deployed Organization Model snapshot.";
5875
5874
  function SystemReadinessAlert({
5876
5875
  ready,
5877
5876
  actionLabel,
@@ -5880,7 +5879,8 @@ function SystemReadinessAlert({
5880
5879
  serverError
5881
5880
  }) {
5882
5881
  if (ready && !serverError) return null;
5883
- const redeployHint = serverError?.readinessCode === "STALE_OM_SNAPSHOT" ? STALE_SNAPSHOT_HINT : void 0;
5882
+ const primaryIssue = serverError?.issues[0];
5883
+ const remedy = primaryIssue ? resolveReadinessRemedy(primaryIssue) : void 0;
5884
5884
  return /* @__PURE__ */ jsx(Alert, { icon: /* @__PURE__ */ jsx(IconAlertCircle, { size: 16 }), color: "yellow", variant: "light", children: /* @__PURE__ */ jsxs(Stack, { gap: 4, children: [
5885
5885
  /* @__PURE__ */ jsxs(Text, { size: "sm", children: [
5886
5886
  actionLabel,
@@ -5896,7 +5896,7 @@ function SystemReadinessAlert({
5896
5896
  " ",
5897
5897
  issue.message
5898
5898
  ] }, `${issue.family}-${issue.code}-${index}`)) }) : null,
5899
- redeployHint ? /* @__PURE__ */ jsx(Text, { size: "sm", fw: 500, children: redeployHint }) : null
5899
+ remedy ? /* @__PURE__ */ jsx(Text, { size: "sm", fw: 500, children: remedy }) : null
5900
5900
  ] }) });
5901
5901
  }
5902
5902
  var GRANULARITY_MAP = {
@@ -1,4 +1,4 @@
1
- import { useCyberColors, useResourcesHealth, EmptyState, CyberLegendItem, CyberAreaChart } from './chunk-6JN2TLV2.js';
1
+ import { useCyberColors, useResourcesHealth, EmptyState, CyberLegendItem, CyberAreaChart } from './chunk-SB3IHM5Y.js';
2
2
  import { CardHeader } from './chunk-62GVNH5U.js';
3
3
  import { getTimeRangeDates, formatBucketTime } from './chunk-Y6I3IC45.js';
4
4
  import { Paper, Center, Loader, Group } from '@mantine/core';
@@ -1,4 +1,4 @@
1
- import { showApiErrorNotification } from './chunk-HYQOGRWG.js';
1
+ import { showApiErrorNotification } from './chunk-ICHDIVQO.js';
2
2
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
3
3
  import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
4
4
 
@@ -1,5 +1,5 @@
1
- import { getLeadGenStageCatalog } from './chunk-6JN2TLV2.js';
2
- import { SYSTEM_INTERFACE_PROFILES, formatOntologyId, registerBuiltInReadinessProfile, registerReadinessInterfaceMarker, requireContractReadiness, computeInterfaceReadiness, addReadinessIssue, formatInterfaceIdentity, resourceBindingIds, requireCatalogReadiness, requireScopedBinding } from './chunk-R5UGIFYU.js';
1
+ import { getLeadGenStageCatalog } from './chunk-SB3IHM5Y.js';
2
+ import { SYSTEM_INTERFACE_PROFILES, formatOntologyId, registerBuiltInReadinessProfile, registerReadinessInterfaceMarker, requireContractReadiness, computeInterfaceReadiness, addReadinessIssue, formatInterfaceIdentity, resourceBindingIds, requireCatalogReadiness, requireScopedBinding } from './chunk-A2SB32YV.js';
3
3
 
4
4
  // ../core/src/business/acquisition/ontology-validation.ts
5
5
  var LEAD_GEN_API_INTERFACE = SYSTEM_INTERFACE_PROFILES[0];
@@ -3,13 +3,13 @@ import { ZodFormRenderer } from './chunk-3MEXPLWT.js';
3
3
  import { ResourceHealthChart } from './chunk-LGKLC5MG.js';
4
4
  import { useTimeRangeDates } from './chunk-YQQ5GRUR.js';
5
5
  import { Graph_module_css_default, useDirectedChainHighlighting, useNodeSelection, useFitViewTrigger } from './chunk-HENXLGVD.js';
6
- import { AppShellCenteredContainer, AppShellLoader } from './chunk-E6YGA5WH.js';
7
- import { useCyberColors, GlowDot, JsonViewer, useExecuteResource, EmptyState, useDashboardMetrics, useResources, useUnresolvedErrors, useRecentExecutionsByResource, PageTitleCaption, HeroStatsRow, useCommandQueue, TabCountBadge, useResourcesHealth } from './chunk-6JN2TLV2.js';
6
+ import { AppShellCenteredContainer, AppShellLoader } from './chunk-5RH6NYZH.js';
7
+ import { useCyberColors, GlowDot, JsonViewer, useExecuteResource, EmptyState, useDashboardMetrics, useResources, useUnresolvedErrors, useRecentExecutionsByResource, PageTitleCaption, HeroStatsRow, useCommandQueue, TabCountBadge, useResourcesHealth } from './chunk-SB3IHM5Y.js';
8
8
  import { glassBase } from './chunk-R6NMRXNO.js';
9
9
  import { CardHeader } from './chunk-62GVNH5U.js';
10
10
  import { useInitialization } from './chunk-P45GQ3ZW.js';
11
11
  import { STATUS_COLORS, getStatusIcon, formatDuration, getStatusColors, AGENT_CONSTANTS, shouldAnimateEdge, TIMELINE_CONSTANTS, calculateBarPosition, CONTAINER_CONSTANTS, useExecutionPath, useUnifiedWorkflowLayout, WORKFLOW_CONSTANTS, useReactFlowAgent } from './chunk-BLXJEIQS.js';
12
- import { formatTimeAgo, formatRelativeTime } from './chunk-R5UGIFYU.js';
12
+ import { formatTimeAgo, formatRelativeTime } from './chunk-A2SB32YV.js';
13
13
  import { getTimeRangeDates } from './chunk-Y6I3IC45.js';
14
14
  import { ResourceStatusColors } from './chunk-6SSQGWK7.js';
15
15
  import { memo, useMemo, useEffect, useState, useCallback, Fragment } from 'react';
@@ -1,5 +1,5 @@
1
1
  import { OrganizationContext } from './chunk-DD3CCMCZ.js';
2
- import { APIClientError } from './chunk-R5UGIFYU.js';
2
+ import { APIClientError } from './chunk-A2SB32YV.js';
3
3
  import { createContext, useContext, useMemo, useCallback } from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
@@ -5952,6 +5952,20 @@ interface OAuthState {
5952
5952
  timestamp: number;
5953
5953
  credentialName: string;
5954
5954
  provider: string;
5955
+ /**
5956
+ * Origin of the app that started this flow (e.g. 'https://app.contemplativerecords.com').
5957
+ *
5958
+ * Validated against the platform allowed-origins list in `authorizeHandler`
5959
+ * BEFORE it is sealed into the signed state, so the callback can hand it to
5960
+ * the callback page without re-checking. Every app that renders the OAuth
5961
+ * card runs on its own origin, and the callback page is served from a single
5962
+ * deploy-global one — it cannot read `window.opener.location.origin` across
5963
+ * that boundary, so the origin has to travel with the flow.
5964
+ *
5965
+ * Optional so a state issued before this field existed still decodes; the
5966
+ * callback falls back to `FRONTEND_URL` when it is absent.
5967
+ */
5968
+ appOrigin?: string;
5955
5969
  }
5956
5970
 
5957
5971
  /**
@@ -6387,12 +6401,16 @@ interface Activity {
6387
6401
  * - UI access checks (via useAccess() permission-backed AccessKeys)
6388
6402
  *
6389
6403
  * The DB table `org_rol_permissions` mirrors this constant. There is no
6390
- * runtime reconciler; parity is enforced two ways:
6404
+ * runtime reconciler and no automated CI gate enforcing parity it is
6405
+ * maintained by discipline:
6391
6406
  * 1. Each migration that adds/removes/modifies a permission must INSERT
6392
6407
  * (or UPDATE / DELETE) the corresponding `org_rol_permissions` row in
6393
6408
  * the same transaction.
6394
6409
  * 2. `apps/api/src/auth/multi-tenancy/__tests__/permissions-catalog-sync.integration.test.ts`
6395
- * asserts the TS catalog and the DB rows agree; CI fails on drift.
6410
+ * checks TS/DB agreement, but it never runs in CI (filtered out by
6411
+ * vitest.config.ts, and it self-skips via skipIf even if it did run).
6412
+ * Run it locally against a real dev Supabase instead:
6413
+ * `pnpm -C apps/api test:integration` with SUPABASE_SERVICE_KEY set.
6396
6414
  *
6397
6415
  * Adding a permission:
6398
6416
  * 1. Add an entry below.
@@ -7065,9 +7083,11 @@ declare function ActivityTimeline({ activities }: ActivityTimelineProps): react_
7065
7083
  * this when a caller catches a server-side readiness failure rather than
7066
7084
  * computing readiness from the local Organization Model.
7067
7085
  *
7068
- * `readinessCode: 'STALE_OM_SNAPSHOT'` is the one family the server already
7069
- * turns into an actionable redeploy message; this alert renders that same
7070
- * hint from the structured field rather than depending on parsed message text.
7086
+ * The alert renders a remedy for whichever family came back, read from the
7087
+ * structured field rather than parsed out of message text. Until 2026-08-23 it
7088
+ * rendered one only for `STALE_OM_SNAPSHOT`, so every other failure including
7089
+ * `MODEL_PARSE_FAILED`, whose fix is the same redeploy — showed bare issue text
7090
+ * with no next step.
7071
7091
  */
7072
7092
  interface SystemReadinessServerErrorDetails {
7073
7093
  systemPath: string;
@@ -7100,8 +7120,8 @@ interface SystemReadinessAlertProps {
7100
7120
  reason?: string;
7101
7121
  /**
7102
7122
  * Structured 503 payload from a server-side readiness failure. When
7103
- * provided, its `issues[]` render as a list and its redeploy hint (for
7104
- * `STALE_OM_SNAPSHOT`) renders below them.
7123
+ * provided, its `issues[]` render as a list and the remedy for its first
7124
+ * issue renders below them.
7105
7125
  */
7106
7126
  serverError?: SystemReadinessServerErrorDetails;
7107
7127
  }
@@ -8605,10 +8625,16 @@ interface EditApiKeyModalProps {
8605
8625
  declare function EditApiKeyModal({ apiKey, onClose }: EditApiKeyModalProps): react_jsx_runtime.JSX.Element | null;
8606
8626
 
8607
8627
  interface CredentialSettingsProps {
8608
- /** Optional slot for rendering an OAuth integrations section above the credentials list */
8628
+ /**
8629
+ * Override for the OAuth integrations section above the credentials list.
8630
+ *
8631
+ * Omit it to get `OAuthIntegrationsCard`, which is what every app wants — it
8632
+ * reads the API URL from the service context, so there is nothing to wire.
8633
+ * Pass `null` to hide the section, or a node to render something else.
8634
+ */
8609
8635
  oauthSection?: React.ReactNode;
8610
8636
  }
8611
- declare function CredentialSettings({ oauthSection }: CredentialSettingsProps): react_jsx_runtime.JSX.Element;
8637
+ declare function CredentialSettings({ oauthSection }?: CredentialSettingsProps): react_jsx_runtime.JSX.Element;
8612
8638
 
8613
8639
  interface CredentialListProps {
8614
8640
  credentials: CredentialListItem[];
@@ -8635,6 +8661,17 @@ interface OAuthConnectModalProps {
8635
8661
  }
8636
8662
  declare function OAuthConnectModal({ opened, onClose, provider, onConnect, error, isLoading }: OAuthConnectModalProps): react_jsx_runtime.JSX.Element;
8637
8663
 
8664
+ interface OAuthIntegrationsCardProps {
8665
+ /**
8666
+ * Base API URL used to construct the OAuth authorize endpoint.
8667
+ *
8668
+ * Optional: defaults to the `apiUrl` on the service context, which every app
8669
+ * already supplies at startup. Pass it explicitly only to override.
8670
+ */
8671
+ apiUrl?: string;
8672
+ }
8673
+ declare function OAuthIntegrationsCard({ apiUrl }?: OAuthIntegrationsCardProps): react_jsx_runtime.JSX.Element;
8674
+
8638
8675
  declare function DeploymentSettings(): react_jsx_runtime.JSX.Element;
8639
8676
 
8640
8677
  interface DeploymentListProps {
@@ -9319,5 +9356,5 @@ declare const OperationsSidebarMiddle: () => react_jsx_runtime.JSX.Element;
9319
9356
 
9320
9357
  declare const operationsManifest: SystemModule;
9321
9358
 
9322
- 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, CloudStorageBrowser, CloudStorageFileCard, CloudStorageFileGrid, CloudStorageFolderTree, 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, NoAccessState, NotificationBell, NotificationItem, NotificationList, NotificationPanel, OAuthConnectModal, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationMembershipsList, OrganizationModelDriftActionIcon, PIPELINE_FUNNEL_ORDER, PageNotFound, PageTitleCaption, PermissionMatrix, PipelineFunnelWidget, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, ProvisioningStateBadge, 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, SystemReadinessAlert, SystemUnavailableState, 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, useRecentCrmActivity };
9323
- export type { ActivityEntry, ActivityFiltersProps, ActivityTableProps, AgentIterationTotals, AppErrorBoundaryProps, BaseEdgeProps, BaseExecutionLogsProps, BreadcrumbsProps, CloudStorageBrowserProps, CloudStorageFileCardProps, CloudStorageFileGridProps, CloudStorageFolderNode, CloudStorageFolderTreeProps, CloudStorageGridItem, CloudStorageItemDecoration, CompanyDetailPageProps, ContactDetailPageProps, ContextViewerProps, CostByModelTableProps, CrashErrorFallbackProps, CreateRoleModalProps, CrmOverviewProps, DealKanbanCardProps, ErrorAnalysisCardProps, ErrorReportCardProps, ExecutionBreakdownTableProps, ExecutionHealthCardProps, ExecutionLogEntry, ExecutionLogsFiltersProps, ExecutionLogsTableProps, FeatureUnavailableStateProps, FieldPath, FitViewButtonVariant, GraphFitViewHandlerProps, JsonViewerProps, KanbanBoardProps, LogLevel, MdxRendererProps, NavigationButtonProps, PermissionRow, ProjectsSidebarMiddleProps, ResourceHealthPanelProps, RichTextEditorProps, RunResourceButtonProps, RunResourceInputResolver, SavedViewPreset, ScheduleType, StatCardProps, StepConfigComponent, StepConfigFieldHint, StepConfigFormProps, StepConfigLayout, StepConfigSection, StyledMarkdownProps, SystemReadinessAlertProps, SystemReadinessServerErrorDetails, SystemUnavailableStateProps, TabSectionProps, TaskFilterStatus, TrendIndicatorProps, ZodFormRendererProps };
9359
+ 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, CloudStorageBrowser, CloudStorageFileCard, CloudStorageFileGrid, CloudStorageFolderTree, 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, NoAccessState, NotificationBell, NotificationItem, NotificationList, NotificationPanel, OAuthConnectModal, OAuthIntegrationsCard, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationMembershipsList, OrganizationModelDriftActionIcon, PIPELINE_FUNNEL_ORDER, PageNotFound, PageTitleCaption, PermissionMatrix, PipelineFunnelWidget, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, ProvisioningStateBadge, 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, SystemReadinessAlert, SystemUnavailableState, 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, useRecentCrmActivity };
9360
+ export type { ActivityEntry, ActivityFiltersProps, ActivityTableProps, AgentIterationTotals, AppErrorBoundaryProps, BaseEdgeProps, BaseExecutionLogsProps, BreadcrumbsProps, CloudStorageBrowserProps, CloudStorageFileCardProps, CloudStorageFileGridProps, CloudStorageFolderNode, CloudStorageFolderTreeProps, CloudStorageGridItem, CloudStorageItemDecoration, CompanyDetailPageProps, ContactDetailPageProps, ContextViewerProps, CostByModelTableProps, CrashErrorFallbackProps, CreateRoleModalProps, CrmOverviewProps, DealKanbanCardProps, ErrorAnalysisCardProps, ErrorReportCardProps, ExecutionBreakdownTableProps, ExecutionHealthCardProps, ExecutionLogEntry, ExecutionLogsFiltersProps, ExecutionLogsTableProps, FeatureUnavailableStateProps, FieldPath, FitViewButtonVariant, GraphFitViewHandlerProps, JsonViewerProps, KanbanBoardProps, LogLevel, MdxRendererProps, NavigationButtonProps, OAuthIntegrationsCardProps, PermissionRow, ProjectsSidebarMiddleProps, ResourceHealthPanelProps, RichTextEditorProps, RunResourceButtonProps, RunResourceInputResolver, SavedViewPreset, ScheduleType, StatCardProps, StepConfigComponent, StepConfigFieldHint, StepConfigFormProps, StepConfigLayout, StepConfigSection, StyledMarkdownProps, SystemReadinessAlertProps, SystemReadinessServerErrorDetails, SystemUnavailableStateProps, TabSectionProps, TaskFilterStatus, TrendIndicatorProps, ZodFormRendererProps };