@elevasis/ui 2.29.0 → 2.31.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 (125) hide show
  1. package/dist/{CoreAuthKitInner-QC62UHTZ.js → CoreAuthKitInner-KSEGSB67.js} +1 -1
  2. package/dist/api/index.js +3 -3
  3. package/dist/app/index.d.ts +176 -1
  4. package/dist/app/index.js +11 -11
  5. package/dist/auth/context.js +1 -1
  6. package/dist/auth/index.js +5 -5
  7. package/dist/charts/index.d.ts +2 -1
  8. package/dist/charts/index.js +9 -9
  9. package/dist/{chunk-XTVZFT7U.js → chunk-2Q2JQSQO.js} +1 -1
  10. package/dist/{chunk-LH4GPYDX.js → chunk-3BAPR3KA.js} +19 -3
  11. package/dist/{chunk-HLFFKKT3.js → chunk-3FV6HBXS.js} +17 -17
  12. package/dist/{chunk-WKJ47GIW.js → chunk-533DUEQY.js} +1 -1
  13. package/dist/{chunk-SZWXQHKO.js → chunk-542WPQU2.js} +9 -8
  14. package/dist/{chunk-5CW2HXQA.js → chunk-5LJAEZMA.js} +7 -28
  15. package/dist/{chunk-V3HUIZJX.js → chunk-6IXOKUBC.js} +1 -1
  16. package/dist/{chunk-VKMNWHTL.js → chunk-6YT4IKJ7.js} +3 -3
  17. package/dist/{chunk-CEHUFNAL.js → chunk-7HMCB26R.js} +12 -12
  18. package/dist/chunk-7KC4P3AU.js +357 -0
  19. package/dist/{chunk-OWESKPTJ.js → chunk-CQZ3DNQY.js} +30 -11
  20. package/dist/{chunk-ROSMICXG.js → chunk-CXY7FMUM.js} +35 -20
  21. package/dist/{chunk-I2KLQ2HA.js → chunk-DZTG5IAC.js} +7 -1
  22. package/dist/{chunk-JCGD4GM6.js → chunk-GRDLB6LM.js} +1 -0
  23. package/dist/{chunk-FGDUK74A.js → chunk-HQGF4ATG.js} +10 -56
  24. package/dist/{chunk-HOIT677G.js → chunk-HUJCU55S.js} +1 -1
  25. package/dist/{chunk-OIMPGKDB.js → chunk-HYNYEBHM.js} +4 -4
  26. package/dist/{chunk-GESXCQWY.js → chunk-JA5ECJJB.js} +1 -1
  27. package/dist/{chunk-KU7ZDWQ7.js → chunk-JBWJ6WHZ.js} +1 -1
  28. package/dist/{chunk-HNFQCOD2.js → chunk-JKSUN5GN.js} +1107 -370
  29. package/dist/{chunk-5WWZXCS5.js → chunk-KJ3QUBNU.js} +9 -2
  30. package/dist/{chunk-OHGNCWJP.js → chunk-L2NVFLXU.js} +3 -3
  31. package/dist/{chunk-6WXDE5LZ.js → chunk-L3BVJWML.js} +1 -1
  32. package/dist/{chunk-3DUOPXOJ.js → chunk-MVFCLZSK.js} +691 -222
  33. package/dist/{chunk-A7R2URMV.js → chunk-ND42LPY4.js} +44 -10
  34. package/dist/{chunk-CLUP5H3C.js → chunk-O2QOPJI5.js} +360 -126
  35. package/dist/{chunk-VMJVQAFZ.js → chunk-OAVTMITG.js} +1 -1
  36. package/dist/{chunk-X2SUMO3P.js → chunk-P55BJZZW.js} +2 -1
  37. package/dist/{chunk-QNL7UI5G.js → chunk-Q6OYNEGR.js} +6 -6
  38. package/dist/{chunk-Y3YJKKEB.js → chunk-QDEETKYT.js} +5 -2
  39. package/dist/{chunk-XBMCDGHA.js → chunk-QHEWXU7I.js} +1 -1
  40. package/dist/chunk-R2XR4FCV.js +48 -0
  41. package/dist/chunk-R66W5UDG.js +26 -0
  42. package/dist/{chunk-65RQE3XF.js → chunk-SHQXMW4F.js} +1051 -380
  43. package/dist/{chunk-AK5E6ILJ.js → chunk-T3IPHEYJ.js} +1893 -305
  44. package/dist/{chunk-7E3FUTND.js → chunk-TOIXUWR6.js} +1 -1
  45. package/dist/{chunk-FFDAE2QI.js → chunk-TVRQ6AQI.js} +172 -26
  46. package/dist/{chunk-CN2HC4D4.js → chunk-UFTM5SZZ.js} +2 -2
  47. package/dist/{chunk-WFTNY755.js → chunk-VKIZUUPM.js} +1 -1
  48. package/dist/{chunk-KVJ3LFH2.js → chunk-VNFR57DF.js} +4 -24
  49. package/dist/{chunk-S66IQSSR.js → chunk-WF227UBV.js} +1 -1
  50. package/dist/{chunk-6NHCE7JM.js → chunk-Y4FWCG7Y.js} +159 -314
  51. package/dist/components/chat/index.d.ts +2 -1
  52. package/dist/components/chat/index.js +2 -2
  53. package/dist/components/index.d.ts +205 -11
  54. package/dist/components/index.js +51 -48
  55. package/dist/components/navigation/index.js +9 -9
  56. package/dist/execution/index.d.ts +2 -1
  57. package/dist/execution/index.js +1 -1
  58. package/dist/features/auth/index.d.ts +121 -0
  59. package/dist/features/auth/index.js +6 -6
  60. package/dist/features/clients/index.css +611 -0
  61. package/dist/features/clients/index.d.ts +86 -0
  62. package/dist/features/clients/index.js +719 -0
  63. package/dist/features/crm/index.d.ts +148 -2
  64. package/dist/features/crm/index.js +27 -25
  65. package/dist/features/dashboard/index.d.ts +36 -1
  66. package/dist/features/dashboard/index.js +23 -23
  67. package/dist/features/delivery/index.d.ts +121 -0
  68. package/dist/features/delivery/index.js +27 -25
  69. package/dist/features/knowledge/index.js +52 -29
  70. package/dist/features/lead-gen/index.d.ts +116 -12
  71. package/dist/features/lead-gen/index.js +28 -26
  72. package/dist/features/monitoring/index.js +26 -25
  73. package/dist/features/monitoring/requests/index.js +23 -22
  74. package/dist/features/operations/index.d.ts +38 -2
  75. package/dist/features/operations/index.js +32 -31
  76. package/dist/features/seo/index.js +1 -1
  77. package/dist/features/settings/index.d.ts +121 -0
  78. package/dist/features/settings/index.js +25 -24
  79. package/dist/graph/index.js +1 -1
  80. package/dist/hooks/delivery/index.d.ts +140 -0
  81. package/dist/hooks/delivery/index.js +4 -4
  82. package/dist/hooks/index.d.ts +844 -21
  83. package/dist/hooks/index.js +21 -21
  84. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +82 -1
  85. package/dist/hooks/operations/command-view/utils/transformCommandViewData.js +1 -1
  86. package/dist/hooks/published.d.ts +844 -21
  87. package/dist/hooks/published.js +21 -21
  88. package/dist/index.d.ts +1056 -27
  89. package/dist/index.js +22 -22
  90. package/dist/initialization/index.d.ts +121 -0
  91. package/dist/initialization/index.js +5 -5
  92. package/dist/knowledge/index.d.ts +151 -1
  93. package/dist/knowledge/index.js +1692 -1039
  94. package/dist/layout/index.d.ts +6 -0
  95. package/dist/layout/index.js +4 -4
  96. package/dist/organization/index.js +5 -5
  97. package/dist/profile/index.d.ts +121 -0
  98. package/dist/profile/index.js +3 -3
  99. package/dist/provider/ElevasisServiceContext.d.ts +11 -5
  100. package/dist/provider/ElevasisServiceContext.js +2 -2
  101. package/dist/provider/index.d.ts +337 -7
  102. package/dist/provider/index.js +18 -18
  103. package/dist/provider/published.d.ts +337 -7
  104. package/dist/provider/published.js +14 -14
  105. package/dist/router/context.js +1 -1
  106. package/dist/router/index.js +1 -1
  107. package/dist/sse/index.js +1 -1
  108. package/dist/supabase/index.d.ts +232 -0
  109. package/dist/supabase/index.js +1 -1
  110. package/dist/test-utils/index.d.ts +3 -0
  111. package/dist/test-utils/index.js +31 -7
  112. package/dist/test-utils/setup-integration.js +1 -1
  113. package/dist/test-utils/setup.js +2 -2
  114. package/dist/theme/index.js +4 -4
  115. package/dist/theme/presets/index.js +2 -2
  116. package/dist/typeform/index.js +1 -1
  117. package/dist/typeform/schemas.js +1 -1
  118. package/dist/types/index.d.ts +204 -1
  119. package/dist/utils/index.d.ts +36 -1
  120. package/dist/utils/index.js +2 -2
  121. package/dist/vite/index.js +3 -3
  122. package/dist/vite-plugin-knowledge/index.js +2 -2
  123. package/dist/zustand/index.js +1 -1
  124. package/package.json +14 -5
  125. /package/dist/{chunk-HXZQWMKE.js → chunk-XQHZBA65.js} +0 -0
