@elevasis/ui 2.9.1 → 2.10.1

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 (74) hide show
  1. package/dist/app/index.css +137 -0
  2. package/dist/app/index.d.ts +223 -0
  3. package/dist/app/index.js +95 -0
  4. package/dist/charts/index.js +3 -2
  5. package/dist/{chunk-NYMKWGKN.js → chunk-4BF74JVD.js} +110 -7
  6. package/dist/{chunk-47YILFON.js → chunk-6PNHW4X2.js} +159 -144
  7. package/dist/chunk-ADSSLKKP.js +10 -0
  8. package/dist/chunk-AEBKE4IX.js +13 -0
  9. package/dist/{chunk-C2OFFC7J.js → chunk-AL23U6C3.js} +3 -2
  10. package/dist/{chunk-27COZ5AH.js → chunk-CEWTOKE7.js} +3 -50
  11. package/dist/{chunk-AQQYVAFK.js → chunk-CLXMNMIS.js} +8 -7
  12. package/dist/{chunk-4PHPENKX.js → chunk-E3IFHX6A.js} +27 -377
  13. package/dist/{chunk-CYXZHBP4.js → chunk-F4TPY6YL.js} +14 -3
  14. package/dist/chunk-G2TDX3W6.js +5 -0
  15. package/dist/{chunk-CTWYIRKW.js → chunk-GJVGV7QZ.js} +24 -34
  16. package/dist/chunk-IIMU5YAJ.js +53 -0
  17. package/dist/{chunk-VNUOQQNY.js → chunk-KYOF6NYW.js} +2 -2
  18. package/dist/{chunk-W4VYXIN7.js → chunk-L4XXM55J.js} +3 -142
  19. package/dist/{chunk-YCHZ4U5V.js → chunk-LPSBID5V.js} +5 -13
  20. package/dist/{chunk-F5QSLYUB.js → chunk-LW5NKRI7.js} +1189 -1300
  21. package/dist/{chunk-KGEYEUR5.js → chunk-M6ZZ2FW5.js} +7 -6
  22. package/dist/{chunk-OPT74SGF.js → chunk-N5CLIRBS.js} +31 -176
  23. package/dist/chunk-R7WLWGPO.js +126 -0
  24. package/dist/{chunk-Y3D3WFJG.js → chunk-SQQGLGHW.js} +2 -11
  25. package/dist/{chunk-KFICYU6S.js → chunk-STZJ7SY5.js} +1 -1
  26. package/dist/chunk-SZHARWKU.js +15 -0
  27. package/dist/{chunk-7PDDPNQS.js → chunk-TSX4I3NW.js} +3 -3
  28. package/dist/chunk-V7XHGJQZ.js +145 -0
  29. package/dist/{chunk-UE5QQDCR.js → chunk-WHQXDETX.js} +5 -5
  30. package/dist/{chunk-4JPW5U5I.js → chunk-XB4NWSI3.js} +53 -54
  31. package/dist/{chunk-ZZ35VSNF.js → chunk-YQLE5HR5.js} +4 -4
  32. package/dist/components/index.d.ts +6 -253
  33. package/dist/components/index.js +31 -25
  34. package/dist/features/auth/index.d.ts +0 -107
  35. package/dist/features/auth/index.js +0 -1
  36. package/dist/features/crm/index.d.ts +3 -136
  37. package/dist/features/crm/index.js +14 -9
  38. package/dist/features/dashboard/index.js +13 -9
  39. package/dist/features/delivery/index.d.ts +3 -137
  40. package/dist/features/delivery/index.js +15 -9
  41. package/dist/features/lead-gen/index.d.ts +3 -29
  42. package/dist/features/lead-gen/index.js +20 -14
  43. package/dist/features/monitoring/index.d.ts +3 -30
  44. package/dist/features/monitoring/index.js +14 -10
  45. package/dist/features/operations/index.d.ts +18 -1324
  46. package/dist/features/operations/index.js +18 -13
  47. package/dist/features/seo/index.d.ts +3 -30
  48. package/dist/features/seo/index.js +3 -2
  49. package/dist/features/settings/index.d.ts +6 -146
  50. package/dist/features/settings/index.js +13 -9
  51. package/dist/hooks/index.d.ts +10 -1403
  52. package/dist/hooks/index.js +11 -7
  53. package/dist/hooks/published.d.ts +10 -1403
  54. package/dist/hooks/published.js +11 -7
  55. package/dist/index.d.ts +97 -1510
  56. package/dist/index.js +12 -8
  57. package/dist/initialization/index.d.ts +3 -117
  58. package/dist/layout/index.d.ts +12 -2
  59. package/dist/layout/index.js +5 -4
  60. package/dist/organization/index.d.ts +3 -10
  61. package/dist/organization/index.js +2 -1
  62. package/dist/profile/index.d.ts +0 -107
  63. package/dist/provider/index.d.ts +45 -65
  64. package/dist/provider/index.js +10 -6
  65. package/dist/provider/published.d.ts +45 -65
  66. package/dist/provider/published.js +6 -3
  67. package/dist/supabase/index.d.ts +0 -209
  68. package/dist/theme/index.d.ts +1 -1
  69. package/dist/theme/index.js +3 -3
  70. package/dist/typeform/index.js +10 -10
  71. package/dist/types/index.d.ts +68 -1738
  72. package/package.json +20 -4
  73. package/src/app/README.md +24 -0
  74. package/dist/chunk-IDACMRGQ.js +0 -115
package/dist/index.d.ts CHANGED
@@ -4,9 +4,9 @@ import * as _tanstack_react_query from '@tanstack/react-query';
4
4
  import { QueryClient } from '@tanstack/react-query';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { CSSVariablesResolver, MantineThemeOverride } from '@mantine/core';
7
- import { z } from 'zod';
8
7
  import { Node, Edge, NodeMouseHandler } from '@xyflow/react';
9
8
  import { IconBrain } from '@tabler/icons-react';
9
+ import { z } from 'zod';
10
10
  import * as zustand_middleware from 'zustand/middleware';
11
11
  import * as zustand from 'zustand';
12
12
  import { UseBoundStore, StoreApi } from 'zustand';
@@ -284,7 +284,7 @@ interface ThemePreset {
284
284
  */
285
285
  loader?: ReactNode;
286
286
  }
287
- type PresetName = 'default' | 'tactical' | 'regal' | 'cyber-volt' | 'aurora' | 'rose-gold' | 'midnight' | 'ember' | 'canopy' | 'slate' | 'cyber-strike' | 'cyber-chrome' | 'cyber-void' | 'nirvana' | 'wave' | 'synapse' | 'cortex' | 'helios' | 'graphite' | 'quarry';
287
+ type PresetName = 'default' | 'tactical' | 'regal' | 'cyber-volt' | 'aurora' | 'rose-gold' | 'midnight' | 'titanium' | 'canopy' | 'slate' | 'cyber-strike' | 'cyber-chrome' | 'cyber-void' | 'nirvana' | 'wave' | 'synapse' | 'cortex' | 'helios' | 'graphite' | 'quarry';
288
288
 
289
289
  /** 10-shade color tuple (light → dark), compatible with Mantine's color format. */
290
290
  type ColorShadesTuple = [string, string, string, string, string, string, string, string, string, string];
