@elevasis/ui 2.65.0 → 2.66.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/app/index.d.ts +6 -0
  2. package/dist/app/index.js +5 -5
  3. package/dist/auth/index.d.ts +12 -5
  4. package/dist/auth/index.js +5 -5
  5. package/dist/charts/index.js +5 -5
  6. package/dist/{chunk-ZTWA5H77.js → chunk-6ZAP3FOA.js} +0 -1
  7. package/dist/{chunk-3WVZRN37.js → chunk-ANNM5R7S.js} +235 -365
  8. package/dist/chunk-L7BZZ4SI.js +56 -0
  9. package/dist/chunk-P45GQ3ZW.js +104 -0
  10. package/dist/{chunk-EIXSQONC.js → chunk-RT4KRGZT.js} +37 -59
  11. package/dist/components/index.d.ts +240 -209
  12. package/dist/components/index.js +5 -5
  13. package/dist/components/navigation/index.js +5 -5
  14. package/dist/execution/index.d.ts +115 -104
  15. package/dist/features/auth/index.d.ts +39 -8
  16. package/dist/features/auth/index.js +14 -9
  17. package/dist/features/clients/index.js +5 -5
  18. package/dist/features/crm/index.js +5 -5
  19. package/dist/features/dashboard/index.js +5 -5
  20. package/dist/features/delivery/index.js +5 -5
  21. package/dist/features/knowledge/index.js +5 -5
  22. package/dist/features/lead-gen/index.js +5 -5
  23. package/dist/features/monitoring/index.js +5 -5
  24. package/dist/features/monitoring/requests/index.js +6 -6
  25. package/dist/features/notes/index.js +2 -2
  26. package/dist/features/operations/index.d.ts +141 -105
  27. package/dist/features/operations/index.js +5 -5
  28. package/dist/features/settings/index.d.ts +1 -0
  29. package/dist/features/settings/index.js +5 -5
  30. package/dist/hooks/access/index.js +5 -5
  31. package/dist/hooks/delivery/index.js +5 -5
  32. package/dist/hooks/index.d.ts +284 -162
  33. package/dist/hooks/index.js +5 -5
  34. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +0 -2
  35. package/dist/hooks/operations/command-view/utils/transformCommandViewData.js +1 -1
  36. package/dist/hooks/published.d.ts +284 -162
  37. package/dist/hooks/published.js +5 -5
  38. package/dist/index.d.ts +374 -236
  39. package/dist/index.js +5 -5
  40. package/dist/initialization/index.d.ts +61 -28
  41. package/dist/initialization/index.js +3 -3
  42. package/dist/knowledge/index.js +9 -9
  43. package/dist/{knowledge-search-index-JOPRYZN6.js → knowledge-search-index-6EZNBNSR.js} +4 -4
  44. package/dist/layout/index.js +5 -5
  45. package/dist/organization/index.d.ts +49 -4
  46. package/dist/organization/index.js +5 -5
  47. package/dist/profile/index.d.ts +23 -2
  48. package/dist/profile/index.js +1 -1
  49. package/dist/provider/index.js +5 -5
  50. package/dist/provider/published.js +5 -5
  51. package/dist/types/index.d.ts +330 -271
  52. package/package.json +3 -3
  53. package/dist/chunk-LO7GWG24.js +0 -75
  54. package/dist/chunk-T4LA4RY2.js +0 -56
@@ -3,110 +3,6 @@ import { z } from 'zod';
3
3
  import { ReactNode, ComponentType } from 'react';
4
4
  import { EventSourceMessage } from '@microsoft/fetch-event-source';
5
5
 
