@elevasis/ui 2.33.2 → 2.35.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 (116) hide show
  1. package/dist/api/index.d.ts +9 -2
  2. package/dist/api/index.js +3 -3
  3. package/dist/app/index.css +452 -0
  4. package/dist/app/index.d.ts +1255 -8
  5. package/dist/app/index.js +151 -13
  6. package/dist/charts/index.js +3 -6
  7. package/dist/chunk-26HFM4MH.js +41449 -0
  8. package/dist/{chunk-52K5RFDH.js → chunk-4U3XAWCN.js} +1328 -2492
  9. package/dist/{chunk-ND5TDV2J.js → chunk-57OZ3AEG.js} +1 -1
  10. package/dist/{chunk-E4WQGJNS.js → chunk-7FPLLSHN.js} +14 -1
  11. package/dist/{chunk-RQA2EVN3.js → chunk-AKW7KISS.js} +39 -3
  12. package/dist/chunk-AUDNF2Q7.js +2050 -0
  13. package/dist/{chunk-TYRUKGGD.js → chunk-GX6XBRRF.js} +1 -2
  14. package/dist/{chunk-V6SZ4ECN.js → chunk-LUYVRATI.js} +257 -6
  15. package/dist/{chunk-X4WBGKJQ.js → chunk-R3VCBZDC.js} +50 -3
  16. package/dist/chunk-SIQ3P4OR.js +1764 -0
  17. package/dist/{chunk-Z2K2EAPL.js → chunk-VDOOGGBA.js} +5 -6
  18. package/dist/{chunk-3FV6HBXS.js → chunk-WF7CONXF.js} +23 -23
  19. package/dist/chunk-YYX7OPZQ.js +25 -0
  20. package/dist/components/index.d.ts +69 -92
  21. package/dist/components/index.js +20 -3216
  22. package/dist/components/navigation/index.js +25 -7
  23. package/dist/execution/index.d.ts +9 -9
  24. package/dist/execution/index.js +1 -2
  25. package/dist/features/auth/index.js +23 -2
  26. package/dist/features/clients/index.js +20 -31
  27. package/dist/features/crm/index.js +20 -35
  28. package/dist/features/dashboard/index.d.ts +68 -91
  29. package/dist/features/dashboard/index.js +20 -33
  30. package/dist/features/delivery/index.js +20 -35
  31. package/dist/features/knowledge/index.js +25 -11
  32. package/dist/features/lead-gen/index.d.ts +9 -9
  33. package/dist/features/lead-gen/index.js +20 -36
  34. package/dist/features/monitoring/index.js +20 -35
  35. package/dist/features/monitoring/requests/index.js +20 -30
  36. package/dist/features/operations/index.d.ts +197 -188
  37. package/dist/features/operations/index.js +18 -42
  38. package/dist/features/seo/index.js +3 -4
  39. package/dist/features/settings/index.js +20 -32
  40. package/dist/graph/index.js +1 -1
  41. package/dist/hooks/delivery/index.js +30 -2
  42. package/dist/hooks/index.d.ts +105 -112
  43. package/dist/hooks/index.js +20 -26
  44. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +55 -62
  45. package/dist/hooks/published.d.ts +105 -112
  46. package/dist/hooks/published.js +20 -25
  47. package/dist/index.css +532 -532
  48. package/dist/index.d.ts +10261 -6793
  49. package/dist/index.js +22 -31
  50. package/dist/knowledge/index.d.ts +51 -59
  51. package/dist/knowledge/index.js +40 -211
  52. package/dist/{knowledge-search-index-VMAW7FLR.js → knowledge-search-index-ORIJCEZX.js} +3 -3
  53. package/dist/layout/index.js +4 -10
  54. package/dist/organization/index.js +27 -2
  55. package/dist/provider/index.d.ts +71 -52
  56. package/dist/provider/index.js +20 -20
  57. package/dist/provider/published.d.ts +39 -47
  58. package/dist/provider/published.js +20 -15
  59. package/dist/test-utils/index.d.ts +2 -0
  60. package/dist/test-utils/index.js +16 -4
  61. package/dist/test-utils/setup.js +38 -0
  62. package/dist/theme/index.js +2 -3
  63. package/dist/theme/presets/index.d.ts +28 -3
  64. package/dist/theme/presets/index.js +1 -1
  65. package/dist/typeform/index.js +1 -2049
  66. package/dist/types/index.d.ts +88 -95
  67. package/dist/utils/index.d.ts +46 -69
  68. package/dist/utils/index.js +1 -1
  69. package/dist/zustand/index.d.ts +21 -8
  70. package/dist/zustand/index.js +32 -1
  71. package/package.json +5 -5
  72. package/dist/chunk-2ZZ72TAB.js +0 -2281
  73. package/dist/chunk-32I2RCGC.js +0 -85
  74. package/dist/chunk-3MEXPLWT.js +0 -265
  75. package/dist/chunk-3ZMAGTWF.js +0 -18
  76. package/dist/chunk-44I4LOH6.js +0 -1593
  77. package/dist/chunk-4DYOXEH6.js +0 -951
  78. package/dist/chunk-7M2VOCYN.js +0 -1
  79. package/dist/chunk-A4VDJJCV.js +0 -1864
  80. package/dist/chunk-BZZCNLT6.js +0 -12
  81. package/dist/chunk-CLDCYJQT.js +0 -1
  82. package/dist/chunk-E565XMTQ.js +0 -17
  83. package/dist/chunk-EPTHX4VZ.js +0 -749
  84. package/dist/chunk-GWGQI6V4.js +0 -447
  85. package/dist/chunk-HUJCU55S.js +0 -159
  86. package/dist/chunk-IBWMR4TI.js +0 -469
  87. package/dist/chunk-IIMU5YAJ.js +0 -53
  88. package/dist/chunk-IOXOPMYS.js +0 -145
  89. package/dist/chunk-J2UD7BOH.js +0 -347
  90. package/dist/chunk-JA5ECJJB.js +0 -387
  91. package/dist/chunk-JFL3GRD4.js +0 -39
  92. package/dist/chunk-KW7ZNQD7.js +0 -126
  93. package/dist/chunk-LGKLC5MG.js +0 -44
  94. package/dist/chunk-N55DVMAG.js +0 -14
  95. package/dist/chunk-O56ESZCQ.js +0 -1874
  96. package/dist/chunk-OIBHQH5Q.js +0 -96
  97. package/dist/chunk-PDHTXPSF.js +0 -12
  98. package/dist/chunk-QDFJSUG3.js +0 -13
  99. package/dist/chunk-R2XR4FCV.js +0 -48
  100. package/dist/chunk-R66W5UDG.js +0 -26
  101. package/dist/chunk-RYTEQBAO.js +0 -37
  102. package/dist/chunk-SZHARWKU.js +0 -15
  103. package/dist/chunk-T3J6U77J.js +0 -12056
  104. package/dist/chunk-TBVLQRXT.js +0 -68
  105. package/dist/chunk-TGVAIWIL.js +0 -1778
  106. package/dist/chunk-TKAYX2SP.js +0 -204
  107. package/dist/chunk-TUMSNGTX.js +0 -35
  108. package/dist/chunk-VGU4ZFYZ.js +0 -4752
  109. package/dist/chunk-VNAZTCHA.js +0 -65
  110. package/dist/chunk-VNFR57DF.js +0 -87
  111. package/dist/chunk-WKW6B5ID.js +0 -29
  112. package/dist/chunk-XCYKC6OZ.js +0 -1
  113. package/dist/chunk-XZGSCABI.js +0 -383
  114. package/dist/chunk-ZMK5Z6KE.js +0 -5198
  115. /package/dist/{chunk-2RJMVWFJ.js → chunk-GEFWMU26.js} +0 -0
  116. /package/dist/{chunk-22UVE3RA.js → chunk-HENXLGVD.js} +0 -0
