@elevasis/ui 2.80.0 → 2.82.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 (91) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +38 -0
  3. package/dist/api/index.js +3 -3
  4. package/dist/app/index.d.ts +32 -16
  5. package/dist/app/index.js +12 -10
  6. package/dist/auth/index.js +4 -4
  7. package/dist/charts/index.js +4 -4
  8. package/dist/{chunk-JDPPV2XI.js → chunk-2S5477QR.js} +17 -227
  9. package/dist/{chunk-U3GB5PDF.js → chunk-3OQVXI4C.js} +2 -2
  10. package/dist/{chunk-BXFZ676L.js → chunk-3PQMF4RP.js} +3 -3
  11. package/dist/{chunk-NGRRAYMO.js → chunk-3RYXJS2F.js} +3 -3
  12. package/dist/{chunk-XEO2UG4J.js → chunk-4C4IFMRP.js} +3 -3
  13. package/dist/{chunk-WOYW24U7.js → chunk-4TEVJRKQ.js} +1 -1
  14. package/dist/{chunk-6IWH757Q.js → chunk-5WNRTDEZ.js} +1 -1
  15. package/dist/{chunk-QQKYBGBX.js → chunk-6NIGO2LD.js} +3 -3
  16. package/dist/{chunk-KGUBFIMQ.js → chunk-7RS2NUC6.js} +10 -2
  17. package/dist/{chunk-NKMBW7WE.js → chunk-AA257QZO.js} +21 -10
  18. package/dist/{chunk-CIGWHY7C.js → chunk-DEZW7QDI.js} +15 -4
  19. package/dist/{chunk-SPH5WW44.js → chunk-ELQLU323.js} +5 -5
  20. package/dist/{chunk-6MWTTBBT.js → chunk-ER2HBKS7.js} +5 -5
  21. package/dist/{chunk-A32PJ2DO.js → chunk-G6VHIXWD.js} +1 -1
  22. package/dist/{chunk-T6AOVZAI.js → chunk-GH3UY2FM.js} +4 -4
  23. package/dist/{chunk-AKANHRQ5.js → chunk-GKTQEVSO.js} +3 -4
  24. package/dist/{chunk-MJIDC25O.js → chunk-HDITVHZT.js} +2 -2
  25. package/dist/{chunk-QSN7BWI3.js → chunk-HOX4CMYY.js} +1 -1
  26. package/dist/{chunk-ZU676PFP.js → chunk-I2JOA54D.js} +1 -1
  27. package/dist/{chunk-MMOR2HQZ.js → chunk-KQTI4RZN.js} +8 -8
  28. package/dist/{chunk-YSFLFD4U.js → chunk-LTRJZOHA.js} +1 -1
  29. package/dist/{chunk-7A25EJ4A.js → chunk-M5CRPFJA.js} +44 -30
  30. package/dist/{chunk-52G4B33T.js → chunk-NQSZ4UGG.js} +2 -2
  31. package/dist/{chunk-VKA4LQ7N.js → chunk-OWAEBFWH.js} +1 -1
  32. package/dist/{chunk-DFGQG32T.js → chunk-PJN6CMWZ.js} +1 -1
  33. package/dist/{chunk-3HMRK3RC.js → chunk-PNCJJE4Z.js} +1 -1
  34. package/dist/{chunk-I5SYS6DT.js → chunk-PTB575MP.js} +5 -5
  35. package/dist/{chunk-3UO2CJTR.js → chunk-PV64XFZY.js} +1 -1
  36. package/dist/{chunk-BG7VCCFB.js → chunk-RKTFFLVV.js} +1 -1
  37. package/dist/{chunk-HVNDBY42.js → chunk-ROC2TFPS.js} +2 -2
  38. package/dist/{chunk-VHK5J55Q.js → chunk-TAGPVICO.js} +8 -8
  39. package/dist/{chunk-W6QOWA3L.js → chunk-TCVMLAMC.js} +2 -2
  40. package/dist/{chunk-JZBMZLD3.js → chunk-VTUVB3J3.js} +1 -1
  41. package/dist/{chunk-Q6HRTWA6.js → chunk-XHJBDW2S.js} +1 -1
  42. package/dist/{chunk-2KXSFLU2.js → chunk-ZG3DARVR.js} +1 -1
  43. package/dist/{chunk-CSEADI37.js → chunk-ZYIGD2QY.js} +3 -3
  44. package/dist/components/index.d.ts +0 -14
  45. package/dist/components/index.js +39 -39
  46. package/dist/components/navigation/index.js +5 -5
  47. package/dist/features/auth/index.d.ts +1 -1
  48. package/dist/features/auth/index.js +6 -6
  49. package/dist/features/clients/index.js +7 -7
  50. package/dist/features/content/index.js +7 -7
  51. package/dist/features/crm/index.d.ts +0 -14
  52. package/dist/features/crm/index.js +10 -10
  53. package/dist/features/dashboard/index.js +6 -6
  54. package/dist/features/delivery/index.d.ts +0 -14
  55. package/dist/features/delivery/index.js +17 -17
  56. package/dist/features/knowledge/index.js +4 -4
  57. package/dist/features/lead-gen/index.d.ts +54 -16
  58. package/dist/features/lead-gen/index.js +11 -11
  59. package/dist/features/monitoring/index.js +8 -8
  60. package/dist/features/monitoring/requests/index.js +6 -6
  61. package/dist/features/operations/index.js +11 -11
  62. package/dist/features/seo/index.d.ts +105 -17
  63. package/dist/features/seo/index.js +7 -7
  64. package/dist/features/settings/index.d.ts +1 -1
  65. package/dist/features/settings/index.js +7 -7
  66. package/dist/hooks/access/index.js +4 -4
  67. package/dist/hooks/delivery/index.d.ts +0 -14
  68. package/dist/hooks/delivery/index.js +3 -3
  69. package/dist/hooks/published.d.ts +2 -16
  70. package/dist/hooks/published.js +15 -15
  71. package/dist/initialization/index.d.ts +1 -1
  72. package/dist/knowledge/index.d.ts +32 -16
  73. package/dist/knowledge/index.js +20 -7185
  74. package/dist/layout/index.js +8 -8
  75. package/dist/profile/index.d.ts +1 -1
  76. package/dist/provider/index.d.ts +39 -16
  77. package/dist/provider/index.js +4 -4
  78. package/dist/provider/published.d.ts +31 -15
  79. package/dist/provider/published.js +4 -4
  80. package/dist/sse/index.d.ts +7 -1
  81. package/dist/sse/index.js +22 -2
  82. package/dist/test-utils/index.d.ts +3 -1
  83. package/dist/test-utils/index.js +29 -6
  84. package/dist/types/index.d.ts +1 -15
  85. package/dist/utils/index.d.ts +9 -9
  86. package/dist/utils/index.js +1 -1
  87. package/dist/vite/index.js +2 -2
  88. package/dist/vite-plugin-knowledge/index.js +1 -1
  89. package/package.json +6 -6
  90. package/src/knowledge/README.md +32 -32
  91. package/dist/knowledge-search-index-YU6V3FTK.js +0 -1539