6
- /**
7
- * Serialized Registry Types
8
- *
9
- * Pre-computed JSON-safe types for API responses and Command View.
10
- * Serialization happens once at API startup, enabling instant response times.
11
- */
12
-
13
- /**
14
- * Serialized agent definition (JSON-safe)
15
- * Result of serializeDefinition(AgentDefinition)
16
- */
17
- interface SerializedAgentDefinition {
18
- config: {
19
- resourceId: string;
20
- name: string;
21
- description: string;
22
- version: string;
23
- type: 'agent';
24
- kind: 'orchestrator' | 'specialist' | 'utility' | 'system';
25
- status: 'dev' | 'prod';
26
- links?: ResourceLink[];
27
- category?: ResourceCategory;
28
- /** Whether this resource is archived and should be excluded from registration and deployment */
29
- archived?: boolean;
30
- systemPrompt: string;
31
- constraints?: {
32
- maxIterations?: number;
33
- timeout?: number;
34
- maxSessionMemoryKeys?: number;
35
- maxMemoryTokens?: number;
36
- };
37
- sessionCapable?: boolean;
38
- memoryPreferences?: string;
39
- };
40
- modelConfig: {
41
- provider: string;
42
- model: string;
43
- apiKey: string;
44
- temperature: number;
45
- maxOutputTokens: number;
46
- topP?: number;
47
- modelOptions?: Record<string, unknown>;
48
- };
49
- contract: {
50
- inputSchema: object;
51
- outputSchema?: object;
52
- };
53
- tools: Array<{
54
- name: string;
55
- description: string;
56
- inputSchema?: object;
57
- outputSchema?: object;
58
- }>;
59
- knowledgeMap?: {
60
- nodeCount: number;
61
- nodes: Array<{
62
- id: string;
63
- description: string;
64
- loaded: boolean;
65
- hasPrompt: boolean;
66
- }>;
67
- };
68
- metricsConfig?: object;
69
- }
70
- /**
71
- * Serialized workflow definition (JSON-safe)
72
- * Result of serializeDefinition(WorkflowDefinition)
73
- */
74
- interface SerializedWorkflowDefinition {
75
- config: {
76
- resourceId: string;
77
- name: string;
78
- description: string;
79
- version: string;
80
- type: 'workflow';
81
- status: 'dev' | 'prod';
82
- links?: ResourceLink[];
83
- category?: ResourceCategory;
84
- /** Whether this resource is archived and should be excluded from registration and deployment */
85
- archived?: boolean;
86
- };
87
- entryPoint: string;
88
- steps: Array<{
89
- id: string;
90
- name: string;
91
- description: string;
92
- inputSchema?: object;
93
- outputSchema?: object;
94
- next: {
95
- type: 'linear' | 'conditional';
96
- target?: string;
97
- routes?: Array<{
98
- target: string;
99
- }>;
100
- default?: string;
101
- } | null;
102
- }>;
103
- contract: {
104
- inputSchema: object;
105
- outputSchema?: object;
106
- };
107
- metricsConfig?: object;
108
- }
109
-
110
6
  declare const ResourceKindSchema: z.ZodEnum<{
111
7
  agent: "agent";
112
8
  workflow: "workflow";
@@ -349,7 +245,7 @@ type ResourceEntry = z.infer<typeof ResourceEntrySchema>;
349
245
  * Use-case agnostic types that describe the purpose of each entry
350
246
  * Memory types mirror action types for clarity and filtering
351
247
  */
352
- type MemoryEntryType = 'context' | 'input' | 'reasoning' | 'tool-result' | 'delegation-result' | 'error';
248
+ type MemoryEntryType = 'context' | 'input' | 'reasoning' | 'tool-result' | 'error';
353
249
  /**
354
250
  * Who authored an entry's content.
355
251
  *
@@ -378,6 +274,31 @@ interface MemoryEntry {
378
274
  * starting the agent with empty memory rather than throwing.
379
275
  */
380
276
  source?: MemoryEntrySource;
277
+ /**
278
+ * Which tool produced this entry. Set on `tool-result` entries so the model can tell N parallel
279
+ * results apart -- the framework instructs batching independent tool calls in one iteration, and
280
+ * an anonymous result is unattributable the moment two land in the same iteration. `addToolError`
281
+ * already carries this (folded into its `content` JSON); this is the same fact for the success
282
+ * path, carried as a real field instead of prose the caller has to parse back out.
283
+ */
284
+ toolName?: string;
285
+ /**
286
+ * Present when `truncateContent` cut this entry's `content` to fit its token budget. A sibling
287
+ * field, never text appended into `content` -- the notice used to be spliced into the string
288
+ * itself, which could (and did) land inside a JSON string literal `truncateContent` had just cut
289
+ * open, breaking `JSON.parse` on the far end. Absent means never truncated.
290
+ */
291
+ truncated?: {
292
+ omittedTokens: number;
293
+ };
294
+ /**
295
+ * Prompt-injection warning types found in `content`, screened once here -- when the entry is
296
+ * written -- instead of by re-scanning the whole accumulated envelope on every iteration it gets
297
+ * re-sent for (`screenRequest`'s `data-envelope` slot used to do exactly that). Empty array means
298
+ * screened and clean; `undefined` means never screened (entries that bypass `addToHistory`/`set`,
299
+ * or pre-existing snapshots from before this field existed).
300
+ */
301
+ warnings?: string[];
381
302
  }