@@ -137,14 +137,18 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
137
137
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
138
138
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
139
139
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
140
+ contract: z.ZodOptional<z.ZodObject<{
141
+ input: z.ZodOptional<z.ZodString>;
142
+ output: z.ZodOptional<z.ZodString>;
143
+ }, z.core.$strip>>;
140
144
  }, z.core.$strip>>;
141
145
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
142
146
  path: z.ZodString;
143
147
  role: z.ZodEnum<{
144
- schema: "schema";
145
148
  config: "config";
146
149
  entrypoint: "entrypoint";
147
150
  handler: "handler";
151
+ schema: "schema";
148
152
  test: "test";
149
153
  docs: "docs";
150
154
  }>;
@@ -183,14 +187,18 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
183
187
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
184
188
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
185
189
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
190
+ contract: z.ZodOptional<z.ZodObject<{
191
+ input: z.ZodOptional<z.ZodString>;
192
+ output: z.ZodOptional<z.ZodString>;
193
+ }, z.core.$strip>>;
186
194
  }, z.core.$strip>>;
187
195
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
188
196
  path: z.ZodString;
189
197
  role: z.ZodEnum<{
190
- schema: "schema";
191
198
  config: "config";
192
199
  entrypoint: "entrypoint";
193
200
  handler: "handler";
201
+ schema: "schema";
194
202
  test: "test";
195
203
  docs: "docs";
196
204
  }>;