@@ -1,5 +1,5 @@
1
1
  import { OrganizationContext } from './chunk-DD3CCMCZ.js';
2
- import { APIClientError } from './chunk-CIGWHY7C.js';
2
+ import { APIClientError } from './chunk-DEZW7QDI.js';
3
3
  import { createContext, useContext, useMemo, useCallback } from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
@@ -44,7 +44,15 @@ var HTTP_HEADERS = {
44
44
  */
45
45
  WORKOS_ORGANIZATION_ID: "workos-organization-id",
46
46
  AGENT_ORGANIZATION: "x-agent-organization",
47
- AGENT_MODE: "x-agent-mode"
47
+ AGENT_MODE: "x-agent-mode",
48
+ /**
49
+ * Correlation id for one request, echoed on every API response and carried in the
50
+ * `requestId` field of every error envelope. Read on the way in as well: a caller
51
+ * that already has an id for the work (a proxy, or the CLI driving a multi-step
52
+ * operation) sets it and the API adopts it, so one id spans the whole chain instead
53
+ * of each hop minting its own.
54
+ */
55
+ REQUEST_ID: "x-request-id"
48
56
  };
49
57
 
50
58
  // src/api/hooks/useApiClient.ts
@@ -1,21 +1,21 @@
1
- import { eqOrgId, useBatchDeleteRows } from './chunk-2KXSFLU2.js';
2
- import { LEAD_GEN_API_INTERFACE } from './chunk-52G4B33T.js';
3
- import { useCredentials, useVerifyCredential, useListMembers, useListMember, useTransitionListMember, useDeriveActions, useArtifacts } from './chunk-XEO2UG4J.js';
1
+ import { eqOrgId, useBatchDeleteRows } from './chunk-ZG3DARVR.js';
2
+ import { LEAD_GEN_API_INTERFACE } from './chunk-NQSZ4UGG.js';
3
+ import { useCredentials, useVerifyCredential, useListMembers, useListMember, useTransitionListMember, useDeriveActions, useArtifacts } from './chunk-4C4IFMRP.js';
4
4
  import { useSupabase } from './chunk-MKH2KOAO.js';
5
- import { useCompanyFacets, useCompanies, useDeleteCompanies, useContacts, useDeleteContacts } from './chunk-NGRRAYMO.js';
5
+ import { useCompanyFacets, useCompanies, useDeleteCompanies, useContacts, useDeleteContacts } from './chunk-3RYXJS2F.js';
6
6
  import { useTableSort, sortData } from './chunk-2Y6AKWGU.js';
7
- import { getSystemApiInterfaceReadiness } from './chunk-DFGQG32T.js';
7
+ import { getSystemApiInterfaceReadiness } from './chunk-PJN6CMWZ.js';
8
8
  import { sanitizeInput } from './chunk-3MEXPLWT.js';
9
9
  import { useTableSelection } from './chunk-WDBNW44Z.js';
10
- import { SubshellPageLayout } from './chunk-Q6HRTWA6.js';
10
+ import { SubshellPageLayout } from './chunk-XHJBDW2S.js';
11
11
  import { PageContainer } from './chunk-BZZCNLT6.js';
12
12
  import { TableSelectionToolbar, SortableHeader } from './chunk-TUMSNGTX.js';
13
13
  import { FilterBar } from './chunk-PDHTXPSF.js';
14
- import { SubshellSidebarSection, LeadGenSidebarMiddle, PageTitleCaption, acquisitionListKeys, useOptionalElevasisSystems, getAllBuildTemplates, getLeadGenStageCatalog, useListsTelemetry, useLists, useAccess, AccessKeys, SubshellContentContainer, CenteredErrorState, StatCard, usePaginationState, EmptyState, CustomModal, useListActions, useList, useListProgress, useListExecutions, useDeleteList, useExecuteAsync, SystemReadinessAlert, useCreateList, JsonViewer, isExecutionInFlight, useWorkflowExecution, useInFlightExecutions, useExecutionSSE, useListRecords } from './chunk-7A25EJ4A.js';
15
- import { showApiErrorNotification, showSuccessNotification } from './chunk-3HMRK3RC.js';
14
+ import { SubshellSidebarSection, LeadGenSidebarMiddle, PageTitleCaption, acquisitionListKeys, useOptionalElevasisSystems, getAllBuildTemplates, getLeadGenStageCatalog, useListsTelemetry, useLists, useAccess, AccessKeys, SubshellContentContainer, CenteredErrorState, StatCard, usePaginationState, EmptyState, CustomModal, useListActions, useList, useListProgress, useListExecutions, useDeleteList, useExecuteAsync, SystemReadinessAlert, useCreateList, JsonViewer, isExecutionInFlight, useWorkflowExecution, useInFlightExecutions, useExecutionSSE, useListRecords } from './chunk-M5CRPFJA.js';
15
+ import { showApiErrorNotification, showSuccessNotification } from './chunk-PNCJJE4Z.js';
16
16
  import { CardHeader } from './chunk-62GVNH5U.js';
17
17
  import { useOrganization } from './chunk-DD3CCMCZ.js';
18
- import { PAGE_SIZE_DEFAULT, formatTimeAgo, getSystem } from './chunk-CIGWHY7C.js';
18
+ import { PAGE_SIZE_DEFAULT, formatTimeAgo, getSystem } from './chunk-DEZW7QDI.js';
19
19
  import { REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_REALTIME } from './chunk-6XBZPKMI.js';
20
20
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
21
21
  import { Stack, Group, Title, Text, Alert, Button, Collapse, Paper, Anchor, Center, Loader, SimpleGrid, Table, Badge, TextInput, Select, Checkbox, Pagination, ActionIcon, Tooltip, Tabs, Switch, Card, Divider, Textarea, ThemeIcon, Box, SegmentedControl, UnstyledButton, Pill, Drawer, JsonInput, NumberInput, MultiSelect, TagsInput, ScrollArea } from '@mantine/core';
@@ -29,6 +29,17 @@ import { useQueryClient, useMutation, useQuery } from '@tanstack/react-query';
29
29
  import { useClipboard } from '@mantine/hooks';
30
30
  import { notifications } from '@mantine/notifications';
31
31
 