382
303
  /**
383
304
  * Agent memory - Self-orchestrated memory with session + working storage
@@ -1763,6 +1684,121 @@ interface DashboardMetrics {
1763
1684
  activeDeploymentVersion: string | null;
1764
1685
  }
1765
1686
 
1687
+ /**
1688
+ * Agent-specific type definitions
1689
+ * Types for autonomous agents with tools, memory, and constraints
1690
+ */
1691
+
1692
+ type AgentKind = 'orchestrator' | 'specialist' | 'utility' | 'platform';
1693
+
1694
+ /**
1695
+ * Serialized Registry Types
1696
+ *
1697
+ * Pre-computed JSON-safe types for API responses and Command View.
1698
+ * Serialization happens once at API startup, enabling instant response times.
1699
+ */
1700
+
1701
+ /**
1702
+ * Serialized agent definition (JSON-safe)
1703
+ * Result of serializeDefinition(AgentDefinition)
1704
+ */
1705
+ interface SerializedAgentDefinition {
1706
+ config: {
1707
+ resourceId: string;
1708
+ name: string;
1709
+ description: string;
1710
+ version: string;
1711
+ type: 'agent';
1712
+ /**
1713
+ * Imported from the runtime type instead of hand-copied. It used to be a hand-written literal
1714
+ * union that said `'system'` where `AgentKind`'s fourth member is `'platform'` -- undetected
1715
+ * because `serializeDefinition` returns `any` and every call site casts the result to this
1716
+ * interface, so the literal union was never actually checked against real data. Deriving from
1717
+ * the source of truth makes that class of drift a type error instead of a silent typo.
1718
+ */
1719
+ kind: AgentKind;
1720
+ status: 'dev' | 'prod';
1721
+ links?: ResourceLink[];
1722
+ category?: ResourceCategory;
1723
+ /** Whether this resource is archived and should be excluded from registration and deployment */
1724
+ archived?: boolean;
1725
+ systemPrompt: string;
1726
+ constraints?: {
1727
+ maxIterations?: number;
1728
+ timeout?: number;
1729
+ maxSessionMemoryKeys?: number;
1730
+ maxMemoryTokens?: number;
1731
+ };
1732
+ sessionCapable?: boolean;
1733
+ memoryPreferences?: string;
1734
+ };
1735
+ modelConfig: {
1736
+ provider: string;
1737
+ model: string;
1738
+ apiKey: string;
1739
+ /**
1740
+ * Optional here, matching `ModelConfig` -- this used to be required even though neither real
1741
+ * agent literal in the monorepo (`local-test-agent`, the `createPlatformToolAgent` test fixture)
1742
+ * sets it, and nothing caught the mismatch for the same `serializeDefinition`-returns-`any`
1743
+ * reason `kind` drifted above.
1744
+ */
1745
+ temperature?: number;
1746
+ maxOutputTokens?: number;
1747
+ topP?: number;
1748
+ modelOptions?: Record<string, unknown>;
1749
+ };
1750
+ contract: {
1751
+ inputSchema: object;
1752
+ outputSchema?: object;
1753
+ };
1754
+ tools: Array<{
1755
+ name: string;
1756
+ description: string;
1757
+ inputSchema?: object;
1758
+ outputSchema?: object;
1759
+ }>;
1760
+ metricsConfig?: object;
1761
+ }
1762
+ /**
1763
+ * Serialized workflow definition (JSON-safe)
1764
+ * Result of serializeDefinition(WorkflowDefinition)
1765
+ */
1766
+ interface SerializedWorkflowDefinition {
1767
+ config: {
1768
+ resourceId: string;
1769
+ name: string;
1770
+ description: string;
1771
+ version: string;
1772
+ type: 'workflow';
1773
+ status: 'dev' | 'prod';
1774
+ links?: ResourceLink[];
1775
+ category?: ResourceCategory;
1776
+ /** Whether this resource is archived and should be excluded from registration and deployment */
1777
+ archived?: boolean;
1778
+ };
1779
+ entryPoint: string;
1780
+ steps: Array<{
1781
+ id: string;
1782
+ name: string;
1783
+ description: string;
1784
+ inputSchema?: object;
1785
+ outputSchema?: object;
1786
+ next: {
1787
+ type: 'linear' | 'conditional';
1788
+ target?: string;
1789
+ routes?: Array<{
1790
+ target: string;
1791
+ }>;
1792
+ default?: string;
1793
+ } | null;
1794
+ }>;
1795
+ contract: {
1796
+ inputSchema: object;
1797
+ outputSchema?: object;
1798
+ };
1799
+ metricsConfig?: object;
1800
+ }
1801
+
1766
1802
  /**
1767
1803
  * Base Execution Engine type definitions
1768
1804
  * Core types shared across all Execution Engine resources
@@ -1,15 +1,15 @@
1
- export { AgentExecutionPanel, AgentSessionGroup, CommandQueueDetailPage, CommandQueuePage, CommandQueueShell, CommandViewPage, DashboardOperationsOverview, ExecuteWorkflowModal, ExecutionPanel, OperationsOverview, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationGraphPage, ResourceDetailPage, ResourcesPage, ResourcesSidebar, SessionChatArea, SessionChatInterface, SessionChatPage, SessionConversationView, SessionDetailsPanel, SessionExecutionLogs, SessionHeader, SessionListItem, SessionsPage, SessionsSidebar, SystemOpsView, WorkflowExecutionPanel, aggregateSystemMetrics, formatResourceAttribution, operationsManifest } from '../../chunk-3WVZRN37.js';
1
+ export { AgentExecutionPanel, AgentSessionGroup, CommandQueueDetailPage, CommandQueuePage, CommandQueueShell, CommandViewPage, DashboardOperationsOverview, ExecuteWorkflowModal, ExecutionPanel, OperationsOverview, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationGraphPage, ResourceDetailPage, ResourcesPage, ResourcesSidebar, SessionChatArea, SessionChatInterface, SessionChatPage, SessionConversationView, SessionDetailsPanel, SessionExecutionLogs, SessionHeader, SessionListItem, SessionsPage, SessionsSidebar, SystemOpsView, WorkflowExecutionPanel, aggregateSystemMetrics, formatResourceAttribution, operationsManifest } from '../../chunk-ANNM5R7S.js';
2
2
  import '../../chunk-4OEVLV66.js';
3
3
  import '../../chunk-RBGVNPA6.js';
4
- import '../../chunk-ZTWA5H77.js';
4
+ import '../../chunk-6ZAP3FOA.js';
5
5
  import '../../chunk-AUDNF2Q7.js';
6
6
  import '../../chunk-6M6OLGQY.js';
7
7
  import '../../chunk-MKH2KOAO.js';
8
8
  import '../../chunk-XNW3O6QW.js';
9
- import '../../chunk-T4LA4RY2.js';
9
+ import '../../chunk-L7BZZ4SI.js';
10
10
  import '../../chunk-GMXGDO3I.js';
11
11
  import '../../chunk-62GVNH5U.js';
12
- import '../../chunk-LO7GWG24.js';
12
+ import '../../chunk-P45GQ3ZW.js';
13
13
  import '../../chunk-DD3CCMCZ.js';
14
14
  import '../../chunk-M7WWRZ5Z.js';
15
15
  import '../../chunk-JFBZ6XDW.js';
@@ -18,7 +18,7 @@ import '../../chunk-Q7DJKLEN.js';
18
18
  import '../../chunk-HENXLGVD.js';
19
19
  import '../../chunk-BLXJEIQS.js';
20
20
  import '../../chunk-RNP5R5I3.js';
21
- import '../../chunk-EIXSQONC.js';
21
+ import '../../chunk-RT4KRGZT.js';
22
22
  import '../../chunk-I7BZVVVU.js';
23
23
  import '../../chunk-Y6I3IC45.js';
24
24
  import '../../chunk-6SSQGWK7.js';
@@ -3418,6 +3418,7 @@ interface OrganizationSettingsProps {
3418
3418
  declare function OrganizationSettings({ user, currentMembership, isOrgAdmin }: OrganizationSettingsProps): react_jsx_runtime.JSX.Element;
3419
3419
 
3420
3420
  interface OrgMembersListProps {
3421
+ /** Supabase organization UUID. Kept as a plain string prop for backward compatibility; branded at the hook boundary internally. */
3421
3422
  orgId: string;