@@ -260,14 +268,18 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
260
268
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
261
269
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
262
270
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
271
+ contract: z.ZodOptional<z.ZodObject<{
272
+ input: z.ZodOptional<z.ZodString>;
273
+ output: z.ZodOptional<z.ZodString>;
274
+ }, z.core.$strip>>;
263
275
  }, z.core.$strip>>;
264
276
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
265
277
  path: z.ZodString;
266
278
  role: z.ZodEnum<{
267
- schema: "schema";
268
279
  config: "config";
269
280
  entrypoint: "entrypoint";
270
281
  handler: "handler";
282
+ schema: "schema";
271
283
  test: "test";
272
284
  docs: "docs";
273
285
  }>;
@@ -295,14 +307,18 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
295
307
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
296
308
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
297
309
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
310
+ contract: z.ZodOptional<z.ZodObject<{
311
+ input: z.ZodOptional<z.ZodString>;
312
+ output: z.ZodOptional<z.ZodString>;
313
+ }, z.core.$strip>>;
298
314
  }, z.core.$strip>>;
299
315
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
300
316
  path: z.ZodString;
301
317
  role: z.ZodEnum<{
302
- schema: "schema";
303
318
  config: "config";
304
319
  entrypoint: "entrypoint";
305
320
  handler: "handler";
321
+ schema: "schema";
306
322
  test: "test";
307
323
  docs: "docs";
308
324
  }>;
@@ -459,126 +475,6 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
459
475
  }, z.core.$strip>>;
460
476
  type OntologyScope = z.infer<typeof OntologyScopeSchema>;
461
477
 
462
- /**
463
- * Session Data Transfer Object (DTO)
464
- * Transform type for API responses (snake_case DB → camelCase frontend)
465
- * Used by frontend apps to display session data
466
- */
467
- interface SessionDTO {
468
- sessionId: string;
469
- resourceId: string;
470
- organizationId: string;
471
- userId?: string | null;
472
- turnCount: number;
473
- isEnded: boolean;
474
- title?: string | null;
475
- memorySnapshot?: AgentMemory;
476
- metadata?: Record<string, unknown> | null;
477
- createdAt: Date;
478
- updatedAt: Date;
479
- endedAt?: Date | null;
480
- }
481
-
482
- /**
483
- * Time range selector for dashboard metrics
484
- */
485
- type TimeRange = '1h' | '24h' | '7d' | '30d';
486
- /**
487
- * Execution health metrics response
488
- * Success rate, P95 duration, execution counts, and trend data
489
- * trendData includes executionCount for throughput visualization (eliminates separate API call)
490
- */
491
- interface ExecutionHealthMetrics {
492
- successRate: number;
493
- p95Duration: number;
494
- totalExecutions: number;
495
- trendData: Array<{
496
- time: string;
497
- rate: number;
498
- successCount: number;
499
- errorCount: number;
500
- warningCount: number;
501
- executionCount: number;
502
- }>;
503
- statusCounts: {
504
- success: number;
505
- failed: number;
506
- pending: number;
507
- warning: number;
508
- };
509
- peakPeriod: string;
510
- granularity: 'hour' | 'day';
511
- }
512
- /**
513
- * Business impact metrics response
514
- * ROI, labor savings, and cost analysis
515
- */
516
- interface BusinessImpactMetrics {
517
- totalSavingsUsd: number;
518
- totalCostUsd: number;
519
- netSavingsUsd: number;
520
- roi: number;
521
- }
522
- /**
523
- * Cost breakdown metrics response
524
- * Per-resource cost analysis
525
- */
526
- interface CostBreakdownMetrics {
527
- resources: Array<{
528
- resourceId: string;
529
- totalCostUsd: number;
530
- executionCount: number;
531
- avgCostUsd: number;
532
- }>;
533
- }
534
- /**
535
- * Dashboard metrics response
536
- * Aggregates core observability metrics in a single response
537
- * Note: Throughput data is now included in executionHealth.trendData.executionCount
538
- */
539
- interface DashboardMetrics {
540
- executionHealth: ExecutionHealthMetrics;
541
- costBreakdown: CostBreakdownMetrics;
542
- businessImpact: BusinessImpactMetrics;
543
- /** ISO timestamp of the currently active deployment, or null if none */
544
- activeDeploymentDate: string | null;
545
- /** Deployment version of the active deployment, or null if none */
546
- activeDeploymentVersion: string | null;
547
- }
548
-
549
- /**
550
- * Base Execution Engine type definitions
551
- * Core types shared across all Execution Engine resources
552
- */
553
-
554
- /**
555
- * NOTE: AIResource interface has been removed and replaced with ResourceDefinition
556
- * from registry/types.ts. All resources (executable and non-executable) now extend
557
- * the unified ResourceDefinition base interface.
558
- *
559
- * AgentConfig and WorkflowConfig now extend ResourceDefinition directly.
560
- * See packages/core/src/registry/types.ts for the base interface definition.
561
- */
562
- type AIResourceDefinition = SerializedWorkflowDefinition | SerializedAgentDefinition;
563
-
564
- /**
565
- * Placeholder discriminated union for ContentNode (Wave 1A).
566
- * Wave 2A wires concrete (kind, type) pairs via the registry.
567
- *
568
- * Per D2: unregistered (kind, type) pairs are allowed and pass through validation.
569
- * Per L14: every node carries BOTH `kind` and `type`.
570
- */
571
- declare const ContentNodeSchema: z.ZodObject<{
572
- label: z.ZodString;
573
- description: z.ZodOptional<z.ZodString>;
574
- order: z.ZodOptional<z.ZodNumber>;
575
- parentContentId: z.ZodOptional<z.ZodString>;
576
- kind: z.ZodString;
577
- type: z.ZodString;
578
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
579
- }, z.core.$strip>;
580
- type ContentNode = z.infer<typeof ContentNodeSchema>;
581
-
582
478
  type JsonPrimitive = string | number | boolean | null;