@@ -527,51 +527,6 @@ interface AgentToolCallEvent$1 {
527
527
  * 3 event types total (lifecycle, iteration, tool-call)
528
528
  */
529
529
  type AgentLogContext$1 = AgentLifecycleEvent$1 | AgentIterationEvent$1 | AgentToolCallEvent$1;
530
- /**
531
- * Data for lifecycle 'started' events
532
- */
533
- interface AgentLifecycleStartedData {
534
- startTime: number;
535
- iteration?: number;
536
- }
537
- /**
538
- * Data for lifecycle 'completed' events
539
- */
540
- interface AgentLifecycleCompletedData {
541
- startTime: number;
542
- endTime: number;
543
- duration: number;
544
- iteration?: number;
545
- attempts?: number;
546
- memorySize?: {
547
- sessionMemoryKeys: number;
548
- historyEntries: number;
549
- };
550
- }
551
- /**
552
- * Data for lifecycle 'failed' events
553
- */
554
- interface AgentLifecycleFailedData {
555
- startTime: number;
556
- endTime: number;
557
- duration: number;
558
- error: string;
559
- iteration?: number;
560
- }
561
- /**
562
- * Scoped logger for agent execution
563
- * Captures logger and agentId to eliminate repetitive parameter passing
564
- *
565
- * Type-safe lifecycle logging with stage-specific required fields
566
- */
567
- interface AgentScopedLogger {
568
- lifecycle(lifecycle: AgentLifecycle$1, stage: 'started', data: AgentLifecycleStartedData): void;
569
- lifecycle(lifecycle: AgentLifecycle$1, stage: 'completed', data: AgentLifecycleCompletedData): void;
570
- lifecycle(lifecycle: AgentLifecycle$1, stage: 'failed', data: AgentLifecycleFailedData): void;
571
- reasoning(output: string, iteration: number, startTime: number, endTime: number, duration: number): void;
572
- action(actionType: string, message: string, iteration: number, startTime: number, endTime: number, duration: number): void;
573
- toolCall(toolName: string, iteration: number, startTime: number, endTime: number, duration: number, success: boolean, error?: string, input?: unknown, output?: unknown): void;
574
- }
575
530
 
576
531
  /**
577
532
  * Base execution logger for Execution Engine
@@ -585,12 +540,6 @@ interface ExecutionLogMessage$1 {
585
540
  timestamp: number;
586
541
  context?: LogContext$1;
587
542
  }
588
- interface IExecutionLogger {
589
- debug(message: string, context?: LogContext$1): void;
590
- info(message: string, context?: LogContext$1): void;
591
- warn(message: string, context?: LogContext$1): void;
592
- error(message: string, context?: LogContext$1): void;
593
- }
594
543
 
595
544
  /**
596
545
  * Shared form field types for dynamic form generation
@@ -872,204 +821,6 @@ interface SerializedWorkflowDefinition {
872
821
  interface?: SerializedExecutionInterface;
873
822
  }
874
823
 
875
- /**
876
- * Model Configuration
877
- * Centralized model information, configuration, options, constraints, and validation
878
- * Single source of truth for all model-related definitions
879
- * Update manually when pricing changes or new models are added
880
- */
881
-
882
- /**
883
- * Supported Open AI models (direct SDK access)
884
- */
885
- type OpenAIModel = 'gpt-5' | 'gpt-5.4-mini' | 'gpt-5.4-nano';
886
- /**
887
- * Supported OpenRouter models (explicit union for type safety)
888
- */
889
- type OpenRouterModel = 'openrouter/z-ai/glm-5';
890
- /**
891
- * Supported Google models (direct SDK access)
892
- */
893
- type GoogleModel = 'gemini-3-flash-preview' | 'gemini-3.1-flash-lite-preview';
894
- /**
895
- * Supported Anthropic models (direct SDK access via @anthropic-ai/sdk)
896
- */
897
- type AnthropicModel = 'claude-sonnet-4-5';
898
- /** Supported LLM models */
899
- type LLMModel = OpenAIModel | OpenRouterModel | GoogleModel | AnthropicModel | 'mock';
900
- /**
901
- * GPT-5 model options schema
902
- */
903
- declare const GPT5OptionsSchema: z.ZodObject<{
904
- reasoning_effort: z.ZodOptional<z.ZodEnum<{
905
- minimal: "minimal";
906
- low: "low";
907
- medium: "medium";
908
- high: "high";
909
- }>>;
910
- verbosity: z.ZodOptional<z.ZodEnum<{
911
- low: "low";
912
- medium: "medium";
913
- high: "high";
914
- }>>;
915
- }, z.core.$strip>;
916
- /**
917
- * OpenRouter model options schema
918
- * OpenRouter-specific options for routing and transforms
919
- */
920
- declare const OpenRouterOptionsSchema: z.ZodObject<{
921
- transforms: z.ZodOptional<z.ZodArray<z.ZodString>>;
922
- route: z.ZodOptional<z.ZodEnum<{
923
- fallback: "fallback";
924
- }>>;
925
- }, z.core.$strip>;
926
- /**
927
- * Google model options schema
928
- * Gemini 3 specific options for thinking depth control
929
- */
930
- declare const GoogleOptionsSchema: z.ZodObject<{
931
- thinkingLevel: z.ZodOptional<z.ZodEnum<{
932
- minimal: "minimal";
933
- low: "low";
934
- medium: "medium";
935
- high: "high";
936
- }>>;
937
- }, z.core.$strip>;
938
- /**
939
- * Anthropic model options schema
940
- * Currently empty - future options: budget_tokens for extended thinking
941
- */
942
- declare const AnthropicOptionsSchema: z.ZodObject<{}, z.core.$strip>;
943
- /**
944
- * Infer TypeScript types from schemas
945
- */
946
- type GPT5Options = z.infer<typeof GPT5OptionsSchema>;
947
- type MockOptions = Record<string, never>;
948
- type OpenRouterOptions = z.infer<typeof OpenRouterOptionsSchema>;
949
- type GoogleOptions = z.infer<typeof GoogleOptionsSchema>;
950
- type AnthropicOptions = z.infer<typeof AnthropicOptionsSchema>;
951
- type ModelSpecificOptions = GPT5Options | MockOptions | OpenRouterOptions | GoogleOptions | AnthropicOptions;
952
- /**
953
- * Model configuration for LLM execution
954
- * Belongs in resource definition (AgentDefinition, WorkflowDefinition, etc.)
955
- */
956
- interface ModelConfig {
957
- model: LLMModel;
958
- provider: 'openai' | 'anthropic' | 'openrouter' | 'google' | 'mock';
959
- apiKey: string;
960
- temperature?: number;
961
- /** Maximum output tokens per LLM call. NOT the model's context window — see ModelInfo.maxTokens for that. */
962
- maxOutputTokens?: number;
963
- topP?: number;
964
- /**
965
- * Model-specific options (flat structure)
966
- * Options are model-specific, not vendor-specific
967
- * Available options defined in MODEL_INFO per model
968
- * Validated at build time via validateModelOptions()
969
- */
970
- modelOptions?: ModelSpecificOptions;
971
- }
972
-
973
- /**
974
- * Execution interface configuration
975
- * Defines how a resource is executed via the UI (forms, scheduling, webhooks)
976
- * Applies to both agents and workflows
977
- */
978
- interface ExecutionInterface {
979
- /** Form configuration for execution inputs */
980
- form: ExecutionFormSchema;
981
- /** Optional: Schedule configuration */
982
- schedule?: ScheduleConfig;
983
- /** Optional: Webhook trigger configuration */
984
- webhook?: WebhookConfig;
985
- }
986
- /**
987
- * Execution form schema
988
- * Extends FormSchema with execution-specific fields
989
- */
990
- interface ExecutionFormSchema extends FormSchema {
991
- /**
992
- * Field mappings to resource input schema
993
- * Maps form field names to contract input paths
994
- * If omitted, field names must match contract input keys exactly
995
- */
996
- fieldMappings?: Record<string, string>;
997
- /**
998
- * Submit button configuration
999
- * Default: { label: 'Run', loadingLabel: 'Running...' }
1000
- */
1001
- submitButton?: {
1002
- label?: string;
1003
- loadingLabel?: string;
1004
- confirmMessage?: string;
1005
- };
1006
- }
1007
- /**
1008
- * Schedule configuration for automated execution
1009
- */
1010
- interface ScheduleConfig {
1011
- /** Whether scheduling is enabled for this resource */
1012
- enabled: boolean;
1013
- /** Default schedule (cron expression) */
1014
- defaultSchedule?: string;
1015
- /** Allowed schedule patterns (if restricted) */
1016
- allowedPatterns?: string[];
1017
- }
1018
- /**
1019
- * Webhook configuration for external triggers
1020
- */
1021
- interface WebhookConfig {
1022
- /** Whether webhook trigger is enabled */
1023
- enabled: boolean;
1024
- /** Expected payload schema (for documentation) */
1025
- payloadSchema?: unknown;
1026
- }
1027
-
1028
- interface WorkflowConfig extends ResourceDefinition {
1029
- type: 'workflow';
1030
- }
1031
- interface WorkflowStepDefinition {
1032
- id: string;
1033
- name: string;
1034
- description: string;
1035
- }
1036
- type StepHandler = (input: unknown, context: ExecutionContext) => Promise<unknown>;
1037
- interface LinearNext {
1038
- type: 'linear';
1039
- target: string;
1040
- }
1041
- interface ConditionalNext {
1042
- type: 'conditional';
1043
- routes: Array<{
1044
- condition: (data: unknown) => boolean;
1045
- target: string;
1046
- }>;
1047
- default: string;
1048
- }
1049
- type NextConfig = LinearNext | ConditionalNext | null;
1050
- interface WorkflowStep extends WorkflowStepDefinition {
1051
- handler: StepHandler;
1052
- inputSchema: z.ZodSchema;
1053
- outputSchema: z.ZodSchema;
1054
- next: NextConfig;
1055
- }
1056
- interface WorkflowDefinition {
1057
- config: WorkflowConfig;
1058
- contract: Contract;
1059
- steps: Record<string, WorkflowStep>;
1060
- entryPoint: string;
1061
- /**
1062
- * Metrics configuration for ROI calculations
1063
- * Optional: Only needed if tracking automation savings
1064
- */
1065
- metricsConfig?: ResourceMetricsConfig;
1066
- /**
1067
- * Execution interface configuration (optional)
1068
- * If provided, workflow appears in Execution Runner UI
1069
- */
1070
- interface?: ExecutionInterface;
1071
- }
1072
-
1073
824
  /**
1074
825
  * Workflow step state
1075
826
  * Aggregates step context events with timing and logs
@@ -1143,64 +894,6 @@ interface ExecutionPathState {
1143
894
  stepDataMap?: Map<string, StepExecutionData>;
1144
895
  }
1145
896
 
1146
- /**
1147
- * Generic LLM Types
1148
- * Universal interfaces for LLM interaction across all resource types
1149
- */
1150
- /**
1151
- * Standard chat message format
1152
- * Compatible with OpenAI, Anthropic, and other providers
1153
- */
1154
- interface LLMMessage {
1155
- role: 'system' | 'user' | 'assistant';
1156
- content: string;
1157
- }
1158
- /**
1159
- * Generic LLM generation request
1160
- * Usable by agents, workflows, tools, etc.
1161
- */
1162
- interface LLMGenerateRequest {
1163
- messages: LLMMessage[];
1164
- responseSchema: unknown;
1165
- /** Maximum output tokens per LLM call. NOT the model's context window — see ModelInfo.maxTokens for that. */
1166
- maxOutputTokens?: number;
1167
- temperature?: number;
1168
- topP?: number;
1169
- signal?: AbortSignal;
1170
- }
1171
- /**
1172
- * Generic LLM generation response
1173
- * Usage field is internal-only (stripped by UniversalLLMAdapter wrapper)
1174
- */
1175
- interface LLMGenerateResponse<T = unknown> {
1176
- output: T;
1177
- usage?: {
1178
- inputTokens: number;
1179
- outputTokens: number;
1180
- totalTokens: number;
1181
- };
1182
- cost?: number;
1183
- }
1184
- /**
1185
- * LLM Adapter interface
1186
- * Generic primitive for all resource types (agents, workflows, tools)
1187
- *
1188
- * Design principles:
1189
- * - Single method: generate() - the core LLM primitive
1190
- * - Generic return type for type safety
1191
- * - Universal format (not agent-specific)
1192
- * - Standard message-based input (OpenAI-compatible)
1193
- */
1194
- interface LLMAdapter {
1195
- /**
1196
- * Generate structured output from prompt using LLM
1197
- *
1198
- * @param request - Generation request with messages and response schema
1199
- * @returns Generated output (typed) with optional usage metadata
1200
- */
1201
- generate<T = unknown>(request: LLMGenerateRequest): Promise<LLMGenerateResponse<T>>;
1202
- }
1203
-
1204
897
  /**
1205
898
  * Memory type definitions
1206
899
  * Types for agent memory management with semantic entry types
@@ -1241,302 +934,6 @@ interface AgentMemory {
1241
934
  */
1242
935
  history: MemoryEntry[];
1243
936
  }