3422
3423
  }
3423
3424
  declare function OrgMembersList({ orgId }: OrgMembersListProps): react_jsx_runtime.JSX.Element;
@@ -1,15 +1,15 @@
1
- export { AccountSettings, AppearanceSettings, CreateWebhookEndpointModal, EditCredentialModal, EditWebhookEndpointModal, MemberAccessModal, MyRolesPage, OAuthIntegrationsCard, OrgMembersList, OrganizationSettings, WebhookEndpointList, WebhookEndpointSettings, settingsManifest } from '../../chunk-3WVZRN37.js';
1
+ export { AccountSettings, AppearanceSettings, CreateWebhookEndpointModal, EditCredentialModal, EditWebhookEndpointModal, MemberAccessModal, MyRolesPage, OAuthIntegrationsCard, OrgMembersList, OrganizationSettings, WebhookEndpointList, WebhookEndpointSettings, settingsManifest } from '../../chunk-ANNM5R7S.js';
2
2
  import '../../chunk-4OEVLV66.js';
3
3
  import '../../chunk-RBGVNPA6.js';
4
- import '../../chunk-ZTWA5H77.js';
4
+ import '../../chunk-6ZAP3FOA.js';
5
5
  import '../../chunk-AUDNF2Q7.js';
6
6
  import '../../chunk-6M6OLGQY.js';