583
479
  type JsonValue = JsonPrimitive | JsonValue[] | {
584
480
  [key: string]: JsonValue;
@@ -620,63 +516,9 @@ interface SystemEntry {
620
516
  config?: Record<string, JsonValue>;
621
517
  ontology?: OntologyScope;
622
518
  systems?: Record<string, SystemEntry>;
623
- /**
624
- * @deprecated Compatibility-only bridge for old tenant data and migration readers.
625
- * Author new semantic catalogs in `ontology` and local settings in `config`.
626
- */
627
- content?: Record<string, ContentNode>;
628
519
  subsystems?: Record<string, SystemEntry>;
629
520
  }
630
521
 
631
- /**
632
- * Resource Registry type definitions
633
- */
634
-
635
- /**
636
- * Environment/deployment status for resources
637
- */
638
- type ResourceStatus = 'dev' | 'prod';
639
- /**
640
- * All resource types in the platform
641
- * Used as the discriminator field in ResourceDefinition
642
- */
643
- type ResourceType = 'agent' | 'workflow' | 'trigger' | 'integration' | 'external' | 'human';
644
- type ResourceSystemSummary = Pick<SystemEntry, 'id' | 'title' | 'description' | 'kind' | 'lifecycle'>;
645
- /**
646
- * Base interface for ALL platform resources
647
- * Shared by both executable (agents, workflows) and non-executable (triggers, integrations, etc.) resources
648
- */
649
- interface ResourceDefinition {
650
- /** Unique resource identifier */
651
- resourceId: string;
652
- /** Display name */
653
- name: string;
654
- /** Purpose and functionality description */
655
- description: string;
656
- /** Version for change tracking and evolution */
657
- version: string;
658
- /** Resource type discriminator */
659
- type: ResourceType;
660
- /** Environment/deployment status */
661
- status: ResourceStatus;
662
- /** Graph links to Organization Model nodes */
663
- links?: ResourceLink[];
664
- /** Infrastructure category for filtering */
665
- category?: ResourceCategory;
666
- /** Whether the agent supports multi-turn sessions (agents only) */
667
- sessionCapable?: boolean;
668
- /** Whether the resource is local (monorepo) or remote (externally deployed) */
669
- origin?: 'local' | 'remote';
670
- /** OM System membership — dot-separated system path (e.g. "sys.lead-gen"), when backed by a Resource descriptor */
671
- systemPath?: string;
672
- /** Display metadata for the owning OM System */
673
- system?: ResourceSystemSummary;
674
- /** Governance lifecycle status from the OM Resource descriptor */
675
- governanceStatus?: ResourceGovernanceStatus;
676
- /** Whether this resource is archived and should be excluded from registration and deployment */
677
- archived?: boolean;
678
- }
679
-
680
522
  declare const SurfaceTypeSchema: z.ZodEnum<{
681
523
  dashboard: "dashboard";
682
524
  settings: "settings";
@@ -910,7 +752,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
910
752
  lastModified: string;
911
753
  } | undefined;
912
754
  }>>;