@@ -230,6 +230,7 @@ interface SerializedAgentDefinition {
230
230
  description: string;
231
231
  version: string;
232
232
  type: 'agent';
233
+ kind: 'orchestrator' | 'specialist' | 'utility' | 'system';
233
234
  status: 'dev' | 'prod';
234
235
  links?: ResourceLink[];
235
236
  category?: ResourceCategory;
@@ -315,6 +316,13 @@ interface SerializedWorkflowDefinition {
315
316
  metricsConfig?: object;
316
317
  }
317
318
 
319
+ declare const ResourceGovernanceStatusSchema: z.ZodEnum<{
320
+ active: "active";
321
+ deprecated: "deprecated";
322
+ archived: "archived";
323
+ }>;
324
+ type ResourceGovernanceStatus = z.infer<typeof ResourceGovernanceStatusSchema>;
325
+
318
326
  /**
319
327
  * Shared form field types for dynamic form generation
320
328
  * Used by: Command Queue, Execution Runner UI, future form-based features
@@ -493,6 +501,7 @@ type Database = {
493
501
  batch_id: string | null;
494
502
  category: string | null;
495
503
  category_pain: string | null;
504
+ client_id: string | null;
496
505
  created_at: string;
497
506
  domain: string | null;
498
507
  enrichment_data: Json | null;
@@ -519,6 +528,7 @@ type Database = {
519
528
  batch_id?: string | null;
520
529
  category?: string | null;
521
530
  category_pain?: string | null;
531
+ client_id?: string | null;
522
532
  created_at?: string;
523
533
  domain?: string | null;
524
534
  enrichment_data?: Json | null;
@@ -545,6 +555,7 @@ type Database = {
545
555
  batch_id?: string | null;
546
556
  category?: string | null;
547
557
  category_pain?: string | null;
558
+ client_id?: string | null;
548
559
  created_at?: string;
549
560
  domain?: string | null;
550
561
  enrichment_data?: Json | null;
@@ -568,6 +579,13 @@ type Database = {
568
579
  website?: string | null;
569
580
  };
570
581
  Relationships: [
582
+ {
583
+ foreignKeyName: "acq_companies_client_id_fkey";
584
+ columns: ["client_id"];
585
+ isOneToOne: false;
586
+ referencedRelation: "clients";
587
+ referencedColumns: ["id"];
588
+ },
571
589
  {
572
590
  foreignKeyName: "acq_companies_organization_id_fkey";
573
591
  columns: ["organization_id"];
@@ -582,6 +600,7 @@ type Database = {
582
600
  batch_id: string | null;
583
601
  brochure_first_viewed_at: string | null;
584
602
  brochure_view_count: number;
603
+ client_id: string | null;
585
604
  company_id: string | null;
586
605
  created_at: string;
587
606
  email: string;
@@ -610,6 +629,7 @@ type Database = {
610
629
  batch_id?: string | null;
611
630
  brochure_first_viewed_at?: string | null;
612
631
  brochure_view_count?: number;
632
+ client_id?: string | null;
613
633
  company_id?: string | null;
614
634
  created_at?: string;
615
635
  email: string;
@@ -638,6 +658,7 @@ type Database = {
638
658
  batch_id?: string | null;
639
659
  brochure_first_viewed_at?: string | null;
640
660
  brochure_view_count?: number;
661
+ client_id?: string | null;
641
662
  company_id?: string | null;
642
663
  created_at?: string;
643
664
  email?: string;
@@ -663,6 +684,13 @@ type Database = {
663
684
  updated_at?: string;
664
685
  };
665
686
  Relationships: [
687
+ {
688
+ foreignKeyName: "acq_contacts_client_id_fkey";
689
+ columns: ["client_id"];
690
+ isOneToOne: false;
691
+ referencedRelation: "clients";
692
+ referencedColumns: ["id"];
693
+ },
666
694
  {
667
695
  foreignKeyName: "acq_contacts_company_id_fkey";
668
696
  columns: ["company_id"];
@@ -906,8 +934,10 @@ type Database = {
906
934
  acq_deals: {
907
935
  Row: {
908
936
  activity_log: Json;
937
+ client_id: string | null;
909
938
  closed_lost_at: string | null;
910
939
  closed_lost_reason: string | null;
940
+ company_id: string | null;
911
941
  contact_email: string;
912
942
  contact_id: string | null;
913
943
  created_at: string;
@@ -943,8 +973,10 @@ type Database = {
943
973
  };
944
974
  Insert: {
945
975
  activity_log?: Json;
976
+ client_id?: string | null;
946
977
  closed_lost_at?: string | null;
947
978
  closed_lost_reason?: string | null;
979
+ company_id?: string | null;
948
980
  contact_email: string;
949
981
  contact_id?: string | null;
950
982
  created_at?: string;
@@ -980,8 +1012,10 @@ type Database = {
980
1012
  };
981
1013
  Update: {
982
1014
  activity_log?: Json;
1015
+ client_id?: string | null;
983
1016
  closed_lost_at?: string | null;
984
1017
  closed_lost_reason?: string | null;
1018
+ company_id?: string | null;
985
1019
  contact_email?: string;
986
1020
  contact_id?: string | null;
987
1021
  created_at?: string;
@@ -1016,6 +1050,20 @@ type Database = {
1016
1050
  updated_at?: string;
1017
1051
  };
1018
1052
  Relationships: [
1053
+ {
1054
+ foreignKeyName: "acq_deals_client_id_fkey";
1055
+ columns: ["client_id"];
1056
+ isOneToOne: false;
1057
+ referencedRelation: "clients";
1058
+ referencedColumns: ["id"];
1059
+ },
1060
+ {
1061
+ foreignKeyName: "acq_deals_company_id_fkey";
1062
+ columns: ["company_id"];
1063
+ isOneToOne: false;
1064
+ referencedRelation: "acq_companies";
1065
+ referencedColumns: ["id"];
1066
+ },
1019
1067
  {
1020
1068
  foreignKeyName: "acq_deals_contact_id_fkey";
1021
1069
  columns: ["contact_id"];
@@ -1633,6 +1681,77 @@ type Database = {
1633
1681
  }
1634
1682
  ];
1635
1683
  };
1684
+ clients: {
1685
+ Row: {
1686
+ converted_at: string | null;
1687
+ created_at: string;
1688
+ id: string;
1689
+ metadata: Json;
1690
+ name: string;
1691
+ organization_id: string;
1692
+ primary_company_id: string | null;
1693
+ primary_contact_id: string | null;
1694
+ source_deal_id: string | null;
1695
+ status: string;
1696
+ updated_at: string;
1697
+ };
1698
+ Insert: {
1699
+ converted_at?: string | null;
1700
+ created_at?: string;
1701
+ id?: string;
1702
+ metadata?: Json;
1703
+ name: string;
1704
+ organization_id: string;
1705
+ primary_company_id?: string | null;
1706
+ primary_contact_id?: string | null;
1707
+ source_deal_id?: string | null;
1708
+ status?: string;
1709
+ updated_at?: string;
1710
+ };
1711
+ Update: {
1712
+ converted_at?: string | null;
1713
+ created_at?: string;
1714
+ id?: string;
1715
+ metadata?: Json;
1716
+ name?: string;
1717
+ organization_id?: string;
1718
+ primary_company_id?: string | null;
1719
+ primary_contact_id?: string | null;
1720
+ source_deal_id?: string | null;
1721
+ status?: string;
1722
+ updated_at?: string;
1723
+ };
1724
+ Relationships: [
1725
+ {
1726
+ foreignKeyName: "clients_organization_id_fkey";
1727
+ columns: ["organization_id"];
1728
+ isOneToOne: false;
1729
+ referencedRelation: "organizations";
1730
+ referencedColumns: ["id"];
1731
+ },
1732
+ {
1733
+ foreignKeyName: "clients_primary_company_id_fkey";
1734
+ columns: ["primary_company_id"];
1735
+ isOneToOne: false;
1736
+ referencedRelation: "acq_companies";
1737
+ referencedColumns: ["id"];
1738
+ },
1739
+ {
1740
+ foreignKeyName: "clients_primary_contact_id_fkey";
1741
+ columns: ["primary_contact_id"];
1742
+ isOneToOne: false;
1743
+ referencedRelation: "acq_contacts";
1744
+ referencedColumns: ["id"];
1745
+ },
1746
+ {
1747
+ foreignKeyName: "clients_source_deal_id_fkey";
1748
+ columns: ["source_deal_id"];
1749
+ isOneToOne: false;
1750
+ referencedRelation: "acq_deals";
1751
+ referencedColumns: ["id"];
1752
+ }
1753
+ ];
1754
+ };
1636
1755
  command_queue: {
1637
1756
  Row: {
1638
1757
  action_payload: Json | null;
@@ -2602,6 +2721,7 @@ type Database = {
2602
2721
  Row: {
2603
2722
  actual_end_date: string | null;
2604
2723
  client_company_id: string | null;
2724
+ client_id: string | null;
2605
2725
  contract_value: number | null;
2606
2726
  created_at: string;
2607
2727
  deal_id: string | null;
@@ -2619,6 +2739,7 @@ type Database = {
2619
2739
  Insert: {
2620
2740
  actual_end_date?: string | null;
2621
2741
  client_company_id?: string | null;
2742
+ client_id?: string | null;
2622
2743
  contract_value?: number | null;
2623
2744
  created_at?: string;
2624
2745
  deal_id?: string | null;
@@ -2636,6 +2757,7 @@ type Database = {
2636
2757
  Update: {
2637
2758
  actual_end_date?: string | null;
2638
2759
  client_company_id?: string | null;
2760
+ client_id?: string | null;
2639
2761
  contract_value?: number | null;
2640
2762
  created_at?: string;
2641
2763
  deal_id?: string | null;
@@ -2672,6 +2794,13 @@ type Database = {
2672
2794
  referencedRelation: "acq_companies";
2673
2795
  referencedColumns: ["id"];
2674
2796
  },
2797
+ {
2798
+ foreignKeyName: "prj_projects_client_id_fkey";
2799
+ columns: ["client_id"];
2800
+ isOneToOne: false;
2801
+ referencedRelation: "clients";
2802
+ referencedColumns: ["id"];
2803
+ },
2675
2804
  {
2676
2805
  foreignKeyName: "prj_projects_deal_id_fkey";
2677
2806
  columns: ["deal_id"];
@@ -3413,6 +3542,7 @@ interface AgentIterationData {
3413
3542
  declare const DealDetailResponseSchema: z.ZodObject<{
3414
3543
  id: z.ZodString;
3415
3544
  organization_id: z.ZodString;
3545
+ client_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3416
3546
  contact_id: z.ZodNullable<z.ZodString>;
3417
3547
  contact_email: z.ZodString;
3418
3548
  pipeline_key: z.ZodString;
@@ -3497,6 +3627,25 @@ declare const DealDetailResponseSchema: z.ZodObject<{
3497
3627
  sentAt: z.ZodNullable<z.ZodString>;
3498
3628
  }, z.core.$strip>>;
3499
3629
  }, z.core.$strip>;
3630
+ lineage: z.ZodOptional<z.ZodObject<{
3631
+ list: z.ZodNullable<z.ZodObject<{
3632
+ id: z.ZodString;
3633
+ name: z.ZodString;
3634
+ status: z.ZodString;
3635
+ }, z.core.$strip>>;
3636
+ projects: z.ZodArray<z.ZodObject<{
3637
+ id: z.ZodString;
3638
+ name: z.ZodString;
3639
+ kind: z.ZodString;
3640
+ status: z.ZodString;
3641
+ updatedAt: z.ZodString;
3642
+ }, z.core.$strip>>;
3643
+ client: z.ZodNullable<z.ZodObject<{
3644
+ id: z.ZodString;
3645
+ name: z.ZodString;
3646
+ status: z.ZodString;
3647
+ }, z.core.$strip>>;
3648
+ }, z.core.$strip>>;
3500
3649
  }, z.core.$strip>;
3501
3650
  type DealDetailResponse = z.infer<typeof DealDetailResponseSchema>;
3502
3651
 
@@ -4040,6 +4189,27 @@ interface CostByModelResponse {
4040
4189
  */
4041
4190
  type AIResourceDefinition = SerializedWorkflowDefinition | SerializedAgentDefinition;
4042
4191
 
4192
+ declare const SystemEntrySchema: z.ZodObject<{
4193
+ id: z.ZodString;
4194
+ title: z.ZodString;
4195
+ description: z.ZodString;
4196
+ kind: z.ZodEnum<{
4197
+ platform: "platform";
4198
+ product: "product";
4199
+ operational: "operational";
4200
+ diagnostic: "diagnostic";
4201
+ }>;
4202
+ responsibleRoleId: z.ZodOptional<z.ZodString>;
4203
+ governedByKnowledge: z.ZodDefault<z.ZodArray<z.ZodString>>;
4204
+ drivesGoals: z.ZodDefault<z.ZodArray<z.ZodString>>;
4205
+ status: z.ZodEnum<{
4206
+ active: "active";
4207
+ deprecated: "deprecated";
4208
+ archived: "archived";
4209
+ }>;
4210
+ }, z.core.$strip>;
4211
+ type SystemEntry = z.infer<typeof SystemEntrySchema>;
4212
+
4043
4213
  /**
4044
4214
  * Resource Registry type definitions
4045
4215
  */
@@ -4053,6 +4223,7 @@ type ResourceStatus = 'dev' | 'prod';
4053
4223
  * Used as the discriminator field in ResourceDefinition
4054
4224
  */
4055
4225
  type ResourceType = 'agent' | 'workflow' | 'trigger' | 'integration' | 'external' | 'human';
4226
+ type ResourceSystemSummary = Pick<SystemEntry, 'id' | 'title' | 'description' | 'kind' | 'status'>;
4056
4227
  /**
4057
4228
  * Base interface for ALL platform resources
4058
4229
  * Shared by both executable (agents, workflows) and non-executable (triggers, integrations, etc.) resources
@@ -4078,6 +4249,12 @@ interface ResourceDefinition {
4078
4249
  sessionCapable?: boolean;
4079
4250
  /** Whether the resource is local (monorepo) or remote (externally deployed) */
4080
4251
  origin?: 'local' | 'remote';
4252
+ /** OM System membership, when backed by a Resource descriptor */
4253
+ systemId?: string;
4254
+ /** Display metadata for the owning OM System */
4255
+ system?: ResourceSystemSummary;
4256
+ /** Governance lifecycle status from the OM Resource descriptor */
4257
+ governanceStatus?: ResourceGovernanceStatus;
4081
4258
  /** Whether this resource is archived and should be excluded from registration and deployment */
4082
4259
  archived?: boolean;
4083
4260
  }