32
+ // src/features/lead-gen/apollo-options.ts
33
+ var EMPLOYEE_RANGES = [
34
+ { value: "1,10", label: "1-10" },
35
+ { value: "11,50", label: "11-50" },
36
+ { value: "51,200", label: "51-200" },
37
+ { value: "201,500", label: "201-500" },
38
+ { value: "501,1000", label: "501-1,000" },
39
+ { value: "1001,5000", label: "1,001-5,000" },
40
+ { value: "5001,10000", label: "5,001-10,000" },
41
+ { value: "10001,1000000", label: "10,000+" }
42
+ ];
32
43
  var LeadGenSidebarTop = () => {
33
44
  return /* @__PURE__ */ jsx(SubshellSidebarSection, { icon: IconTarget, label: "Lead Gen" });
34
45
  };
@@ -5246,4 +5257,4 @@ function SocialPostDetailPage({
5246
5257
  ] });
5247
5258
  }
5248
5259
 
5249
- export { LEAD_GEN_ROUTE_LINKS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarTop, ListBuilderIndexPage, ListBuilderPage, ORPHAN_STAGE_ORDER, SocialMonitoringPage, SocialPostDetailPage, StepConfigForm, TabSection, deriveBusinessProgress, formatDate, getEnrichmentColor, getEnrichmentStatus, getLeadGenApiInterfaceReadiness, getLeadGenExportWorkflowId, getStateKeyColor, getStatusColor, getStepActionLabel, isLeadGenExportAction, resolveBuildPlanSteps, resolveBuildState, socialPostDetailKeys, socialPostKeys, sortStageKeys, useAdjacentPosts, useDeleteLists, useDeleteSocialPost, useLeadGenConfig, useSocialPost, useSocialPosts, useUpdateSocialPost };
5260
+ export { EMPLOYEE_RANGES, LEAD_GEN_ROUTE_LINKS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarTop, ListBuilderIndexPage, ListBuilderPage, ORPHAN_STAGE_ORDER, SocialMonitoringPage, SocialPostDetailPage, StepConfigForm, TabSection, deriveBusinessProgress, formatDate, getEnrichmentColor, getEnrichmentStatus, getLeadGenApiInterfaceReadiness, getLeadGenExportWorkflowId, getStateKeyColor, getStatusColor, getStepActionLabel, isLeadGenExportAction, resolveBuildPlanSteps, resolveBuildState, socialPostDetailKeys, socialPostKeys, sortStageKeys, useAdjacentPosts, useDeleteLists, useDeleteSocialPost, useLeadGenConfig, useSocialPost, useSocialPosts, useUpdateSocialPost };
@@ -1067,14 +1067,25 @@ var SystemEntrySchema = z.object({
1067
1067
  * position-derived paths. Both still exist on this schema for backward compat.
1068
1068
  */
1069
1069
  systems: z.lazy(() => z.record(z.string().trim().min(1).max(100), SystemEntrySchema)).optional(),
1070
- /** @deprecated Use systems. Accepted as a compatibility alias during the ontology bridge. */
1070
+ /**
1071
+ * @deprecated Use systems. Accepted as a compatibility alias during the ontology bridge.
1072
+ *
1073
+ * Accepted on INPUT only. Parsing used to mirror `systems` into this key so that
1074
+ * either spelling could be read off a parsed model, which meant every parsed System
1075
+ * carried the same children twice. Readers that walked both keys then visited each
1076
+ * nested System twice -- `getOrgOsRouteContractSystems` reported 11 checked paths
1077
+ * against command-center's 7 real Systems and would have raised every nested-System
1078
+ * failure as two failures -- and readers that walked this key alone looked correct
1079
+ * while depending entirely on the mirror. Both defects were live. The mirror is gone:
1080
+ * a parsed model now carries children under whichever key the author wrote, so read
1081
+ * `system.systems ?? system.subsystems` (helpers.ts, validation.ts, ontology.ts,
1082
+ * selectDeclaredSystems.ts, validateManifests.ts and SystemOpsView.tsx all do).
1083
+ */
1071
1084
  subsystems: z.lazy(() => z.record(z.string().trim().min(1).max(100), SystemEntrySchema)).optional()
1072
1085
  }).strict().refine((system) => system.label !== void 0 || system.title !== void 0, {
1073
1086
  path: ["label"],
1074
1087
  message: "System must provide label or title"
1075
- }).transform(
1076
- (system) => system.systems !== void 0 && system.subsystems === void 0 ? { ...system, subsystems: system.systems } : system
1077
- );
1088
+ });
1078
1089
  var SystemsDomainSchema = z.record(z.string(), SystemEntrySchema).refine((record) => Object.entries(record).every(([key, entry]) => entry.id === key), {
1079
1090
  message: "Each system entry id must match its map key"
1080
1091
  }).default({});
@@ -1,15 +1,15 @@
1
- import { useProjectRealtime, useProjectActivities } from './chunk-MMOR2HQZ.js';
2
- import { useCreateTask, useCreateMilestone, useProjectMilestones, useUpdateTask, useProjects, useDeleteProject, useProject, useProjectNotes, useUpdateMilestone, useCreateNote } from './chunk-MJIDC25O.js';
1
+ import { useProjectRealtime, useProjectActivities } from './chunk-KQTI4RZN.js';
2
+ import { useCreateTask, useCreateMilestone, useProjectMilestones, useUpdateTask, useProjects, useDeleteProject, useProject, useProjectNotes, useUpdateMilestone, useCreateNote } from './chunk-HDITVHZT.js';
3
3
  import { useTableSort, sortData } from './chunk-2Y6AKWGU.js';
4
4
  import { useTableSelection } from './chunk-WDBNW44Z.js';
5
5
  import { milestoneStatusColors, formatStatusLabel, taskTypeColors, taskStatusColors, projectStatusColors, calculateProgress, noteTypeColors } from './chunk-DLR4SDZW.js';
6
- import { SubshellPageLayout } from './chunk-Q6HRTWA6.js';
6
+ import { SubshellPageLayout } from './chunk-XHJBDW2S.js';
7
7
  import { PageContainer } from './chunk-BZZCNLT6.js';
8
8
  import { TableSelectionToolbar, SortableHeader } from './chunk-TUMSNGTX.js';
9
9
  import { FilterBar } from './chunk-PDHTXPSF.js';
10
- import { StatusBadge, EmptyState, SubshellSidebarSection, PageTitleCaption, usePaginationState, SubshellContentContainer, CenteredErrorState, CustomModal, StatCard, SubshellNavItem } from './chunk-7A25EJ4A.js';
10
+ import { StatusBadge, EmptyState, SubshellSidebarSection, PageTitleCaption, usePaginationState, SubshellContentContainer, CenteredErrorState, CustomModal, StatCard, SubshellNavItem } from './chunk-M5CRPFJA.js';
11
11
  import { CardHeader } from './chunk-62GVNH5U.js';