913
- branding: z.ZodObject<{
755
+ branding: z.ZodDefault<z.ZodObject<{
914
756
  organizationName: z.ZodString;
915
757
  productName: z.ZodString;
916
758
  shortName: z.ZodString;
@@ -919,7 +761,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
919
761
  light: z.ZodOptional<z.ZodString>;
920
762
  dark: z.ZodOptional<z.ZodString>;
921
763
  }, z.core.$strip>>;
922
- }, z.core.$strip>;
764
+ }, z.core.$strip>>;
923
765
  navigation: z.ZodDefault<z.ZodObject<{
924
766
  sidebar: z.ZodDefault<z.ZodObject<{
925
767
  primary: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
@@ -1151,14 +993,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
1151
993
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1152
994
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1153
995
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
996
+ contract: z.ZodOptional<z.ZodObject<{
997
+ input: z.ZodOptional<z.ZodString>;
998
+ output: z.ZodOptional<z.ZodString>;
999
+ }, z.core.$strip>>;
1154
1000
  }, z.core.$strip>>;
1155
1001
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1156
1002
  path: z.ZodString;
1157
1003
  role: z.ZodEnum<{
1158
- schema: "schema";
1159
1004
  config: "config";
1160
1005
  entrypoint: "entrypoint";
1161
1006
  handler: "handler";
1007
+ schema: "schema";
1162
1008
  test: "test";
1163
1009
  docs: "docs";
1164
1010
  }>;
@@ -1197,14 +1043,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
1197
1043
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1198
1044
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1199
1045
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1046
+ contract: z.ZodOptional<z.ZodObject<{
1047
+ input: z.ZodOptional<z.ZodString>;
1048
+ output: z.ZodOptional<z.ZodString>;
1049
+ }, z.core.$strip>>;
1200
1050
  }, z.core.$strip>>;
1201
1051
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1202
1052
  path: z.ZodString;
1203
1053
  role: z.ZodEnum<{
1204
- schema: "schema";
1205
1054
  config: "config";
1206
1055
  entrypoint: "entrypoint";
1207
1056
  handler: "handler";
1057
+ schema: "schema";
1208
1058
  test: "test";
1209
1059
  docs: "docs";
1210
1060
  }>;
@@ -1274,14 +1124,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
1274
1124
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1275
1125
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1276
1126
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1127
+ contract: z.ZodOptional<z.ZodObject<{
1128
+ input: z.ZodOptional<z.ZodString>;
1129
+ output: z.ZodOptional<z.ZodString>;
1130
+ }, z.core.$strip>>;
1277
1131
  }, z.core.$strip>>;
1278
1132
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1279
1133
  path: z.ZodString;
1280
1134
  role: z.ZodEnum<{
1281
- schema: "schema";
1282
1135
  config: "config";
1283
1136
  entrypoint: "entrypoint";
1284
1137
  handler: "handler";
1138
+ schema: "schema";
1285
1139
  test: "test";
1286
1140
  docs: "docs";
1287
1141
  }>;
@@ -1309,14 +1163,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
1309
1163
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1310
1164
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1311
1165
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
1166
+ contract: z.ZodOptional<z.ZodObject<{
1167
+ input: z.ZodOptional<z.ZodString>;
1168
+ output: z.ZodOptional<z.ZodString>;
1169
+ }, z.core.$strip>>;
1312
1170
  }, z.core.$strip>>;
1313
1171
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1314
1172
  path: z.ZodString;
1315
1173
  role: z.ZodEnum<{
1316
- schema: "schema";
1317
1174
  config: "config";
1318
1175
  entrypoint: "entrypoint";
1319
1176
  handler: "handler";
1177
+ schema: "schema";
1320
1178
  test: "test";
1321
1179
  docs: "docs";
1322
1180
  }>;
@@ -1541,6 +1399,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
1541
1399
  crm: "crm";
1542
1400
  "lead-gen": "lead-gen";
1543
1401
  projects: "projects";
1402
+ clients: "clients";
1544
1403
  operations: "operations";
1545
1404
  monitoring: "monitoring";
1546
1405
  knowledge: "knowledge";
@@ -1602,11 +1461,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
1602
1461
  ontology: "ontology";
1603
1462
  role: "role";
1604
1463
  goal: "goal";
1605
- stage: "stage";
1606
1464
  resource: "resource";
1465
+ stage: "stage";
1607
1466
  "customer-segment": "customer-segment";
1608
1467
  offering: "offering";