@@ -4097,8 +4274,8 @@ declare const LinkSchema: z.ZodObject<{
4097
4274
  type Link = z.infer<typeof LinkSchema>;
4098
4275
 
4099
4276
  declare const ResourceCategorySchema: z.ZodEnum<{
4100
- production: "production";
4101
4277
  diagnostic: "diagnostic";
4278
+ production: "production";
4102
4279
  internal: "internal";
4103
4280
  testing: "testing";
4104
4281
  }>;
@@ -4166,13 +4343,18 @@ interface Activity {
4166
4343
  * - API middleware (via requireOrganizationPermission(key))
4167
4344
  * - UI hooks (via useOrganizationPermissions().hasPermission(key))
4168
4345
  *
4169
- * The DB table `org_rol_permissions` mirrors this constant. Reconciliation
4170
- * runs at API boot (insert-or-update only — never auto-delete; see the
4171
- * deletion runbook in the auth-role-system doc -- review/auth-role-system/).
4346
+ * The DB table `org_rol_permissions` mirrors this constant. There is no
4347
+ * runtime reconciler; parity is enforced two ways:
4348
+ * 1. Each migration that adds/removes/modifies a permission must INSERT
4349
+ * (or UPDATE / DELETE) the corresponding `org_rol_permissions` row in
4350
+ * the same transaction.
4351
+ * 2. `apps/api/src/auth/multi-tenancy/__tests__/permissions-catalog-sync.integration.test.ts`
4352
+ * asserts the TS catalog and the DB rows agree; CI fails on drift.
4172
4353
  *
4173
4354
  * Adding a permission:
4174
4355
  * 1. Add an entry below.
4175
- * 2. Add a row to the migration / via reconcilePermissionCatalog at boot.
4356
+ * 2. Add a row to the migration (INSERT INTO org_rol_permissions ...) in
4357
+ * the same transaction as any policies/grants that reference the key.
4176
4358
  * 3. Reference it in RLS / middleware as needed.
4177
4359
  * 4. Optionally grant it to one or more system roles in org_rol_grants.
4178
4360
  *
@@ -4190,12 +4372,14 @@ declare const PERMISSIONS: {
4190
4372
  readonly OPERATIONS_MANAGE: "operations.manage";
4191
4373
  readonly ACQUISITION_MANAGE: "acquisition.manage";
4192
4374
  readonly PROJECTS_MANAGE: "projects.manage";
4375
+ readonly CLIENTS_MANAGE: "clients.manage";
4193
4376
  };
4194
4377
  type PermissionKey = (typeof PERMISSIONS)[keyof typeof PERMISSIONS];
4195
4378
  /**
4196
- * Static metadata for each permission. Mirrored into org_rol_permissions on
4197
- * boot reconciliation. is_org_grantable=false means the permission is reserved
4198
- * to system roles only custom roles cannot include it (privilege-escalation guard).
4379
+ * Static metadata for each permission. Mirrored into org_rol_permissions by
4380
+ * a migration `INSERT` in the same transaction as any change to this catalog.
4381
+ * is_org_grantable=false means the permission is reserved to system roles
4382
+ * only — custom roles cannot include it (privilege-escalation guard).
4199
4383
  */
4200
4384
  interface PermissionDescriptor {
4201
4385
  key: PermissionKey;
@@ -6566,6 +6750,16 @@ interface DealDetailPageProps {
6566
6750
  }
6567
6751
  declare function DealDetailPage({ dealId, renderActions, onDealLoaded }: DealDetailPageProps): react_jsx_runtime.JSX.Element;
6568
6752
 
6753
+ interface CompanyDetailPageProps {
6754
+ companyId: string;
6755
+ }
6756
+ declare function CompanyDetailPage({ companyId }: CompanyDetailPageProps): react_jsx_runtime.JSX.Element;
6757
+
6758
+ interface ContactDetailPageProps {
6759
+ contactId: string;
6760
+ }
6761
+ declare function ContactDetailPage({ contactId }: ContactDetailPageProps): react_jsx_runtime.JSX.Element;
6762
+
6569
6763
  interface LeadGenSidebarProps {
6570
6764
  /** Replace the default `LeadGenSidebarMiddle` with custom middle content. Leave unset for the default layout. */
6571
6765
  children?: ReactNode;
@@ -6692,11 +6886,11 @@ declare const settingsManifest: FeatureModule;
6692
6886
 
6693
6887
  declare const OperationsSidebar: () => react_jsx_runtime.JSX.Element;
6694
6888
 
6695
- declare const OperationsSidebarTop: () => react_jsx_runtime.JSX.Element | null;
6889
+ declare const OperationsSidebarTop: () => null;
6696
6890
 
6697
6891
  declare const OperationsSidebarMiddle: () => react_jsx_runtime.JSX.Element;
6698
6892
 
6699
6893
  declare const operationsManifest: FeatureModule;
6700
6894
 
6701
- export { APIErrorAlert, AbsoluteScheduleForm, ActionModal, ActivityCard, ActivityFeedWidget, ActivityFilters as ActivityFiltersBar, ActivityTable, ActivityTimeline, AgentDefinitionDisplay, AgentExecutionLogs, AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationEdge, AgentIterationNode, AllTasksPage, ApiKeyDisplayModal, ApiKeyList, ApiKeySettings, AppErrorBoundary, BaseEdge, BaseExecutionLogs, BaseExecutionLogsHeader, BaseExecutionLogsStates, BaseNode, Breadcrumbs, BusinessImpactCard, CONTAINER_CONSTANTS, Can, CardHeader, CenteredErrorState, CheckpointGroup, CollapsibleJsonSection, CollapsibleSection, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, CommandQueueTaskRow, ConfigCard, ConfirmationInputModal, ConfirmationModal, 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, MembershipFeaturePanel, MembershipStatusBadge, MetricsStrip, MilestoneTimeline, MyTasksPanel, NavigationButton, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, NoAccessState, NotificationBell, NotificationItem, NotificationList, NotificationPanel, OAuthConnectModal, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationMembershipsList, PIPELINE_FUNNEL_ORDER, PageNotFound, PageTitleCaption, PermissionMatrix, PipelineFunnelWidget, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, QuickCreateActions, RecurringScheduleForm, RelativeScheduleForm, ResourceCard, ResourceDefinitionSection, ResourceErrorState, ResourceFilter, ResourceHeader, ResourceHealthChart, ResourceHealthPanel, ResourceNotFoundState, RichTextEditor, RoleBadge, RunResourceButton, SAVED_VIEW_PRESETS, SEOSidebar, SEOSidebarMiddle, SEOSidebarTop, SHARED_VIZ_CONSTANTS, SavedViewsPanel, ScheduleCard, ScheduleDetailModal, ScheduleTypeSelector, SessionMemory, SortableHeader, StatCard, StatCardSkeleton, StatsCardSkeleton, StatusBadge, StepConfigForm, StyledMarkdown, TabCountBadge, TabSection, TableSelectionToolbar, TaskCard, TaskScheduler, TimeRangeSelector, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, ToolsListDisplay, TrendIndicator, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, UpcomingMilestonesPage, VisualizerContainer, WebhookUrlDisplayModal, WorkflowDefinitionDisplay, WorkflowExecutionLogs, WorkflowExecutionTimeline, ZodFormRenderer, buildErrorReport, calculateProgress, crmManifest, deliveryManifest, formatStatusLabel, getEnrichmentColor, getExecutionStatusConfig, getGraphBackgroundStyles, getHealthColor, getIcon, getLogLevelConfig, getStatusColor, iconMap, leadGenManifest, mdxComponents, milestoneStatusColors, monitoringManifest, noteTypeColors, operationsManifest, projectStatusColors, seoManifest, settingsManifest, showApiErrorNotification, showAuthError, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification, taskStatusColors, taskTypeColors, useCrmPipelineSummary, useCrmQuickMetrics, useDeleteLists, useGraphBackgroundStyles, useGraphTheme, useNewKnowledgeMapLayout, useRecentCrmActivity };
6702
- export type { ActivityEntry, ActivityFiltersProps, ActivityTableProps, AppErrorBoundaryProps, BaseEdgeProps, BaseExecutionLogsProps, BreadcrumbsProps, ContextViewerProps, CostByModelTableProps, CrashErrorFallbackProps, CreateRoleModalProps, CrmOverviewProps, DealKanbanCardProps, ErrorAnalysisCardProps, ErrorReportCardProps, ExecutionBreakdownTableProps, ExecutionHealthCardProps, ExecutionLogEntry, ExecutionLogsFiltersProps, ExecutionLogsTableProps, FeatureUnavailableStateProps, FieldPath, FitViewButtonVariant, GraphFitViewHandlerProps, JsonViewerProps, KanbanBoardProps, KnowledgeMapEdgeData, KnowledgeMapNodeData, LogLevel, MdxRendererProps, NavigationButtonProps, PermissionRow, ProjectsSidebarMiddleProps, ResourceHealthPanelProps, RichTextEditorProps, RunResourceButtonProps, RunResourceInputResolver, SavedViewPreset, ScheduleType, SerializedKnowledgeMap, SerializedKnowledgeNode, StatCardProps, StepConfigComponent, StepConfigFieldHint, StepConfigFormProps, StepConfigLayout, StepConfigSection, StyledMarkdownProps, TabSectionProps, TaskFilterStatus, TrendIndicatorProps, ZodFormRendererProps };
6895
+ export { APIErrorAlert, AbsoluteScheduleForm, ActionModal, ActivityCard, ActivityFeedWidget, ActivityFilters as ActivityFiltersBar, ActivityTable, ActivityTimeline, AgentDefinitionDisplay, AgentExecutionLogs, AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationEdge, AgentIterationNode, AllTasksPage, ApiKeyDisplayModal, ApiKeyList, ApiKeySettings, AppErrorBoundary, BaseEdge, BaseExecutionLogs, BaseExecutionLogsHeader, BaseExecutionLogsStates, BaseNode, Breadcrumbs, BusinessImpactCard, CONTAINER_CONSTANTS, Can, CardHeader, CenteredErrorState, CheckpointGroup, CollapsibleJsonSection, CollapsibleSection, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, CommandQueueTaskRow, CompanyDetailPage, ConfigCard, ConfirmationInputModal, ConfirmationModal, ContactDetailPage, ContentSections, ContextUsageBadge, ContextViewer, ContractDisplay, CostBreakdownCard, CostByModelTable, CostMetricsCard, CrashErrorFallback, CreateApiKeyModal, CreateCredentialModal, CreateRoleModal, CreateScheduleModal, CredentialList, CredentialSettings, CrmOverview, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, CustomModal, CustomSelector, DEAL_STAGES, DEFAULT_KANBAN_CONFIG, DealDetailPage, DealKanbanCard, DealsListPage, DeleteScheduleModal, DeploymentDetailModal, DeploymentList, DeploymentSettings, DeploymentStatusBadge, DetailCardSkeleton, EditApiKeyModal, ElevasisLoader, EmptyState, EmptyVisualizer, ErrorAnalysisCard, ErrorBreakdownTable, ErrorReportCard, ExecutionBreakdownTable, ExecutionErrorSection, ExecutionHealthCard, ExecutionLogsFilters as ExecutionLogsFilterBar, ExecutionLogsTable, ExecutionStats, ExecutionStatusBadge, FeatureUnavailableState, FilterBar, GlowDot, GraphBackground, GraphContainer, GraphFitViewButton, GraphFitViewHandler, GraphLegend, HealthStatusCard, JsonViewer, KanbanBoard, LEAD_GEN_ROUTE_LINKS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarMiddle, LeadGenSidebarTop, ListSkeleton, LogEntry, LogGroup, MdxRenderer, MembershipFeaturePanel, MembershipStatusBadge, MetricsStrip, MilestoneTimeline, MyTasksPanel, NavigationButton, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, NoAccessState, NotificationBell, NotificationItem, NotificationList, NotificationPanel, OAuthConnectModal, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationMembershipsList, PIPELINE_FUNNEL_ORDER, PageNotFound, PageTitleCaption, PermissionMatrix, PipelineFunnelWidget, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, QuickCreateActions, RecurringScheduleForm, RelativeScheduleForm, ResourceCard, ResourceDefinitionSection, ResourceErrorState, ResourceFilter, ResourceHeader, ResourceHealthChart, ResourceHealthPanel, ResourceNotFoundState, RichTextEditor, RoleBadge, RunResourceButton, SAVED_VIEW_PRESETS, SEOSidebar, SEOSidebarMiddle, SEOSidebarTop, SHARED_VIZ_CONSTANTS, SavedViewsPanel, ScheduleCard, ScheduleDetailModal, ScheduleTypeSelector, SessionMemory, SortableHeader, StatCard, StatCardSkeleton, StatsCardSkeleton, StatusBadge, StepConfigForm, StyledMarkdown, TabCountBadge, TabSection, TableSelectionToolbar, TaskCard, TaskScheduler, TimeRangeSelector, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, ToolsListDisplay, TrendIndicator, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, UpcomingMilestonesPage, VisualizerContainer, WebhookUrlDisplayModal, WorkflowDefinitionDisplay, WorkflowExecutionLogs, WorkflowExecutionTimeline, ZodFormRenderer, buildErrorReport, calculateProgress, crmManifest, deliveryManifest, formatStatusLabel, getEnrichmentColor, getExecutionStatusConfig, getGraphBackgroundStyles, getHealthColor, getIcon, getLogLevelConfig, getStatusColor, iconMap, leadGenManifest, mdxComponents, milestoneStatusColors, monitoringManifest, noteTypeColors, operationsManifest, projectStatusColors, seoManifest, settingsManifest, showApiErrorNotification, showAuthError, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification, taskStatusColors, taskTypeColors, useCrmPipelineSummary, useCrmQuickMetrics, useDeleteLists, useGraphBackgroundStyles, useGraphTheme, useNewKnowledgeMapLayout, useRecentCrmActivity };
6896
+ export type { ActivityEntry, ActivityFiltersProps, ActivityTableProps, AppErrorBoundaryProps, BaseEdgeProps, BaseExecutionLogsProps, BreadcrumbsProps, CompanyDetailPageProps, ContactDetailPageProps, ContextViewerProps, CostByModelTableProps, CrashErrorFallbackProps, CreateRoleModalProps, CrmOverviewProps, DealKanbanCardProps, ErrorAnalysisCardProps, ErrorReportCardProps, ExecutionBreakdownTableProps, ExecutionHealthCardProps, ExecutionLogEntry, ExecutionLogsFiltersProps, ExecutionLogsTableProps, FeatureUnavailableStateProps, FieldPath, FitViewButtonVariant, GraphFitViewHandlerProps, JsonViewerProps, KanbanBoardProps, KnowledgeMapEdgeData, KnowledgeMapNodeData, LogLevel, MdxRendererProps, NavigationButtonProps, PermissionRow, ProjectsSidebarMiddleProps, ResourceHealthPanelProps, RichTextEditorProps, RunResourceButtonProps, RunResourceInputResolver, SavedViewPreset, ScheduleType, SerializedKnowledgeMap, SerializedKnowledgeNode, StatCardProps, StepConfigComponent, StepConfigFieldHint, StepConfigFormProps, StepConfigLayout, StepConfigSection, StyledMarkdownProps, TabSectionProps, TaskFilterStatus, TrendIndicatorProps, ZodFormRendererProps };
@@ -1,80 +1,83 @@
1
- import { useBreadcrumbs } from '../chunk-S66IQSSR.js';
2
- import '../chunk-X2SUMO3P.js';
3
- export { AllTasksPage, HealthStatusCard, MilestoneTimeline, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, TaskCard, UpcomingMilestonesPage, calculateProgress, deliveryManifest, formatStatusLabel, milestoneStatusColors, noteTypeColors, projectStatusColors, taskStatusColors, taskTypeColors } from '../chunk-FGDUK74A.js';
4
- export { LEAD_GEN_ROUTE_LINKS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarMiddle, LeadGenSidebarTop, StepConfigForm, TabSection, getEnrichmentColor, getStatusColor, leadGenManifest, useDeleteLists } from '../chunk-65RQE3XF.js';
5
- export { ActionModal, AgentDefinitionDisplay, AgentExecutionLogs, BaseExecutionLogs, BaseExecutionLogsHeader, BaseExecutionLogsStates, CheckpointGroup, CollapsibleJsonSection, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, CommandQueueTaskRow, ConfigCard, ContentSections, ContextUsageBadge, ContractDisplay, ExecutionErrorSection, LogEntry, LogGroup, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, ResourceDefinitionSection, ResourceErrorState, ResourceFilter, ResourceHeader, ResourceNotFoundState, SessionMemory, ToolsListDisplay, WorkflowDefinitionDisplay, WorkflowExecutionLogs, getExecutionStatusConfig, getIcon, getLogLevelConfig, iconMap, operationsManifest, useNewKnowledgeMapLayout } from '../chunk-AK5E6ILJ.js';
6
- import '../chunk-ROSMICXG.js';
7
- import '../chunk-3DUOPXOJ.js';
1
+ import { useBreadcrumbs } from '../chunk-WF227UBV.js';
2
+ import { showAuthError } from '../chunk-ND42LPY4.js';
3
+ export { CreateCredentialModal, CredentialList, CredentialSettings, MembershipFeaturePanel, MembershipStatusBadge, OAuthConnectModal, OrganizationMembershipsList, WebhookUrlDisplayModal, settingsManifest, showAuthError } from '../chunk-ND42LPY4.js';
4
+ import '../chunk-P55BJZZW.js';
5
+ import { setDealReferrer, compareDealsByPriority } from '../chunk-Y4FWCG7Y.js';
6
+ export { ActivityFeedWidget, CompanyDetailPage, ContactDetailPage, CrmOverview, CrmSidebar, CrmSidebarTop, DealDetailPage, DealsListPage, MetricsStrip, PIPELINE_FUNNEL_ORDER, PipelineFunnelWidget, crmManifest, useCrmPipelineSummary, useCrmQuickMetrics, useRecentCrmActivity } from '../chunk-Y4FWCG7Y.js';
7
+ export { AllTasksPage, HealthStatusCard, MilestoneTimeline, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, TaskCard, UpcomingMilestonesPage, deliveryManifest } from '../chunk-HQGF4ATG.js';
8
+ export { LEAD_GEN_ROUTE_LINKS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarTop, StepConfigForm, TabSection, getEnrichmentColor, getStatusColor, leadGenManifest, useDeleteLists } from '../chunk-SHQXMW4F.js';
9
+ export { CrmSidebarMiddle, LeadGenSidebarMiddle, MyTasksPanel, QuickCreateActions, SAVED_VIEW_PRESETS, SavedViewsPanel } from '../chunk-7KC4P3AU.js';
10
+ export { ActionModal, AgentDefinitionDisplay, AgentExecutionLogs, BaseExecutionLogs, BaseExecutionLogsHeader, BaseExecutionLogsStates, CheckpointGroup, CollapsibleJsonSection, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, CommandQueueTaskRow, ConfigCard, ContentSections, ContextUsageBadge, ContractDisplay, ExecutionErrorSection, LogEntry, LogGroup, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, ResourceDefinitionSection, ResourceErrorState, ResourceFilter, ResourceHeader, ResourceNotFoundState, SessionMemory, ToolsListDisplay, WorkflowDefinitionDisplay, WorkflowExecutionLogs, getExecutionStatusConfig, getIcon, getLogLevelConfig, iconMap, operationsManifest, useNewKnowledgeMapLayout } from '../chunk-T3IPHEYJ.js';
11
+ import '../chunk-CXY7FMUM.js';
12
+ import '../chunk-MVFCLZSK.js';
8
13
  import '../chunk-ZTWA5H77.js';
9
14
  import '../chunk-JDNEWB5F.js';
10
- import '../chunk-JCGD4GM6.js';
15
+ import '../chunk-GRDLB6LM.js';
11
16
  import '../chunk-XQQEKWTL.js';
12
- export { AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationEdge, AgentIterationNode, BaseEdge, BaseNode, EmptyVisualizer, ExecutionStats, ExecutionStatusBadge, GraphBackground, GraphContainer, GraphFitViewButton, GraphFitViewHandler, GraphLegend, RunResourceButton, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, VisualizerContainer, WorkflowExecutionTimeline, getGraphBackgroundStyles, useGraphBackgroundStyles, useGraphTheme } from '../chunk-QNL7UI5G.js';
17
+ export { AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationEdge, AgentIterationNode, BaseEdge, BaseNode, EmptyVisualizer, ExecutionStats, ExecutionStatusBadge, GraphBackground, GraphContainer, GraphFitViewButton, GraphFitViewHandler, GraphLegend, RunResourceButton, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, VisualizerContainer, WorkflowExecutionTimeline, getGraphBackgroundStyles, useGraphBackgroundStyles, useGraphTheme } from '../chunk-Q6OYNEGR.js';
13
18
  import '../chunk-ECNNI3NT.js';
14
- import '../chunk-FFDAE2QI.js';
19
+ import '../chunk-TVRQ6AQI.js';
15
20
  export { ZodFormRenderer } from '../chunk-3MEXPLWT.js';
16
- import { NotificationList } from '../chunk-5CW2HXQA.js';
17
- export { ActivityCard, ActivityFilters as ActivityFiltersBar, ActivityTable, BusinessImpactCard, CostBreakdownCard, CostByModelTable, CostMetricsCard, ErrorAnalysisCard, ErrorBreakdownTable, ExecutionBreakdownTable, ExecutionHealthCard, ExecutionLogsFilters as ExecutionLogsFilterBar, ExecutionLogsTable, NotificationItem, NotificationList, monitoringManifest } from '../chunk-5CW2HXQA.js';
18
- export { ResourceHealthPanel } from '../chunk-OHGNCWJP.js';
21
+ import { NotificationList } from '../chunk-5LJAEZMA.js';
22
+ export { ActivityCard, ActivityFilters as ActivityFiltersBar, ActivityTable, BusinessImpactCard, CostBreakdownCard, CostByModelTable, CostMetricsCard, ErrorAnalysisCard, ErrorBreakdownTable, ExecutionBreakdownTable, ExecutionHealthCard, ExecutionLogsFilters as ExecutionLogsFilterBar, ExecutionLogsTable, NotificationItem, NotificationList, monitoringManifest } from '../chunk-5LJAEZMA.js';
23
+ export { ResourceHealthPanel } from '../chunk-L2NVFLXU.js';
19
24
  export { ResourceHealthChart, getHealthColor } from '../chunk-LGKLC5MG.js';
20
- import '../chunk-SZWXQHKO.js';
25
+ import '../chunk-542WPQU2.js';
21
26
  import '../chunk-CW3UNAF2.js';
27
+ export { ConfirmationInputModal, ConfirmationModal } from '../chunk-VNFR57DF.js';
22
28
  export { SEOSidebar, SEOSidebarMiddle, SEOSidebarTop, seoManifest } from '../chunk-DWK2QIAK.js';
23
- import { showAuthError } from '../chunk-A7R2URMV.js';
24
- export { CreateCredentialModal, CredentialList, CredentialSettings, MembershipFeaturePanel, MembershipStatusBadge, OAuthConnectModal, OrganizationMembershipsList, WebhookUrlDisplayModal, settingsManifest, showAuthError } from '../chunk-A7R2URMV.js';
29
+ import '../chunk-X4WBGKJQ.js';
30
+ import '../chunk-IIMU5YAJ.js';
25
31
  import { AppShellLoader } from '../chunk-RYTEQBAO.js';
26
- import { setDealReferrer, compareDealsByPriority } from '../chunk-6NHCE7JM.js';
27
- export { ActivityFeedWidget, CrmOverview, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, DealDetailPage, DealsListPage, MetricsStrip, MyTasksPanel, PIPELINE_FUNNEL_ORDER, PipelineFunnelWidget, QuickCreateActions, SAVED_VIEW_PRESETS, SavedViewsPanel, crmManifest, useCrmPipelineSummary, useCrmQuickMetrics, useRecentCrmActivity } from '../chunk-6NHCE7JM.js';
32
+ export { calculateProgress, formatStatusLabel, milestoneStatusColors, noteTypeColors, projectStatusColors, taskStatusColors, taskTypeColors } from '../chunk-R2XR4FCV.js';
28
33
  import '../chunk-BZZCNLT6.js';
29
34
  export { SortableHeader, TableSelectionToolbar } from '../chunk-TUMSNGTX.js';
30
- import '../chunk-X4WBGKJQ.js';
31
- import '../chunk-IIMU5YAJ.js';
32
35
  import { FilterBar } from '../chunk-PDHTXPSF.js';
33
36
  export { FilterBar } from '../chunk-PDHTXPSF.js';
34
- import { CustomModal } from '../chunk-KVJ3LFH2.js';
35
- export { ConfirmationInputModal, ConfirmationModal, CustomModal } from '../chunk-KVJ3LFH2.js';
36
- import '../chunk-XBMCDGHA.js';
37
+ import { CustomModal } from '../chunk-R66W5UDG.js';
38
+ export { CustomModal } from '../chunk-R66W5UDG.js';
39
+ import '../chunk-QHEWXU7I.js';
37
40
  export { Graph_module_css_default as graphStyles } from '../chunk-22UVE3RA.js';
38
41
  export { CONTAINER_CONSTANTS, SHARED_VIZ_CONSTANTS } from '../chunk-E4WQGJNS.js';
39
42
  import '../chunk-7M2VOCYN.js';
40
- import { useOrganizationPermissions, useCreateOrgRole, usePermissionCatalog, useUpdateApiKey, useDeleteApiKey, useCreateApiKey, useListApiKeys, usePaginationState, useActivateDeployment, useDeactivateDeployment, useDeleteDeployment, useListDeployments, useResources, useCreateSchedule, useListSchedules, usePauseSchedule, useResumeSchedule, useCancelSchedule, useDeleteSchedule, useDeals, useTransitionItem, dealKeys, useMarkAllAsRead, useNotifications } from '../chunk-HNFQCOD2.js';
41
- import '../chunk-VKMNWHTL.js';
42
- import { showSuccessNotification, showErrorNotification, showApiErrorNotification } from '../chunk-CEHUFNAL.js';
43
- export { showApiErrorNotification, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification } from '../chunk-CEHUFNAL.js';
43
+ import { useOrganizationPermissions, useCreateOrgRole, usePermissionCatalog, useUpdateApiKey, useDeleteApiKey, useCreateApiKey, useListApiKeys, usePaginationState, useActivateDeployment, useDeactivateDeployment, useDeleteDeployment, useListDeployments, useResources, useCreateSchedule, useListSchedules, usePauseSchedule, useResumeSchedule, useCancelSchedule, useDeleteSchedule, useDeals, useTransitionItem, dealKeys, useMarkAllAsRead, useNotifications } from '../chunk-JKSUN5GN.js';
44
+ import '../chunk-6YT4IKJ7.js';
45
+ import { showSuccessNotification, showErrorNotification, showApiErrorNotification } from '../chunk-7HMCB26R.js';
46
+ export { showApiErrorNotification, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification } from '../chunk-7HMCB26R.js';
44
47
  import '../chunk-BRXELOHC.js';
45
48
  import '../chunk-3ZMAGTWF.js';
46
- import '../chunk-VMJVQAFZ.js';
47
- import '../chunk-OIMPGKDB.js';
48
- import '../chunk-LH4GPYDX.js';
49
- import '../chunk-HLFFKKT3.js';
49
+ import '../chunk-OAVTMITG.js';
50
+ import '../chunk-HYNYEBHM.js';
51
+ import '../chunk-3BAPR3KA.js';
52
+ import '../chunk-3FV6HBXS.js';
50
53
  import '../chunk-WLOQ4IBG.js';
51
- import '../chunk-Y3YJKKEB.js';
52
- import { ListSkeleton, EmptyState, PageTitleCaption, StatCard, CenteredErrorState, CardHeader } from '../chunk-6WXDE5LZ.js';
53
- export { APIErrorAlert, ActivityTimeline, CardHeader, CenteredErrorState, CollapsibleSection, ContextViewer, CustomSelector, DetailCardSkeleton, EmptyState, FeatureUnavailableState, GlowDot, JsonViewer, ListSkeleton, PageNotFound, PageTitleCaption, ResourceCard, StatCard, StatCardSkeleton, StatsCardSkeleton, StatusBadge, TabCountBadge, TimeRangeSelector, TrendIndicator } from '../chunk-6WXDE5LZ.js';
54
+ import '../chunk-QDEETKYT.js';
55
+ import '../chunk-6IXOKUBC.js';
56
+ import { ListSkeleton, EmptyState, PageTitleCaption, StatCard, CenteredErrorState, CardHeader } from '../chunk-L3BVJWML.js';
57
+ export { APIErrorAlert, ActivityTimeline, CardHeader, CenteredErrorState, CollapsibleSection, ContextViewer, CustomSelector, DetailCardSkeleton, EmptyState, FeatureUnavailableState, GlowDot, JsonViewer, ListSkeleton, PageNotFound, PageTitleCaption, ResourceCard, StatCard, StatCardSkeleton, StatsCardSkeleton, StatusBadge, TabCountBadge, TimeRangeSelector, TrendIndicator } from '../chunk-L3BVJWML.js';
54
58
  export { StyledMarkdown } from '../chunk-3KMDHCAR.js';
55
- import '../chunk-OWESKPTJ.js';
59
+ import '../chunk-CQZ3DNQY.js';
56
60
  export { ElevasisLoader } from '../chunk-SZHARWKU.js';
57
- import '../chunk-V3HUIZJX.js';
58
61
  import { SubshellContentContainer } from '../chunk-TKAYX2SP.js';
59
62
  export { NavigationButton } from '../chunk-NYBEU5TE.js';
60
- import '../chunk-7E3FUTND.js';
63
+ import '../chunk-TOIXUWR6.js';
61
64
  import '../chunk-2IFYDILW.js';
62
65
  import { useRouterContext } from '../chunk-Q7DJKLEN.js';
63
- export { RoleBadge } from '../chunk-GESXCQWY.js';
64
- import '../chunk-HOIT677G.js';
66
+ export { RoleBadge } from '../chunk-JA5ECJJB.js';
67
+ import '../chunk-HUJCU55S.js';
65
68
  import { useAppearance } from '../chunk-E565XMTQ.js';
66
- import '../chunk-KU7ZDWQ7.js';
69
+ import '../chunk-JBWJ6WHZ.js';
67
70
  import '../chunk-DT3QYZVU.js';
68
71
  import '../chunk-RNP5R5I3.js';
69
- import { formatDateTime, PAGE_SIZE_DEFAULT, formatTimeAgo } from '../chunk-HXZQWMKE.js';
72
+ import { formatDateTime, PAGE_SIZE_DEFAULT, formatTimeAgo } from '../chunk-XQHZBA65.js';
70
73
  import '../chunk-KRWALB24.js';
71
- import '../chunk-WFTNY755.js';
72
- import { useInitialization } from '../chunk-WKJ47GIW.js';
74
+ import '../chunk-VKIZUUPM.js';
75
+ import { useInitialization } from '../chunk-533DUEQY.js';
73
76
  import '../chunk-DD3CCMCZ.js';
74
- import '../chunk-XTVZFT7U.js';
75
- import { useElevasisServices } from '../chunk-5WWZXCS5.js';
77
+ import '../chunk-2Q2JQSQO.js';
78
+ import { useElevasisServices } from '../chunk-KJ3QUBNU.js';
76
79
  import '../chunk-BRJ3QZ4E.js';
77
- import '../chunk-I2KLQ2HA.js';
80
+ import '../chunk-DZTG5IAC.js';
78
81
  import * as runtime from 'react/jsx-runtime';
79
82
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
80
83
  import { Stack, Card, Title, Checkbox, Group, Text, Tooltip, Center, TextInput, Textarea, Loader, Alert, Button, Table, ActionIcon, Paper, Code, CopyButton, SimpleGrid, Badge, Pagination, SegmentedControl, Switch, Select, Divider, Menu, Timeline, ThemeIcon, Tabs, ScrollArea, Breadcrumbs as Breadcrumbs$1, Box, Popover, Indicator } from '@mantine/core';
@@ -3198,9 +3201,9 @@ function NotificationPanel({ notifications, isLoading, onClose, onNavigate }) {
3198
3201
  }
3199
3202
  function NotificationBell({ unreadCount, onNavigate }) {
3200
3203
  const [opened, { toggle, close }] = useDisclosure(false);
3201
- const { apiRequest, isReady, organizationId } = useElevasisServices();
3204
+ const { apiRequest, isReady, workOSOrganizationId } = useElevasisServices();
3202
3205
  const { data: apiCount = 0 } = useQuery({
3203
- queryKey: ["notifications", "unread-count", organizationId],
3206
+ queryKey: ["notifications", "unread-count", workOSOrganizationId],
3204
3207
  queryFn: async () => {
3205
3208
  const response = await apiRequest("/notifications/unread-count");
3206
3209
  return response.count;
@@ -1,13 +1,13 @@
1
- export { useBreadcrumbs } from '../../chunk-S66IQSSR.js';
2
- import '../../chunk-V3HUIZJX.js';
1
+ export { useBreadcrumbs } from '../../chunk-WF227UBV.js';
2
+ import '../../chunk-6IXOKUBC.js';
3
3
  import '../../chunk-Q7DJKLEN.js';
4
- import '../../chunk-GESXCQWY.js';
5
- import '../../chunk-HOIT677G.js';
6
- import '../../chunk-KU7ZDWQ7.js';
4
+ import '../../chunk-JA5ECJJB.js';
5
+ import '../../chunk-HUJCU55S.js';
6
+ import '../../chunk-JBWJ6WHZ.js';
7
7
  import '../../chunk-RNP5R5I3.js';
8
- import '../../chunk-WKJ47GIW.js';
8
+ import '../../chunk-533DUEQY.js';
9
9
  import '../../chunk-DD3CCMCZ.js';
10
- import '../../chunk-XTVZFT7U.js';
11
- import '../../chunk-5WWZXCS5.js';
10
+ import '../../chunk-2Q2JQSQO.js';
11
+ import '../../chunk-KJ3QUBNU.js';
12
12
  import '../../chunk-BRJ3QZ4E.js';
13
- import '../../chunk-I2KLQ2HA.js';
13
+ import '../../chunk-DZTG5IAC.js';
@@ -223,6 +223,7 @@ interface SerializedAgentDefinition {
223
223
  description: string;
224
224
  version: string;
225
225
  type: 'agent';
226
+ kind: 'orchestrator' | 'specialist' | 'utility' | 'system';
226
227
  status: 'dev' | 'prod';
227
228
  links?: ResourceLink[];
228
229
  category?: ResourceCategory;
@@ -461,8 +462,8 @@ declare const LinkSchema: z.ZodObject<{
461
462
  type Link = z.infer<typeof LinkSchema>;
462
463
 
463
464
  declare const ResourceCategorySchema: z.ZodEnum<{
464
- production: "production";
465
465
  diagnostic: "diagnostic";
466
+ production: "production";
466
467
  internal: "internal";
467
468
  testing: "testing";
468
469
  }>;
@@ -1,4 +1,4 @@
1
1
  export { AGENT_CONSTANTS, CONTAINER_CONSTANTS, SHARED_VIZ_CONSTANTS, STATUS_COLORS, TIMELINE_CONSTANTS, WORKFLOW_CONSTANTS, calculateBarPosition, formatDuration, getEdgeColor, getEdgeOpacity, getResourceStatusColor, getStatusColors, getStatusIcon, shouldAnimateEdge, useAgentIterationData, useExecutionPath, useReactFlowAgent, useTimelineData, useUnifiedWorkflowLayout, useWorkflowStepsLayout } from '../chunk-E4WQGJNS.js';
2
2
  export { useMergedExecution } from '../chunk-3ZMAGTWF.js';
3
3
  import '../chunk-KRWALB24.js';
4
- import '../chunk-I2KLQ2HA.js';
4
+ import '../chunk-DZTG5IAC.js';