12
- import { PAGE_SIZE_DEFAULT, formatTimeAgo, formatDate, formatRelativeTime } from './chunk-CIGWHY7C.js';
12
+ import { PAGE_SIZE_DEFAULT, formatTimeAgo, formatDate, formatRelativeTime } from './chunk-DEZW7QDI.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,14 +1,14 @@
1
1
  import { useAvailablePresets } from './chunk-IIEZXXDD.js';
2
- import { MEMBERSHIP_STATUS_COLORS, PROVISIONING_STATE_DISPLAY, transformMembershipToTableRow, useUserMemberships, useUpdateWebhookEndpoint, useDeleteWebhookEndpoint, useCreateWebhookEndpoint, useListWebhookEndpoints, useOrgRoles, useAssignRole, useRevokeRole, useOrganizationMembers, usePermissionCatalog } from './chunk-BXFZ676L.js';
3
- import { AppShellLoader } from './chunk-3UO2CJTR.js';
2
+ import { MEMBERSHIP_STATUS_COLORS, PROVISIONING_STATE_DISPLAY, transformMembershipToTableRow, useUserMemberships, useUpdateWebhookEndpoint, useDeleteWebhookEndpoint, useCreateWebhookEndpoint, useListWebhookEndpoints, useOrgRoles, useAssignRole, useRevokeRole, useOrganizationMembers, usePermissionCatalog } from './chunk-3PQMF4RP.js';
3
+ import { AppShellLoader } from './chunk-PV64XFZY.js';
4
4
  import { FilterBar } from './chunk-PDHTXPSF.js';
5
- import { CustomModal, APIErrorAlert, EmptyState, PageTitleCaption, useResources, ListSkeleton, StatCard, useAccess, AccessKeys, AccessGuard } from './chunk-7A25EJ4A.js';
6
- import { showApiErrorNotification, showErrorNotification, showSuccessNotification } from './chunk-3HMRK3RC.js';
5
+ import { CustomModal, APIErrorAlert, EmptyState, PageTitleCaption, useResources, ListSkeleton, StatCard, useAccess, AccessKeys, AccessGuard } from './chunk-M5CRPFJA.js';
6
+ import { showApiErrorNotification, showErrorNotification, showSuccessNotification } from './chunk-PNCJJE4Z.js';
7
7
  import { CardHeader } from './chunk-62GVNH5U.js';
8
8
  import { useInitialization } from './chunk-P45GQ3ZW.js';
9
9
  import { RoleBadge } from './chunk-YJ437RDY.js';
10
10
  import { useOrganization } from './chunk-DD3CCMCZ.js';
11
- import { isAPIClientError, formatDateTime, OAUTH_FLOW_TIMEOUT } from './chunk-CIGWHY7C.js';
11
+ import { isAPIClientError, formatDateTime, OAUTH_FLOW_TIMEOUT } from './chunk-DEZW7QDI.js';
12
12
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
13
13
  import { useAuthContext } from './chunk-BRJ3QZ4E.js';
14
14
  import { Text, Stack, Title, Alert, TextInput, Group, Button, Paper, SimpleGrid, Card, ThemeIcon, Badge, Tooltip, Select, Table, Center, Loader, Box, Code, CopyButton, ActionIcon, UnstyledButton, Switch, Divider, Textarea, MultiSelect } from '@mantine/core';
@@ -1,4 +1,4 @@
1
- import { GC_TIME_LONG, STALE_TIME_DEFAULT } from './chunk-CIGWHY7C.js';
1
+ import { GC_TIME_LONG, STALE_TIME_DEFAULT } from './chunk-DEZW7QDI.js';
2
2
  import { QueryClient } from '@tanstack/react-query';
3
3
 
