@elevasis/ui 2.64.0 → 2.65.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.
- package/dist/api/index.js +2 -2
- package/dist/app/index.d.ts +20 -0
- package/dist/app/index.js +5 -5
- package/dist/auth/index.js +5 -5
- package/dist/charts/index.js +5 -5
- package/dist/{chunk-XDOC3ULZ.js → chunk-3WVZRN37.js} +42 -19
- package/dist/{chunk-DRQPEMJI.js → chunk-4DV4ECMG.js} +3 -0
- package/dist/{chunk-KRWALB24.js → chunk-6SSQGWK7.js} +1 -1
- package/dist/{chunk-I3CFGE3N.js → chunk-BLXJEIQS.js} +1 -1
- package/dist/{chunk-7AJKZM4F.js → chunk-JFBZ6XDW.js} +2 -1
- package/dist/{chunk-FVOMKZ7S.js → chunk-Y6I3IC45.js} +3 -6
- package/dist/components/chat/index.js +1 -1
- package/dist/components/index.d.ts +108 -56
- package/dist/components/index.js +5 -5
- package/dist/components/navigation/index.js +5 -5
- package/dist/execution/index.js +2 -2
- package/dist/features/auth/index.d.ts +87 -2
- package/dist/features/auth/index.js +143 -8
- package/dist/features/clients/index.js +5 -5
- package/dist/features/crm/index.d.ts +20 -0
- package/dist/features/crm/index.js +5 -5
- package/dist/features/dashboard/index.js +5 -5
- package/dist/features/delivery/index.d.ts +20 -0
- package/dist/features/delivery/index.js +5 -5
- package/dist/features/knowledge/index.js +5 -5
- package/dist/features/lead-gen/index.js +5 -5
- package/dist/features/monitoring/index.js +5 -5
- package/dist/features/monitoring/requests/index.js +6 -6
- package/dist/features/operations/index.d.ts +36 -1
- package/dist/features/operations/index.js +5 -5
- package/dist/features/public-agent-chat/index.js +2 -2
- package/dist/features/settings/index.d.ts +20 -0
- package/dist/features/settings/index.js +5 -5
- package/dist/hooks/access/index.js +5 -5
- package/dist/hooks/delivery/index.d.ts +20 -0
- package/dist/hooks/delivery/index.js +5 -5
- package/dist/hooks/index.d.ts +53 -1
- package/dist/hooks/index.js +5 -5
- package/dist/hooks/published.d.ts +53 -1
- package/dist/hooks/published.js +5 -5
- package/dist/index.d.ts +109 -57
- package/dist/index.js +5 -5
- package/dist/initialization/index.d.ts +34 -0
- package/dist/knowledge/index.js +6 -6
- package/dist/layout/index.js +5 -5
- package/dist/organization/index.d.ts +14 -0
- package/dist/organization/index.js +5 -5
- package/dist/profile/index.d.ts +20 -0
- package/dist/provider/index.d.ts +20 -0
- package/dist/provider/index.js +5 -5
- package/dist/provider/published.d.ts +20 -0
- package/dist/provider/published.js +5 -5
- package/dist/supabase/index.d.ts +40 -0
- package/dist/test-utils/index.d.ts +5 -0
- package/dist/test-utils/index.js +4 -4
- package/dist/test-utils/setup-integration.js +1 -1
- package/dist/test-utils/setup.js +1 -1
- package/dist/types/index.d.ts +237 -57
- package/dist/utils/index.js +2 -2
- package/package.json +8 -6
package/dist/types/index.d.ts
CHANGED
|
@@ -335,7 +335,7 @@ type GoogleModel = 'gemini-3-flash-preview' | 'gemini-3.1-flash-lite-preview';
|
|
|
335
335
|
/**
|
|
336
336
|
* Supported Anthropic models (direct SDK access via @anthropic-ai/sdk)
|
|
337
337
|
*/
|
|
338
|
-
type AnthropicModel = 'claude-opus-
|
|
338
|
+
type AnthropicModel = 'claude-opus-5' | 'claude-sonnet-5' | 'claude-haiku-4-5-20251001' | 'claude-haiku-4-5';
|
|
339
339
|
/** Supported LLM models */
|
|
340
340
|
type LLMModel = OpenAIModel | OpenRouterModel | GoogleModel | AnthropicModel | 'mock';
|
|
341
341
|
/**
|
|
@@ -411,6 +411,15 @@ interface ModelConfig {
|
|
|
411
411
|
modelOptions?: ModelSpecificOptions;
|
|
412
412
|
}
|
|
413
413
|
|
|
414
|
+
/**
|
|
415
|
+
* What happened to `strict` on a request, recorded per call rather than inferred.
|
|
416
|
+
*
|
|
417
|
+
* `applied` and `notAttempted` are the two states that a refusal-only field cannot tell apart —
|
|
418
|
+
* both leave `strictRefusalReasons` empty. Recording the verdict positively is what makes "was
|
|
419
|
+
* this agent's output actually enforced?" answerable from an `ai_calls` row.
|
|
420
|
+
*/
|
|
421
|
+
type StrictStatus = 'applied' | 'refused' | 'compileRejected' | 'notAttempted';
|
|
422
|
+
|
|
414
423
|
declare const ResourceGovernanceStatusSchema: z.ZodEnum<{
|
|
415
424
|
active: "active";
|
|
416
425
|
deprecated: "deprecated";
|
|
@@ -723,6 +732,14 @@ interface WorkflowNodeVisualizerData {
|
|
|
723
732
|
* Memory types mirror action types for clarity and filtering
|
|
724
733
|
*/
|
|
725
734
|
type MemoryEntryType = 'context' | 'input' | 'reasoning' | 'tool-result' | 'delegation-result' | 'error';
|
|
735
|
+
/**
|
|
736
|
+
* Who authored an entry's content.
|
|
737
|
+
*
|
|
738
|
+
* This is what lets the assembled prompt tell framework-authored text apart from text that
|
|
739
|
+
* originated outside the trust boundary. `'framework'` content is ours; the other three are not
|
|
740
|
+
* and are rendered inside the JSON data envelope (see `MemoryManager.toContextParts`).
|
|
741
|
+
*/
|
|
742
|
+
type MemoryEntrySource = 'framework' | 'user' | 'tool' | 'model';
|
|
726
743
|
/**
|
|
727
744
|
* Memory entry - represents a single entry in agent memory
|
|
728
745
|
* Stored in agent memory, translated by adapters to vendor-specific formats
|
|
@@ -733,6 +750,16 @@ interface MemoryEntry {
|
|
|
733
750
|
timestamp: number;
|
|
734
751
|
turnNumber: number | null;
|
|
735
752
|
iterationNumber: number | null;
|
|
753
|
+
/**
|
|
754
|
+
* Provenance. **Optional on purpose** — `undefined` means unknown, which is what every
|
|
755
|
+
* pre-existing snapshot and every not-yet-redeployed tenant bundle produces. Read sites MUST
|
|
756
|
+
* test `== null`, never `=== undefined`: the `inTurnScope` predicate in `manager.ts` is the
|
|
757
|
+
* cautionary precedent, where a `=== undefined` check silently dropped every `null`-stamped
|
|
758
|
+
* entry. `isMemoryEntry` is deliberately NOT tightened to require this field; doing so would
|
|
759
|
+
* make every stored snapshot fail validation, and `restoreSessionMemory` fails open by
|
|
760
|
+
* starting the agent with empty memory rather than throwing.
|
|
761
|
+
*/
|
|
762
|
+
source?: MemoryEntrySource;
|
|
736
763
|
}
|
|
737
764
|
/**
|
|
738
765
|
* Agent memory - Self-orchestrated memory with session + working storage
|
|
@@ -754,6 +781,62 @@ interface AgentMemory {
|
|
|
754
781
|
history: MemoryEntry[];
|
|
755
782
|
}
|
|
756
783
|
|
|
784
|
+
/**
|
|
785
|
+
* Agent timeline and observability types
|
|
786
|
+
* Used for UI timeline visualization and backend processing
|
|
787
|
+
*/
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* Sub-activity within an iteration
|
|
791
|
+
* Represents reasoning, actions, or tool calls with timing
|
|
792
|
+
*/
|
|
793
|
+
interface SubActivity {
|
|
794
|
+
type: 'reasoning' | 'action' | 'tool-call';
|
|
795
|
+
startTime: number;
|
|
796
|
+
endTime: number;
|
|
797
|
+
duration: number;
|
|
798
|
+
details: AgentIterationEvent | AgentToolCallEvent;
|
|
799
|
+
}
|
|
800
|
+
/**
|
|
801
|
+
* Agent iteration state
|
|
802
|
+
* Aggregates lifecycle events and sub-activities for a single iteration
|
|
803
|
+
*/
|
|
804
|
+
interface AgentIteration {
|
|
805
|
+
iterationNumber: number;
|
|
806
|
+
status: 'running' | 'completed' | 'failed' | 'pending';
|
|
807
|
+
iterationEvents: AgentIterationEvent[];
|
|
808
|
+
duration?: number;
|
|
809
|
+
timestamp: number;
|
|
810
|
+
subActivities: SubActivity[];
|
|
811
|
+
startTime?: number;
|
|
812
|
+
endTime?: number;
|
|
813
|
+
}
|
|
814
|
+
/**
|
|
815
|
+
* Agent lifecycle node state
|
|
816
|
+
* Represents initialization or completion phase
|
|
817
|
+
*/
|
|
818
|
+
interface AgentLifecycleNode {
|
|
819
|
+
type: 'initialization' | 'completion';
|
|
820
|
+
status: 'running' | 'completed' | 'failed' | 'pending';
|
|
821
|
+
duration?: number;
|
|
822
|
+
timestamp?: number;
|
|
823
|
+
startTime?: number;
|
|
824
|
+
endTime?: number;
|
|
825
|
+
}
|
|
826
|
+
/**
|
|
827
|
+
* Complete agent execution data for timeline visualization
|
|
828
|
+
* Parsed from execution logs
|
|
829
|
+
*/
|
|
830
|
+
interface AgentIterationData {
|
|
831
|
+
initialization: AgentLifecycleNode;
|
|
832
|
+
iterations: AgentIteration[];
|
|
833
|
+
completion: AgentLifecycleNode;
|
|
834
|
+
currentIteration: number | null;
|
|
835
|
+
totalIterations: number;
|
|
836
|
+
totalDuration?: number;
|
|
837
|
+
status: 'running' | 'completed' | 'failed' | 'warning';
|
|
838
|
+
}
|
|
839
|
+
|
|
757
840
|
type Json = string | number | boolean | null | {
|
|
758
841
|
[key: string]: Json | undefined;
|
|
759
842
|
} | Json[];
|
|
@@ -3498,6 +3581,7 @@ type Database = {
|
|
|
3498
3581
|
deleted_at: string | null;
|
|
3499
3582
|
ended_at: string | null;
|
|
3500
3583
|
memory_snapshot: Json;
|
|
3584
|
+
memory_version: number;
|
|
3501
3585
|
metadata: Json | null;
|
|
3502
3586
|
organization_id: string;
|
|
3503
3587
|
resource_id: string;
|
|
@@ -3514,6 +3598,7 @@ type Database = {
|
|
|
3514
3598
|
deleted_at?: string | null;
|
|
3515
3599
|
ended_at?: string | null;
|
|
3516
3600
|
memory_snapshot: Json;
|
|
3601
|
+
memory_version?: number;
|
|
3517
3602
|
metadata?: Json | null;
|
|
3518
3603
|
organization_id: string;
|
|
3519
3604
|
resource_id: string;
|
|
@@ -3530,6 +3615,7 @@ type Database = {
|
|
|
3530
3615
|
deleted_at?: string | null;
|
|
3531
3616
|
ended_at?: string | null;
|
|
3532
3617
|
memory_snapshot?: Json;
|
|
3618
|
+
memory_version?: number;
|
|
3533
3619
|
metadata?: Json | null;
|
|
3534
3620
|
organization_id?: string;
|
|
3535
3621
|
resource_id?: string;
|
|
@@ -3867,9 +3953,14 @@ type Database = {
|
|
|
3867
3953
|
p_session_id: string;
|
|
3868
3954
|
};
|
|
3869
3955
|
Returns: {
|
|
3956
|
+
context_window_size: number;
|
|
3870
3957
|
created_at: string;
|
|
3958
|
+
cumulative_input_tokens: number;
|
|
3959
|
+
cumulative_output_tokens: number;
|
|
3960
|
+
deleted_at: string;
|
|
3871
3961
|
ended_at: string;
|
|
3872
3962
|
memory_snapshot: Json;
|
|
3963
|
+
memory_version: number;
|
|
3873
3964
|
metadata: Json;
|
|
3874
3965
|
organization_id: string;
|
|
3875
3966
|
resource_id: string;
|
|
@@ -3911,6 +4002,18 @@ type Database = {
|
|
|
3911
4002
|
};
|
|
3912
4003
|
Returns: boolean;
|
|
3913
4004
|
};
|
|
4005
|
+
increment_session_tokens: {
|
|
4006
|
+
Args: {
|
|
4007
|
+
p_input_tokens: number;
|
|
4008
|
+
p_output_tokens: number;
|
|
4009
|
+
p_session_id: string;
|
|
4010
|
+
};
|
|
4011
|
+
Returns: {
|
|
4012
|
+
context_window_size: number;
|
|
4013
|
+
cumulative_input_tokens: number;
|
|
4014
|
+
cumulative_output_tokens: number;
|
|
4015
|
+
}[];
|
|
4016
|
+
};
|
|
3914
4017
|
is_org_member: {
|
|
3915
4018
|
Args: {
|
|
3916
4019
|
org_id: string;
|
|
@@ -4008,62 +4111,6 @@ type SupabaseApiKey = Tables<'api_keys'>;
|
|
|
4008
4111
|
/** API response type for API key list items (omits sensitive key_hash) */
|
|
4009
4112
|
type ApiKeyListItem = Omit<SupabaseApiKey, 'key_hash'>;
|
|
4010
4113
|
|
|
4011
|
-
/**
|
|
4012
|
-
* Agent timeline and observability types
|
|
4013
|
-
* Used for UI timeline visualization and backend processing
|
|
4014
|
-
*/
|
|
4015
|
-
|
|
4016
|
-
/**
|
|
4017
|
-
* Sub-activity within an iteration
|
|
4018
|
-
* Represents reasoning, actions, or tool calls with timing
|
|
4019
|
-
*/
|
|
4020
|
-
interface SubActivity {
|
|
4021
|
-
type: 'reasoning' | 'action' | 'tool-call';
|
|
4022
|
-
startTime: number;
|
|
4023
|
-
endTime: number;
|
|
4024
|
-
duration: number;
|
|
4025
|
-
details: AgentIterationEvent | AgentToolCallEvent;
|
|
4026
|
-
}
|
|
4027
|
-
/**
|
|
4028
|
-
* Agent iteration state
|
|
4029
|
-
* Aggregates lifecycle events and sub-activities for a single iteration
|
|
4030
|
-
*/
|
|
4031
|
-
interface AgentIteration {
|
|
4032
|
-
iterationNumber: number;
|
|
4033
|
-
status: 'running' | 'completed' | 'failed' | 'pending';
|
|
4034
|
-
iterationEvents: AgentIterationEvent[];
|
|
4035
|
-
duration?: number;
|
|
4036
|
-
timestamp: number;
|
|
4037
|
-
subActivities: SubActivity[];
|
|
4038
|
-
startTime?: number;
|
|
4039
|
-
endTime?: number;
|
|
4040
|
-
}
|
|
4041
|
-
/**
|
|
4042
|
-
* Agent lifecycle node state
|
|
4043
|
-
* Represents initialization or completion phase
|
|
4044
|
-
*/
|
|
4045
|
-
interface AgentLifecycleNode {
|
|
4046
|
-
type: 'initialization' | 'completion';
|
|
4047
|
-
status: 'running' | 'completed' | 'failed' | 'pending';
|
|
4048
|
-
duration?: number;
|
|
4049
|
-
timestamp?: number;
|
|
4050
|
-
startTime?: number;
|
|
4051
|
-
endTime?: number;
|
|
4052
|
-
}
|
|
4053
|
-
/**
|
|
4054
|
-
* Complete agent execution data for timeline visualization
|
|
4055
|
-
* Parsed from execution logs
|
|
4056
|
-
*/
|
|
4057
|
-
interface AgentIterationData {
|
|
4058
|
-
initialization: AgentLifecycleNode;
|
|
4059
|
-
iterations: AgentIteration[];
|
|
4060
|
-
completion: AgentLifecycleNode;
|
|
4061
|
-
currentIteration: number | null;
|
|
4062
|
-
totalIterations: number;
|
|
4063
|
-
totalDuration?: number;
|
|
4064
|
-
status: 'running' | 'completed' | 'failed' | 'warning';
|
|
4065
|
-
}
|
|
4066
|
-
|
|
4067
4114
|
/** Raw database row type for acq_deals table */
|
|
4068
4115
|
type AcqDealRow = Database['public']['Tables']['acq_deals']['Row'];
|
|
4069
4116
|
type DealStage = 'interested' | 'proposal' | 'closing' | 'closed_won' | 'closed_lost' | 'nurturing';
|
|
@@ -4627,10 +4674,24 @@ interface ListMembershipsParams {
|
|
|
4627
4674
|
after?: string;
|
|
4628
4675
|
order?: 'asc' | 'desc';
|
|
4629
4676
|
}
|
|
4677
|
+
/**
|
|
4678
|
+
* How a membership row relates to the two systems that describe it.
|
|
4679
|
+
*
|
|
4680
|
+
* - `linked` — an `org_memberships` row that carries a `workos_membership_id`
|
|
4681
|
+
* - `pre_provisioned` — an `org_memberships` row with no `workos_membership_id`;
|
|
4682
|
+
* the invitee was provisioned but has not completed signup
|
|
4683
|
+
* - `workos_only` — a WorkOS membership with no `org_memberships` row (a sync gap)
|
|
4684
|
+
*/
|
|
4685
|
+
type MembershipProvisioningState = 'linked' | 'pre_provisioned' | 'workos_only';
|
|
4630
4686
|
/**
|
|
4631
4687
|
* Extended membership with user and organization details for UI
|
|
4632
4688
|
*/
|
|
4633
4689
|
interface MembershipWithDetails extends OrganizationMembership {
|
|
4690
|
+
/**
|
|
4691
|
+
* Set by `GET /memberships`. Optional so existing consumers are unaffected;
|
|
4692
|
+
* treat `undefined` as "not reported by this endpoint".
|
|
4693
|
+
*/
|
|
4694
|
+
provisioningState?: MembershipProvisioningState;
|
|
4634
4695
|
user?: {
|
|
4635
4696
|
id: string;
|
|
4636
4697
|
email: string;
|
|
@@ -4678,6 +4739,25 @@ interface OAuthState {
|
|
|
4678
4739
|
provider: string;
|
|
4679
4740
|
}
|
|
4680
4741
|
|
|
4742
|
+
/**
|
|
4743
|
+
* Which `role:'user'` message slot a sanitizer warning came from, derived from the request's
|
|
4744
|
+
* message array (no new plumbing from callers):
|
|
4745
|
+
* - `'memory-context'` — the framework's framing message, identified by the `=== MEMORY STATUS ===`
|
|
4746
|
+
* banner. Framework-authored and trusted; it is no longer scanned at all, so this source should
|
|
4747
|
+
* not appear for agent calls. Retained because stale tenant bundles still emit the old combined
|
|
4748
|
+
* block, and their rows must stay readable.
|
|
4749
|
+
* - `'data-envelope'` — the JSON envelope carrying every stored fragment. Untrusted, and the slot
|
|
4750
|
+
* where a match is genuine signal.
|
|
4751
|
+
* - `'input'` — the turn's own input, on its own message. Also untrusted.
|
|
4752
|
+
* - `'history'` — replayed prior turns. Untrusted, but already screened at their own front door,
|
|
4753
|
+
* so warnings here are recorded and never block (see `screenInput`).
|
|
4754
|
+
*/
|
|
4755
|
+
type InputWarningSource = 'memory-context' | 'data-envelope' | 'history' | 'input';
|
|
4756
|
+
/** Per-source breakdown of sanitizer warnings, so a memory-context echo is distinguishable from a genuine hit. */
|
|
4757
|
+
interface SourcedInputWarnings {
|
|
4758
|
+
source: InputWarningSource;
|
|
4759
|
+
warnings: string[];
|
|
4760
|
+
}
|
|
4681
4761
|
interface BaseAICall {
|
|
4682
4762
|
callSequence: number;
|
|
4683
4763
|
callType: 'agent-reasoning' | 'agent-completion' | 'workflow-step' | 'tool' | 'other';
|
|
@@ -4687,6 +4767,106 @@ interface BaseAICall {
|
|
|
4687
4767
|
costUsd: number;
|
|
4688
4768
|
latencyMs: number;
|
|
4689
4769
|
context?: AICallContext;
|
|
4770
|
+
/**
|
|
4771
|
+
* Distinct prompt-injection pattern types detected in the request's user-role messages.
|
|
4772
|
+
* Present only when the input sanitizer matched something. Non-blocking matches ride along on
|
|
4773
|
+
* the successful call's row; a blocked call records a row of its own (see `inputBlocked`).
|
|
4774
|
+
*
|
|
4775
|
+
* Flat union across all `role:'user'` messages — unchanged shape, kept for existing readers.
|
|
4776
|
+
* See `inputWarningsBySource` for the per-slot breakdown.
|
|
4777
|
+
*/
|
|
4778
|
+
inputWarnings?: string[];
|
|
4779
|
+
/**
|
|
4780
|
+
* Additive breakdown of `inputWarnings` by message slot (see `InputWarningSource`). Present only
|
|
4781
|
+
* when at least one source produced a warning. Existing readers that only look at the flat
|
|
4782
|
+
* `inputWarnings` array are unaffected.
|
|
4783
|
+
*/
|
|
4784
|
+
inputWarningsBySource?: SourcedInputWarnings[];
|
|
4785
|
+
/**
|
|
4786
|
+
* True when the sanitizer blocked the request and no provider call was made.
|
|
4787
|
+
* Such a row carries zero tokens, zero cost, and zero latency — it exists so a hard,
|
|
4788
|
+
* user-visible failure is observable at all. Before this, a blocked call produced no row.
|
|
4789
|
+
*/
|
|
4790
|
+
inputBlocked?: boolean;
|
|
4791
|
+
/**
|
|
4792
|
+
* The validator's message when the provider responded but its output failed `responseSchema`
|
|
4793
|
+
* validation (e.g. `missing required field 'nextActions'`). Present only on such a row.
|
|
4794
|
+
*
|
|
4795
|
+
* This is NOT the blocked-input case: the provider DID respond and tokens WERE spent, so the row
|
|
4796
|
+
* carries real `inputTokens`, `outputTokens`, cost and latency. It is a paid call that produced
|
|
4797
|
+
* nothing usable, and before this it produced no row at all.
|
|
4798
|
+
*
|
|
4799
|
+
* One row per failed attempt — the adapter retries a validation failure up to `LLM_MAX_ATTEMPTS`,
|
|
4800
|
+
* so a turn that exhausts its retries records three. Reading `inputTokens` across these rows is
|
|
4801
|
+
* what measures malformed-output rate against context size rather than inferring it.
|
|
4802
|
+
*
|
|
4803
|
+
* Existing readers that only look at the fields above are unaffected.
|
|
4804
|
+
*/
|
|
4805
|
+
outputValidationError?: string;
|
|
4806
|
+
/**
|
|
4807
|
+
* The raw model output that failed validation, JSON-stringified and truncated to a bounded
|
|
4808
|
+
* length. Truncation is visible in the value itself (a trailing `…[truncated: N chars total]`),
|
|
4809
|
+
* never silent. Present only alongside `outputValidationError`.
|
|
4810
|
+
*/
|
|
4811
|
+
unvalidatedOutput?: string;
|
|
4812
|
+
/**
|
|
4813
|
+
* What happened to `strict` structured output on this call — `applied`, `refused`,
|
|
4814
|
+
* `compileRejected`, or `notAttempted`. Every server adapter sets it, so this is the field that
|
|
4815
|
+
* answers "is this agent's output actually being enforced?" without reading source.
|
|
4816
|
+
*
|
|
4817
|
+
* It replaces an inference that turned out to be unsound. `strictRefusalReasons` alone records
|
|
4818
|
+
* only refusals, so an empty row meant "strict held" OR "this adapter never tries" — and a prod
|
|
4819
|
+
* run recorded zero refusals while a call returned an array-typed field as a string, which a
|
|
4820
|
+
* grammar makes impossible. The absence proved nothing, because the deployed API had no way to
|
|
4821
|
+
* write the field at all.
|
|
4822
|
+
*
|
|
4823
|
+
* Absent on rows written before this field existed; that absence is itself diagnostic (the API
|
|
4824
|
+
* predates the change). Existing readers that only look at the fields above are unaffected.
|
|
4825
|
+
*/
|
|
4826
|
+
strictStatus?: StrictStatus;
|
|
4827
|
+
/**
|
|
4828
|
+
* Why this call went out without `strict`, when a strict-capable adapter refused the schema. The
|
|
4829
|
+
* detail behind `strictStatus: 'refused' | 'compileRejected'` — read `strictStatus` for whether
|
|
4830
|
+
* it was enforced, this for why not.
|
|
4831
|
+
*
|
|
4832
|
+
* Existing readers that only look at the fields above are unaffected.
|
|
4833
|
+
*/
|
|
4834
|
+
strictRefusalReasons?: string[];
|
|
4835
|
+
/**
|
|
4836
|
+
* Time spent in the base adapter's `generate()` call alone, excluding `responseSchema`
|
|
4837
|
+
* validation. On a success or validation-failure row, `providerMs + validateMs === latencyMs`
|
|
4838
|
+
* (modulo rounding) -- `latencyMs` keeps its existing meaning unchanged; this and `validateMs`
|
|
4839
|
+
* are the same window split into its two components.
|
|
4840
|
+
*
|
|
4841
|
+
* Present on success and validation-failure rows. Absent on a blocked row (no provider call was
|
|
4842
|
+
* made) and on rows written before this field existed.
|
|
4843
|
+
*/
|
|
4844
|
+
providerMs?: number;
|
|
4845
|
+
/**
|
|
4846
|
+
* Time spent in `validateResponseSchema` alone. Omitted when the call carried no `responseSchema`
|
|
4847
|
+
* (nothing to validate); `0` is a legitimate value meaning a schema was supplied and validation
|
|
4848
|
+
* was effectively instant. See `providerMs` for how the two relate to `latencyMs`.
|
|
4849
|
+
*
|
|
4850
|
+
* Present on success and validation-failure rows that supplied a `responseSchema`. Absent on a
|
|
4851
|
+
* blocked row and on rows written before this field existed.
|
|
4852
|
+
*/
|
|
4853
|
+
validateMs?: number;
|
|
4854
|
+
/**
|
|
4855
|
+
* Total elapsed time for the WHOLE `generate()` call -- every retry attempt plus every backoff
|
|
4856
|
+
* sleep between them. Unlike `latencyMs` (which is per-attempt and never includes backoff, by
|
|
4857
|
+
* design -- see `runWithRetry`), this is the one number that answers "how long did the caller
|
|
4858
|
+
* actually wait". On a call that never retried, `wallClockMs === latencyMs`. On a retried call,
|
|
4859
|
+
* `wallClockMs` is strictly greater than any individual row's `latencyMs` from that same call, by
|
|
4860
|
+
* at least the backoff time actually slept.
|
|
4861
|
+
*
|
|
4862
|
+
* The same value is attached to every row produced by one `generate()` call (a validation-failure
|
|
4863
|
+
* row from an earlier attempt included), because it describes the call, not the attempt.
|
|
4864
|
+
*
|
|
4865
|
+
* Present on success and validation-failure rows. Absent on a blocked row -- a blocked call never
|
|
4866
|
+
* reaches the retry loop, so `wallClockMs` would just restate `latencyMs` (0). Absent on rows
|
|
4867
|
+
* written before this field existed.
|
|
4868
|
+
*/
|
|
4869
|
+
wallClockMs?: number;
|
|
4690
4870
|
}
|
|
4691
4871
|
type AICallContext = AgentReasoningContext | AgentCompletionContext | WorkflowStepContext | ToolCallContext | OtherCallContext;
|
|
4692
4872
|
interface AgentReasoningContext {
|
package/dist/utils/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { APIClientError, API_URL, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, LIMIT_ACTIVITY_FEED, OAUTH_FLOW_TIMEOUT, PAGE_SIZE_DEFAULT, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, isAPIClientError, restoreConsole, setupBrowserMocks, suppressKnownWarnings, validateEmail } from '../chunk-I7BZVVVU.js';
|
|
2
|
-
export { REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, debounce, getTimeRangeDates, getTimeRangeLabel } from '../chunk-
|
|
3
|
-
export { ResourceStatusColors } from '../chunk-
|
|
2
|
+
export { REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, debounce, getTimeRangeDates, getTimeRangeLabel } from '../chunk-Y6I3IC45.js';
|
|
3
|
+
export { ResourceStatusColors } from '../chunk-6SSQGWK7.js';
|
|
4
4
|
import '../chunk-TVTSASST.js';
|
|
5
5
|
import '../chunk-I2KLQ2HA.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.65.0",
|
|
4
4
|
"description": "UI components and platform-aware hooks for building custom frontends on the Elevasis platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -224,6 +224,8 @@
|
|
|
224
224
|
"@elevasis/sdk": "^1.16.0",
|
|
225
225
|
"react": "^19.2.0",
|
|
226
226
|
"react-dom": "^19.2.0",
|
|
227
|
+
"@supabase/supabase-js": "^2.49.4",
|
|
228
|
+
"@workos-inc/authkit-react": "^0.11.0",
|
|
227
229
|
"@tanstack/react-query": "^5.76.2",
|
|
228
230
|
"@tanstack/react-router": "^1.131.28",
|
|
229
231
|
"zod": "^4.1.0",
|
|
@@ -274,11 +276,11 @@
|
|
|
274
276
|
"typescript": "5.9.2",
|
|
275
277
|
"vite": "^7.0.0",
|
|
276
278
|
"vitest": "^3.2.4",
|
|
277
|
-
"@
|
|
279
|
+
"@repo/core": "0.58.0",
|
|
280
|
+
"@elevasis/sdk": "1.42.0",
|
|
281
|
+
"@repo/elevasis-core": "1.0.0",
|
|
278
282
|
"@repo/typescript-config": "0.0.0",
|
|
279
|
-
"@repo/
|
|
280
|
-
"@repo/eslint-config": "0.0.0",
|
|
281
|
-
"@repo/elevasis-core": "1.0.0"
|
|
283
|
+
"@repo/eslint-config": "0.0.0"
|
|
282
284
|
},
|
|
283
285
|
"dependencies": {
|
|
284
286
|
"@dagrejs/dagre": "^1.1.4",
|
|
@@ -355,7 +357,7 @@
|
|
|
355
357
|
"lint": "eslint src --max-warnings 0",
|
|
356
358
|
"check-types": "tsc --noEmit",
|
|
357
359
|
"test": "vitest run --passWithNoTests",
|
|
358
|
-
"test:publish-artifacts": "pnpm build:publish && vitest run src/__tests__/sdk-exports.test.ts src/provider/__tests__/published-surface.test.ts src/__tests__/published-artifact.test.ts",
|
|
360
|
+
"test:publish-artifacts": "pnpm build:publish && vitest run src/__tests__/sdk-exports.test.ts src/provider/__tests__/published-surface.test.ts src/__tests__/published-artifact.test.ts src/__tests__/published-peer-dependencies.test.ts",
|
|
359
361
|
"test:watch": "vitest watch"
|
|
360
362
|
}
|
|
361
363
|
}
|