7
7
  import '../../chunk-MKH2KOAO.js';
8
8
  import '../../chunk-XNW3O6QW.js';
9
- import '../../chunk-T4LA4RY2.js';
9
+ import '../../chunk-L7BZZ4SI.js';
10
10
  import '../../chunk-GMXGDO3I.js';
11
11
  import '../../chunk-62GVNH5U.js';
12
- import '../../chunk-LO7GWG24.js';
12
+ import '../../chunk-P45GQ3ZW.js';
13
13
  import '../../chunk-DD3CCMCZ.js';
14
14
  import '../../chunk-M7WWRZ5Z.js';
15
15
  import '../../chunk-JFBZ6XDW.js';
@@ -18,7 +18,7 @@ import '../../chunk-Q7DJKLEN.js';
18
18
  import '../../chunk-HENXLGVD.js';
19
19
  import '../../chunk-BLXJEIQS.js';
20
20
  import '../../chunk-RNP5R5I3.js';
21
- import '../../chunk-EIXSQONC.js';
21
+ import '../../chunk-RT4KRGZT.js';
22
22
  import '../../chunk-I7BZVVVU.js';
23
23
  import '../../chunk-Y6I3IC45.js';
24
24
  import '../../chunk-6SSQGWK7.js';
@@ -1,15 +1,15 @@
1
- export { AccessKeys, useAccess } from '../../chunk-3WVZRN37.js';
1
+ export { AccessKeys, useAccess } from '../../chunk-ANNM5R7S.js';
2
2
  import '../../chunk-4OEVLV66.js';
3
3
  import '../../chunk-RBGVNPA6.js';
