@elevasis/ui 1.4.0 → 1.6.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/{CoreAuthKitInner-3J4RVQO6.js → CoreAuthKitInner-Y6LQYIPX.js} +1 -0
- package/dist/api/index.js +1 -0
- package/dist/auth/context.js +1 -0
- package/dist/auth/index.js +1 -0
- package/dist/charts/index.d.ts +96 -0
- package/dist/charts/index.js +384 -0
- package/dist/chunk-54S7KNJV.js +112 -0
- package/dist/{chunk-6IX5JZEH.js → chunk-G4TAF3T6.js} +166 -1
- package/dist/{chunk-Y2I5JJ3N.js → chunk-K3YVC5RW.js} +2 -2
- package/dist/chunk-KB5NKPTN.js +1455 -0
- package/dist/chunk-MLKGABMK.js +7 -0
- package/dist/{chunk-GIFAF5ZS.js → chunk-MS45MNFM.js} +6 -1
- package/dist/chunk-R56VC63S.js +129 -0
- package/dist/chunk-TYV5NJV2.js +1 -0
- package/dist/{chunk-JQLT6HBI.js → chunk-YJFTZUJJ.js} +22 -2
- package/dist/components/index.css +486 -0
- package/dist/components/index.d.ts +2047 -1
- package/dist/components/index.js +3350 -0
- package/dist/components/navigation/index.js +1 -0
- package/dist/execution/index.d.ts +15 -3
- package/dist/execution/index.js +2 -1
- package/dist/graph/index.js +2 -1
- package/dist/hooks/index.d.ts +270 -0
- package/dist/hooks/index.js +3 -2
- package/dist/hooks/published.d.ts +546 -2
- package/dist/hooks/published.js +3 -2
- package/dist/index.css +62 -0
- package/dist/index.d.ts +351 -4
- package/dist/index.js +12 -1038
- package/dist/initialization/index.d.ts +270 -0
- package/dist/initialization/index.js +1 -0
- package/dist/layout/index.css +44 -0
- package/dist/layout/index.d.ts +330 -0
- package/dist/layout/index.js +1440 -0
- package/dist/organization/index.js +1 -0
- package/dist/profile/index.d.ts +270 -0
- package/dist/profile/index.js +1 -0
- package/dist/provider/index.css +61 -0
- package/dist/provider/index.d.ts +54 -2
- package/dist/provider/index.js +5 -3
- package/dist/provider/published.d.ts +6 -0
- package/dist/provider/published.js +3 -2
- package/dist/router/context.js +1 -0
- package/dist/router/index.js +1 -0
- package/dist/sse/index.js +1 -1
- package/dist/supabase/index.d.ts +525 -0
- package/dist/supabase/index.js +1 -0
- package/dist/theme/index.d.ts +107 -0
- package/dist/theme/index.js +3 -0
- package/dist/typeform/index.js +1 -0
- package/dist/typeform/schemas.js +1 -0
- package/dist/types/index.d.ts +3636 -368
- package/dist/utils/index.js +1 -0
- package/package.json +96 -3
- package/dist/chunk-XXDDMASA.js +0 -170
- /package/dist/{chunk-BUZONXAW.js → chunk-ARQRKA6J.js} +0 -0
|
@@ -644,6 +644,46 @@ interface ExecutionLogMessage {
|
|
|
644
644
|
* Maps to Mantine form components
|
|
645
645
|
*/
|
|
646
646
|
type FormFieldType = 'text' | 'textarea' | 'number' | 'select' | 'checkbox' | 'radio' | 'richtext';
|
|
647
|
+
/**
|
|
648
|
+
* Form field definition
|
|
649
|
+
*/
|
|
650
|
+
interface FormField {
|
|
651
|
+
/** Field key in payload object */
|
|
652
|
+
name: string;
|
|
653
|
+
/** Field label for UI */
|
|
654
|
+
label: string;
|
|
655
|
+
/** Field type (determines UI component) */
|
|
656
|
+
type: FormFieldType;
|
|
657
|
+
/** Default value */
|
|
658
|
+
defaultValue?: unknown;
|
|
659
|
+
/** Required field */
|
|
660
|
+
required?: boolean;
|
|
661
|
+
/** Placeholder text */
|
|
662
|
+
placeholder?: string;
|
|
663
|
+
/** Help text */
|
|
664
|
+
description?: string;
|
|
665
|
+
/** Options for select/radio */
|
|
666
|
+
options?: Array<{
|
|
667
|
+
label: string;
|
|
668
|
+
value: string | number;
|
|
669
|
+
}>;
|
|
670
|
+
/** Min/max for number */
|
|
671
|
+
min?: number;
|
|
672
|
+
max?: number;
|
|
673
|
+
/** Path to context value for pre-filling (dot notation, e.g., 'proposal.summary') */
|
|
674
|
+
defaultValueFromContext?: string;
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* Form schema for action payload collection
|
|
678
|
+
*/
|
|
679
|
+
interface FormSchema {
|
|
680
|
+
/** Form title */
|
|
681
|
+
title?: string;
|
|
682
|
+
/** Form description */
|
|
683
|
+
description?: string;
|
|
684
|
+
/** Form fields */
|
|
685
|
+
fields: FormField[];
|
|
686
|
+
}
|
|
647
687
|
|
|
648
688
|
/**
|
|
649
689
|
* Serialized Registry Types
|
|
@@ -1991,6 +2031,276 @@ type Database = {
|
|
|
1991
2031
|
}
|
|
1992
2032
|
];
|
|
1993
2033
|
};
|
|
2034
|
+
delivery_deliverables: {
|
|
2035
|
+
Row: {
|
|
2036
|
+
completed_at: string | null;
|
|
2037
|
+
created_at: string;
|
|
2038
|
+
description: string | null;
|
|
2039
|
+
due_date: string | null;
|
|
2040
|
+
engagement_id: string;
|
|
2041
|
+
file_url: string | null;
|
|
2042
|
+
id: string;
|
|
2043
|
+
metadata: Json | null;
|
|
2044
|
+
milestone_id: string | null;
|
|
2045
|
+
name: string;
|
|
2046
|
+
organization_id: string;
|
|
2047
|
+
status: string;
|
|
2048
|
+
type: string;
|
|
2049
|
+
updated_at: string;
|
|
2050
|
+
};
|
|
2051
|
+
Insert: {
|
|
2052
|
+
completed_at?: string | null;
|
|
2053
|
+
created_at?: string;
|
|
2054
|
+
description?: string | null;
|
|
2055
|
+
due_date?: string | null;
|
|
2056
|
+
engagement_id: string;
|
|
2057
|
+
file_url?: string | null;
|
|
2058
|
+
id?: string;
|
|
2059
|
+
metadata?: Json | null;
|
|
2060
|
+
milestone_id?: string | null;
|
|
2061
|
+
name: string;
|
|
2062
|
+
organization_id: string;
|
|
2063
|
+
status?: string;
|
|
2064
|
+
type?: string;
|
|
2065
|
+
updated_at?: string;
|
|
2066
|
+
};
|
|
2067
|
+
Update: {
|
|
2068
|
+
completed_at?: string | null;
|
|
2069
|
+
created_at?: string;
|
|
2070
|
+
description?: string | null;
|
|
2071
|
+
due_date?: string | null;
|
|
2072
|
+
engagement_id?: string;
|
|
2073
|
+
file_url?: string | null;
|
|
2074
|
+
id?: string;
|
|
2075
|
+
metadata?: Json | null;
|
|
2076
|
+
milestone_id?: string | null;
|
|
2077
|
+
name?: string;
|
|
2078
|
+
organization_id?: string;
|
|
2079
|
+
status?: string;
|
|
2080
|
+
type?: string;
|
|
2081
|
+
updated_at?: string;
|
|
2082
|
+
};
|
|
2083
|
+
Relationships: [
|
|
2084
|
+
{
|
|
2085
|
+
foreignKeyName: "delivery_deliverables_engagement_id_fkey";
|
|
2086
|
+
columns: ["engagement_id"];
|
|
2087
|
+
isOneToOne: false;
|
|
2088
|
+
referencedRelation: "delivery_engagements";
|
|
2089
|
+
referencedColumns: ["id"];
|
|
2090
|
+
},
|
|
2091
|
+
{
|
|
2092
|
+
foreignKeyName: "delivery_deliverables_milestone_id_fkey";
|
|
2093
|
+
columns: ["milestone_id"];
|
|
2094
|
+
isOneToOne: false;
|
|
2095
|
+
referencedRelation: "delivery_milestones";
|
|
2096
|
+
referencedColumns: ["id"];
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
foreignKeyName: "delivery_deliverables_organization_id_fkey";
|
|
2100
|
+
columns: ["organization_id"];
|
|
2101
|
+
isOneToOne: false;
|
|
2102
|
+
referencedRelation: "organizations";
|
|
2103
|
+
referencedColumns: ["id"];
|
|
2104
|
+
}
|
|
2105
|
+
];
|
|
2106
|
+
};
|
|
2107
|
+
delivery_engagements: {
|
|
2108
|
+
Row: {
|
|
2109
|
+
actual_end_date: string | null;
|
|
2110
|
+
client_company_id: string | null;
|
|
2111
|
+
contract_value: number | null;
|
|
2112
|
+
created_at: string;
|
|
2113
|
+
deal_id: string | null;
|
|
2114
|
+
description: string | null;
|
|
2115
|
+
id: string;
|
|
2116
|
+
metadata: Json | null;
|
|
2117
|
+
name: string;
|
|
2118
|
+
organization_id: string;
|
|
2119
|
+
start_date: string | null;
|
|
2120
|
+
status: string;
|
|
2121
|
+
target_end_date: string | null;
|
|
2122
|
+
updated_at: string;
|
|
2123
|
+
};
|
|
2124
|
+
Insert: {
|
|
2125
|
+
actual_end_date?: string | null;
|
|
2126
|
+
client_company_id?: string | null;
|
|
2127
|
+
contract_value?: number | null;
|
|
2128
|
+
created_at?: string;
|
|
2129
|
+
deal_id?: string | null;
|
|
2130
|
+
description?: string | null;
|
|
2131
|
+
id?: string;
|
|
2132
|
+
metadata?: Json | null;
|
|
2133
|
+
name: string;
|
|
2134
|
+
organization_id: string;
|
|
2135
|
+
start_date?: string | null;
|
|
2136
|
+
status?: string;
|
|
2137
|
+
target_end_date?: string | null;
|
|
2138
|
+
updated_at?: string;
|
|
2139
|
+
};
|
|
2140
|
+
Update: {
|
|
2141
|
+
actual_end_date?: string | null;
|
|
2142
|
+
client_company_id?: string | null;
|
|
2143
|
+
contract_value?: number | null;
|
|
2144
|
+
created_at?: string;
|
|
2145
|
+
deal_id?: string | null;
|
|
2146
|
+
description?: string | null;
|
|
2147
|
+
id?: string;
|
|
2148
|
+
metadata?: Json | null;
|
|
2149
|
+
name?: string;
|
|
2150
|
+
organization_id?: string;
|
|
2151
|
+
start_date?: string | null;
|
|
2152
|
+
status?: string;
|
|
2153
|
+
target_end_date?: string | null;
|
|
2154
|
+
updated_at?: string;
|
|
2155
|
+
};
|
|
2156
|
+
Relationships: [
|
|
2157
|
+
{
|
|
2158
|
+
foreignKeyName: "delivery_engagements_client_company_id_fkey";
|
|
2159
|
+
columns: ["client_company_id"];
|
|
2160
|
+
isOneToOne: false;
|
|
2161
|
+
referencedRelation: "acq_companies";
|
|
2162
|
+
referencedColumns: ["id"];
|
|
2163
|
+
},
|
|
2164
|
+
{
|
|
2165
|
+
foreignKeyName: "delivery_engagements_deal_id_fkey";
|
|
2166
|
+
columns: ["deal_id"];
|
|
2167
|
+
isOneToOne: false;
|
|
2168
|
+
referencedRelation: "acq_deals";
|
|
2169
|
+
referencedColumns: ["id"];
|
|
2170
|
+
},
|
|
2171
|
+
{
|
|
2172
|
+
foreignKeyName: "delivery_engagements_organization_id_fkey";
|
|
2173
|
+
columns: ["organization_id"];
|
|
2174
|
+
isOneToOne: false;
|
|
2175
|
+
referencedRelation: "organizations";
|
|
2176
|
+
referencedColumns: ["id"];
|
|
2177
|
+
}
|
|
2178
|
+
];
|
|
2179
|
+
};
|
|
2180
|
+
delivery_milestones: {
|
|
2181
|
+
Row: {
|
|
2182
|
+
checklist: Json | null;
|
|
2183
|
+
completed_at: string | null;
|
|
2184
|
+
created_at: string;
|
|
2185
|
+
description: string | null;
|
|
2186
|
+
due_date: string | null;
|
|
2187
|
+
engagement_id: string;
|
|
2188
|
+
id: string;
|
|
2189
|
+
metadata: Json | null;
|
|
2190
|
+
name: string;
|
|
2191
|
+
organization_id: string;
|
|
2192
|
+
sequence: number;
|
|
2193
|
+
status: string;
|
|
2194
|
+
updated_at: string;
|
|
2195
|
+
};
|
|
2196
|
+
Insert: {
|
|
2197
|
+
checklist?: Json | null;
|
|
2198
|
+
completed_at?: string | null;
|
|
2199
|
+
created_at?: string;
|
|
2200
|
+
description?: string | null;
|
|
2201
|
+
due_date?: string | null;
|
|
2202
|
+
engagement_id: string;
|
|
2203
|
+
id?: string;
|
|
2204
|
+
metadata?: Json | null;
|
|
2205
|
+
name: string;
|
|
2206
|
+
organization_id: string;
|
|
2207
|
+
sequence?: number;
|
|
2208
|
+
status?: string;
|
|
2209
|
+
updated_at?: string;
|
|
2210
|
+
};
|
|
2211
|
+
Update: {
|
|
2212
|
+
checklist?: Json | null;
|
|
2213
|
+
completed_at?: string | null;
|
|
2214
|
+
created_at?: string;
|
|
2215
|
+
description?: string | null;
|
|
2216
|
+
due_date?: string | null;
|
|
2217
|
+
engagement_id?: string;
|
|
2218
|
+
id?: string;
|
|
2219
|
+
metadata?: Json | null;
|
|
2220
|
+
name?: string;
|
|
2221
|
+
organization_id?: string;
|
|
2222
|
+
sequence?: number;
|
|
2223
|
+
status?: string;
|
|
2224
|
+
updated_at?: string;
|
|
2225
|
+
};
|
|
2226
|
+
Relationships: [
|
|
2227
|
+
{
|
|
2228
|
+
foreignKeyName: "delivery_milestones_engagement_id_fkey";
|
|
2229
|
+
columns: ["engagement_id"];
|
|
2230
|
+
isOneToOne: false;
|
|
2231
|
+
referencedRelation: "delivery_engagements";
|
|
2232
|
+
referencedColumns: ["id"];
|
|
2233
|
+
},
|
|
2234
|
+
{
|
|
2235
|
+
foreignKeyName: "delivery_milestones_organization_id_fkey";
|
|
2236
|
+
columns: ["organization_id"];
|
|
2237
|
+
isOneToOne: false;
|
|
2238
|
+
referencedRelation: "organizations";
|
|
2239
|
+
referencedColumns: ["id"];
|
|
2240
|
+
}
|
|
2241
|
+
];
|
|
2242
|
+
};
|
|
2243
|
+
delivery_notes: {
|
|
2244
|
+
Row: {
|
|
2245
|
+
content: string;
|
|
2246
|
+
created_at: string;
|
|
2247
|
+
created_by: string | null;
|
|
2248
|
+
engagement_id: string;
|
|
2249
|
+
id: string;
|
|
2250
|
+
metadata: Json | null;
|
|
2251
|
+
occurred_at: string;
|
|
2252
|
+
organization_id: string;
|
|
2253
|
+
summary: string | null;
|
|
2254
|
+
type: string;
|
|
2255
|
+
};
|
|
2256
|
+
Insert: {
|
|
2257
|
+
content: string;
|
|
2258
|
+
created_at?: string;
|
|
2259
|
+
created_by?: string | null;
|
|
2260
|
+
engagement_id: string;
|
|
2261
|
+
id?: string;
|
|
2262
|
+
metadata?: Json | null;
|
|
2263
|
+
occurred_at?: string;
|
|
2264
|
+
organization_id: string;
|
|
2265
|
+
summary?: string | null;
|
|
2266
|
+
type?: string;
|
|
2267
|
+
};
|
|
2268
|
+
Update: {
|
|
2269
|
+
content?: string;
|
|
2270
|
+
created_at?: string;
|
|
2271
|
+
created_by?: string | null;
|
|
2272
|
+
engagement_id?: string;
|
|
2273
|
+
id?: string;
|
|
2274
|
+
metadata?: Json | null;
|
|
2275
|
+
occurred_at?: string;
|
|
2276
|
+
organization_id?: string;
|
|
2277
|
+
summary?: string | null;
|
|
2278
|
+
type?: string;
|
|
2279
|
+
};
|
|
2280
|
+
Relationships: [
|
|
2281
|
+
{
|
|
2282
|
+
foreignKeyName: "delivery_notes_created_by_fkey";
|
|
2283
|
+
columns: ["created_by"];
|
|
2284
|
+
isOneToOne: false;
|
|
2285
|
+
referencedRelation: "users";
|
|
2286
|
+
referencedColumns: ["id"];
|
|
2287
|
+
},
|
|
2288
|
+
{
|
|
2289
|
+
foreignKeyName: "delivery_notes_engagement_id_fkey";
|
|
2290
|
+
columns: ["engagement_id"];
|
|
2291
|
+
isOneToOne: false;
|
|
2292
|
+
referencedRelation: "delivery_engagements";
|
|
2293
|
+
referencedColumns: ["id"];
|
|
2294
|
+
},
|
|
2295
|
+
{
|
|
2296
|
+
foreignKeyName: "delivery_notes_organization_id_fkey";
|
|
2297
|
+
columns: ["organization_id"];
|
|
2298
|
+
isOneToOne: false;
|
|
2299
|
+
referencedRelation: "organizations";
|
|
2300
|
+
referencedColumns: ["id"];
|
|
2301
|
+
}
|
|
2302
|
+
];
|
|
2303
|
+
};
|
|
1994
2304
|
deployments: {
|
|
1995
2305
|
Row: {
|
|
1996
2306
|
compiled_docs: Json | null;
|
|
@@ -2922,11 +3232,162 @@ type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables
|
|
|
2922
3232
|
|
|
2923
3233
|
type SupabaseUserProfile = Tables<'users'>;
|
|
2924
3234
|
|
|
3235
|
+
/**
|
|
3236
|
+
* Action configuration for HITL tasks
|
|
3237
|
+
* Defines available user actions and their behavior
|
|
3238
|
+
*/
|
|
3239
|
+
interface ActionConfig {
|
|
3240
|
+
/** Unique action identifier (e.g., 'approve', 'retry', 'escalate') */
|
|
3241
|
+
id: string;
|
|
3242
|
+
/** Display label for UI button */
|
|
3243
|
+
label: string;
|
|
3244
|
+
/** Button variant/style */
|
|
3245
|
+
type: 'primary' | 'secondary' | 'danger' | 'outline';
|
|
3246
|
+
/** Tabler icon name (e.g., 'IconCheck', 'IconRefresh') */
|
|
3247
|
+
icon?: string;
|
|
3248
|
+
/** Button color (Mantine theme colors) */
|
|
3249
|
+
color?: string;
|
|
3250
|
+
/** Button variant (Mantine button variant, e.g., 'light', 'filled', 'outline') */
|
|
3251
|
+
variant?: string;
|
|
3252
|
+
/** Execution target (agent/workflow to invoke) */
|
|
3253
|
+
target?: {
|
|
3254
|
+
resourceType: 'agent' | 'workflow';
|
|
3255
|
+
resourceId: string;
|
|
3256
|
+
/**
|
|
3257
|
+
* Optional session ID for agent continuation.
|
|
3258
|
+
* If provided, invokes a new turn on the existing session instead of standalone execution.
|
|
3259
|
+
* Only valid when resourceType is 'agent'.
|
|
3260
|
+
*/
|
|
3261
|
+
sessionId?: string;
|
|
3262
|
+
};
|
|
3263
|
+
/** Form schema for collecting action-specific data */
|
|
3264
|
+
form?: FormSchema;
|
|
3265
|
+
/** Payload template for pre-filling forms */
|
|
3266
|
+
payloadTemplate?: unknown;
|
|
3267
|
+
/** Requires confirmation dialog */
|
|
3268
|
+
requiresConfirmation?: boolean;
|
|
3269
|
+
/** Confirmation message */
|
|
3270
|
+
confirmationMessage?: string;
|
|
3271
|
+
/** Help text / tooltip */
|
|
3272
|
+
description?: string;
|
|
3273
|
+
}
|
|
3274
|
+
|
|
2925
3275
|
/**
|
|
2926
3276
|
* Origin resource type - where an execution/task originated from.
|
|
2927
3277
|
* Used for audit trails and tracking execution lineage.
|
|
2928
3278
|
*/
|
|
2929
3279
|
type OriginResourceType = 'agent' | 'workflow' | 'scheduler' | 'api';
|
|
3280
|
+
/**
|
|
3281
|
+
* Origin tracking metadata - who/what created this execution/task.
|
|
3282
|
+
* Used by both TaskScheduler and CommandQueue for complete audit trails.
|
|
3283
|
+
*/
|
|
3284
|
+
interface OriginTracking {
|
|
3285
|
+
originExecutionId: string;
|
|
3286
|
+
originResourceType: OriginResourceType;
|
|
3287
|
+
originResourceId: string;
|
|
3288
|
+
}
|
|
3289
|
+
|
|
3290
|
+
/**
|
|
3291
|
+
* Command queue task with flexible action system
|
|
3292
|
+
*/
|
|
3293
|
+
interface Task extends OriginTracking {
|
|
3294
|
+
id: string;
|
|
3295
|
+
organizationId: string;
|
|
3296
|
+
actions: ActionConfig[];
|
|
3297
|
+
context: unknown;
|
|
3298
|
+
selectedAction?: string;
|
|
3299
|
+
actionPayload?: unknown;
|
|
3300
|
+
description?: string;
|
|
3301
|
+
priority: number;
|
|
3302
|
+
/** Optional checkpoint identifier for grouping related human approval tasks */
|
|
3303
|
+
humanCheckpoint?: string;
|
|
3304
|
+
status: TaskStatus;
|
|
3305
|
+
/**
|
|
3306
|
+
* Target resource tracking — mirrors origin columns.
|
|
3307
|
+
* Set when task is created; patchable to redirect execution to a different resource.
|
|
3308
|
+
*/
|
|
3309
|
+
targetResourceId?: string;
|
|
3310
|
+
targetResourceType?: 'agent' | 'workflow';
|
|
3311
|
+
/**
|
|
3312
|
+
* Execution ID for the action that runs AFTER user approval.
|
|
3313
|
+
* NULL until execution starts.
|
|
3314
|
+
*
|
|
3315
|
+
* Naming distinction:
|
|
3316
|
+
* - originExecutionId = Parent execution that CREATED the HITL task
|
|
3317
|
+
* - targetExecutionId = Child execution that RUNS AFTER user approval
|
|
3318
|
+
*/
|
|
3319
|
+
targetExecutionId?: string;
|
|
3320
|
+
createdAt: Date;
|
|
3321
|
+
completedAt?: Date;
|
|
3322
|
+
completedBy?: string;
|
|
3323
|
+
expiresAt?: Date;
|
|
3324
|
+
idempotencyKey?: string | null;
|
|
3325
|
+
}
|
|
3326
|
+
/**
|
|
3327
|
+
* Task status values
|
|
3328
|
+
* - pending: awaiting action
|
|
3329
|
+
* - processing: execution in progress after user approval
|
|
3330
|
+
* - completed: action was taken and execution succeeded
|
|
3331
|
+
* - failed: execution failed, task can be retried
|
|
3332
|
+
* - expired: timed out before action
|
|
3333
|
+
*/
|
|
3334
|
+
type TaskStatus = 'pending' | 'processing' | 'completed' | 'failed' | 'expired';
|
|
3335
|
+
/**
|
|
3336
|
+
* Parameters for patching mutable metadata on a task
|
|
3337
|
+
*/
|
|
3338
|
+
interface PatchTaskParams {
|
|
3339
|
+
humanCheckpoint?: string | null;
|
|
3340
|
+
description?: string;
|
|
3341
|
+
priority?: number;
|
|
3342
|
+
context?: Record<string, unknown>;
|
|
3343
|
+
actions?: unknown[];
|
|
3344
|
+
targetResourceId?: string | null;
|
|
3345
|
+
targetResourceType?: 'agent' | 'workflow' | null;
|
|
3346
|
+
targetExecutionId?: string;
|
|
3347
|
+
status?: 'pending' | 'failed' | 'completed';
|
|
3348
|
+
}
|
|
3349
|
+
|
|
3350
|
+
/**
|
|
3351
|
+
* Checkpoint list item for sidebar grouping
|
|
3352
|
+
* The id field contains the resourceId of the human checkpoint
|
|
3353
|
+
*/
|
|
3354
|
+
interface CheckpointListItem {
|
|
3355
|
+
/** Human checkpoint resourceId (or 'ungrouped' for tasks without checkpoint) */
|
|
3356
|
+
id: string;
|
|
3357
|
+
/** Display name (same as id, or "Ungrouped" for null) */
|
|
3358
|
+
name: string;
|
|
3359
|
+
/** Task count for this checkpoint */
|
|
3360
|
+
count: number;
|
|
3361
|
+
}
|
|
3362
|
+
/**
|
|
3363
|
+
* Status counts for pie chart display
|
|
3364
|
+
*/
|
|
3365
|
+
interface StatusCounts {
|
|
3366
|
+
pending: number;
|
|
3367
|
+
completed: number;
|
|
3368
|
+
expired: number;
|
|
3369
|
+
}
|
|
3370
|
+
/**
|
|
3371
|
+
* Priority counts for donut chart display
|
|
3372
|
+
*/
|
|
3373
|
+
interface PriorityCounts {
|
|
3374
|
+
critical: number;
|
|
3375
|
+
high: number;
|
|
3376
|
+
medium: number;
|
|
3377
|
+
low: number;
|
|
3378
|
+
}
|
|
3379
|
+
/**
|
|
3380
|
+
* Response from GET /command-queue/checkpoints endpoint
|
|
3381
|
+
*/
|
|
3382
|
+
interface CheckpointListResponse {
|
|
3383
|
+
checkpoints: CheckpointListItem[];
|
|
3384
|
+
/** Total tasks across all checkpoints */
|
|
3385
|
+
total: number;
|
|
3386
|
+
/** Breakdown by status for donut chart */
|
|
3387
|
+
statusCounts: StatusCounts;
|
|
3388
|
+
/** Breakdown by priority for donut chart */
|
|
3389
|
+
priorityCounts: PriorityCounts;
|
|
3390
|
+
}
|
|
2930
3391
|
|
|
2931
3392
|
/**
|
|
2932
3393
|
* Target for schedule execution - identifies what resource to execute.
|
|
@@ -4467,6 +4928,89 @@ declare const WS_RECONNECT_MAX_DELAY = 30000;
|
|
|
4467
4928
|
/** WebSocket reconnection: retries before showing error */
|
|
4468
4929
|
declare const WS_MAX_RETRIES_BEFORE_ERROR = 3;
|
|
4469
4930
|
|
|
4931
|
+
declare function useCommandQueue({ status, limit, offset, humanCheckpoint, timeRange, priorityMin, priorityMax, }?: {
|
|
4932
|
+
status?: TaskStatus;
|
|
4933
|
+
limit?: number;
|
|
4934
|
+
offset?: number;
|
|
4935
|
+
humanCheckpoint?: string;
|
|
4936
|
+
timeRange?: TimeRange;
|
|
4937
|
+
priorityMin?: number;
|
|
4938
|
+
priorityMax?: number;
|
|
4939
|
+
}): _tanstack_react_query.UseQueryResult<{
|
|
4940
|
+
createdAt: Date;
|
|
4941
|
+
completedAt: Date | undefined;
|
|
4942
|
+
expiresAt: Date | undefined;
|
|
4943
|
+
id: string;
|
|
4944
|
+
organizationId: string;
|
|
4945
|
+
actions: ActionConfig[];
|
|
4946
|
+
context: unknown;
|
|
4947
|
+
selectedAction?: string;
|
|
4948
|
+
actionPayload?: unknown;
|
|
4949
|
+
description?: string;
|
|
4950
|
+
priority: number;
|
|
4951
|
+
humanCheckpoint?: string;
|
|
4952
|
+
status: TaskStatus;
|
|
4953
|
+
targetResourceId?: string;
|
|
4954
|
+
targetResourceType?: "agent" | "workflow";
|
|
4955
|
+
targetExecutionId?: string;
|
|
4956
|
+
completedBy?: string;
|
|
4957
|
+
idempotencyKey?: string | null;
|
|
4958
|
+
originExecutionId: string;
|
|
4959
|
+
originResourceType: OriginResourceType;
|
|
4960
|
+
originResourceId: string;
|
|
4961
|
+
}[], Error>;
|
|
4962
|
+
|
|
4963
|
+
interface SubmitActionRequest {
|
|
4964
|
+
taskId: string;
|
|
4965
|
+
actionId: string;
|
|
4966
|
+
payload?: unknown;
|
|
4967
|
+
notes?: string;
|
|
4968
|
+
}
|
|
4969
|
+
interface OptimisticContext {
|
|
4970
|
+
previousData: Map<readonly unknown[], Task[] | undefined>;
|
|
4971
|
+
}
|
|
4972
|
+
interface ExecutionErrorDetails {
|
|
4973
|
+
message: string;
|
|
4974
|
+
type: string;
|
|
4975
|
+
severity: 'critical' | 'warning' | 'info';
|
|
4976
|
+
category: 'llm' | 'tool' | 'workflow' | 'agent' | 'validation' | 'system';
|
|
4977
|
+
details?: string;
|
|
4978
|
+
}
|
|
4979
|
+
interface SubmitActionResponse {
|
|
4980
|
+
task: unknown;
|
|
4981
|
+
execution?: {
|
|
4982
|
+
executionId: string;
|
|
4983
|
+
success: boolean;
|
|
4984
|
+
data?: unknown;
|
|
4985
|
+
error?: ExecutionErrorDetails;
|
|
4986
|
+
};
|
|
4987
|
+
}
|
|
4988
|
+
declare function useSubmitAction(): _tanstack_react_query.UseMutationResult<SubmitActionResponse, Error, SubmitActionRequest, OptimisticContext>;
|
|
4989
|
+
|
|
4990
|
+
declare function useDeleteTask(): _tanstack_react_query.UseMutationResult<void, Error, string, {
|
|
4991
|
+
previousData: Map<readonly unknown[], Task[] | undefined>;
|
|
4992
|
+
}>;
|
|
4993
|
+
|
|
4994
|
+
interface UseCommandQueueTotalsOptions {
|
|
4995
|
+
timeRange?: TimeRange;
|
|
4996
|
+
priorityMin?: number;
|
|
4997
|
+
priorityMax?: number;
|
|
4998
|
+
/** When set, priorityCounts are scoped to this status only */
|
|
4999
|
+
status?: 'pending' | 'completed' | 'expired';
|
|
5000
|
+
}
|
|
5001
|
+
/**
|
|
5002
|
+
* Fetches command queue totals and checkpoint groupings
|
|
5003
|
+
*
|
|
5004
|
+
* Returns distinct human checkpoints with task counts and status breakdown.
|
|
5005
|
+
* Used for sidebar grouping and donut charts (true totals, not paginated).
|
|
5006
|
+
*/
|
|
5007
|
+
declare function useCommandQueueTotals({ timeRange, priorityMin, priorityMax, status }?: UseCommandQueueTotalsOptions): _tanstack_react_query.UseQueryResult<CheckpointListResponse, Error>;
|
|
5008
|
+
|
|
5009
|
+
declare function usePatchTask(): _tanstack_react_query.UseMutationResult<Task, Error, {
|
|
5010
|
+
taskId: string;
|
|
5011
|
+
params: PatchTaskParams;
|
|
5012
|
+
}, unknown>;
|
|
5013
|
+
|
|
4470
5014
|
/**
|
|
4471
5015
|
* Hook to fetch sessions list with optional filtering.
|
|
4472
5016
|
*/
|
|
@@ -4526,5 +5070,5 @@ declare function useSessionWebSocket(sessionId: string, apiUrl: string): {
|
|
|
4526
5070
|
lastTokenUsage: SessionTokenUsage | null;
|
|
4527
5071
|
};
|
|
4528
5072
|
|
|
4529
|
-
export { OperationsService, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, createUseFeatureAccess, executionsKeys, observabilityKeys, scheduleKeys, sessionsKeys, sortData, useActivities, useActivityTrend, useArchiveSession, useBatchDelete, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateSchedule, useCreateSession, useDashboardMetrics, useDeleteExecution, useDeleteSchedule, useDeleteSession, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecution, useExecutionHealth, useExecutionLogs, useExecutions, useGetExecutionHistory, useGetSchedule, useListSchedules, useMarkAllAsRead, useMarkAsRead, useNotificationCount, useNotifications, usePaginationState, usePauseSchedule, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResources, useResumeSchedule, useRetryExecution, useSSEConnection, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useSuccessNotification, useTableSelection, useTableSort, useTopFailingResources, useUnresolveError, useUpdateAnchor, useUpdateSchedule, useWarningNotification };
|
|
4530
|
-
export type { ActivityTrendResponse, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, CostBreakdownItem, CreateScheduleInput, CreateSessionResponse, DeleteExecutionParams, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsPageResponse, FailingResource, GetMessagesResponse, ListActivitiesResponse, ListSchedulesFilters, ListSchedulesResponse, MessageEvent, MessageType, ResourcesResponse, RetryExecutionParams, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, TaskSchedule, TopFailingResourcesParams, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseExecutionHealthParams, UseExecutionLogsParams, UseSSEConnectionOptions, WebSocketState };
|
|
5073
|
+
export { OperationsService, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, createUseFeatureAccess, executionsKeys, observabilityKeys, scheduleKeys, sessionsKeys, sortData, useActivities, useActivityTrend, useArchiveSession, useBatchDelete, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCommandQueue, useCommandQueueTotals, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateSchedule, useCreateSession, useDashboardMetrics, useDeleteExecution, useDeleteSchedule, useDeleteSession, useDeleteTask, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecution, useExecutionHealth, useExecutionLogs, useExecutions, useGetExecutionHistory, useGetSchedule, useListSchedules, useMarkAllAsRead, useMarkAsRead, useNotificationCount, useNotifications, usePaginationState, usePatchTask, usePauseSchedule, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResources, useResumeSchedule, useRetryExecution, useSSEConnection, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTopFailingResources, useUnresolveError, useUpdateAnchor, useUpdateSchedule, useWarningNotification };
|
|
5074
|
+
export type { ActivityTrendResponse, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, CostBreakdownItem, CreateScheduleInput, CreateSessionResponse, DeleteExecutionParams, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsPageResponse, FailingResource, GetMessagesResponse, ListActivitiesResponse, ListSchedulesFilters, ListSchedulesResponse, MessageEvent, MessageType, ResourcesResponse, RetryExecutionParams, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, SubmitActionRequest, SubmitActionResponse, TaskSchedule, TopFailingResourcesParams, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseExecutionHealthParams, UseExecutionLogsParams, UseSSEConnectionOptions, WebSocketState };
|
package/dist/hooks/published.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OperationsService, SessionIdParamSchema, ExecutionIdParamsSchema, WebSocketSessionTurnSchema } from '../chunk-
|
|
2
|
-
export { OperationsService, createUseFeatureAccess, executionsKeys, observabilityKeys, scheduleKeys, sortData, useActivities, useActivityTrend, useBatchDelete, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateSchedule, useDashboardMetrics, useDeleteExecution, useDeleteSchedule, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecution, useExecutionHealth, useExecutionLogs, useExecutions, useGetExecutionHistory, useGetSchedule, useListSchedules, useMarkAllAsRead, useMarkAsRead, useNotificationCount, useNotifications, usePaginationState, usePauseSchedule, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResources, useResumeSchedule, useRetryExecution, useSSEConnection, useSortedData, useSuccessNotification, useTableSelection, useTableSort, useTopFailingResources, useUnresolveError, useUpdateAnchor, useUpdateSchedule, useWarningNotification } from '../chunk-
|
|
1
|
+
import { OperationsService, SessionIdParamSchema, ExecutionIdParamsSchema, WebSocketSessionTurnSchema } from '../chunk-G4TAF3T6.js';
|
|
2
|
+
export { OperationsService, createUseFeatureAccess, executionsKeys, observabilityKeys, scheduleKeys, sortData, useActivities, useActivityTrend, useBatchDelete, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCommandQueue, useCommandQueueTotals, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateSchedule, useDashboardMetrics, useDeleteExecution, useDeleteSchedule, useDeleteTask, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecution, useExecutionHealth, useExecutionLogs, useExecutions, useGetExecutionHistory, useGetSchedule, useListSchedules, useMarkAllAsRead, useMarkAsRead, useNotificationCount, useNotifications, usePaginationState, usePatchTask, usePauseSchedule, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResources, useResumeSchedule, useRetryExecution, useSSEConnection, useSortedData, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTopFailingResources, useUnresolveError, useUpdateAnchor, useUpdateSchedule, useWarningNotification } from '../chunk-G4TAF3T6.js';
|
|
3
3
|
import '../chunk-JGJSZ3UE.js';
|
|
4
4
|
import '../chunk-TIRMFDM4.js';
|
|
5
5
|
import '../chunk-4VGWQ5AN.js';
|
|
@@ -7,6 +7,7 @@ import '../chunk-FWZJH3TL.js';
|
|
|
7
7
|
import { useElevasisServices } from '../chunk-KA7LO7U5.js';
|
|
8
8
|
import { useOrganization } from '../chunk-DD3CCMCZ.js';
|
|
9
9
|
import { useAuthContext } from '../chunk-7PLEQFHO.js';
|
|
10
|
+
import '../chunk-MLKGABMK.js';
|
|
10
11
|
import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
|
|
11
12
|
import { useState, useRef, useCallback, useEffect } from 'react';
|
|
12
13
|
|
package/dist/index.css
CHANGED
|
@@ -385,3 +385,65 @@
|
|
|
385
385
|
transform: none;
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
|
+
|
|
389
|
+
/* src/theme/custom.css */
|
|
390
|
+
.mantine-Accordion-control:hover {
|
|
391
|
+
background-color: var(--color-surface-hover);
|
|
392
|
+
}
|
|
393
|
+
.mantine-Menu-item:hover:not([data-disabled]) {
|
|
394
|
+
background-color: var(--color-surface-hover);
|
|
395
|
+
}
|
|
396
|
+
.mantine-Select-option:hover {
|
|
397
|
+
background-color: var(--color-surface-hover) !important;
|
|
398
|
+
}
|
|
399
|
+
.mantine-Tabs-tab:hover {
|
|
400
|
+
background-color: var(--color-surface-hover);
|
|
401
|
+
}
|
|
402
|
+
.mantine-Pagination-control:not([data-active]) {
|
|
403
|
+
background: var(--color-surface);
|
|
404
|
+
}
|
|
405
|
+
::-webkit-scrollbar {
|
|
406
|
+
width: 5px;
|
|
407
|
+
height: 5px;
|
|
408
|
+
}
|
|
409
|
+
::-webkit-scrollbar-track {
|
|
410
|
+
background: transparent;
|
|
411
|
+
}
|
|
412
|
+
::-webkit-scrollbar-thumb {
|
|
413
|
+
background: color-mix(in srgb, var(--color-text-subtle) 50%, var(--color-border));
|
|
414
|
+
border-radius: 4px;
|
|
415
|
+
}
|
|
416
|
+
::-webkit-scrollbar-thumb:hover {
|
|
417
|
+
background: var(--color-text-subtle);
|
|
418
|
+
}
|
|
419
|
+
.mantine-Skeleton-root[data-visible]::after {
|
|
420
|
+
background-color: color-mix(in srgb, var(--color-text-subtle) 30%, var(--color-surface)) !important;
|
|
421
|
+
}
|
|
422
|
+
.mantine-Checkbox-input {
|
|
423
|
+
background-color: var(--color-surface);
|
|
424
|
+
border-color: var(--color-border);
|
|
425
|
+
}
|
|
426
|
+
.mantine-Checkbox-input:checked {
|
|
427
|
+
background-color: var(--color-primary);
|
|
428
|
+
border-color: var(--color-primary);
|
|
429
|
+
}
|
|
430
|
+
.mantine-Switch-root:has(input:not(:checked)) .mantine-Switch-track {
|
|
431
|
+
background-color: var(--color-surface-hover);
|
|
432
|
+
border-color: var(--color-border);
|
|
433
|
+
}
|
|
434
|
+
.mantine-Timeline-root {
|
|
435
|
+
--tl-color: var(--color-primary);
|
|
436
|
+
}
|
|
437
|
+
.mantine-Timeline-item {
|
|
438
|
+
--item-border-color: var(--color-border);
|
|
439
|
+
}
|
|
440
|
+
.mantine-Timeline-itemBullet {
|
|
441
|
+
border-color: var(--color-border);
|
|
442
|
+
}
|
|
443
|
+
.mantine-Timeline-itemBullet:where([data-with-child]) {
|
|
444
|
+
background-color: var(--color-primary);
|
|
445
|
+
border-color: var(--color-primary);
|
|
446
|
+
}
|
|
447
|
+
.recharts-surface:focus {
|
|
448
|
+
outline: none;
|
|
449
|
+
}
|