1244
- /**
1245
- * Memory status for agent awareness
1246
- */
1247
- interface MemoryStatus {
1248
- sessionMemoryKeys: number;
1249
- sessionMemoryLimit: number;
1250
- currentKeys: string[];
1251
- historyPercent: number;
1252
- historyTokens: number;
1253
- tokenBudget: number;
1254
- }
1255
- /**
1256
- * Memory constraints (optional limits)
1257
- */
1258
- interface MemoryConstraints {
1259
- maxSessionMemoryKeys?: number;
1260
- maxMemoryTokens?: number;
1261
- }
1262
-
1263
- /**
1264
- * Memory Manager
1265
- * Encapsulates all memory operations with ultra-simple agent API
1266
- * Agent provides strings, framework handles wrapping and auto-compaction
1267
- */
1268
-
1269
- /**
1270
- * Memory Manager - Agent memory orchestration
1271
- * Provides ultra-simple API for agents (strings only)
1272
- * Handles automatic compaction and token management
1273
- */
1274
- declare class MemoryManager {
1275
- private memory;
1276
- private constraints;
1277
- private logger?;
1278
- private cachedSnapshot?;
1279
- constructor(memory: AgentMemory, constraints?: MemoryConstraints, logger?: AgentScopedLogger | undefined);
1280
- /**
1281
- * Set session memory entry (agent provides string, framework wraps it)
1282
- * @param key - Session memory key
1283
- * @param content - String content from agent
1284
- */
1285
- set(key: string, content: string): void;
1286
- /**
1287
- * Get session memory entry content
1288
- * @param key - Session memory key
1289
- * @returns String content if exists, undefined otherwise
1290
- */
1291
- get(key: string): string | undefined;
1292
- /**
1293
- * Delete session memory entry
1294
- * @param key - Key to delete
1295
- * @returns True if key existed and was deleted
1296
- */
1297
- delete(key: string): boolean;
1298
- /**
1299
- * Add entry to history (called by framework after tool results, reasoning, etc.)
1300
- * Automatically sets timestamp to current time
1301
- * @param entry - Memory entry to add (without timestamp - auto-generated)
1302
- */
1303
- addToHistory(entry: Omit<MemoryEntry, 'timestamp'>): void;
1304
- /**
1305
- * Auto-compact history if approaching token budget
1306
- * Uses preserve-anchors strategy: keep first + recent entries
1307
- */
1308
- autoCompact(): void;
1309
- /**
1310
- * Enforce hard limits (called before LLM request)
1311
- * Emergency fallback if agent exceeds limits
1312
- */
1313
- enforceHardLimits(): void;
1314
- /**
1315
- * Get history length (for logging and introspection)
1316
- * @returns Number of entries in history
1317
- */
1318
- getHistoryLength(): number;
1319
- /**
1320
- * Get memory status for agent awareness
1321
- * @returns Memory status with token usage and key counts
1322
- */
1323
- getStatus(): MemoryStatus;
1324
- /**
1325
- * Create memory snapshot for persistence
1326
- * Caches snapshot internally for later retrieval
1327
- * @returns Deep copy of current memory state
1328
- */
1329
- toSnapshot(): AgentMemory;
1330
- /**
1331
- * Get cached memory snapshot
1332
- * Returns snapshot created by toSnapshot()
1333
- * @returns Cached snapshot (undefined if toSnapshot() not called yet)
1334
- */
1335
- getSnapshot(): AgentMemory | undefined;
1336
- /**
1337
- * Build context string for LLM
1338
- * Serializes sessionmemory + history memory with clear sections
1339
- * Shows current iteration entries FIRST (reverse chronological) for LLM attention
1340
- * @param currentIteration - Current iteration number (0 = pre-iteration)
1341
- * @param currentTurn - Current turn number (optional, for session context filtering)
1342
- * @returns Formatted memory context for LLM prompt
1343
- */
1344
- toContext(currentIteration: number, currentTurn?: number): string;
1345
- }
1346
-
1347
- /**
1348
- * Knowledge Map Types
1349
- *
1350
- * Enables agents to navigate organizational knowledge through a lightweight
1351
- * graph that lazy-loads capabilities on-demand.
1352
- *
1353
- * @module agent/knowledge-map
1354
- */
1355
-
1356
- /**
1357
- * Lightweight knowledge map (passed as agent property)
1358
- *
1359
- * Contains metadata about available knowledge nodes without loading
1360
- * the full content upfront. Total size: ~300-500 tokens.
1361
- *
1362
- * Multi-tenancy is enforced via:
1363
- * - File-scoped maps (organizations/{org-name}/knowledge/)
1364
- * - ExecutionContext.organizationId passed to node.load()
1365
- */
1366
- interface KnowledgeMap {
1367
- /** Available knowledge nodes indexed by ID */
1368
- nodes: Record<string, KnowledgeNode>;
1369
- }
1370
- /**
1371
- * Single knowledge source
1372
- *
1373
- * Represents a domain knowledge area (CRM, brand guidelines, Excel tools)
1374
- * that can be lazy-loaded to provide instructions and tools to agents.
1375
- */
1376
- interface KnowledgeNode {
1377
- /** Unique identifier for this node (e.g., "crm", "brand-guidelines") */
1378
- id: string;
1379
- /**
1380
- * Description of when to use this knowledge
1381
- * Used for semantic matching against user intent
1382
- */
1383
- description: string;
1384
- /**
1385
- * Load knowledge content on-demand
1386
- *
1387
- * @param context - Execution context with organizationId for multi-tenancy
1388
- * @returns Promise resolving to knowledge content (prompt + optional tools)
1389
- */
1390
- load(context: ExecutionContext): Promise<KnowledgeContent>;
1391
- /**
1392
- * Loaded state flag
1393
- * Set to true after load() is called
1394
- */
1395
- loaded?: boolean;
1396
- /**
1397
- * Cached prompt (for system prompt serialization)
1398
- * Only the prompt is cached - tools go to toolRegistry, children flattened to nodes
1399
- */
1400
- prompt?: string;
1401
- }
1402
- /**
1403
- * Content returned by knowledge node
1404
- *
1405
- * Separates instructions (prompt) from capabilities (tools).
1406
- * Tools are optional - some nodes only provide context.
1407
- *
1408
- * Supports recursive navigation - nodes can contain child nodes
1409
- * that are discovered when the parent node is loaded.
1410
- */
1411
- interface KnowledgeContent {
1412
- /** Instructions and context (markdown format) */
1413
- prompt: string;
1414
- /** Tool implementations (optional) */
1415
- tools?: Tool[];
1416
- /**
1417
- * Child knowledge nodes (optional, recursive)
1418
- *
1419
- * Enables hierarchical navigation: base → specialized → deep expertise.
1420
- * Child nodes are flattened into the main knowledge map when parent loads,
1421
- * making them available for subsequent navigate-knowledge actions.
1422
- *
1423
- * Example: CRM base node returns crm-customers and crm-deals as children
1424
- */
1425
- nodes?: Record<string, KnowledgeNode>;
1426
- }
1427
-
1428
- /**
1429
- * Agent-specific type definitions
1430
- * Types for autonomous agents with tools, memory, and constraints
1431
- */
1432
-
1433
- /**
1434
- * Factory function for creating LLM adapters.
1435
- * Injected into the Agent class to decouple the engine from server-only provider SDKs.
1436
- * - API process: provides createLLMAdapter (real SDKs + process.env API keys)
1437
- * - SDK worker: provides PostMessageLLMAdapter (proxies via platform.call)
1438
- *
1439
- * Uses `any` for optional params so both the real createLLMAdapter (with typed
1440
- * AIUsageCollector/AICallContext) and the worker proxy (which ignores them) satisfy the type.
1441
- */
1442
- type LLMAdapterFactory = (config: ModelConfig, ...args: any[]) => LLMAdapter;
1443
- interface AgentConfig extends ResourceDefinition {
1444
- type: 'agent';
1445
- systemPrompt: string;
1446
- constraints?: AgentConstraints;
1447
- /**
1448
- * Session capability declaration (opt-in)
1449
- * If true, agent is designed for multi-turn session interactions
1450
- * Controls whether agent can use message action and appears in Sessions UI
1451
- *
1452
- * Use for:
1453
- * - Conversational agents with multi-turn interactions
1454
- * - Agents requiring persistent context across turns
1455
- * - Agents that need human-in-the-loop communication
1456
- */
1457
- sessionCapable?: boolean;
1458
- /**
1459
- * Security level for system prompt hardening (auto-derived if omitted)
1460
- *
1461
- * - 'standard': Lightweight defense (3 rules) - default for non-session agents
1462
- * - 'hardened': Comprehensive defense (6 rules) - default for session-capable agents
1463
- * - 'none': No security prompt - for pure internal agents with no external input
1464
- *
1465
- * If omitted, derived from sessionCapable:
1466
- * sessionCapable: true -> 'hardened'
1467
- * sessionCapable: false -> 'standard'
1468
- */
1469
- securityLevel?: 'standard' | 'hardened' | 'none';
1470
- /**
1471
- * Memory management preferences (opt-in)
1472
- * If provided, agent can use memoryOps to manage session memory
1473
- * If omitted, agent has no memory management capabilities
1474
- *
1475
- * Agent-specific guidance on what to preserve, when to persist, and what to clean up.
1476
- * This guidance is injected into the system prompt when memory management is enabled.
1477
- *
1478
- * Use for:
1479
- * - Conversational agents needing cross-turn context
1480
- * - Agents managing complex user preferences
1481
- * - Agents tracking decisions over multiple iterations
1482
- */
1483
- memoryPreferences?: string;
1484
- }
1485
- interface AgentConstraints {
1486
- maxIterations?: number;
1487
- timeout?: number;
1488
- maxSessionMemoryKeys?: number;
1489
- maxMemoryTokens?: number;
1490
- }
1491
- interface AgentDefinition {
1492
- config: AgentConfig;
1493
- contract: Contract;
1494
- tools: Tool[];
1495
- /**
1496
- * Model configuration for LLM execution
1497
- * Specifies provider, API key, and model-specific options
1498
- */
1499
- modelConfig: ModelConfig;
1500
- /**
1501
- * Optional knowledge map for lazy-loading capabilities
1502
- * Enables agents to navigate organizational knowledge on-demand
1503
- */
1504
- knowledgeMap?: KnowledgeMap;
1505
- /**
1506
- * Preload memory before execution starts
1507
- * Handles BOTH context loading AND session restoration
1508
- *
1509
- * @param context - Execution context (includes sessionId if session turn)
1510
- * @returns Initial AgentMemory state (sessionMemory entries + optionally history)
1511
- */
1512
- preloadMemory?: (context: ExecutionContext) => Promise<AgentMemory> | AgentMemory;
1513
- /**
1514
- * Metrics configuration for ROI calculations
1515
- * Optional: Only needed if tracking automation savings
1516
- */
1517
- metricsConfig?: ResourceMetricsConfig;
1518
- /**
1519
- * Execution interface configuration (optional)
1520
- * If provided, agent appears in Execution Runner UI
1521
- */
1522
- interface?: ExecutionInterface;
1523
- }
1524
- /**
1525
- * Agent execution context
1526
- * Groups all state needed for agent execution phases
1527
- */
1528
- interface IterationContext {
1529
- config: AgentConfig;
1530
- contract: Contract;
1531
- toolRegistry: Map<string, Tool>;
1532
- memoryManager: MemoryManager;
1533
- executionContext: ExecutionContext;
1534
- iteration: number;
1535
- logger: AgentScopedLogger;
1536
- modelConfig: ModelConfig;
1537
- adapterFactory: LLMAdapterFactory;
1538
- knowledgeMap?: KnowledgeMap;
1539
- }
1540
937
 
1541
938
  type Json$1 = string | number | boolean | null | {
1542
939
  [key: string]: Json$1 | undefined;
@@ -2650,113 +2047,6 @@ type Database$1 = {
2650
2047
  }
2651
2048
  ];
2652
2049
  };