1609
- "content-node": "content-node";
1610
1468
  }>;
1611
1469
  id: z.ZodString;
1612
1470
  }, z.core.$strip>;
@@ -1614,7 +1472,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
1614
1472
  nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
1615
1473
  }, z.core.$strip>]>, z.ZodTransform<{
1616
1474
  target: {
1617
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
1475
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
1618
1476
  id: string;
1619
1477
  };
1620
1478
  nodeId: string;
@@ -1622,7 +1480,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
1622
1480
  nodeId: string;
1623
1481
  } | {
1624
1482
  target: {
1625
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
1483
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
1626
1484
  id: string;
1627
1485
  };
1628
1486
  }>>>>;
@@ -1633,6 +1491,157 @@ declare const OrganizationModelSchema: z.ZodObject<{
1633
1491
 
1634
1492
  type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
1635
1493
 
1494
+ /**
1495
+ * Session Data Transfer Object (DTO)
1496
+ * Transform type for API responses (snake_case DB → camelCase frontend)
1497
+ * Used by frontend apps to display session data
1498
+ */
1499
+ interface SessionDTO {
1500
+ sessionId: string;
1501
+ resourceId: string;
1502
+ organizationId: string;
1503
+ userId?: string | null;
1504
+ turnCount: number;
1505
+ isEnded: boolean;
1506
+ title?: string | null;
1507
+ memorySnapshot?: AgentMemory;
1508
+ metadata?: Record<string, unknown> | null;
1509
+ createdAt: Date;
1510
+ updatedAt: Date;
1511
+ endedAt?: Date | null;
1512
+ }
1513
+
1514
+ /**
1515
+ * Time range selector for dashboard metrics
1516
+ */
1517
+ type TimeRange = '1h' | '24h' | '7d' | '30d';
1518
+ /**
1519
+ * Execution health metrics response
1520
+ * Success rate, P95 duration, execution counts, and trend data
1521
+ * trendData includes executionCount for throughput visualization (eliminates separate API call)
1522
+ */
1523
+ interface ExecutionHealthMetrics {
1524
+ successRate: number;
1525
+ p95Duration: number;
1526
+ totalExecutions: number;
1527
+ trendData: Array<{
1528
+ time: string;
1529
+ rate: number;
1530
+ successCount: number;
1531
+ errorCount: number;
1532
+ warningCount: number;
1533
+ executionCount: number;
1534
+ }>;
1535
+ statusCounts: {
1536
+ success: number;
1537
+ failed: number;
1538
+ pending: number;
1539
+ warning: number;
1540
+ };
1541
+ peakPeriod: string;
1542
+ granularity: 'hour' | 'day';
1543
+ }
1544
+ /**
1545
+ * Business impact metrics response
1546
+ * ROI, labor savings, and cost analysis
1547
+ */
1548
+ interface BusinessImpactMetrics {
1549
+ totalSavingsUsd: number;
1550
+ totalCostUsd: number;
1551
+ netSavingsUsd: number;
1552
+ roi: number;
1553
+ }
1554
+ /**
1555
+ * Cost breakdown metrics response
1556
+ * Per-resource cost analysis
1557
+ */
1558
+ interface CostBreakdownMetrics {
1559
+ resources: Array<{
1560
+ resourceId: string;
1561
+ totalCostUsd: number;
1562
+ executionCount: number;
1563
+ avgCostUsd: number;
1564
+ }>;
1565
+ }
1566
+ /**
1567
+ * Dashboard metrics response
1568
+ * Aggregates core observability metrics in a single response
1569
+ * Note: Throughput data is now included in executionHealth.trendData.executionCount
1570
+ */
1571
+ interface DashboardMetrics {
1572
+ executionHealth: ExecutionHealthMetrics;
1573
+ costBreakdown: CostBreakdownMetrics;
1574
+ businessImpact: BusinessImpactMetrics;
1575
+ /** ISO timestamp of the currently active deployment, or null if none */
1576
+ activeDeploymentDate: string | null;
1577
+ /** Deployment version of the active deployment, or null if none */
1578
+ activeDeploymentVersion: string | null;
1579
+ }
1580
+
1581
+ /**
1582
+ * Base Execution Engine type definitions
1583
+ * Core types shared across all Execution Engine resources
1584
+ */
1585
+
1586
+ /**
1587
+ * NOTE: AIResource interface has been removed and replaced with ResourceDefinition
1588
+ * from registry/types.ts. All resources (executable and non-executable) now extend
1589
+ * the unified ResourceDefinition base interface.
1590
+ *
1591
+ * AgentConfig and WorkflowConfig now extend ResourceDefinition directly.
1592
+ * See packages/core/src/registry/types.ts for the base interface definition.
1593
+ */
1594
+ type AIResourceDefinition = SerializedWorkflowDefinition | SerializedAgentDefinition;
1595
+
1596
+ /**
1597
+ * Resource Registry type definitions
1598
+ */
1599
+
1600
+ /**
1601
+ * Environment/deployment status for resources
1602
+ */
1603
+ type ResourceStatus = 'dev' | 'prod';
1604
+ /**
1605
+ * All resource types in the platform
1606
+ * Used as the discriminator field in ResourceDefinition
1607
+ */
1608
+ type ResourceType = 'agent' | 'workflow' | 'trigger' | 'integration' | 'external' | 'human';
1609
+ type ResourceSystemSummary = Pick<SystemEntry, 'id' | 'title' | 'description' | 'kind' | 'lifecycle'>;
1610
+ /**
1611
+ * Base interface for ALL platform resources
1612
+ * Shared by both executable (agents, workflows) and non-executable (triggers, integrations, etc.) resources
1613
+ */
1614
+ interface ResourceDefinition {
1615
+ /** Unique resource identifier */
1616
+ resourceId: string;
1617
+ /** Display name */
1618
+ name: string;
1619
+ /** Purpose and functionality description */
1620
+ description: string;
1621
+ /** Version for change tracking and evolution */
1622
+ version: string;
1623
+ /** Resource type discriminator */
1624
+ type: ResourceType;
1625
+ /** Environment/deployment status */
1626
+ status: ResourceStatus;
1627
+ /** Graph links to Organization Model nodes */
1628
+ links?: ResourceLink[];
1629
+ /** Infrastructure category for filtering */
1630
+ category?: ResourceCategory;
1631
+ /** Whether the agent supports multi-turn sessions (agents only) */
1632
+ sessionCapable?: boolean;
1633
+ /** Whether the resource is local (monorepo) or remote (externally deployed) */
1634
+ origin?: 'local' | 'remote';
1635
+ /** OM System membership — dot-separated system path (e.g. "sys.lead-gen"), when backed by a Resource descriptor */
1636
+ systemPath?: string;
1637
+ /** Display metadata for the owning OM System */
1638
+ system?: ResourceSystemSummary;
1639
+ /** Governance lifecycle status from the OM Resource descriptor */
1640
+ governanceStatus?: ResourceGovernanceStatus;
1641
+ /** Whether this resource is archived and should be excluded from registration and deployment */
1642
+ archived?: boolean;
1643
+ }
1644
+
1636
1645
  declare const ResourceCategorySchema: z.ZodEnum<{
1637
1646
  diagnostic: "diagnostic";
1638
1647
  production: "production";
@@ -1,52 +1,28 @@
1
- export { AgentExecutionPanel, AgentSessionGroup, CommandQueueDetailPage, CommandQueuePage, CommandQueueShell, CommandViewPage, ExecuteWorkflowModal, ExecutionPanel, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationGraphPage, ResourceDetailPage, ResourcesPage, ResourcesSidebar, SessionChatArea, SessionChatInterface, SessionChatPage, SessionDetailsSidebar, SessionExecutionLogs, SessionHeader, SessionListItem, SessionsPage, SessionsSidebar, SystemOpsView, WorkflowExecutionPanel, aggregateSystemMetrics, formatResourceAttribution, operationsManifest } from '../../chunk-T3J6U77J.js';
1
+ export { AgentExecutionPanel, AgentSessionGroup, CommandQueueDetailPage, CommandQueuePage, CommandQueueShell, CommandViewPage, DashboardOperationsOverview, ExecuteWorkflowModal, ExecutionPanel, OperationsOverview, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationGraphPage, ResourceDetailPage, ResourcesPage, ResourcesSidebar, SessionChatArea, SessionChatInterface, SessionChatPage, SessionDetailsSidebar, SessionExecutionLogs, SessionHeader, SessionListItem, SessionsPage, SessionsSidebar, SystemOpsView, WorkflowExecutionPanel, aggregateSystemMetrics, formatResourceAttribution, operationsManifest } from '../../chunk-26HFM4MH.js';
2
2
  import '../../chunk-CXY7FMUM.js';
3
+ import '../../chunk-SIQ3P4OR.js';
4
+ import '../../chunk-3KMDHCAR.js';
5
+ import '../../chunk-AKW7KISS.js';
6
+ import '../../chunk-WF7CONXF.js';
3
7
  import '../../chunk-ZTWA5H77.js';
4
- import '../../chunk-KW7ZNQD7.js';
5
- import '../../chunk-N55DVMAG.js';
6
- import '../../chunk-CLDCYJQT.js';
7
- export { DashboardOperationsOverview, OperationsOverview } from '../../chunk-O56ESZCQ.js';
8
- import '../../chunk-3MEXPLWT.js';
9
- import '../../chunk-TBVLQRXT.js';
10
- import '../../chunk-LGKLC5MG.js';
11
- import '../../chunk-4DYOXEH6.js';
12
- import '../../chunk-VNFR57DF.js';
13
- import '../../chunk-IIMU5YAJ.js';
14
- import '../../chunk-RYTEQBAO.js';
15
- import '../../chunk-BZZCNLT6.js';
16
- import '../../chunk-R66W5UDG.js';
17
- import '../../chunk-22UVE3RA.js';
18
- import '../../chunk-E4WQGJNS.js';
19
- import '../../chunk-7M2VOCYN.js';
20
- import '../../chunk-ZMK5Z6KE.js';
21
- import '../../chunk-VNAZTCHA.js';
22
- import '../../chunk-XZGSCABI.js';
8
+ import '../../chunk-AUDNF2Q7.js';
9
+ import '../../chunk-6M6OLGQY.js';
23
10
  import '../../chunk-BRXELOHC.js';
24
- import '../../chunk-3ZMAGTWF.js';
25
- import '../../chunk-QDFJSUG3.js';
26
- import '../../chunk-OIBHQH5Q.js';
27
- import '../../chunk-RQA2EVN3.js';
28
- import '../../chunk-3FV6HBXS.js';
29
- import '../../chunk-WLOQ4IBG.js';
30
- import '../../chunk-WKW6B5ID.js';
31
- import '../../chunk-EPTHX4VZ.js';
32
- import '../../chunk-3KMDHCAR.js';
33
- import '../../chunk-GWGQI6V4.js';
34
- import '../../chunk-SZHARWKU.js';
35
- import '../../chunk-IBWMR4TI.js';
36
- import '../../chunk-TKAYX2SP.js';
11
+ import '../../chunk-4U3XAWCN.js';
12
+ import '../../chunk-LUYVRATI.js';
37
13
  import '../../chunk-NYBEU5TE.js';
38
- import '../../chunk-IOXOPMYS.js';
39
- import '../../chunk-52K5RFDH.js';
40
- import '../../chunk-ND5TDV2J.js';
41
- import '../../chunk-2IFYDILW.js';
42
- import '../../chunk-Q7DJKLEN.js';
43
- import '../../chunk-JA5ECJJB.js';
44
- import '../../chunk-HUJCU55S.js';
45
- import '../../chunk-E565XMTQ.js';
14
+ import '../../chunk-WLOQ4IBG.js';
15
+ import '../../chunk-57OZ3AEG.js';
46
16
  import '../../chunk-JBWJ6WHZ.js';
17
+ import '../../chunk-GX6XBRRF.js';
18
+ import '../../chunk-R3VCBZDC.js';
47
19
  import '../../chunk-DT3QYZVU.js';
20
+ import '../../chunk-2IFYDILW.js';
21
+ import '../../chunk-Q7DJKLEN.js';
22
+ import '../../chunk-HENXLGVD.js';
23
+ import '../../chunk-7FPLLSHN.js';
48
24
  import '../../chunk-RNP5R5I3.js';
49
- import '../../chunk-2RJMVWFJ.js';
25
+ import '../../chunk-GEFWMU26.js';
50
26
  import '../../chunk-KRWALB24.js';
51
27
  import '../../chunk-VKIZUUPM.js';
52
28
  import '../../chunk-533DUEQY.js';
@@ -1,7 +1,6 @@
1
- export { SEOSidebar, SEOSidebarMiddle, SEOSidebarTop, seoManifest } from '../../chunk-TYRUKGGD.js';
2
- import '../../chunk-X4WBGKJQ.js';
3
- import '../../chunk-IIMU5YAJ.js';
1
+ export { SEOSidebar, SEOSidebarMiddle, SEOSidebarTop, seoManifest } from '../../chunk-GX6XBRRF.js';
2
+ import '../../chunk-R3VCBZDC.js';
3
+ import '../../chunk-DT3QYZVU.js';
4
4
  import '../../chunk-2IFYDILW.js';
5
5
  import '../../chunk-Q7DJKLEN.js';
6
- import '../../chunk-DT3QYZVU.js';
7
6
  import '../../chunk-I2KLQ2HA.js';