4
- import '../../chunk-ZTWA5H77.js';
4
+ import '../../chunk-6ZAP3FOA.js';
5
5
  import '../../chunk-AUDNF2Q7.js';
6
6
  import '../../chunk-6M6OLGQY.js';
7
7
  import '../../chunk-MKH2KOAO.js';
8
8
  import '../../chunk-XNW3O6QW.js';
9
- import '../../chunk-T4LA4RY2.js';
9
+ import '../../chunk-L7BZZ4SI.js';
10
10
  import '../../chunk-GMXGDO3I.js';
11
11
  import '../../chunk-62GVNH5U.js';
12
- import '../../chunk-LO7GWG24.js';
12
+ import '../../chunk-P45GQ3ZW.js';
13
13
  import '../../chunk-DD3CCMCZ.js';
14
14
  import '../../chunk-M7WWRZ5Z.js';
15
15
  import '../../chunk-JFBZ6XDW.js';
@@ -18,7 +18,7 @@ import '../../chunk-Q7DJKLEN.js';
18
18
  import '../../chunk-HENXLGVD.js';
19
19
  import '../../chunk-BLXJEIQS.js';
20
20
  import '../../chunk-RNP5R5I3.js';
21
- import '../../chunk-EIXSQONC.js';
21
+ import '../../chunk-RT4KRGZT.js';
22
22
  import '../../chunk-I7BZVVVU.js';
23
23
  import '../../chunk-Y6I3IC45.js';
24
24
  import '../../chunk-6SSQGWK7.js';
@@ -1,15 +1,15 @@
1
- export { milestoneKeys, noteKeys, projectKeys, taskKeys, useCreateMilestone, useCreateNote, useCreateProject, useCreateTask, useDeleteMilestone, useDeleteProject, useDeleteTask2 as useDeleteTask, useMilestones, useProject, useProjectMilestones, useProjectNotes, useProjectTasks, useProjects, useTasks, useUpdateMilestone, useUpdateProject, useUpdateTask } from '../../chunk-3WVZRN37.js';
1
+ export { milestoneKeys, noteKeys, projectKeys, taskKeys, useCreateMilestone, useCreateNote, useCreateProject, useCreateTask, useDeleteMilestone, useDeleteProject, useDeleteTask2 as useDeleteTask, useMilestones, useProject, useProjectMilestones, useProjectNotes, useProjectTasks, useProjects, useTasks, useUpdateMilestone, useUpdateProject, useUpdateTask } from '../../chunk-ANNM5R7S.js';
2
2
  import '../../chunk-4OEVLV66.js';
3
3
  import '../../chunk-RBGVNPA6.js';
4
- import '../../chunk-ZTWA5H77.js';
4
+ import '../../chunk-6ZAP3FOA.js';
5
5
  import '../../chunk-AUDNF2Q7.js';
6
6
  import '../../chunk-6M6OLGQY.js';
7
7
  import '../../chunk-MKH2KOAO.js';
8
8
  import '../../chunk-XNW3O6QW.js';
9
- import '../../chunk-T4LA4RY2.js';
9
+ import '../../chunk-L7BZZ4SI.js';
10
10
  import '../../chunk-GMXGDO3I.js';
11
11
  import '../../chunk-62GVNH5U.js';
12
- import '../../chunk-LO7GWG24.js';
12
+ import '../../chunk-P45GQ3ZW.js';
13
13
  import '../../chunk-DD3CCMCZ.js';
14
14
  import '../../chunk-M7WWRZ5Z.js';
15
15
  import '../../chunk-JFBZ6XDW.js';
@@ -18,7 +18,7 @@ import '../../chunk-Q7DJKLEN.js';
18
18
  import '../../chunk-HENXLGVD.js';
19
19
  import '../../chunk-BLXJEIQS.js';
20
20
  import '../../chunk-RNP5R5I3.js';
21
- import '../../chunk-EIXSQONC.js';
21
+ import '../../chunk-RT4KRGZT.js';
22
22
  import '../../chunk-I7BZVVVU.js';
23
23
  import '../../chunk-Y6I3IC45.js';
24
24
  import '../../chunk-6SSQGWK7.js';