4
4
  function createElevasisQueryClient(options = {}) {
@@ -1,11 +1,11 @@
1
- import { useMarkAsRead, useExecutionLogsFilters, useExecutionLogs, useExecutionHealth, useCostSummary, useActivityFilters, useActivityTrend, useActivities, useNotifications, useMarkAllAsRead } from './chunk-ZU676PFP.js';
2
- import { AppShellLoader } from './chunk-3UO2CJTR.js';
1
+ import { useMarkAsRead, useExecutionLogsFilters, useExecutionLogs, useExecutionHealth, useCostSummary, useActivityFilters, useActivityTrend, useActivities, useNotifications, useMarkAllAsRead } from './chunk-I2JOA54D.js';
2
+ import { AppShellLoader } from './chunk-PV64XFZY.js';
3
3
  import { useTimeRangeDates } from './chunk-YQQ5GRUR.js';
4
4
  import { FilterBar } from './chunk-PDHTXPSF.js';
5
- import { CenteredErrorState, StatsCardSkeleton, CyberAreaChart, TrendIndicator, DetailCardSkeleton, useResolveError, useResolveAllErrors, usePaginationState, useErrorDetails, EmptyState, useResolvedTimeRange, PageTitleCaption, useErrorAnalysis, useErrorDetail, useResolveErrorsByExecution, useResources, CustomModal, JsonViewer, useCostTrends, useCostByModel, useCostBreakdown, CostTrendChart, ActivityTrendChart } from './chunk-7A25EJ4A.js';
5
+ import { CenteredErrorState, StatsCardSkeleton, CyberAreaChart, TrendIndicator, DetailCardSkeleton, useResolveError, useResolveAllErrors, usePaginationState, useErrorDetails, EmptyState, useResolvedTimeRange, PageTitleCaption, useErrorAnalysis, useErrorDetail, useResolveErrorsByExecution, useResources, CustomModal, JsonViewer, useCostTrends, useCostByModel, useCostBreakdown, CostTrendChart, ActivityTrendChart } from './chunk-M5CRPFJA.js';
6
6
  import { CardHeader } from './chunk-62GVNH5U.js';
7
7
  import { formatDuration } from './chunk-2HXDI4RY.js';
8
- import { PAGE_SIZE_DEFAULT } from './chunk-CIGWHY7C.js';
8
+ import { PAGE_SIZE_DEFAULT } from './chunk-DEZW7QDI.js';
9
9
  import { formatBucketTime, getTimeRangeDates } from './chunk-6XBZPKMI.js';
10
10
  import { useRouterContext } from './chunk-Q7DJKLEN.js';
11
11
  import { useState, useMemo, useCallback } from 'react';
@@ -26,9 +26,8 @@ function detectLayout(viteRoot) {
26
26
  mode: "monorepo",
27
27
  projectRoot,
28
28
  omSourcePath: resolve(projectRoot, "packages/elevasis/core/config/organization-model.ts"),
29
- // monorepo mode does not consume mdxNodesDir; field kept for type uniformity
30
- mdxNodesDir: resolve(projectRoot, "packages/elevasis/core/knowledge-nodes-unused"),
31
- generatedDir: resolve(projectRoot, "packages/ui/src/knowledge/_generated"),
29
+ mdxNodesDir: resolve(projectRoot, "packages/elevasis/core/config/knowledge/nodes"),
30
+ generatedDir: resolve(projectRoot, "packages/elevasis/core/config/knowledge/_generated"),
32
31
  // Both, and the knowledge dir is the load-bearing one: monorepo runCodegen
33
32
  // regenerates from the MDX bodies, so watching only the OM meant a node edit
34
33
  // never hot-regenerated. Pre-dates the move — the paths changed, the gap did not.
@@ -51,7 +50,7 @@ function knowledgePlugin() {
51
50
  if (layout.mode === "monorepo") {
52
51
  const result = spawnSync(
53
52
  "pnpm",
54
- ["-C", "packages/ui", "exec", "tsx", "scripts/run-knowledge-bodies-codegen.ts"],
53
+ ["-C", "packages/elevasis/core", "exec", "tsx", "scripts/run-knowledge-bodies-codegen.ts"],
55
54
  {
56
55
  cwd: layout.projectRoot,
57
56
  encoding: "utf8",
@@ -1,5 +1,5 @@
1
- import { showApiErrorNotification } from './chunk-3HMRK3RC.js';
2
- import { buildQueryString } from './chunk-CIGWHY7C.js';
1
+ import { showApiErrorNotification } from './chunk-PNCJJE4Z.js';
2
+ import { buildQueryString } from './chunk-DEZW7QDI.js';
3
3
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
4
4
  import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
5
5
 
@@ -1,4 +1,4 @@
1
- import { useAppearance } from './chunk-7A25EJ4A.js';
1
+ import { useAppearance } from './chunk-M5CRPFJA.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,5 +1,5 @@
1
1
  import { GetNotificationsQuerySchema, MarkAsReadParamsSchema } from './chunk-GY7FXTC4.js';
2
- import { useNotificationAdapter } from './chunk-7A25EJ4A.js';
2
+ import { useNotificationAdapter } from './chunk-M5CRPFJA.js';
3
3
  import { getTimeRangeDates } from './chunk-6XBZPKMI.js';
4
4
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
5
5
  import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
@@ -1,13 +1,13 @@
1
- import { projectKeys, noteKeys, taskKeys, milestoneKeys } from './chunk-MJIDC25O.js';
2
- import { leadGenListMemberKeys } from './chunk-XEO2UG4J.js';
1
+ import { projectKeys, noteKeys, taskKeys, milestoneKeys } from './chunk-HDITVHZT.js';
2
+ import { leadGenListMemberKeys } from './chunk-4C4IFMRP.js';
3
3
  import { useSupabase } from './chunk-MKH2KOAO.js';
4
- import { companyKeys, contactKeys } from './chunk-NGRRAYMO.js';
5
- import { useErrorNotification, activityKeys } from './chunk-ZU676PFP.js';
6
- import { useNotificationAdapter, dealKeys, acquisitionListKeys, useListsTelemetry, useOptionalElevasisSystems, useSSEConnection } from './chunk-7A25EJ4A.js';
7
- import { HTTP_HEADERS } from './chunk-KGUBFIMQ.js';
8
- import { showApiErrorNotification, showSuccessNotification } from './chunk-3HMRK3RC.js';
4
+ import { companyKeys, contactKeys } from './chunk-3RYXJS2F.js';
5
+ import { useErrorNotification, activityKeys } from './chunk-I2JOA54D.js';
6
+ import { useNotificationAdapter, dealKeys, acquisitionListKeys, useListsTelemetry, useOptionalElevasisSystems, useSSEConnection } from './chunk-M5CRPFJA.js';
7
+ import { HTTP_HEADERS } from './chunk-7RS2NUC6.js';
8
+ import { showApiErrorNotification, showSuccessNotification } from './chunk-PNCJJE4Z.js';
9
9
  import { useOrganization } from './chunk-DD3CCMCZ.js';
10
- import { STALE_TIME_ADMIN } from './chunk-CIGWHY7C.js';
10
+ import { STALE_TIME_ADMIN } from './chunk-DEZW7QDI.js';
11
11
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
12
12
  import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
13
13
  import { notifications } from '@mantine/notifications';
@@ -1,4 +1,4 @@
1
- import { showApiErrorNotification } from './chunk-3HMRK3RC.js';
1
+ import { showApiErrorNotification } from './chunk-PNCJJE4Z.js';
2
2
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
3
3
  import { useQuery, useQueries, useMutation } from '@tanstack/react-query';
4
4
 
@@ -1,7 +1,7 @@
1
1
  import { mantineThemeOverride, createCssVariablesResolver, PresetsProvider } from './chunk-4WLAVUPS.js';
2
2
  import { PRESETS, getPreset, AppBackground, generateShades } from './chunk-RXZ3XDBM.js';
3
- import { HTTP_HEADERS, ApiClientProvider, useApiClient } from './chunk-KGUBFIMQ.js';
4
- import { showApiErrorNotification, showSuccessNotification } from './chunk-3HMRK3RC.js';
3
+ import { HTTP_HEADERS, ApiClientProvider, useApiClient } from './chunk-7RS2NUC6.js';
4
+ import { showApiErrorNotification, showSuccessNotification } from './chunk-PNCJJE4Z.js';
5
5
  import { CardHeader } from './chunk-62GVNH5U.js';
6
6
  import { InitializationContext, useInitialization, InitializationProvider } from './chunk-P45GQ3ZW.js';
7
7
  import { SessionIdParamSchema, CreateSessionSchema } from './chunk-IIMC4TRH.js';
@@ -10,7 +10,7 @@ import { getStatusIcon } from './chunk-2HXDI4RY.js';
10
10
  import { invalidateOrgScopedQueries, OrganizationProvider } from './chunk-YJ437RDY.js';
11
11
  import { OrganizationContext, useOrganization } from './chunk-DD3CCMCZ.js';
12
12
  import { ProfileProvider } from './chunk-RT4KRGZT.js';
13
- 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, buildQueryString, formatRelativeTime, devOnlyFor, topLevel, parentOf, ancestorsOf, childrenOf, findById, findByPath, systemLifecycleAllowsAccess, PAGE_SIZE_DEFAULT, resolveSystemConfig, defaultPathFor } from './chunk-CIGWHY7C.js';
13
+ 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, buildQueryString, formatRelativeTime, devOnlyFor, topLevel, parentOf, ancestorsOf, childrenOf, findById, findByPath, systemLifecycleAllowsAccess, PAGE_SIZE_DEFAULT, resolveSystemConfig, defaultPathFor } from './chunk-DEZW7QDI.js';
14
14
  import { getTimeRangeLabel, getTimeRangeDates, formatBucketTime, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_DASHBOARD, debounce } from './chunk-6XBZPKMI.js';
15
15
  import { ResourceStatusColors } from './chunk-7ZUXA2NW.js';
16
16
  import { ElevasisServiceContext, useElevasisServices, ElevasisServiceProvider } from './chunk-BI5VDO2K.js';
@@ -8566,7 +8566,11 @@ function useExecutionLogSSE(resourceId, manager, apiUrl) {
8566
8566
  );
8567
8567
  const { connected, error } = useSSEConnection({
8568
8568
  manager,
8569
- connectionKey: `resource-${resourceId}`,
8569
+ // Keyed on the same organization it puts in the header, matching useExecutionSSE. The server
8570
+ // scopes this stream by { organizationName, resourceId }, so a resource id alone does not
8571
+ // identify a connection -- the same resource is deployed to more than one organization, and a
8572
+ // bare key made an organization switch re-attach to the previous organization's stream.
8573
+ connectionKey: `resource-${currentWorkOSOrganizationId ?? "unknown"}-${resourceId}`,
8570
8574
  url: sseUrl,
8571
8575
  enabled: !!resourceId && !!workOSOrganizationId && isOrganizationReady,
8572
8576
  headers,
@@ -13532,14 +13536,10 @@ function ConceptInfoControl({ description }) {
13532
13536
  }
13533
13537
  ) });
13534
13538
  }
13535
- var indexPromise = null;
13536
- function loadSearchIndex() {
13537
- if (!indexPromise) {
13538
- indexPromise = import('./knowledge-search-index-YU6V3FTK.js').then(
13539
- (mod) => buildSearchIndex(mod.default ?? mod)
13540
- );
13541
- }
13542
- return indexPromise;
13539
+
13540
+ // src/knowledge/stripToPlainText.ts
13541
+ function stripToPlainText(body) {
13542
+ return body.replace(/^(import|export)\s+.+$/gm, "").replace(/<[A-Z][^>]*>/g, "").replace(/<\/[A-Z][^>]*>/g, "").replace(/^#{1,6}\s+/gm, "").replace(/[*_`~]/g, "").replace(/\[([^\]]+)\]\([^)]+\)/g, "$1").replace(/\n{3,}/g, "\n\n").trim();
13543
13543
  }
13544
13544
  function buildSearchIndex(entries) {
13545
13545
  return {
@@ -13564,36 +13564,35 @@ function KnowledgeSearchBar({
13564
13564
  placeholder = "Search knowledge\u2026"
13565
13565
  }) {
13566
13566
  const [query, setQuery] = useState("");
13567
- const indexRef = useRef(null);
13568
- const nodeMapRef = useRef(/* @__PURE__ */ new Map());
13569
- useEffect(() => {
13567
+ const nodeMap = useMemo(() => {
13570
13568
  const map = /* @__PURE__ */ new Map();
13571
13569
  for (const node of knowledgeNodes) map.set(node.id, node);
13572
- nodeMapRef.current = map;
13570
+ return map;
13573
13571
  }, [knowledgeNodes]);
13572
+ const index = useMemo(
13573
+ () => buildSearchIndex(
13574
+ knowledgeNodes.map((node) => ({
13575
+ id: node.id,
13576
+ title: node.title,
13577
+ summary: node.summary,
13578
+ bodyText: stripToPlainText(node.body)
13579
+ }))
13580
+ ),
13581
+ [knowledgeNodes]
13582
+ );
13574
13583
  const handleChange = (value) => {
13575
13584
  setQuery(value);
13576
13585
  if (!value.trim()) {
13577
13586
  onResults(null);
13578
13587
  return;
13579
13588
  }
13580
- if (indexRef.current) {
13581
- runSearch(value, indexRef.current);
13582
- return;
13583
- }
13584
- void loadSearchIndex().then((index) => {
13585
- indexRef.current = index;
13586
- if (query.trim() || value.trim()) runSearch(value, index);
13587
- });
13588
- };
13589
- function runSearch(value, index) {
13590
13589
  const ids = index.search(value);
13591
13590
  const hits = ids.flatMap((id) => {
13592
- const node = nodeMapRef.current.get(id);
13591
+ const node = nodeMap.get(id);
13593
13592
  return node ? [node] : [];
13594
13593
  });
13595
13594
  onResults(hits);
13596
- }
13595
+ };
13597
13596
  const handleClear = () => {
13598
13597
  setQuery("");
13599
13598
  onResults(null);
@@ -14104,6 +14103,7 @@ function ElevasisSystemsProvider({
14104
14103
  systems,
14105
14104
  topbarActions,
14106
14105
  organizationModel,
14106
+ knowledgeBodies,
14107
14107
  timeRange,
14108
14108
  operationsApiUrl,
14109
14109
  operationsSSEManager,
@@ -14196,6 +14196,7 @@ function ElevasisSystemsProvider({
14196
14196
  resolvedSystems,
14197
14197
  organizationGraph,
14198
14198
  organizationModel: resolvedOrganizationModel,
14199
+ knowledgeBodies,
14199
14200
  timeRange,
14200
14201
  operationsApiUrl,
14201
14202
  operationsSSEManager,
@@ -14212,6 +14213,7 @@ function ElevasisSystemsProvider({
14212
14213
  resolvedSystems,
14213
14214
  organizationGraph,
14214
14215
  resolvedOrganizationModel,
14216
+ knowledgeBodies,
14215
14217
  timeRange,
14216
14218
  operationsApiUrl,
14217
14219
  operationsSSEManager,
@@ -14364,9 +14366,21 @@ function ElevasisUIProvider({ theme, children, ...coreProps }) {
14364
14366
  }
14365
14367
  );
14366
14368
  }
14367
- function createTestSystemsProvider({ organizationModel, systems = [] } = {}) {
14369
+ function createTestSystemsProvider({
14370
+ organizationModel,
14371
+ systems = [],
14372
+ knowledgeBodies
14373
+ }) {
14368
14374
  return function TestSystemsProvider({ children }) {
14369
- return /* @__PURE__ */ jsx(ElevasisSystemsProvider, { systems, organizationModel, children });
14375
+ return /* @__PURE__ */ jsx(
14376
+ ElevasisSystemsProvider,
14377
+ {
14378
+ systems,
14379
+ organizationModel,
14380
+ knowledgeBodies,
14381
+ children
14382
+ }
14383
+ );
14370
14384
  };
14371
14385
  }
14372
14386
 
@@ -1,5 +1,5 @@
1
- import { getLeadGenStageCatalog } from './chunk-7A25EJ4A.js';
2
- import { SYSTEM_INTERFACE_PROFILES, formatOntologyId, registerBuiltInReadinessProfile, registerReadinessInterfaceMarker, requireContractReadiness, computeInterfaceReadiness, addReadinessIssue, formatInterfaceIdentity, getSystem, resourceBindingIds, requireCatalogReadiness, requireScopedBinding } from './chunk-CIGWHY7C.js';
1
+ import { getLeadGenStageCatalog } from './chunk-M5CRPFJA.js';
2
+ import { SYSTEM_INTERFACE_PROFILES, formatOntologyId, registerBuiltInReadinessProfile, registerReadinessInterfaceMarker, requireContractReadiness, computeInterfaceReadiness, addReadinessIssue, formatInterfaceIdentity, getSystem, resourceBindingIds, requireCatalogReadiness, requireScopedBinding } from './chunk-DEZW7QDI.js';
3
3
 
4
4
  // ../core/src/business/acquisition/ontology-validation.ts
5
5
  var LEAD_GEN_API_INTERFACE = SYSTEM_INTERFACE_PROFILES[0];
@@ -1,4 +1,4 @@
1
- import { useOptionalElevasisSystems } from './chunk-7A25EJ4A.js';
1
+ import { useOptionalElevasisSystems } from './chunk-M5CRPFJA.js';
2
2
  import { useRouterContext } from './chunk-Q7DJKLEN.js';
3
3
  import { useMemo } from 'react';
4
4
 
@@ -1,4 +1,4 @@
1
- import { computeInterfaceReadiness, getSystem } from './chunk-CIGWHY7C.js';
1
+ import { computeInterfaceReadiness, getSystem } from './chunk-DEZW7QDI.js';
2
2
 
3
3
  // src/features/operations/systems/systemInterfaceReadiness.ts
4
4
  function summarizeReadinessIssues(issues) {
@@ -1,4 +1,4 @@
1
- import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-CIGWHY7C.js';
1
+ import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-DEZW7QDI.js';
2
2
  import { notifications } from '@mantine/notifications';
3
3
 
4
4
  var showInfoNotification = (message) => {
@@ -1,14 +1,14 @@
1
- import { eqOrgId, sanitizePostgrestValue, useBatchDeleteRows } from './chunk-2KXSFLU2.js';
1
+ import { eqOrgId, sanitizePostgrestValue, useBatchDeleteRows } from './chunk-ZG3DARVR.js';
2
2
  import { useSupabase } from './chunk-MKH2KOAO.js';
3
3
  import { useTableSort, sortData } from './chunk-2Y6AKWGU.js';
4
4
  import { useTableSelection } from './chunk-WDBNW44Z.js';
5
- import { SubshellPageLayout } from './chunk-Q6HRTWA6.js';
5
+ import { SubshellPageLayout } from './chunk-XHJBDW2S.js';
6
6
  import { TableSelectionToolbar, SortableHeader } from './chunk-TUMSNGTX.js';
7
7
  import { FilterBar } from './chunk-PDHTXPSF.js';
8
- import { usePaginationState, PageTitleCaption, StatCard, EmptyState, CustomModal, SubshellContentContainer } from './chunk-7A25EJ4A.js';
9
- import { showApiErrorNotification } from './chunk-3HMRK3RC.js';
8
+ import { usePaginationState, PageTitleCaption, StatCard, EmptyState, CustomModal, SubshellContentContainer } from './chunk-M5CRPFJA.js';
9
+ import { showApiErrorNotification } from './chunk-PNCJJE4Z.js';
10
10
  import { useOrganization } from './chunk-DD3CCMCZ.js';
11
- import { PAGE_SIZE_DEFAULT } from './chunk-CIGWHY7C.js';
11
+ import { PAGE_SIZE_DEFAULT } from './chunk-DEZW7QDI.js';
12
12
  import { Stack, SimpleGrid, Paper, Select, TextInput, Group, Button, Center, Loader, Table, Checkbox, Text, Badge, Pagination, Title, Anchor, Card, Divider } from '@mantine/core';
13
13
  import { IconFileText, IconCircleCheck, IconPencil, IconAlertTriangle, IconEye, IconClick, IconTarget, IconBrain, IconSearch, IconFilterOff, IconExternalLink, IconArrowLeft, IconPercentage, IconChartLine, IconForms } from '@tabler/icons-react';
14
14
  import { useState, useMemo } from 'react';
@@ -1,4 +1,4 @@
1
- import { topbarHeight, useAppearance } from './chunk-7A25EJ4A.js';
1
+ import { topbarHeight, useAppearance } from './chunk-M5CRPFJA.js';
2
2
  import { Stack, Title, Button } from '@mantine/core';
3
3
  import { IconAlertCircle } from '@tabler/icons-react';
4
4
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -1,5 +1,5 @@
1
1
  import { PageContainer } from './chunk-BZZCNLT6.js';
2
- import { sidebarItemGap, sidebarSubLinkPaddingY, sidebarSubLinkPaddingX, sidebarSubLinkIndent, sidebarHoverDelay, sidebarTransitionDuration, sidebarCollapsedWidth, sidebarWidth, topbarHeight, sidebarToggleIconSize, sidebarSectionPadding, NavigationButton, useAppearance, sidebarGroupChevronSize, sidebarIconInnerSize, SubshellNavItem, useElevasisSystems } from './chunk-7A25EJ4A.js';
2
+ import { sidebarItemGap, sidebarSubLinkPaddingY, sidebarSubLinkPaddingX, sidebarSubLinkIndent, sidebarHoverDelay, sidebarTransitionDuration, sidebarCollapsedWidth, sidebarWidth, topbarHeight, sidebarToggleIconSize, sidebarSectionPadding, NavigationButton, useAppearance, sidebarGroupChevronSize, sidebarIconInnerSize, SubshellNavItem, useElevasisSystems } from './chunk-M5CRPFJA.js';
3
3
  import { useRouterContext } from './chunk-Q7DJKLEN.js';
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
5
  import { createContext, memo, useEffect, useRef, createElement, useContext, useLayoutEffect, useState, Fragment as Fragment$1 } from 'react';
@@ -1,5 +1,5 @@
1
- import { showApiErrorNotification } from './chunk-3HMRK3RC.js';
2
- import { buildQueryString } from './chunk-CIGWHY7C.js';
1
+ import { showApiErrorNotification } from './chunk-PNCJJE4Z.js';
2
+ import { buildQueryString } from './chunk-DEZW7QDI.js';
3
3
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
4
4
  import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
5
5
 
@@ -1,17 +1,17 @@
1
- import { useDealDetail, useExecuteAction } from './chunk-CSEADI37.js';
2
- import { CRM_API_INTERFACE } from './chunk-52G4B33T.js';
3
- import { useCompany, useContact, deriveActions } from './chunk-NGRRAYMO.js';
1
+ import { useDealDetail, useExecuteAction } from './chunk-ZYIGD2QY.js';
2
+ import { CRM_API_INTERFACE } from './chunk-NQSZ4UGG.js';
3
+ import { useCompany, useContact, deriveActions } from './chunk-3RYXJS2F.js';
4
4
  import { useTableSort, sortData } from './chunk-2Y6AKWGU.js';
5
- import { getSystemApiInterfaceReadiness } from './chunk-DFGQG32T.js';
5
+ import { getSystemApiInterfaceReadiness } from './chunk-PJN6CMWZ.js';
6
6
  import { useTableSelection } from './chunk-WDBNW44Z.js';
7
- import { SubshellPageLayout } from './chunk-Q6HRTWA6.js';
7
+ import { SubshellPageLayout } from './chunk-XHJBDW2S.js';
8
8
  import { PageContainer } from './chunk-BZZCNLT6.js';
9
9
  import { TableSelectionToolbar, SortableHeader } from './chunk-TUMSNGTX.js';
10
10
  import { FilterBar } from './chunk-PDHTXPSF.js';
11
- import { SubshellSidebarSection, CrmSidebarMiddle, useDealsSummary, useOptionalElevasisSystems, getCrmPipelineCatalog, CenteredErrorState, StatCard, PageTitleCaption, useDeleteDeal, usePaginationState, useDeals, SubshellContentContainer, EmptyState, CustomModal, useCrmActions, ActivityTimeline, ContextViewer, JsonViewer, dealKeys } from './chunk-7A25EJ4A.js';
12
- import { showApiErrorNotification, showSuccessNotification } from './chunk-3HMRK3RC.js';
11
+ import { SubshellSidebarSection, CrmSidebarMiddle, useDealsSummary, useOptionalElevasisSystems, getCrmPipelineCatalog, CenteredErrorState, StatCard, PageTitleCaption, useDeleteDeal, usePaginationState, useDeals, SubshellContentContainer, EmptyState, CustomModal, useCrmActions, ActivityTimeline, ContextViewer, JsonViewer, dealKeys } from './chunk-M5CRPFJA.js';
12
+ import { showApiErrorNotification, showSuccessNotification } from './chunk-PNCJJE4Z.js';
13
13
  import { CardHeader } from './chunk-62GVNH5U.js';
14
- import { PAGE_SIZE_DEFAULT, formatTimeAgo } from './chunk-CIGWHY7C.js';
14
+ import { PAGE_SIZE_DEFAULT, formatTimeAgo } from './chunk-DEZW7QDI.js';
15
15
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
16
16
  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';
17
17
  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';
@@ -1,5 +1,5 @@
1
- import { requestsKeys } from './chunk-7A25EJ4A.js';
2
- import { buildQueryString } from './chunk-CIGWHY7C.js';
1
+ import { requestsKeys } from './chunk-M5CRPFJA.js';
2
+ import { buildQueryString } from './chunk-DEZW7QDI.js';
3
3
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
4
4
  import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
5
5
 
@@ -1,4 +1,4 @@
1
- import { AppearanceContext } from './chunk-7A25EJ4A.js';
1
+ import { AppearanceContext } from './chunk-M5CRPFJA.js';
2
2
  import { ElevasisServiceContext } from './chunk-BI5VDO2K.js';
3
3
  import { useContext, useState, useRef, useCallback, useEffect } from 'react';
4
4
  import { Paper, Stack, Title, Text, Group, Button, Anchor, Collapse, Badge, Code } from '@mantine/core';
@@ -1,5 +1,5 @@
1
1
  import { PageContainer } from './chunk-BZZCNLT6.js';
2
- import { SubshellContentContainer } from './chunk-7A25EJ4A.js';
2
+ import { SubshellContentContainer } from './chunk-M5CRPFJA.js';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
5
5
  var SubshellPageLayout = ({ children, className }) => /* @__PURE__ */ jsx(SubshellContentContainer, { className, children: /* @__PURE__ */ jsx(PageContainer, { children }) });
@@ -1,5 +1,5 @@
1
1
  import { useSupabase } from './chunk-MKH2KOAO.js';
2
- import { useNotificationAdapter } from './chunk-7A25EJ4A.js';
2
+ import { useNotificationAdapter } from './chunk-M5CRPFJA.js';
3
3
  import { useQueryClient, useMutation } from '@tanstack/react-query';
4
4
 
5
5
  // ../core/src/supabase/helpers.ts
@@ -1,6 +1,6 @@
1
- import { dealKeys } from './chunk-7A25EJ4A.js';
2
- import { showApiErrorNotification } from './chunk-3HMRK3RC.js';
3
- import { APIClientError } from './chunk-CIGWHY7C.js';
1
+ import { dealKeys } from './chunk-M5CRPFJA.js';
2
+ import { showApiErrorNotification } from './chunk-PNCJJE4Z.js';
3
+ import { APIClientError } from './chunk-DEZW7QDI.js';
4
4
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
5
5
  import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
6
6
 
@@ -3210,13 +3210,6 @@ type Database = {
3210
3210
  referencedRelation: "users";
3211
3211
  referencedColumns: ["id"];
3212
3212
  },
3213
- {
3214
- foreignKeyName: "prj_notes_milestone_id_fkey";
3215
- columns: ["milestone_id"];
3216
- isOneToOne: false;
3217
- referencedRelation: "prj_milestones";
3218
- referencedColumns: ["id"];
3219
- },
3220
3213
  {
3221
3214
  foreignKeyName: "prj_notes_organization_id_fkey";
3222
3215
  columns: ["organization_id"];
@@ -3230,13 +3223,6 @@ type Database = {
3230
3223
  isOneToOne: false;
3231
3224
  referencedRelation: "prj_projects";
3232
3225
  referencedColumns: ["id"];
3233
- },
3234
- {
3235
- foreignKeyName: "prj_notes_task_id_fkey";
3236
- columns: ["task_id"];
3237
- isOneToOne: false;
3238
- referencedRelation: "prj_tasks";
3239
- referencedColumns: ["id"];
3240
3226
  }
3241
3227
  ];
3242
3228
  };