2653
- calibration_projects: {
2654
- Row: {
2655
- created_at: string | null;
2656
- description: string | null;
2657
- id: string;
2658
- name: string;
2659
- organization_id: string;
2660
- resource_id: string;
2661
- resource_type: string;
2662
- updated_at: string | null;
2663
- };
2664
- Insert: {
2665
- created_at?: string | null;
2666
- description?: string | null;
2667
- id?: string;
2668
- name: string;
2669
- organization_id: string;
2670
- resource_id: string;
2671
- resource_type: string;
2672
- updated_at?: string | null;
2673
- };
2674
- Update: {
2675
- created_at?: string | null;
2676
- description?: string | null;
2677
- id?: string;
2678
- name?: string;
2679
- organization_id?: string;
2680
- resource_id?: string;
2681
- resource_type?: string;
2682
- updated_at?: string | null;
2683
- };
2684
- Relationships: [
2685
- {
2686
- foreignKeyName: "calibration_projects_organization_id_fkey";
2687
- columns: ["organization_id"];
2688
- isOneToOne: false;
2689
- referencedRelation: "organizations";
2690
- referencedColumns: ["id"];
2691
- }
2692
- ];
2693
- };
2694
- calibration_runs: {
2695
- Row: {
2696
- completed_at: string | null;
2697
- config_variants: Json$1;
2698
- created_at: string | null;
2699
- description: string | null;
2700
- execution_mode: string;
2701
- grader_model: string | null;
2702
- grading_rubric: Json$1 | null;
2703
- id: string;
2704
- name: string;
2705
- organization_id: string;
2706
- project_id: string;
2707
- results: Json$1;
2708
- status: string;
2709
- test_inputs: Json$1;
2710
- };
2711
- Insert: {
2712
- completed_at?: string | null;
2713
- config_variants: Json$1;
2714
- created_at?: string | null;
2715
- description?: string | null;
2716
- execution_mode?: string;
2717
- grader_model?: string | null;
2718
- grading_rubric?: Json$1 | null;
2719
- id?: string;
2720
- name: string;
2721
- organization_id: string;
2722
- project_id: string;
2723
- results?: Json$1;
2724
- status?: string;
2725
- test_inputs: Json$1;
2726
- };
2727
- Update: {
2728
- completed_at?: string | null;
2729
- config_variants?: Json$1;
2730
- created_at?: string | null;
2731
- description?: string | null;
2732
- execution_mode?: string;
2733
- grader_model?: string | null;
2734
- grading_rubric?: Json$1 | null;
2735
- id?: string;
2736
- name?: string;
2737
- organization_id?: string;
2738
- project_id?: string;
2739
- results?: Json$1;
2740
- status?: string;
2741
- test_inputs?: Json$1;
2742
- };
2743
- Relationships: [
2744
- {
2745
- foreignKeyName: "calibration_runs_organization_id_fkey";
2746
- columns: ["organization_id"];
2747
- isOneToOne: false;
2748
- referencedRelation: "organizations";
2749
- referencedColumns: ["id"];
2750
- },
2751
- {
2752
- foreignKeyName: "calibration_runs_project_id_fkey";
2753
- columns: ["project_id"];
2754
- isOneToOne: false;
2755
- referencedRelation: "calibration_projects";
2756
- referencedColumns: ["id"];
2757
- }
2758
- ];
2759
- };
2760
2050
  command_queue: {
2761
2051
  Row: {
2762
2052
  action_payload: Json$1 | null;
@@ -4675,18 +3965,11 @@ interface SessionTokenUsage {
4675
3965
  */
4676
3966
  /**
4677
3967
  * Per-user-per-org config (stored in org_memberships.config)
4678
- * Controls which features a specific member can access within their org
4679
- * Valid feature keys: operations, monitoring, acquisition, delivery, calibration, seo
3968
+ * Controls which features a specific member can access within their org.
3969
+ * Keys are feature IDs from the organization model (e.g. crm, lead-gen, projects, seo).
4680
3970
  */
4681
3971
  interface MembershipFeatureConfig {
4682
- features?: {
4683
- operations?: boolean;
4684
- monitoring?: boolean;
4685
- acquisition?: boolean;
4686
- delivery?: boolean;
4687
- calibration?: boolean;
4688
- seo?: boolean;
4689
- };
3972
+ features?: Record<string, boolean>;
4690
3973
  }
4691
3974
  /**
4692
3975
  * User-global config (stored in users.config)
@@ -4694,7 +3977,7 @@ interface MembershipFeatureConfig {
4694
3977
  */
4695
3978
  interface UserConfig {
4696
3979
  theme?: {
4697
- preset?: 'default' | 'tactical' | 'regal' | 'cyber-volt' | 'aurora' | 'rose-gold' | 'midnight' | 'ember' | 'obsidian' | 'honey' | 'abyss' | 'canopy' | 'slate' | 'cyber-strike' | 'cyber-chrome' | 'cyber-void' | 'nirvana' | 'wave' | 'synapse' | 'cortex' | 'helios' | 'graphite' | 'quarry' | 'canyon' | 'nord' | 'catppuccin' | 'tokyo-night' | 'gruvbox';
3980
+ preset?: 'default' | 'tactical' | 'regal' | 'cyber-volt' | 'aurora' | 'rose-gold' | 'midnight' | 'titanium' | 'obsidian' | 'honey' | 'abyss' | 'canopy' | 'slate' | 'cyber-strike' | 'cyber-chrome' | 'cyber-void' | 'nirvana' | 'wave' | 'synapse' | 'cortex' | 'helios' | 'graphite' | 'quarry' | 'canyon' | 'nord' | 'catppuccin' | 'tokyo-night' | 'gruvbox';
4698
3981
  colorScheme?: 'light' | 'dark' | 'auto';
4699
3982
  };
4700
3983
  onboarding?: {
@@ -4804,102 +4087,6 @@ interface MembershipWithDetails extends OrganizationMembership {
4804
4087
  config?: MembershipFeatureConfig;
4805
4088
  }
4806
4089
 
4807
- /**
4808
- * MetricsCollector
4809
- * Tracks execution timing and ROI metrics
4810
- */
4811
- declare class MetricsCollector {
4812
- private timings;
4813
- private durationMs?;
4814
- /**
4815
- * Start a timer with a label
4816
- */
4817
- startTimer(label: string): void;
4818
- /**
4819
- * End a timer and calculate duration
4820
- * If label is 'execution', stores duration for metrics summary
4821
- */
4822
- endTimer(label: string): number | null;
4823
- /**
4824
- * Build execution metrics summary with optional ROI calculation
4825
- */
4826
- buildExecutionMetrics(metricsConfig?: ResourceMetricsConfig): ExecutionMetricsSummary;
4827
- }
4828
-
4829
- interface BaseAICall {
4830
- callSequence: number;
4831
- callType: 'agent-reasoning' | 'agent-completion' | 'workflow-step' | 'tool' | 'other';
4832
- model: LLMModel;
4833
- inputTokens: number;
4834
- outputTokens: number;
4835
- costUsd: number;
4836
- latencyMs: number;
4837
- context?: AICallContext;
4838
- }
4839
- type AICallContext = AgentReasoningContext | AgentCompletionContext | WorkflowStepContext | ToolCallContext | OtherCallContext;
4840
- interface AgentReasoningContext {
4841
- type: 'agent-reasoning';
4842
- iteration: number;
4843
- actionsPlanned?: string[];
4844
- sessionId?: string;
4845
- turnNumber?: number;
4846
- }
4847
- interface AgentCompletionContext {
4848
- type: 'agent-completion';
4849
- attempt: 1 | 2;
4850
- validationFailed?: boolean;
4851
- sessionId?: string;
4852
- turnNumber?: number;
4853
- }
4854
- interface WorkflowStepContext {
4855
- type: 'workflow-step';
4856
- stepId: string;
4857
- stepName?: string;
4858
- stepSequence?: number;
4859
- }
4860
- interface ToolCallContext {
4861
- type: 'tool';
4862
- toolName: string;
4863
- parentIteration?: number;
4864
- parentStepId?: string;
4865
- }
4866
- interface OtherCallContext {
4867
- type: 'other';
4868
- description?: string;
4869
- metadata?: Record<string, unknown>;
4870
- }
4871
- type AICallRecord = BaseAICall;
4872
- /**
4873
- * Raw LLM usage data returned by adapters
4874
- * Used as input to AIUsageCollector.record()
4875
- */
4876
- interface LLMUsageData {
4877
- model: LLMModel;
4878
- inputTokens: number;
4879
- outputTokens: number;
4880
- latencyMs: number;
4881
- /** Actual cost from provider in USD (when available, e.g., OpenRouter) */
4882
- cost?: number;
4883
- }
4884
- interface AIUsageSummary {
4885
- model: LLMModel;
4886
- totalInputTokens: number;
4887
- totalOutputTokens: number;
4888
- totalTokens: number;
4889
- totalCostUsd: number;
4890
- callCount: number;
4891
- calls: AICallRecord[];
4892
- }
4893
- interface ExecutionMetricsSummary {
4894
- durationMs?: number;
4895
- automationSavingsUsd?: number;
4896
- }
4897
- interface ResourceMetricsConfig {
4898
- estimatedManualMinutes: number;
4899
- hourlyLaborRateUsd: number;
4900
- confidenceLevel?: 'low' | 'medium' | 'high';
4901
- notes?: string;
4902
- }
4903
4090
  /**
4904
4091
  * Time range selector for dashboard metrics
4905
4092
  */
@@ -4970,23 +4157,6 @@ interface CostBreakdownMetrics {
4970
4157
  avgCostUsd: number;
4971
4158
  }>;
4972
4159
  }
4973
- /**
4974
- * Detailed execution metrics response
4975
- * Full execution metrics with AI call breakdown
4976
- */
4977
- interface ExecutionMetricsDetail {
4978
- executionId: string;
4979
- organizationId: string;
4980
- resourceId: string;
4981
- totalInputTokens: number;
4982
- totalOutputTokens: number;
4983
- totalCostUsd: number;
4984
- aiCallCount: number;
4985
- aiCalls: AICallRecord[];
4986
- durationMs?: number;
4987
- automationSavingsUsd?: number;
4988
- createdAt: string;
4989
- }
4990
4160
  /**
4991
4161
  * Dashboard metrics response
4992
4162
  * Aggregates core observability metrics in a single response
@@ -5161,51 +4331,11 @@ interface CostByModelResponse {
5161
4331
  totalCallCount: number;
5162
4332
  }
5163
4333
 
5164
- /**
5165
- * AIUsageCollector
5166
- * Centralized token tracking that aggregates usage across all LLM calls in an execution
5167
- */
5168
- declare class AIUsageCollector {
5169
- private model;
5170
- private calls;
5171
- private callSequence;
5172
- /**
5173
- * Record a single AI call with usage metrics
5174
- *
5175
- * @param usage - Token usage and latency data from LLM adapter
5176
- * @param callType - Type discriminator (agent-reasoning, tool, etc.)
5177
- * @param context - Optional typed context specific to callType
5178
- */
5179
- record(usage: LLMUsageData, callType?: BaseAICall['callType'], context?: AICallContext): void;
5180
- /**
5181
- * Get aggregated summary of all AI calls
5182
- */
5183
- getSummary(): AIUsageSummary;
5184
- /**
5185
- * Check if any usage has been recorded
5186
- */
5187
- hasUsage(): boolean;
5188
- }
5189
-
5190
4334
  /**
5191
4335
  * Base Execution Engine type definitions
5192
4336
  * Core types shared across all Execution Engine resources
5193
4337
  */
5194
4338
 
5195
- /**
5196
- * Immutable execution metadata
5197
- * Represents complete execution identity (who, what, when, where)
5198
- * Shared across ExecutionContext and ExecutionLoggerContext to eliminate field duplication
5199
- */
5200
- interface ExecutionMetadata {
5201
- executionId: string;
5202
- organizationId: string;
5203
- organizationName: string;
5204
- resourceId: string;
5205
- userId?: string;
5206
- sessionId?: string;
5207
- sessionTurnNumber?: number;
5208
- }
5209
4339
  /**
5210
4340
  * Unified message event type - covers all message types in sessions
5211
4341
  * Replaces separate SessionTurnMessages and AgentActivityEvent mechanisms
@@ -5253,27 +4383,6 @@ type MessageEvent = {
5253
4383
  result?: unknown;
5254
4384
  error?: string;
5255
4385
  };
5256
- /**
5257
- * Execution context for all resources
5258
- * Unified callback replaces SessionTurnMessages (removed)
5259
- */
5260
- interface ExecutionContext extends ExecutionMetadata {
5261
- logger: IExecutionLogger;
5262
- signal?: AbortSignal;
5263
- onMessageEvent?: (event: MessageEvent) => Promise<void>;
5264
- /** Called per iteration to write heartbeat + check stall status. Non-fatal if it throws. */
5265
- onHeartbeat?: () => Promise<void>;
5266
- aiUsageCollector?: AIUsageCollector;
5267
- metricsCollector?: MetricsCollector;
5268
- parentExecutionId?: string;
5269
- executionDepth: number;
5270
- credentialName?: string;
5271
- store: Map<string, unknown>;
5272
- }
5273
- interface Contract {
5274
- inputSchema: z.ZodSchema;
5275
- outputSchema?: z.ZodSchema;
5276
- }
5277
4386
  /**
5278
4387
  * NOTE: AIResource interface has been removed and replaced with ResourceDefinition
5279
4388
  * from registry/types.ts. All resources (executable and non-executable) now extend
@@ -5284,45 +4393,6 @@ interface Contract {
5284
4393
  */
5285
4394
  type AIResourceDefinition = SerializedWorkflowDefinition | SerializedAgentDefinition;
5286
4395
 
5287
- /**
5288
- * Tool definitions
5289
- *
5290
- * Tool interface used by agents and workflows.
5291
- * Provides a universal interface for AI systems to interact with tools.
5292
- */
5293
-
5294
- /**
5295
- * Options for tool execution
5296
- * Provides named parameters for better API clarity and extensibility
5297
- */
5298
- interface ToolExecutionOptions {
5299
- /** Tool input (validated against inputSchema before execution) */
5300
- input: unknown;
5301
- /** Execution context with multi-tenant isolation and observability (optional for simple tools, required for platform/integration tools) */
5302
- executionContext?: ExecutionContext;
5303
- /** Full iteration context for advanced tools (provides access to memoryManager, toolRegistry, logger, etc.) */
5304
- iterationContext?: IterationContext;
5305
- /** Abort signal for timeout/cancellation -- forward to fetch() calls for clean cancellation */
5306
- signal?: AbortSignal;
5307
- }
5308
- /**
5309
- * Tool interface for AI systems
5310
- *
5311
- * Used by:
5312
- * - Agents: For agentic tool use (reasoning loop selects and executes tools)
5313
- * - Workflows: For workflow step tool invocation (future)
5314
- * - Platform tools: createApprovalTool(), createSchedulerTool()
5315
- * - Integration tools: External API calls (Gmail, Slack, etc.)
5316
- */
5317
- interface Tool {
5318
- name: string;
5319
- description: string;
5320
- inputSchema: z.ZodSchema;
5321
- outputSchema: z.ZodSchema;
5322
- execute: (options: ToolExecutionOptions) => Promise<unknown>;
5323
- timeout?: number;
5324
- }
5325
-
5326
4396
  /**
5327
4397
  * Supported integration types
5328
4398
  *
@@ -5705,146 +4775,53 @@ interface HumanCheckpointStats {
5705
4775
  lastDecisionAt: string | null;
5706
4776
  }
5707
4777
  /** Response from /command-view/stats */
5708
- interface CommandViewStatsResponse {
5709
- resources: Record<string, ResourceStats>;
5710
- humanCheckpoints: Record<string, HumanCheckpointStats>;
5711
- timeRange: StatsTimeRange;
5712
- generatedAt: string;
5713
- }
5714
-
5715
- /**
5716
- * Resource Type Metadata
5717
- *
5718
- * Centralized metadata for ResourceDefinition types including icon names and colors.
5719
- * Icon names reference @tabler/icons-react - UI layer maps these to actual components.
5720
- */
5721
-
5722
- /**
5723
- * All valid resource types from ResourceDefinition
5724
- * Derived from the base interface to ensure consistency
5725
- */
5726
- type ResourceDefinitionType = ResourceDefinition['type'];
5727
- /**
5728
- * Node color types for graph visualization
5729
- * Used by both @repo/core (metadata) and @repo/ui (components)
5730
- */
5731
- type NodeColorType = 'violet' | 'blue' | 'orange' | 'teal' | 'gray' | 'yellow';
5732
- /**
5733
- * Get color for a resource type
5734
- */
5735
- declare function getResourceColor(type: ResourceDefinitionType): NodeColorType;
5736
-
5737
- type ActivityType = 'workflow_execution' | 'agent_run' | 'hitl_action' | 'webhook_received' | 'webhook_executed' | 'webhook_failed' | 'credential_change' | 'api_key_change' | 'deployment_change' | 'membership_change';
5738
- type ActivityStatus = 'success' | 'failure' | 'pending' | 'approved' | 'rejected' | 'completed';
5739
- interface Activity {
5740
- id: string;
5741
- organizationId: string;
5742
- activityType: ActivityType;
5743
- status: ActivityStatus;
5744
- title: string;
5745
- description: string | null;
5746
- entityType: string;
5747
- entityId: string;
5748
- entityName: string | null;
5749
- metadata: Record<string, unknown> | null;
5750
- actorId: string | null;
5751
- actorType: string | null;
5752
- occurredAt: Date;
5753
- createdAt: Date;
5754
- }
5755
-
5756
- /**
5757
- * Calibration SSE Event Types
5758
- *
5759
- * Shared event type definitions for calibration real-time streaming.
5760
- * Used by both the API broadcaster and the command-center UI.
5761
- */
5762
- interface CalibrationExecutionStartedEvent {
5763
- type: 'execution-started';
5764
- variantName: string;
5765
- inputIndex: number;
5766
- timestamp: number;
5767
- }
5768
- interface CalibrationExecutionCompletedEvent {
5769
- type: 'execution-completed';
5770
- variantName: string;
5771
- inputIndex: number;
5772
- executionId: string;
5773
- timestamp: number;
5774
- }
5775
- interface CalibrationExecutionFailedEvent {
5776
- type: 'execution-failed';
5777
- variantName: string;
5778
- inputIndex?: number;
5779
- error: string;
5780
- timestamp: number;
5781
- }
5782
- interface CalibrationSessionStartedEvent {
5783
- type: 'session-started';
5784
- variantName: string;
5785
- sessionId: string;
5786
- timestamp: number;
5787
- }
5788
- interface CalibrationTurnStartedEvent {
5789
- type: 'turn-started';
5790
- variantName: string;
5791
- turnNumber: number;
5792
- timestamp: number;
5793
- }
5794
- interface CalibrationTurnCompletedEvent {
5795
- type: 'turn-completed';
5796
- variantName: string;
5797
- turnNumber: number;
5798
- executionId: string;
5799
- timestamp: number;
5800
- }
5801
- interface CalibrationSessionCompletedEvent {
5802
- type: 'session-completed';
5803
- variantName: string;
5804
- sessionId: string;
5805
- turnCount: number;
5806
- timestamp: number;
5807
- }
5808
- interface CalibrationGradingStartedEvent {
5809
- type: 'grading-started';
5810
- variantName: string;
5811
- timestamp: number;
5812
- }
5813
- interface CalibrationGradingCompletedEvent {
5814
- type: 'grading-completed';
5815
- variantName: string;
5816
- score: number;
5817
- timestamp: number;
5818
- }
5819
- interface CalibrationGradingFailedEvent {
5820
- type: 'grading-failed';
5821
- variantName: string;
5822
- error: string;
5823
- timestamp: number;
5824
- }
5825
- interface CalibrationCompletedEvent {
5826
- type: 'calibration-completed';
5827
- summary: {
5828
- total: number;
5829
- completed: number;
5830
- failed: number;
5831
- };
5832
- timestamp: number;
5833
- }
5834
- interface CalibrationFailedEvent {
5835
- type: 'calibration-failed';
5836
- error: string;
5837
- timestamp: number;
5838
- }
5839
- interface CalibrationConnectedEvent {
5840
- type: 'connected';
5841
- timestamp: number;
5842
- data?: undefined;
4778
+ interface CommandViewStatsResponse {
4779
+ resources: Record<string, ResourceStats>;
4780
+ humanCheckpoints: Record<string, HumanCheckpointStats>;
4781
+ timeRange: StatsTimeRange;
4782
+ generatedAt: string;
5843
4783
  }
4784
+
4785
+ /**
4786
+ * Resource Type Metadata
4787
+ *
4788
+ * Centralized metadata for ResourceDefinition types including icon names and colors.
4789
+ * Icon names reference @tabler/icons-react - UI layer maps these to actual components.
4790
+ */
4791
+
4792
+ /**
4793
+ * All valid resource types from ResourceDefinition
4794
+ * Derived from the base interface to ensure consistency
4795
+ */
4796
+ type ResourceDefinitionType = ResourceDefinition['type'];
4797
+ /**
4798
+ * Node color types for graph visualization
4799
+ * Used by both @repo/core (metadata) and @repo/ui (components)
4800
+ */
4801
+ type NodeColorType = 'violet' | 'blue' | 'orange' | 'teal' | 'gray' | 'yellow';
5844
4802
  /**
5845
- * Union of all calibration SSE events
4803
+ * Get color for a resource type
5846
4804
  */
5847
- type CalibrationSSEEvent = CalibrationExecutionStartedEvent | CalibrationExecutionCompletedEvent | CalibrationExecutionFailedEvent | CalibrationSessionStartedEvent | CalibrationTurnStartedEvent | CalibrationTurnCompletedEvent | CalibrationSessionCompletedEvent | CalibrationGradingStartedEvent | CalibrationGradingCompletedEvent | CalibrationGradingFailedEvent | CalibrationCompletedEvent | CalibrationFailedEvent | CalibrationConnectedEvent;
4805
+ declare function getResourceColor(type: ResourceDefinitionType): NodeColorType;
4806
+
4807
+ type ActivityType = 'workflow_execution' | 'agent_run' | 'hitl_action' | 'webhook_received' | 'webhook_executed' | 'webhook_failed' | 'credential_change' | 'api_key_change' | 'deployment_change' | 'membership_change';
4808
+ type ActivityStatus = 'success' | 'failure' | 'pending' | 'approved' | 'rejected' | 'completed';
4809
+ interface Activity {
4810
+ id: string;
4811
+ organizationId: string;
4812
+ activityType: ActivityType;
4813
+ status: ActivityStatus;
4814
+ title: string;
4815
+ description: string | null;
4816
+ entityType: string;
4817
+ entityId: string;
4818
+ entityName: string | null;
4819
+ metadata: Record<string, unknown> | null;
4820
+ actorId: string | null;
4821
+ actorType: string | null;
4822
+ occurredAt: Date;
4823
+ createdAt: Date;
4824
+ }
5848
4825
 
5849
4826
  /**
5850
4827
  * Type-safe error codes
@@ -5896,154 +4873,6 @@ declare const ExecutionHistoryResponseSchema: z.ZodObject<{
5896
4873
  type ExecutionHistoryItem = z.infer<typeof ExecutionHistoryItemSchema>;
5897
4874
  type ExecutionHistoryResponse = z.infer<typeof ExecutionHistoryResponseSchema>;
5898
4875
 
5899
- /**
5900
- * Calibration Lab Type Definitions
5901
- * Core types for AI model configuration optimization with cost/performance comparison
5902
- */
5903
-
5904
- /**
5905
- * Calibration project - groups related optimization runs
5906
- * Provides organizational structure for iterative testing
5907
- */
5908
- interface CalibrationProject {
5909
- id: string;
5910
- organizationId: string;
5911
- resourceId: string;
5912
- resourceType: 'agent' | 'workflow';
5913
- name: string;
5914
- description?: string | null;
5915
- createdAt: Date;
5916
- updatedAt: Date;
5917
- }
5918
- /**
5919
- * Configuration variant for testing
5920
- * Defines what to override in the base agent/workflow definition
5921
- */
5922
- interface ConfigVariant {
5923
- variantName: string;
5924
- definitionOverrides?: AgentCalibrationOverrides | WorkflowCalibrationOverrides;
5925
- }
5926
- /**
5927
- * Agent definition overrides for calibration
5928
- * Excludes identity/metadata fields that should not be modified
5929
- */
5930
- type AgentCalibrationOverrides = Omit<Partial<AgentDefinition>, 'config' | 'contract' | 'tools' | 'metricsConfig' | 'interface'>;
5931
- /**
5932
- * Workflow definition overrides for calibration
5933
- * Excludes identity/metadata fields that should not be modified
5934
- */
5935
- type WorkflowCalibrationOverrides = Omit<Partial<WorkflowDefinition>, 'config' | 'contract' | 'steps' | 'entryPoint' | 'metricsConfig' | 'interface'>;
5936
- /**
5937
- * Grading rubric for LLM-as-judge evaluation
5938
- * Defines criteria and passing threshold
5939
- */
5940
- interface GradingRubric {
5941
- passingThreshold: number;
5942
- criteria: GradingCriterion[];
5943
- }
5944
- /**
5945
- * Individual grading criterion
5946
- * Weight should be 0-1, and all weights should sum to 1
5947
- */
5948
- interface GradingCriterion {
5949
- name: string;
5950
- weight: number;
5951
- description: string;
5952
- scoringGuide: string;
5953
- }
5954
- /**
5955
- * Grading result for a single execution or session
5956
- * Contains overall score and per-criterion breakdown
5957
- */
5958
- interface GradeResult {
5959
- score: number;
5960
- passed: boolean;
5961
- details: Record<string, {
5962
- score: number;
5963
- justification: string;
5964
- }>;
5965
- }
5966
- /**
5967
- * Single-turn calibration result
5968
- * One result per (variant × input) combination
5969
- */
5970
- interface SingleCalibrationResult {
5971
- executionId: string;
5972
- variantName: string;
5973
- inputIndex: number;
5974
- appliedOverrides?: AgentCalibrationOverrides | WorkflowCalibrationOverrides;
5975
- status: 'pending' | 'running' | 'completed' | 'failed';
5976
- errorMessage?: string;
5977
- grade?: GradeResult;
5978
- gradeError?: string;
5979
- }
5980
- /**
5981
- * Multi-turn session calibration result
5982
- * Leverages existing sessions infrastructure
5983
- */
5984
- interface SessionCalibrationResult {
5985
- sessionId: string;
5986
- variantName: string;
5987
- appliedOverrides?: AgentCalibrationOverrides | WorkflowCalibrationOverrides;
5988
- status: 'pending' | 'running' | 'completed' | 'failed';
5989
- errorMessage?: string;
5990
- turnCount: number;
5991
- grade?: GradeResult;
5992
- gradeError?: string;
5993
- }
5994
- /**
5995
- * Calibration run - individual test execution within a project
5996
- * Contains configuration, results, and grading information
5997
- */
5998
- interface CalibrationRun {
5999
- id: string;
6000
- organizationId: string;
6001
- projectId: string;
6002
- name: string;
6003
- description?: string | null;
6004
- executionMode: 'single' | 'session';
6005
- testInputs: unknown[];
6006
- configVariants: ConfigVariant[];
6007
- gradingRubric?: GradingRubric | null;
6008
- graderModel?: string | null;
6009
- results: (SingleCalibrationResult | SessionCalibrationResult)[];
6010
- status: 'pending' | 'running' | 'completed' | 'partial' | 'failed';
6011
- createdAt: Date;
6012
- completedAt?: Date | null;
6013
- }
6014
- /**
6015
- * Execution log subset for comparison view
6016
- * Contains essential data without full execution context
6017
- */
6018
- interface ExecutionLog {
6019
- executionId: string;
6020
- status: 'running' | 'completed' | 'failed';
6021
- input: unknown;
6022
- output: unknown | null;
6023
- error: CalibrationExecutionError | null;
6024
- startedAt: string;
6025
- completedAt: string | null;
6026
- }
6027
- /**
6028
- * Execution error information for calibration display
6029
- * Subset of full execution error for UI display purposes
6030
- * Named differently from ExecutionError class to avoid type conflicts
6031
- */
6032
- interface CalibrationExecutionError {
6033
- message: string;
6034
- category?: string;
6035
- type?: string;
6036
- }
6037
- /**
6038
- * Combined calibration run data for comparison view
6039
- * Single API call returns run + execution logs + metrics
6040
- */
6041
- interface CalibrationRunWithFullData {
6042
- run: CalibrationRun;
6043
- logs: Record<string, ExecutionLog>;
6044
- metrics: Record<string, ExecutionMetricsDetail>;
6045
- }
6046
-
6047
4876
  /**
6048
4877
  * Deployment types — browser-safe
6049
4878
  *
@@ -6912,33 +5741,16 @@ declare function ScrollToTop(): react_jsx_runtime.JSX.Element;
6912
5741
  */
6913
5742
  declare function ElevasisCoreProvider({ auth, queryClient, apiUrl, onError, notifications, children }: ElevasisCoreProviderProps): react_jsx_runtime.JSX.Element;
6914
5743
 
6915
- declare const SemanticDomainSchema = DisplayMetadataSchema.extend({
6916
- id: ModelIdSchema,
6917
- entityIds: ReferenceIdsSchema,
6918
- surfaceIds: ReferenceIdsSchema,
6919
- resourceIds: ReferenceIdsSchema,
6920
- capabilityIds: ReferenceIdsSchema
6921
- })
6922
-
6923
- declare const FeatureKeySchema = z.enum([
6924
- 'acquisition',
6925
- 'delivery',
6926
- 'operations',
6927
- 'monitoring',
6928
- 'settings',
6929
- 'seo',
6930
- 'calibration'
6931
- ])
6932
-
6933
5744
  declare const SurfaceDefinitionSchema = z.object({
6934
5745
  id: ModelIdSchema,
6935
5746
  label: LabelSchema,
6936
5747
  path: PathSchema,
6937
5748
  surfaceType: SurfaceTypeSchema,
6938
5749
  description: DescriptionSchema.optional(),
5750
+ enabled: z.boolean().default(true),
6939
5751
  icon: IconNameSchema.optional(),
6940
- featureKey: FeatureKeySchema.optional(),
6941
- domainIds: ReferenceIdsSchema,
5752
+ featureId: ModelIdSchema.optional(),
5753
+ featureIds: ReferenceIdsSchema,
6942
5754
  entityIds: ReferenceIdsSchema,
6943
5755
  resourceIds: ReferenceIdsSchema,
6944
5756
  capabilityIds: ReferenceIdsSchema,
@@ -6946,7 +5758,7 @@ declare const SurfaceDefinitionSchema = z.object({
6946
5758
  })
6947
5759
 
6948
5760
  declare const OrganizationModelSchema = OrganizationModelSchemaBase.superRefine((model, ctx) => {
6949
- const domainsById = collectIds(model.domains, ctx, ['domains'], 'Domain')
5761
+ const featuresById = collectIds(model.features, ctx, ['features'], 'Feature')
6950
5762
  const surfacesById = collectIds(model.navigation.surfaces, ctx, ['navigation', 'surfaces'], 'Surface')
6951
5763
  collectIds(model.navigation.groups, ctx, ['navigation', 'groups'], 'Navigation group')
6952
5764
  collectIds(model.resourceMappings, ctx, ['resourceMappings'], 'Resource mapping')
@@ -6985,48 +5797,51 @@ declare const OrganizationModelSchema = OrganizationModelSchemaBase.superRefine(
6985
5797
  })
6986
5798
  })
6987
5799
 
6988
- model.domains.forEach((domain, domainIndex) => {
6989
- domain.surfaceIds.forEach((surfaceId, surfaceIndex) => {
5800
+ // Feature -> Surface bidirectional validation
5801
+ model.features.forEach((feature, featureIndex) => {
5802
+ feature.surfaceIds.forEach((surfaceId, surfaceIndex) => {
6990
5803
  const surface = surfacesById.get(surfaceId)
6991
5804
  if (!surface) {
6992
5805
  addIssue(
6993
5806
  ctx,
6994
- ['domains', domainIndex, 'surfaceIds', surfaceIndex],
6995
- `Domain "${domain.id}" references unknown surface "${surfaceId}"`
5807
+ ['features', featureIndex, 'surfaceIds', surfaceIndex],
5808
+ `Feature "${feature.id}" references unknown surface "${surfaceId}"`
6996
5809
  )
6997
5810
  return
6998
5811
  }
6999
5812
 
7000
- if (!surface.domainIds.includes(domain.id)) {
5813
+ if (!surface.featureIds.includes(feature.id)) {
7001
5814
  addIssue(
7002
5815
  ctx,
7003
- ['domains', domainIndex, 'surfaceIds', surfaceIndex],
7004
- `Domain "${domain.id}" references surface "${surfaceId}" but that surface does not include domain "${domain.id}"`
5816
+ ['features', featureIndex, 'surfaceIds', surfaceIndex],
5817
+ `Feature "${feature.id}" references surface "${surfaceId}" but that surface does not include feature "${feature.id}"`
7005
5818
  )
7006
5819
  }
7007
5820
  })
7008
5821
 
7009
- domain.resourceIds.forEach((resourceId, resourceIndex) => {
5822
+ // Feature -> Resource bidirectional validation
5823
+ feature.resourceIds.forEach((resourceId, resourceIndex) => {
7010
5824
  const resourceMapping = resourceMappingsByResourceId.get(resourceId)
7011
5825
  if (!resourceMapping) {
7012
5826
  addIssue(
7013
5827
  ctx,
7014
- ['domains', domainIndex, 'resourceIds', resourceIndex],
7015
- `Domain "${domain.id}" references unknown resource "${resourceId}"`
5828
+ ['features', featureIndex, 'resourceIds', resourceIndex],
5829
+ `Feature "${feature.id}" references unknown resource "${resourceId}"`
7016
5830
  )
7017
5831
  return
7018
5832
  }
7019
5833
 
7020
- if (!resourceMapping.domainIds.includes(domain.id)) {
5834
+ if (!resourceMapping.featureIds.includes(feature.id)) {
7021
5835
  addIssue(
7022
5836
  ctx,
7023
- ['domains', domainIndex, 'resourceIds', resourceIndex],
7024
- `Domain "${domain.id}" references resource "${resourceId}" but that resource mapping does not include domain "${domain.id}"`
5837
+ ['features', featureIndex, 'resourceIds', resourceIndex],
5838
+ `Feature "${feature.id}" references resource "${resourceId}" but that resource mapping does not include feature "${feature.id}"`
7025
5839
  )
7026
5840
  }
7027
5841
  })
7028
5842
  })
7029
5843
 
5844
+ // Surface -> Feature bidirectional validation and other surface refs
7030
5845
  model.navigation.surfaces.forEach((surface, surfaceIndex) => {
7031
5846
  if (surface.parentId && !surfacesById.has(surface.parentId)) {
7032
5847
  addIssue(
@@ -7036,26 +5851,27 @@ declare const OrganizationModelSchema = OrganizationModelSchemaBase.superRefine(
7036
5851
  )
7037
5852
  }
7038
5853
 
7039
- surface.domainIds.forEach((domainId, domainIndex) => {
7040
- const domain = domainsById.get(domainId)
7041
- if (!domain) {
5854
+ surface.featureIds.forEach((featureId, featureIndex) => {
5855
+ const feature = featuresById.get(featureId)
5856
+ if (!feature) {
7042
5857
  addIssue(
7043
5858
  ctx,
7044
- ['navigation', 'surfaces', surfaceIndex, 'domainIds', domainIndex],
7045
- `Surface "${surface.id}" references unknown domain "${domainId}"`
5859
+ ['navigation', 'surfaces', surfaceIndex, 'featureIds', featureIndex],
5860
+ `Surface "${surface.id}" references unknown feature "${featureId}"`
7046
5861
  )
7047
5862
  return
7048
5863
  }
7049
5864
 
7050
- if (!domain.surfaceIds.includes(surface.id)) {
5865
+ if (!feature.surfaceIds.includes(surface.id)) {
7051
5866
  addIssue(
7052
5867
  ctx,
7053
- ['navigation', 'surfaces', surfaceIndex, 'domainIds', domainIndex],
7054
- `Surface "${surface.id}" references domain "${domainId}" but that domain does not include surface "${surface.id}"`
5868
+ ['navigation', 'surfaces', surfaceIndex, 'featureIds', featureIndex],
5869
+ `Surface "${surface.id}" references feature "${featureId}" but that feature does not include surface "${surface.id}"`
7055
5870
  )
7056
5871
  }
7057
5872
  })
7058
5873
 
5874
+ // Surface -> Resource bidirectional validation
7059
5875
  surface.resourceIds.forEach((resourceId, resourceIndex) => {
7060
5876
  const resourceMapping = resourceMappingsByResourceId.get(resourceId)
7061
5877
  if (!resourceMapping) {
@@ -7077,23 +5893,24 @@ declare const OrganizationModelSchema = OrganizationModelSchemaBase.superRefine(
7077
5893
  })
7078
5894
  })
7079
5895
 
5896
+ // ResourceMapping -> Feature and Surface bidirectional validation
7080
5897
  model.resourceMappings.forEach((resourceMapping, resourceIndex) => {
7081
- resourceMapping.domainIds.forEach((domainId, domainIndex) => {
7082
- const domain = domainsById.get(domainId)
7083
- if (!domain) {
5898
+ resourceMapping.featureIds.forEach((featureId, featureIndex) => {
5899
+ const feature = featuresById.get(featureId)
5900
+ if (!feature) {
7084
5901
  addIssue(
7085
5902
  ctx,
7086
- ['resourceMappings', resourceIndex, 'domainIds', domainIndex],
7087
- `Resource mapping "${resourceMapping.id}" references unknown domain "${domainId}"`
5903
+ ['resourceMappings', resourceIndex, 'featureIds', featureIndex],
5904
+ `Resource mapping "${resourceMapping.id}" references unknown feature "${featureId}"`
7088
5905
  )
7089
5906
  return
7090
5907
  }
7091
5908
 
7092
- if (!domain.resourceIds.includes(resourceMapping.resourceId)) {
5909
+ if (!feature.resourceIds.includes(resourceMapping.resourceId)) {
7093
5910
  addIssue(
7094
5911
  ctx,
7095
- ['resourceMappings', resourceIndex, 'domainIds', domainIndex],
7096
- `Resource mapping "${resourceMapping.id}" references domain "${domainId}" but that domain does not include resource "${resourceMapping.resourceId}"`
5912
+ ['resourceMappings', resourceIndex, 'featureIds', featureIndex],
5913
+ `Resource mapping "${resourceMapping.id}" references feature "${featureId}" but that feature does not include resource "${resourceMapping.resourceId}"`
7097
5914
  )
7098
5915
  }
7099
5916
  })
@@ -7121,9 +5938,7 @@ declare const OrganizationModelSchema = OrganizationModelSchemaBase.superRefine(
7121
5938
  })
7122
5939
 
7123
5940
  type OrganizationModel = z.infer<typeof OrganizationModelSchema>
7124
- type OrganizationModelFeatureKey = z.infer<typeof FeatureKeySchema>
7125
5941
  type OrganizationModelSurface = z.infer<typeof SurfaceDefinitionSchema>
7126
- type OrganizationModelSemanticDomain = z.infer<typeof SemanticDomainSchema>
7127
5942
 
7128
5943
  /**
7129
5944
  * Workflow-specific logging types and utilities
@@ -8507,113 +7322,6 @@ type Database = {
8507
7322
  },
8508
7323
  ]
8509
7324
  }
8510
- calibration_projects: {
8511
- Row: {
8512
- created_at: string | null
8513
- description: string | null
8514
- id: string
8515
- name: string
8516
- organization_id: string
8517
- resource_id: string
8518
- resource_type: string
8519
- updated_at: string | null
8520
- }
8521
- Insert: {
8522
- created_at?: string | null
8523
- description?: string | null
8524
- id?: string
8525
- name: string
8526
- organization_id: string
8527
- resource_id: string
8528
- resource_type: string
8529
- updated_at?: string | null
8530
- }
8531
- Update: {
8532
- created_at?: string | null
8533
- description?: string | null
8534
- id?: string
8535
- name?: string
8536
- organization_id?: string
8537
- resource_id?: string
8538
- resource_type?: string
8539
- updated_at?: string | null
8540
- }
8541
- Relationships: [
8542
- {
8543
- foreignKeyName: "calibration_projects_organization_id_fkey"
8544
- columns: ["organization_id"]
8545
- isOneToOne: false
8546
- referencedRelation: "organizations"
8547
- referencedColumns: ["id"]
8548
- },
8549
- ]
8550
- }
8551
- calibration_runs: {
8552
- Row: {
8553
- completed_at: string | null
8554
- config_variants: Json
8555
- created_at: string | null
8556
- description: string | null
8557
- execution_mode: string
8558
- grader_model: string | null
8559
- grading_rubric: Json | null
8560
- id: string
8561
- name: string
8562
- organization_id: string
8563
- project_id: string
8564
- results: Json
8565
- status: string
8566
- test_inputs: Json
8567
- }
8568
- Insert: {
8569
- completed_at?: string | null
8570
- config_variants: Json
8571
- created_at?: string | null
8572
- description?: string | null
8573
- execution_mode?: string
8574
- grader_model?: string | null
8575
- grading_rubric?: Json | null
8576
- id?: string
8577
- name: string
8578
- organization_id: string
8579
- project_id: string
8580
- results?: Json
8581
- status?: string
8582
- test_inputs: Json
8583
- }
8584
- Update: {
8585
- completed_at?: string | null
8586
- config_variants?: Json
8587
- created_at?: string | null
8588
- description?: string | null
8589
- execution_mode?: string
8590
- grader_model?: string | null
8591
- grading_rubric?: Json | null
8592
- id?: string
8593
- name?: string
8594
- organization_id?: string
8595
- project_id?: string
8596
- results?: Json
8597
- status?: string
8598
- test_inputs?: Json
8599
- }
8600
- Relationships: [
8601
- {
8602
- foreignKeyName: "calibration_runs_organization_id_fkey"
8603
- columns: ["organization_id"]
8604
- isOneToOne: false
8605
- referencedRelation: "organizations"
8606
- referencedColumns: ["id"]
8607
- },
8608
- {
8609
- foreignKeyName: "calibration_runs_project_id_fkey"
8610
- columns: ["project_id"]
8611
- isOneToOne: false
8612
- referencedRelation: "calibration_projects"
8613
- referencedColumns: ["id"]
8614
- },
8615
- ]
8616
- }
8617
7325
  command_queue: {
8618
7326
  Row: {
8619
7327
  action_payload: Json | null
@@ -9971,7 +8679,7 @@ type TaskRow = Database['public']['Tables']['prj_tasks']['Row']
9971
8679
  // Status enums
9972
8680
  type ProjectStatus = 'active' | 'on_track' | 'at_risk' | 'blocked' | 'completed' | 'paused'
9973
8681
 
9974
- type ProjectKind = 'client_engagement' | 'internal'
8682
+ type ProjectKind = 'client_engagement' | 'internal' | 'research' | 'other'
9975
8683
 
9976
8684
  type MilestoneStatus = 'upcoming' | 'in_progress' | 'completed' | 'overdue' | 'blocked'
9977
8685
 
@@ -10097,15 +8805,10 @@ interface FeatureNavEntry {
10097
8805
  }
10098
8806
  type FeatureSidebarComponent = ComponentType;
10099
8807
  interface FeatureModule {
10100
- /** Unique stable identifier for this feature (e.g. `'crm'`, `'delivery'`). */
8808
+ /** Unique stable identifier for this feature (e.g. `'crm'`, `'projects'`). */
10101
8809
  key: string;
10102
- /** Feature key used for access-flag gating in the organization model. */
10103
- accessFeatureKey: OrganizationModelFeatureKey;
10104
- /**
10105
- * Semantic domain identifiers contributed by this feature.
10106
- * Merged with surface-derived domain IDs during resolution.
10107
- */
10108
- domainIds?: OrganizationModelSemanticDomain['id'][];
8810
+ /** Feature ID used for access-flag gating — must match the `id` of a feature in the organization model. */
8811
+ featureId: string;
10109
8812
  /**
10110
8813
  * Capability identifiers contributed by this feature.
10111
8814
  * Merged into `ResolvedFeatureSemantics.capabilityIds` at resolution time.
@@ -10127,11 +8830,10 @@ interface FeatureModule {
10127
8830
  organizationGraph?: OrganizationGraphFeatureBridge;
10128
8831
  }
10129
8832
  interface ResolvedFeatureAccess {
10130
- featureKey: string;
8833
+ featureId: string;
10131
8834
  enabled: boolean;
10132
8835
  }
10133
8836
  interface ResolvedFeatureSemantics {
10134
- domainIds: OrganizationModelSemanticDomain['id'][];
10135
8837
  capabilityIds: string[];
10136
8838
  surfaceIds: string[];
10137
8839
  surfaces: OrganizationModelSurface[];
@@ -10145,7 +8847,7 @@ type ShellNavSource = 'app' | 'feature';
10145
8847
  interface ResolvedShellNavItem extends FeatureNavEntry {
10146
8848
  placement: ShellNavPlacement;
10147
8849
  source: ShellNavSource;
10148
- accessFeatureKey?: string;
8850
+ featureId?: string;
10149
8851
  }
10150
8852
  interface ResolvedShellModel {
10151
8853
  navItems: ResolvedShellNavItem[];
@@ -10173,7 +8875,7 @@ interface OrganizationGraphContextValue {
10173
8875
  surfaceId?: string;
10174
8876
  surfacePath?: string;
10175
8877
  surfaceType?: OrganizationModelSurface['surfaceType'];
10176
- featureKey?: OrganizationModelFeatureKey;
8878
+ featureId?: string;
10177
8879
  }
10178
8880
  interface ElevasisFeaturesProviderProps {
10179
8881
  features: FeatureModule[];
@@ -11371,17 +10073,6 @@ declare function createFeatureAccessHook({ useInitialization, useOrganization }:
11371
10073
  */
11372
10074
  declare const createUseFeatureAccess: typeof createFeatureAccessHook;
11373
10075
 
11374
- /**
11375
- * Authoritative source for feature-key aliases used in feature access resolution.
11376
- *
11377
- * These aliases map the legacy/UI-facing feature keys (e.g. "crm", "lead-gen",
11378
- * "projects") to their canonical organization-model keys ("acquisition", "delivery").
11379
- *
11380
- * Both `createFeatureAccessHook` and `ElevasisFeaturesProvider` import from here
11381
- * to ensure a single source of truth.
11382
- */
11383
- declare const FEATURE_KEY_ALIASES: Record<string, string>;
11384
-
11385
10076
  interface UseSSEConnectionOptions {
11386
10077
  manager: SSEConnectionManagerLike;
11387
10078
  /** Shared connection key — all subscribers with the same key share ONE connection. */
@@ -12013,110 +10704,6 @@ interface UseResourceExecutionsOptions {
12013
10704
  */
12014
10705
  declare function useResourceExecutions({ resourceId, timeRange, enabled }: UseResourceExecutionsOptions): _tanstack_react_query.UseQueryResult<ResourceExecutionsResponse, Error>;
12015
10706
 
12016
- /**
12017
- * Query key factory for calibration hooks.
12018
- * Ensures consistent, organization-scoped cache isolation.
12019
- */
12020
- declare const calibrationKeys: {
12021
- all: readonly ["calibration"];
12022
- projects: (org: string) => readonly ["calibration", "projects", string];
12023
- projectsByResource: (org: string, resourceId: string, resourceType: string) => readonly ["calibration", "projects", string, string, string];
12024
- project: (org: string, projectId: string) => readonly ["calibration", "project", string, string];
12025
- runs: (org: string, projectId: string) => readonly ["calibration", "runs", string, string];
12026
- run: (org: string, runId: string) => readonly ["calibration", "run", string, string];
12027
- runFull: (org: string, runId: string) => readonly ["calibration", "run-full", string, string];
12028
- };
12029
-
12030
- /**
12031
- * Fetch all calibration projects for the organization (unified view)
12032
- */
12033
- declare function useAllCalibrationProjects(): _tanstack_react_query.UseQueryResult<CalibrationProject[], Error>;
12034
- /**
12035
- * Fetch calibration projects for a specific resource
12036
- */
12037
- declare function useCalibrationProjects(resourceId: string, resourceType: 'agent' | 'workflow'): _tanstack_react_query.UseQueryResult<CalibrationProject[], Error>;
12038
- declare function useCalibrationProject(projectId: string): _tanstack_react_query.UseQueryResult<CalibrationProject, Error>;
12039
- declare function useCreateProject$1(): _tanstack_react_query.UseMutationResult<CalibrationProject, Error, {
12040
- resourceId: string;
12041
- resourceType: "agent" | "workflow";
12042
- name: string;
12043
- description?: string | undefined;
12044
- }, unknown>;
12045
- declare function useUpdateProject$1(): _tanstack_react_query.UseMutationResult<CalibrationProject, Error, {
12046
- name?: string | undefined;
12047
- description?: string | undefined;
12048
- } & {
12049
- id: string;
12050
- }, unknown>;
12051
- declare function useDeleteProject$1(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
12052
-
12053
- declare function useCalibrationRuns(projectId: string): _tanstack_react_query.UseQueryResult<CalibrationRun[], Error>;
12054
- declare function useCalibrationRun(runId: string): _tanstack_react_query.UseQueryResult<CalibrationRun, Error>;
12055
- declare function useCreateRun(): _tanstack_react_query.UseMutationResult<CalibrationRun, Error, {
12056
- projectId: string;
12057
- name: string;
12058
- executionMode: "single" | "session";
12059
- testInputs: unknown[];
12060
- configVariants: {
12061
- variantName: string;
12062
- definitionOverrides?: Record<string, unknown> | undefined;
12063
- }[];
12064
- description?: string | undefined;
12065
- gradingRubric?: {
12066
- passingThreshold: number;
12067
- criteria: {
12068
- name: string;
12069
- weight: number;
12070
- description: string;
12071
- scoringGuide: string;
12072
- }[];
12073
- } | undefined;
12074
- graderModel?: "gpt-5" | "gpt-5.4-mini" | "gpt-5.4-nano" | "gemini-3-flash-preview" | "gemini-3.1-flash-lite-preview" | "openrouter/z-ai/glm-5" | "mock" | undefined;
12075
- }, unknown>;
12076
- declare function useExecuteRun(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
12077
- declare function useDeleteRun(): _tanstack_react_query.UseMutationResult<void, Error, {
12078
- runId: string;
12079
- projectId: string;
12080
- }, unknown>;
12081
- declare function useGradeRun(): _tanstack_react_query.UseMutationResult<void, Error, {
12082
- runId: string;
12083
- rubric?: unknown;
12084
- graderModel?: string;
12085
- }, unknown>;
12086
-
12087
- declare function useCalibrationRunFull(runId: string): _tanstack_react_query.UseQueryResult<CalibrationRunWithFullData, Error>;
12088
-
12089
- interface CalibrationProgress {
12090
- connected: boolean;
12091
- events: CalibrationSSEEvent[];
12092
- summary?: {
12093
- total: number;
12094
- completed: number;
12095
- failed: number;
12096
- };
12097
- isComplete: boolean;
12098
- error?: string;
12099
- }
12100
- interface UseCalibrationSSEOptions {
12101
- runId: string;
12102
- manager: SSEConnectionManagerLike;
12103
- apiUrl: string;
12104
- enabled?: boolean;
12105
- }
12106
- declare function useCalibrationSSE({ runId, manager, apiUrl, enabled }: UseCalibrationSSEOptions): {
12107
- disconnect: () => void;
12108
- reset: () => void;
12109
- connected: boolean;
12110
- events: CalibrationSSEEvent[];
12111
- summary?: {
12112
- total: number;
12113
- completed: number;
12114
- failed: number;
12115
- };
12116
- isComplete: boolean;
12117
- error?: string;
12118
- };
12119
-
12120
10707
  /**
12121
10708
  * Query keys for acquisition deals
12122
10709
  */
@@ -13987,5 +12574,5 @@ declare function InitializationProvider({ children }: {
13987
12574
  children: ReactNode;
13988
12575
  }): react.FunctionComponentElement<react.ProviderProps<AppInitializationState | null>>;
13989
12576
 
13990
- export { AGENT_CONSTANTS, APIClientError, API_URL, AdminGuard, ApiClientProvider, ApiKeyService, AppearanceProvider, AuthProvider, CONTAINER_CONSTANTS, CredentialService, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DeploymentService, ElevasisCoreProvider, ElevasisFeaturesProvider, ElevasisServiceProvider, ElevasisUIProvider, FEATURE_KEY_ALIASES, FeatureShell, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, GRAPH_CONSTANTS, InitializationContext, InitializationProvider, LIMIT_ACTIVITY_FEED, NotificationProvider, OAUTH_FLOW_TIMEOUT, OAUTH_POPUP_CHECK_INTERVAL, OperationsService, OrganizationContext, OrganizationMembershipService, OrganizationProvider, OrganizationSwitcher, PAGE_SIZE_DEFAULT, PresetsProvider, ProfileProvider, ProtectedRoute, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, RouterProvider, SHARED_VIZ_CONSTANTS, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, STATUS_COLORS, ScrollToTop, TIMELINE_CONSTANTS, TOKEN_VAR_MAP, TanStackRouterBridge, UserProfileService, WORKFLOW_CONSTANTS, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, acquisitionListKeys, calculateBarPosition, calculateGraphHeight, calibrationKeys, companyKeys, componentThemes, contactKeys, createCssVariablesResolver, createFeatureAccessHook, createOrganizationsSlice, createTestFeaturesProvider, createUseAppInitialization, createUseFeatureAccess, createUseOrgInitialization, createUseOrganizations, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, formatChartAxisDate, formatDate, formatDateTime, formatDuration, formatErrorMessage, formatRelativeTime, formatTimeAgo, generateShades, getEdgeColor, getEdgeOpacity, getErrorInfo, getErrorTitle, getPreset, getResourceColor, getResourceIcon, getResourceStatusColor, getStatusColors, getStatusIcon, isAPIClientError, isSessionCapable, mantineThemeOverride, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, PRESETS as presets, projectKeys, restoreConsole, scheduleKeys, sessionsKeys, shouldAnimateEdge, sortData, suppressKnownWarnings, taskKeys, useActivateDeployment, useActivities, useActivityFilters, useActivityTrend, useAgentIterationData, useAllCalibrationProjects, useApiClient, useApiClientContext, useAppearance, useArchiveSession, useArchivedLogs, useAuthContext, useAvailablePresets, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCalibrationProject, useCalibrationProjects, useCalibrationRun, useCalibrationRunFull, useCalibrationRuns, useCalibrationSSE, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompleteDealTask, useConnectionHighlight, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateProject$1 as useCreateProject, useCreateRun, useCreateSchedule, useCreateSession, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDeleteApiKey, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteProject$1 as useDeleteProject, useDeleteRun, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDeploymentDocs, useDirectedChainHighlighting, useElevasisFeatures, useElevasisServices, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecuteRun, useExecuteWorkflow, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionPath, useExecutions, useFitViewTrigger, useGetExecutionHistory, useGetSchedule, useGradeRun, useGraphHighlighting, useGraphStats, useInitialization, useList, useListApiKeys, useListDeployments, useListExecutions, useListProgress, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useMilestones, useNodeSelection, useNotificationAdapter, useNotificationCount as useNotificationCountSSE, useNotifications, useOptionalElevasisFeatures, useOrganization, useOrganizationMembers, usePaginationState, usePatchTask, usePauseSchedule, usePresetsContext, useProfile, useProject, useProjectNotes, useProjects, useReactFlowAgent, useReactivateMembership, useRecentExecutionsByResource, useSessionCheck as useRefocusSessionCheck, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRouterContext, useSSEConnection, useScheduledTasks, useSession, useSessionCheck, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStableAccessToken, useStatusFilter, useSubmitAction, useSuccessNotification, useSyncDealStage, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTimelineData, useTopFailingResources, useUnifiedWorkflowLayout, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateMemberConfig, useUpdateMilestone, useUpdateProject$1 as useUpdateProject, useUpdateSchedule, useUpdateWebhookEndpoint, useUserMemberships, useUserProfile, useVisibleResources, useWarningNotification, useWorkflowStepsLayout, validateEmail };
13991
- export type { AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, AdminGuardProps, AgentIterationEdgeData, AgentIterationNodeData, AgentStatus, ApiClientContextValue, ApiClientProviderProps, ApiErrorDetails, ApiKeyConfig, AppInitializationState, AppShellOverrides, AppearanceConfig, AuthConfig, AuthContextValue, AuthKitConfig, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CalibrationProgress, CancelExecutionParams, CancelExecutionResult, ChatMessage, ColorShadesTuple, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateScheduleInput, CreateSessionResponse, CreateTestFeaturesProviderOptions, CredentialListItem, DealDetail, DeleteExecutionParams, Deployment, DirectedChainHighlightingOptions, DirectedChainHighlightingResult, DocFile, EdgeColorOptions, EdgeOpacityOptions, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisFeaturesContextValue, ElevasisFeaturesProviderProps, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, ExecutionPathState, ExecutionStatus$1 as ExecutionStatus, FailingResource, FeatureAccessResult, FeatureModule, FeatureNavEntry, FeatureNavLink, FeatureSidebarComponent, FrameworkThemeOverrides, GetMessagesResponse, GlowIntensity, GraphHeightOptions, GraphHighlightingResult, GraphMode, GraphThemeColors, InitializationError, LinkProps, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MembershipWithDetails, MessageEvent, MessageType, NodeColorType, NotificationAdapter, OrganizationContextValue, OrganizationGraphContextValue, OrganizationGraphFeatureBridge, OrganizationsActions, OrganizationsSlice, OrganizationsState, PresetEntry, PresetName, ProfileContextValue, ProtectedRouteProps, ResolvedFeatureAccess, ResolvedFeatureModule, ResolvedFeatureSemantics, ResolvedShellModel, ResolvedShellNavItem, ResolvedShellRouteMatch, ResourcesResponse, RetryExecutionParams, RouterAdapter, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, ShellNavPlacement, ShellNavSource, ShellRouteMatchStatus, ShellRuntime, SortDirection, SortState, StatusColorScheme, StatusFilter, StatusIconColors, StepExecutionData, SubmitActionRequest, SubmitActionResponse, SupabaseUserProfile, TablerIcon, TaskSchedule, ThemePreset, TimelineBarProps, TimelineContainerProps, TimelineRowProps, TopFailingResourcesParams, UnifiedWorkflowEdgeData, UnifiedWorkflowNodeData, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseApiClientReturn, UseBatchedResourcesHealthParams, UseCalibrationSSEOptions, UseExecuteWorkflowOptions, UseExecuteWorkflowParams, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseOrgInitializationReturn, UseOrganizationsReturn, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseUserProfileReturn, WebSocketState, WithSchemes, WorkflowEdgeType, WorkflowStepEdgeData, WorkflowStepNodeData, WorkflowStepsLayoutInput };
12577
+ export { AGENT_CONSTANTS, APIClientError, API_URL, AdminGuard, ApiClientProvider, ApiKeyService, AppearanceProvider, AuthProvider, CONTAINER_CONSTANTS, CredentialService, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DeploymentService, ElevasisCoreProvider, ElevasisFeaturesProvider, ElevasisServiceProvider, ElevasisUIProvider, FeatureShell, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, GRAPH_CONSTANTS, InitializationContext, InitializationProvider, LIMIT_ACTIVITY_FEED, NotificationProvider, OAUTH_FLOW_TIMEOUT, OAUTH_POPUP_CHECK_INTERVAL, OperationsService, OrganizationContext, OrganizationMembershipService, OrganizationProvider, OrganizationSwitcher, PAGE_SIZE_DEFAULT, PresetsProvider, ProfileProvider, ProtectedRoute, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, RouterProvider, SHARED_VIZ_CONSTANTS, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, STATUS_COLORS, ScrollToTop, TIMELINE_CONSTANTS, TOKEN_VAR_MAP, TanStackRouterBridge, UserProfileService, WORKFLOW_CONSTANTS, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, acquisitionListKeys, calculateBarPosition, calculateGraphHeight, companyKeys, componentThemes, contactKeys, createCssVariablesResolver, createFeatureAccessHook, createOrganizationsSlice, createTestFeaturesProvider, createUseAppInitialization, createUseFeatureAccess, createUseOrgInitialization, createUseOrganizations, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, formatChartAxisDate, formatDate, formatDateTime, formatDuration, formatErrorMessage, formatRelativeTime, formatTimeAgo, generateShades, getEdgeColor, getEdgeOpacity, getErrorInfo, getErrorTitle, getPreset, getResourceColor, getResourceIcon, getResourceStatusColor, getStatusColors, getStatusIcon, isAPIClientError, isSessionCapable, mantineThemeOverride, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, PRESETS as presets, projectKeys, restoreConsole, scheduleKeys, sessionsKeys, shouldAnimateEdge, sortData, suppressKnownWarnings, taskKeys, useActivateDeployment, useActivities, useActivityFilters, useActivityTrend, useAgentIterationData, useApiClient, useApiClientContext, useAppearance, useArchiveSession, useArchivedLogs, useAuthContext, useAvailablePresets, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompleteDealTask, useConnectionHighlight, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateSchedule, useCreateSession, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDeleteApiKey, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDeploymentDocs, useDirectedChainHighlighting, useElevasisFeatures, useElevasisServices, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecuteWorkflow, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionPath, useExecutions, useFitViewTrigger, useGetExecutionHistory, useGetSchedule, useGraphHighlighting, useGraphStats, useInitialization, useList, useListApiKeys, useListDeployments, useListExecutions, useListProgress, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useMilestones, useNodeSelection, useNotificationAdapter, useNotificationCount as useNotificationCountSSE, useNotifications, useOptionalElevasisFeatures, useOrganization, useOrganizationMembers, usePaginationState, usePatchTask, usePauseSchedule, usePresetsContext, useProfile, useProject, useProjectNotes, useProjects, useReactFlowAgent, useReactivateMembership, useRecentExecutionsByResource, useSessionCheck as useRefocusSessionCheck, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRouterContext, useSSEConnection, useScheduledTasks, useSession, useSessionCheck, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStableAccessToken, useStatusFilter, useSubmitAction, useSuccessNotification, useSyncDealStage, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTimelineData, useTopFailingResources, useUnifiedWorkflowLayout, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateMemberConfig, useUpdateMilestone, useUpdateSchedule, useUpdateWebhookEndpoint, useUserMemberships, useUserProfile, useVisibleResources, useWarningNotification, useWorkflowStepsLayout, validateEmail };
12578
+ export type { AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, AdminGuardProps, AgentIterationEdgeData, AgentIterationNodeData, AgentStatus, ApiClientContextValue, ApiClientProviderProps, ApiErrorDetails, ApiKeyConfig, AppInitializationState, AppShellOverrides, AppearanceConfig, AuthConfig, AuthContextValue, AuthKitConfig, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, ColorShadesTuple, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateScheduleInput, CreateSessionResponse, CreateTestFeaturesProviderOptions, CredentialListItem, DealDetail, DeleteExecutionParams, Deployment, DirectedChainHighlightingOptions, DirectedChainHighlightingResult, DocFile, EdgeColorOptions, EdgeOpacityOptions, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisFeaturesContextValue, ElevasisFeaturesProviderProps, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, ExecutionPathState, ExecutionStatus$1 as ExecutionStatus, FailingResource, FeatureAccessResult, FeatureModule, FeatureNavEntry, FeatureNavLink, FeatureSidebarComponent, FrameworkThemeOverrides, GetMessagesResponse, GlowIntensity, GraphHeightOptions, GraphHighlightingResult, GraphMode, GraphThemeColors, InitializationError, LinkProps, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MembershipWithDetails, MessageEvent, MessageType, NodeColorType, NotificationAdapter, OrganizationContextValue, OrganizationGraphContextValue, OrganizationGraphFeatureBridge, OrganizationsActions, OrganizationsSlice, OrganizationsState, PresetEntry, PresetName, ProfileContextValue, ProtectedRouteProps, ResolvedFeatureAccess, ResolvedFeatureModule, ResolvedFeatureSemantics, ResolvedShellModel, ResolvedShellNavItem, ResolvedShellRouteMatch, ResourcesResponse, RetryExecutionParams, RouterAdapter, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, ShellNavPlacement, ShellNavSource, ShellRouteMatchStatus, ShellRuntime, SortDirection, SortState, StatusColorScheme, StatusFilter, StatusIconColors, StepExecutionData, SubmitActionRequest, SubmitActionResponse, SupabaseUserProfile, TablerIcon, TaskSchedule, ThemePreset, TimelineBarProps, TimelineContainerProps, TimelineRowProps, TopFailingResourcesParams, UnifiedWorkflowEdgeData, UnifiedWorkflowNodeData, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseApiClientReturn, UseBatchedResourcesHealthParams, UseExecuteWorkflowOptions, UseExecuteWorkflowParams, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseOrgInitializationReturn, UseOrganizationsReturn, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseUserProfileReturn, WebSocketState, WithSchemes, WorkflowEdgeType, WorkflowStepEdgeData, WorkflowStepNodeData, WorkflowStepsLayoutInput };