@elevasis/ui 2.64.1 → 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 +4 -4
- package/dist/auth/index.js +4 -4
- package/dist/charts/index.js +4 -4
- package/dist/{chunk-PGAA4G3T.js → chunk-3WVZRN37.js} +40 -17
- 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-FVOMKZ7S.js → chunk-Y6I3IC45.js} +3 -6
- package/dist/components/index.d.ts +52 -0
- package/dist/components/index.js +4 -4
- package/dist/components/navigation/index.js +4 -4
- package/dist/execution/index.js +2 -2
- package/dist/features/auth/index.d.ts +87 -2
- package/dist/features/auth/index.js +142 -7
- package/dist/features/clients/index.js +4 -4
- package/dist/features/crm/index.d.ts +20 -0
- package/dist/features/crm/index.js +4 -4
- package/dist/features/dashboard/index.js +4 -4
- package/dist/features/delivery/index.d.ts +20 -0
- package/dist/features/delivery/index.js +4 -4
- package/dist/features/knowledge/index.js +4 -4
- package/dist/features/lead-gen/index.js +4 -4
- package/dist/features/monitoring/index.js +4 -4
- package/dist/features/monitoring/requests/index.js +5 -5
- package/dist/features/operations/index.d.ts +36 -1
- package/dist/features/operations/index.js +4 -4
- package/dist/features/public-agent-chat/index.js +1 -1
- package/dist/features/settings/index.d.ts +20 -0
- package/dist/features/settings/index.js +4 -4
- package/dist/hooks/access/index.js +4 -4
- package/dist/hooks/delivery/index.d.ts +20 -0
- package/dist/hooks/delivery/index.js +4 -4
- package/dist/hooks/index.d.ts +53 -1
- package/dist/hooks/index.js +4 -4
- package/dist/hooks/published.d.ts +53 -1
- package/dist/hooks/published.js +4 -4
- package/dist/index.d.ts +53 -1
- package/dist/index.js +4 -4
- package/dist/initialization/index.d.ts +34 -0
- package/dist/knowledge/index.js +5 -5
- package/dist/layout/index.js +4 -4
- package/dist/organization/index.d.ts +14 -0
- package/dist/organization/index.js +4 -4
- package/dist/profile/index.d.ts +20 -0
- package/dist/provider/index.d.ts +20 -0
- package/dist/provider/index.js +4 -4
- package/dist/provider/published.d.ts +20 -0
- package/dist/provider/published.js +4 -4
- 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 +180 -0
- package/dist/utils/index.js +2 -2
- package/package.json +6 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtectedRoute, AppearanceContext,
|
|
2
|
-
export { AccessGuard } from '../../chunk-
|
|
1
|
+
import { ProtectedRoute, AppearanceContext, useAppearance, AppShellError } from '../../chunk-3WVZRN37.js';
|
|
2
|
+
export { AccessGuard } from '../../chunk-3WVZRN37.js';
|
|
3
3
|
import '../../chunk-4OEVLV66.js';
|
|
4
4
|
import '../../chunk-RBGVNPA6.js';
|
|
5
5
|
import '../../chunk-ZTWA5H77.js';
|
|
@@ -17,19 +17,22 @@ import '../../chunk-JFBZ6XDW.js';
|
|
|
17
17
|
import '../../chunk-2IFYDILW.js';
|
|
18
18
|
import '../../chunk-Q7DJKLEN.js';
|
|
19
19
|
import '../../chunk-HENXLGVD.js';
|
|
20
|
-
import '../../chunk-
|
|
20
|
+
import '../../chunk-BLXJEIQS.js';
|
|
21
21
|
import '../../chunk-RNP5R5I3.js';
|
|
22
22
|
export { useUserProfile } from '../../chunk-EIXSQONC.js';
|
|
23
23
|
import '../../chunk-I7BZVVVU.js';
|
|
24
|
-
import '../../chunk-
|
|
25
|
-
import '../../chunk-
|
|
24
|
+
import '../../chunk-Y6I3IC45.js';
|
|
25
|
+
import '../../chunk-6SSQGWK7.js';
|
|
26
26
|
import '../../chunk-BI5VDO2K.js';
|
|
27
27
|
import '../../chunk-MQZE7SUI.js';
|
|
28
28
|
import '../../chunk-TVTSASST.js';
|
|
29
29
|
import '../../chunk-BRJ3QZ4E.js';
|
|
30
30
|
import '../../chunk-I2KLQ2HA.js';
|
|
31
|
-
import { useContext, useState, useRef,
|
|
31
|
+
import { useContext, useEffect, useState, useRef, useCallback } from 'react';
|
|
32
32
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
33
|
+
import { useRouter, useSearch } from '@tanstack/react-router';
|
|
34
|
+
import { useAuth } from '@workos-inc/authkit-react';
|
|
35
|
+
import { useMantineColorScheme, Container, Center, Paper, Stack, Text, Button, Image } from '@mantine/core';
|
|
33
36
|
|
|
34
37
|
function FullScreenLoader({ hiding, onHidden }) {
|
|
35
38
|
const { background, loader } = useAppearance();
|
|
@@ -139,5 +142,137 @@ function AuthRedirectLoadingScreen({
|
|
|
139
142
|
}
|
|
140
143
|
);
|
|
141
144
|
}
|
|
145
|
+
function getStringSearchParam(value) {
|
|
146
|
+
return typeof value === "string" ? value : void 0;
|
|
147
|
+
}
|
|
148
|
+
function getAuthModeSearchParam(value) {
|
|
149
|
+
return value === "signin" || value === "signup" ? value : void 0;
|
|
150
|
+
}
|
|
151
|
+
function validateLoginSearch(search) {
|
|
152
|
+
return {
|
|
153
|
+
returnTo: getStringSearchParam(search.returnTo),
|
|
154
|
+
context: getStringSearchParam(search.context),
|
|
155
|
+
invitation_token: getStringSearchParam(search.invitation_token),
|
|
156
|
+
mode: getAuthModeSearchParam(search.mode)
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
function LoginScreen({ lightModeLogo, darkModeLogo, appName, appConfig }) {
|
|
160
|
+
const { user, isLoading, signIn, signUp } = useAuth();
|
|
161
|
+
const { colorScheme } = useMantineColorScheme();
|
|
162
|
+
const router = useRouter();
|
|
163
|
+
const {
|
|
164
|
+
returnTo,
|
|
165
|
+
context,
|
|
166
|
+
invitation_token: invitationToken,
|
|
167
|
+
mode
|
|
168
|
+
} = useSearch({
|
|
169
|
+
strict: false
|
|
170
|
+
});
|
|
171
|
+
const { background, loader } = useAppearance();
|
|
172
|
+
const workosOrganizationId = appConfig?.workosOrganizationId;
|
|
173
|
+
useEffect(() => {
|
|
174
|
+
if (invitationToken) {
|
|
175
|
+
const startAuth = mode === "signin" ? signIn : signUp;
|
|
176
|
+
startAuth({
|
|
177
|
+
invitationToken,
|
|
178
|
+
state: returnTo ? { returnTo } : void 0,
|
|
179
|
+
...workosOrganizationId && { organizationId: workosOrganizationId }
|
|
180
|
+
});
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
if (context) {
|
|
184
|
+
signIn({
|
|
185
|
+
context,
|
|
186
|
+
state: returnTo ? { returnTo } : void 0,
|
|
187
|
+
...workosOrganizationId && { organizationId: workosOrganizationId }
|
|
188
|
+
});
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
}, [invitationToken, context, mode, signIn, signUp, returnTo, workosOrganizationId]);
|
|
192
|
+
useEffect(() => {
|
|
193
|
+
if (user && !isLoading) {
|
|
194
|
+
const destination = returnTo || "/";
|
|
195
|
+
router.navigate({ to: destination });
|
|
196
|
+
}
|
|
197
|
+
}, [user, isLoading, router, returnTo]);
|
|
198
|
+
if (invitationToken) {
|
|
199
|
+
return /* @__PURE__ */ jsx(AuthRedirectLoadingScreen, { testId: "invitation-redirect-loading" });
|
|
200
|
+
}
|
|
201
|
+
if (user) {
|
|
202
|
+
return /* @__PURE__ */ jsx(Container, { size: "sm", style: { minHeight: "100vh", display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsx(Center, { style: { width: "100%" }, children: /* @__PURE__ */ jsx(Paper, { shadow: "sm", style: { minWidth: "400px" }, children: /* @__PURE__ */ jsxs(Stack, { align: "center", children: [
|
|
203
|
+
/* @__PURE__ */ jsx(Text, { size: "lg", fw: 600, style: { fontFamily: "var(--mantine-font-family-headings)" }, children: "Welcome back!" }),
|
|
204
|
+
/* @__PURE__ */ jsxs(Text, { c: "dimmed", ta: "center", children: [
|
|
205
|
+
"You are already signed in as ",
|
|
206
|
+
user.email
|
|
207
|
+
] }),
|
|
208
|
+
/* @__PURE__ */ jsx(Button, { onClick: () => router.navigate({ to: "/" }), variant: "filled", children: "Continue to App" })
|
|
209
|
+
] }) }) }) });
|
|
210
|
+
}
|
|
211
|
+
if (isLoading) {
|
|
212
|
+
return /* @__PURE__ */ jsxs(
|
|
213
|
+
"div",
|
|
214
|
+
{
|
|
215
|
+
style: {
|
|
216
|
+
height: "100vh",
|
|
217
|
+
display: "flex",
|
|
218
|
+
alignItems: "center",
|
|
219
|
+
justifyContent: "center",
|
|
220
|
+
backgroundColor: "var(--color-background)",
|
|
221
|
+
position: "relative"
|
|
222
|
+
},
|
|
223
|
+
children: [
|
|
224
|
+
background,
|
|
225
|
+
/* @__PURE__ */ jsx("div", { style: { zIndex: 1 }, children: loader })
|
|
226
|
+
]
|
|
227
|
+
}
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
return /* @__PURE__ */ jsxs(
|
|
231
|
+
"div",
|
|
232
|
+
{
|
|
233
|
+
style: {
|
|
234
|
+
height: "100vh",
|
|
235
|
+
display: "flex",
|
|
236
|
+
alignItems: "center",
|
|
237
|
+
justifyContent: "center",
|
|
238
|
+
backgroundColor: "var(--color-background)",
|
|
239
|
+
position: "relative"
|
|
240
|
+
},
|
|
241
|
+
children: [
|
|
242
|
+
background,
|
|
243
|
+
/* @__PURE__ */ jsx(Center, { style: { width: "100%", zIndex: 1 }, children: /* @__PURE__ */ jsx(Paper, { shadow: "sm", style: { minWidth: "400px" }, children: /* @__PURE__ */ jsxs(Stack, { align: "center", children: [
|
|
244
|
+
/* @__PURE__ */ jsx(
|
|
245
|
+
Image,
|
|
246
|
+
{
|
|
247
|
+
src: colorScheme === "dark" ? darkModeLogo : lightModeLogo,
|
|
248
|
+
alt: `${appName} Logo`,
|
|
249
|
+
h: 50,
|
|
250
|
+
w: "auto",
|
|
251
|
+
fit: "contain"
|
|
252
|
+
}
|
|
253
|
+
),
|
|
254
|
+
/* @__PURE__ */ jsxs(Text, { size: "xl", fw: 600, style: { fontFamily: "var(--mantine-font-family-headings)" }, children: [
|
|
255
|
+
"Sign In to ",
|
|
256
|
+
appName
|
|
257
|
+
] }),
|
|
258
|
+
/* @__PURE__ */ jsx(
|
|
259
|
+
Button,
|
|
260
|
+
{
|
|
261
|
+
onClick: () => signIn({
|
|
262
|
+
state: returnTo ? { returnTo } : void 0,
|
|
263
|
+
...workosOrganizationId && { organizationId: workosOrganizationId }
|
|
264
|
+
}),
|
|
265
|
+
variant: "filled",
|
|
266
|
+
size: "md",
|
|
267
|
+
fullWidth: true,
|
|
268
|
+
children: "Sign In"
|
|
269
|
+
}
|
|
270
|
+
),
|
|
271
|
+
/* @__PURE__ */ jsx(Text, { c: "dimmed", ta: "center", size: "sm", children: "Powered by WorkOS for enterprise-grade security" })
|
|
272
|
+
] }) }) })
|
|
273
|
+
]
|
|
274
|
+
}
|
|
275
|
+
);
|
|
276
|
+
}
|
|
142
277
|
|
|
143
|
-
export { AuthRedirectLoadingScreen, ProtectedRoute2 as ProtectedRoute };
|
|
278
|
+
export { AuthRedirectLoadingScreen, LoginScreen, ProtectedRoute2 as ProtectedRoute, validateLoginSearch };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useClientStatus, StatCard, EmptyState, useCreateClient, CustomModal, useUpdateClient, useDeleteClient, usePaginationState, useClients, SubshellContentContainer, PageContainer, PageTitleCaption, FilterBar, CenteredErrorState, useClient, showApiErrorNotification } from '../../chunk-
|
|
1
|
+
import { useClientStatus, StatCard, EmptyState, useCreateClient, CustomModal, useUpdateClient, useDeleteClient, usePaginationState, useClients, SubshellContentContainer, PageContainer, PageTitleCaption, FilterBar, CenteredErrorState, useClient, showApiErrorNotification } from '../../chunk-3WVZRN37.js';
|
|
2
2
|
import '../../chunk-4OEVLV66.js';
|
|
3
3
|
import '../../chunk-RBGVNPA6.js';
|
|
4
4
|
import '../../chunk-ZTWA5H77.js';
|
|
@@ -16,12 +16,12 @@ import '../../chunk-JFBZ6XDW.js';
|
|
|
16
16
|
import '../../chunk-2IFYDILW.js';
|
|
17
17
|
import '../../chunk-Q7DJKLEN.js';
|
|
18
18
|
import '../../chunk-HENXLGVD.js';
|
|
19
|
-
import '../../chunk-
|
|
19
|
+
import '../../chunk-BLXJEIQS.js';
|
|
20
20
|
import '../../chunk-RNP5R5I3.js';
|
|
21
21
|
import '../../chunk-EIXSQONC.js';
|
|
22
22
|
import { PAGE_SIZE_DEFAULT, formatTimeAgo } from '../../chunk-I7BZVVVU.js';
|
|
23
|
-
import '../../chunk-
|
|
24
|
-
import '../../chunk-
|
|
23
|
+
import '../../chunk-Y6I3IC45.js';
|
|
24
|
+
import '../../chunk-6SSQGWK7.js';
|
|
25
25
|
import '../../chunk-BI5VDO2K.js';
|
|
26
26
|
import '../../chunk-MQZE7SUI.js';
|
|
27
27
|
import { UuidSchema } from '../../chunk-TVTSASST.js';
|
|
@@ -2794,6 +2794,7 @@ type Database = {
|
|
|
2794
2794
|
deleted_at: string | null;
|
|
2795
2795
|
ended_at: string | null;
|
|
2796
2796
|
memory_snapshot: Json;
|
|
2797
|
+
memory_version: number;
|
|
2797
2798
|
metadata: Json | null;
|
|
2798
2799
|
organization_id: string;
|
|
2799
2800
|
resource_id: string;
|
|
@@ -2810,6 +2811,7 @@ type Database = {
|
|
|
2810
2811
|
deleted_at?: string | null;
|
|
2811
2812
|
ended_at?: string | null;
|
|
2812
2813
|
memory_snapshot: Json;
|
|
2814
|
+
memory_version?: number;
|
|
2813
2815
|
metadata?: Json | null;
|
|
2814
2816
|
organization_id: string;
|
|
2815
2817
|
resource_id: string;
|
|
@@ -2826,6 +2828,7 @@ type Database = {
|
|
|
2826
2828
|
deleted_at?: string | null;
|
|
2827
2829
|
ended_at?: string | null;
|
|
2828
2830
|
memory_snapshot?: Json;
|
|
2831
|
+
memory_version?: number;
|
|
2829
2832
|
metadata?: Json | null;
|
|
2830
2833
|
organization_id?: string;
|
|
2831
2834
|
resource_id?: string;
|
|
@@ -3163,9 +3166,14 @@ type Database = {
|
|
|
3163
3166
|
p_session_id: string;
|
|
3164
3167
|
};
|
|
3165
3168
|
Returns: {
|
|
3169
|
+
context_window_size: number;
|
|
3166
3170
|
created_at: string;
|
|
3171
|
+
cumulative_input_tokens: number;
|
|
3172
|
+
cumulative_output_tokens: number;
|
|
3173
|
+
deleted_at: string;
|
|
3167
3174
|
ended_at: string;
|
|
3168
3175
|
memory_snapshot: Json;
|
|
3176
|
+
memory_version: number;
|
|
3169
3177
|
metadata: Json;
|
|
3170
3178
|
organization_id: string;
|
|
3171
3179
|
resource_id: string;
|
|
@@ -3207,6 +3215,18 @@ type Database = {
|
|
|
3207
3215
|
};
|
|
3208
3216
|
Returns: boolean;
|
|
3209
3217
|
};
|
|
3218
|
+
increment_session_tokens: {
|
|
3219
|
+
Args: {
|
|
3220
|
+
p_input_tokens: number;
|
|
3221
|
+
p_output_tokens: number;
|
|
3222
|
+
p_session_id: string;
|
|
3223
|
+
};
|
|
3224
|
+
Returns: {
|
|
3225
|
+
context_window_size: number;
|
|
3226
|
+
cumulative_input_tokens: number;
|
|
3227
|
+
cumulative_output_tokens: number;
|
|
3228
|
+
}[];
|
|
3229
|
+
};
|
|
3210
3230
|
is_org_member: {
|
|
3211
3231
|
Args: {
|
|
3212
3232
|
org_id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ActivityFeedWidget, CRM_ITEMS, CompanyDetailPage, ContactDetailPage, ConversationThread, CrmOverview, CrmSettingsPage, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, DEAL_STAGE_COLORS, DEAL_STAGE_OPTIONS, DealDetailPage, DealsListPage, MetricsStrip, MyTasksPanel, PIPELINE_FUNNEL_ORDER, PipelineFunnelWidget, QuickCreateActions, SAVED_VIEW_PRESETS, SavedViewsPanel, crmManifest, crmPrioritySettingsKeys, formatDealStageLabel, useCrmPipelineSummary, useCrmPrioritySettings, useCrmQuickMetrics, useRecentCrmActivity, useResetCrmPrioritySettings, useUpdateCrmPrioritySettings } from '../../chunk-
|
|
1
|
+
export { ActivityFeedWidget, CRM_ITEMS, CompanyDetailPage, ContactDetailPage, ConversationThread, CrmOverview, CrmSettingsPage, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, DEAL_STAGE_COLORS, DEAL_STAGE_OPTIONS, DealDetailPage, DealsListPage, MetricsStrip, MyTasksPanel, PIPELINE_FUNNEL_ORDER, PipelineFunnelWidget, QuickCreateActions, SAVED_VIEW_PRESETS, SavedViewsPanel, crmManifest, crmPrioritySettingsKeys, formatDealStageLabel, useCrmPipelineSummary, useCrmPrioritySettings, useCrmQuickMetrics, useRecentCrmActivity, useResetCrmPrioritySettings, useUpdateCrmPrioritySettings } from '../../chunk-3WVZRN37.js';
|
|
2
2
|
import '../../chunk-4OEVLV66.js';
|
|
3
3
|
import '../../chunk-RBGVNPA6.js';
|
|
4
4
|
import '../../chunk-ZTWA5H77.js';
|
|
@@ -16,12 +16,12 @@ import '../../chunk-JFBZ6XDW.js';
|
|
|
16
16
|
import '../../chunk-2IFYDILW.js';
|
|
17
17
|
import '../../chunk-Q7DJKLEN.js';
|
|
18
18
|
import '../../chunk-HENXLGVD.js';
|
|
19
|
-
import '../../chunk-
|
|
19
|
+
import '../../chunk-BLXJEIQS.js';
|
|
20
20
|
import '../../chunk-RNP5R5I3.js';
|
|
21
21
|
import '../../chunk-EIXSQONC.js';
|
|
22
22
|
import '../../chunk-I7BZVVVU.js';
|
|
23
|
-
import '../../chunk-
|
|
24
|
-
import '../../chunk-
|
|
23
|
+
import '../../chunk-Y6I3IC45.js';
|
|
24
|
+
import '../../chunk-6SSQGWK7.js';
|
|
25
25
|
import '../../chunk-BI5VDO2K.js';
|
|
26
26
|
import '../../chunk-MQZE7SUI.js';
|
|
27
27
|
import '../../chunk-TVTSASST.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Dashboard, DashboardOperationsOverview, OperationsOverview, RecentExecutionsByResource, ResourceOverview, UnresolvedErrorsTeaser } from '../../chunk-
|
|
1
|
+
export { Dashboard, DashboardOperationsOverview, OperationsOverview, RecentExecutionsByResource, ResourceOverview, UnresolvedErrorsTeaser } from '../../chunk-3WVZRN37.js';
|
|
2
2
|
import '../../chunk-4OEVLV66.js';
|
|
3
3
|
import '../../chunk-RBGVNPA6.js';
|
|
4
4
|
import '../../chunk-ZTWA5H77.js';
|
|
@@ -16,12 +16,12 @@ import '../../chunk-JFBZ6XDW.js';
|
|
|
16
16
|
import '../../chunk-2IFYDILW.js';
|
|
17
17
|
import '../../chunk-Q7DJKLEN.js';
|
|
18
18
|
import '../../chunk-HENXLGVD.js';
|
|
19
|
-
import '../../chunk-
|
|
19
|
+
import '../../chunk-BLXJEIQS.js';
|
|
20
20
|
import '../../chunk-RNP5R5I3.js';
|
|
21
21
|
import '../../chunk-EIXSQONC.js';
|
|
22
22
|
import '../../chunk-I7BZVVVU.js';
|
|
23
|
-
import '../../chunk-
|
|
24
|
-
import '../../chunk-
|
|
23
|
+
import '../../chunk-Y6I3IC45.js';
|
|
24
|
+
import '../../chunk-6SSQGWK7.js';
|
|
25
25
|
import '../../chunk-BI5VDO2K.js';
|
|
26
26
|
import '../../chunk-MQZE7SUI.js';
|
|
27
27
|
import '../../chunk-TVTSASST.js';
|
|
@@ -2745,6 +2745,7 @@ type Database = {
|
|
|
2745
2745
|
deleted_at: string | null;
|
|
2746
2746
|
ended_at: string | null;
|
|
2747
2747
|
memory_snapshot: Json;
|
|
2748
|
+
memory_version: number;
|
|
2748
2749
|
metadata: Json | null;
|
|
2749
2750
|
organization_id: string;
|
|
2750
2751
|
resource_id: string;
|
|
@@ -2761,6 +2762,7 @@ type Database = {
|
|
|
2761
2762
|
deleted_at?: string | null;
|
|
2762
2763
|
ended_at?: string | null;
|
|
2763
2764
|
memory_snapshot: Json;
|
|
2765
|
+
memory_version?: number;
|
|
2764
2766
|
metadata?: Json | null;
|
|
2765
2767
|
organization_id: string;
|
|
2766
2768
|
resource_id: string;
|
|
@@ -2777,6 +2779,7 @@ type Database = {
|
|
|
2777
2779
|
deleted_at?: string | null;
|
|
2778
2780
|
ended_at?: string | null;
|
|
2779
2781
|
memory_snapshot?: Json;
|
|
2782
|
+
memory_version?: number;
|
|
2780
2783
|
metadata?: Json | null;
|
|
2781
2784
|
organization_id?: string;
|
|
2782
2785
|
resource_id?: string;
|
|
@@ -3114,9 +3117,14 @@ type Database = {
|
|
|
3114
3117
|
p_session_id: string;
|
|
3115
3118
|
};
|
|
3116
3119
|
Returns: {
|
|
3120
|
+
context_window_size: number;
|
|
3117
3121
|
created_at: string;
|
|
3122
|
+
cumulative_input_tokens: number;
|
|
3123
|
+
cumulative_output_tokens: number;
|
|
3124
|
+
deleted_at: string;
|
|
3118
3125
|
ended_at: string;
|
|
3119
3126
|
memory_snapshot: Json;
|
|
3127
|
+
memory_version: number;
|
|
3120
3128
|
metadata: Json;
|
|
3121
3129
|
organization_id: string;
|
|
3122
3130
|
resource_id: string;
|
|
@@ -3158,6 +3166,18 @@ type Database = {
|
|
|
3158
3166
|
};
|
|
3159
3167
|
Returns: boolean;
|
|
3160
3168
|
};
|
|
3169
|
+
increment_session_tokens: {
|
|
3170
|
+
Args: {
|
|
3171
|
+
p_input_tokens: number;
|
|
3172
|
+
p_output_tokens: number;
|
|
3173
|
+
p_session_id: string;
|
|
3174
|
+
};
|
|
3175
|
+
Returns: {
|
|
3176
|
+
context_window_size: number;
|
|
3177
|
+
cumulative_input_tokens: number;
|
|
3178
|
+
cumulative_output_tokens: number;
|
|
3179
|
+
}[];
|
|
3180
|
+
};
|
|
3161
3181
|
is_org_member: {
|
|
3162
3182
|
Args: {
|
|
3163
3183
|
org_id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AllTasksPage, Checklist, CreateDeliveryEntityModal, DELIVERY_COMMUNICATION_ITEMS, DELIVERY_PROJECT_ITEMS, DELIVERY_WORK_ITEMS, HealthStatusCard, MilestoneTimeline, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, TaskCard, UpcomingMilestonesPage, calculateProgress, deliveryManifest, formatStatusLabel, milestoneStatusColors, noteTypeColors, projectStatusColors, taskStatusColors, taskTypeColors } from '../../chunk-
|
|
1
|
+
export { AllTasksPage, Checklist, CreateDeliveryEntityModal, DELIVERY_COMMUNICATION_ITEMS, DELIVERY_PROJECT_ITEMS, DELIVERY_WORK_ITEMS, HealthStatusCard, MilestoneTimeline, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, TaskCard, UpcomingMilestonesPage, calculateProgress, deliveryManifest, formatStatusLabel, milestoneStatusColors, noteTypeColors, projectStatusColors, taskStatusColors, taskTypeColors } from '../../chunk-3WVZRN37.js';
|
|
2
2
|
import '../../chunk-4OEVLV66.js';
|
|
3
3
|
import '../../chunk-RBGVNPA6.js';
|
|
4
4
|
import '../../chunk-ZTWA5H77.js';
|
|
@@ -16,12 +16,12 @@ import '../../chunk-JFBZ6XDW.js';
|
|
|
16
16
|
import '../../chunk-2IFYDILW.js';
|
|
17
17
|
import '../../chunk-Q7DJKLEN.js';
|
|
18
18
|
import '../../chunk-HENXLGVD.js';
|
|
19
|
-
import '../../chunk-
|
|
19
|
+
import '../../chunk-BLXJEIQS.js';
|
|
20
20
|
import '../../chunk-RNP5R5I3.js';
|
|
21
21
|
import '../../chunk-EIXSQONC.js';
|
|
22
22
|
import '../../chunk-I7BZVVVU.js';
|
|
23
|
-
import '../../chunk-
|
|
24
|
-
import '../../chunk-
|
|
23
|
+
import '../../chunk-Y6I3IC45.js';
|
|
24
|
+
import '../../chunk-6SSQGWK7.js';
|
|
25
25
|
import '../../chunk-BI5VDO2K.js';
|
|
26
26
|
import '../../chunk-MQZE7SUI.js';
|
|
27
27
|
import '../../chunk-TVTSASST.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { knowledgeManifest } from '../../chunk-
|
|
1
|
+
export { knowledgeManifest } from '../../chunk-3WVZRN37.js';
|
|
2
2
|
import '../../chunk-4OEVLV66.js';
|
|
3
3
|
import '../../chunk-RBGVNPA6.js';
|
|
4
4
|
import '../../chunk-ZTWA5H77.js';
|
|
@@ -16,12 +16,12 @@ import '../../chunk-JFBZ6XDW.js';
|
|
|
16
16
|
import '../../chunk-2IFYDILW.js';
|
|
17
17
|
import '../../chunk-Q7DJKLEN.js';
|
|
18
18
|
import '../../chunk-HENXLGVD.js';
|
|
19
|
-
import '../../chunk-
|
|
19
|
+
import '../../chunk-BLXJEIQS.js';
|
|
20
20
|
import '../../chunk-RNP5R5I3.js';
|
|
21
21
|
import '../../chunk-EIXSQONC.js';
|
|
22
22
|
import '../../chunk-I7BZVVVU.js';
|
|
23
|
-
import '../../chunk-
|
|
24
|
-
import '../../chunk-
|
|
23
|
+
import '../../chunk-Y6I3IC45.js';
|
|
24
|
+
import '../../chunk-6SSQGWK7.js';
|
|
25
25
|
import '../../chunk-BI5VDO2K.js';
|
|
26
26
|
import '../../chunk-MQZE7SUI.js';
|
|
27
27
|
import '../../chunk-TVTSASST.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { EMPTY_LIST_ACTIONS, LEAD_GEN_ITEMS, LEAD_GEN_ROUTE_LINKS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenReadinessAlert, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarMiddle, LeadGenSidebarTop, ListActionsProvider, ListBuilderIndexPage, ListBuilderPage, ORPHAN_STAGE_ORDER, companyKeys as acquisitionCompanyKeys, contactKeys as acquisitionContactKeys, companyKeys, contactKeys, deriveBusinessProgress, findListActionByAction, formatDate, getEnrichmentColor, getEnrichmentStatus, getLeadGenApiInterfaceReadiness, getLeadGenExportWorkflowId, getListActionWorkflowId, getStateKeyColor, getStatusColor, getStepActionLabel, isLeadGenExportAction, leadGenArtifactKeys, leadGenListCompanyKeys, leadGenListMemberKeys, leadGenManifest, resolveBuildPlanSteps, resolveBuildState, sortStageKeys, useArtifacts, useCompanies, useCompany, useCompanyFacets, useContact, useContacts, useCreateArtifact, useCreateCompany, useCreateContact, useDeleteCompanies, useDeleteContacts, useDeleteLists, useDeriveActions, useLeadGenActionRegistry, useLeadGenBulkActions, useLeadGenConfig, useLeadGenHeaderActions, useLeadGenRowActions, useListActions, useListMember, useListMembers, useListProgress, useTransitionListCompany, useTransitionListMember, useUpdateCompany, useUpdateContact, useUpdateListStatus } from '../../chunk-
|
|
1
|
+
export { EMPTY_LIST_ACTIONS, LEAD_GEN_ITEMS, LEAD_GEN_ROUTE_LINKS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenReadinessAlert, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarMiddle, LeadGenSidebarTop, ListActionsProvider, ListBuilderIndexPage, ListBuilderPage, ORPHAN_STAGE_ORDER, companyKeys as acquisitionCompanyKeys, contactKeys as acquisitionContactKeys, companyKeys, contactKeys, deriveBusinessProgress, findListActionByAction, formatDate, getEnrichmentColor, getEnrichmentStatus, getLeadGenApiInterfaceReadiness, getLeadGenExportWorkflowId, getListActionWorkflowId, getStateKeyColor, getStatusColor, getStepActionLabel, isLeadGenExportAction, leadGenArtifactKeys, leadGenListCompanyKeys, leadGenListMemberKeys, leadGenManifest, resolveBuildPlanSteps, resolveBuildState, sortStageKeys, useArtifacts, useCompanies, useCompany, useCompanyFacets, useContact, useContacts, useCreateArtifact, useCreateCompany, useCreateContact, useDeleteCompanies, useDeleteContacts, useDeleteLists, useDeriveActions, useLeadGenActionRegistry, useLeadGenBulkActions, useLeadGenConfig, useLeadGenHeaderActions, useLeadGenRowActions, useListActions, useListMember, useListMembers, useListProgress, useTransitionListCompany, useTransitionListMember, useUpdateCompany, useUpdateContact, useUpdateListStatus } from '../../chunk-3WVZRN37.js';
|
|
2
2
|
import '../../chunk-4OEVLV66.js';
|
|
3
3
|
import '../../chunk-RBGVNPA6.js';
|
|
4
4
|
import '../../chunk-ZTWA5H77.js';
|
|
@@ -16,12 +16,12 @@ import '../../chunk-JFBZ6XDW.js';
|
|
|
16
16
|
import '../../chunk-2IFYDILW.js';
|
|
17
17
|
import '../../chunk-Q7DJKLEN.js';
|
|
18
18
|
import '../../chunk-HENXLGVD.js';
|
|
19
|
-
import '../../chunk-
|
|
19
|
+
import '../../chunk-BLXJEIQS.js';
|
|
20
20
|
import '../../chunk-RNP5R5I3.js';
|
|
21
21
|
import '../../chunk-EIXSQONC.js';
|
|
22
22
|
import '../../chunk-I7BZVVVU.js';
|
|
23
|
-
import '../../chunk-
|
|
24
|
-
import '../../chunk-
|
|
23
|
+
import '../../chunk-Y6I3IC45.js';
|
|
24
|
+
import '../../chunk-6SSQGWK7.js';
|
|
25
25
|
import '../../chunk-BI5VDO2K.js';
|
|
26
26
|
import '../../chunk-MQZE7SUI.js';
|
|
27
27
|
import '../../chunk-TVTSASST.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ActivityFeed, ActivityLog, CostAnalytics, ErrorDetailsModal, ExecutionHealth, ExecutionLogsPage, NotificationCenter, monitoringManifest } from '../../chunk-
|
|
1
|
+
export { ActivityFeed, ActivityLog, CostAnalytics, ErrorDetailsModal, ExecutionHealth, ExecutionLogsPage, NotificationCenter, monitoringManifest } from '../../chunk-3WVZRN37.js';
|
|
2
2
|
import '../../chunk-4OEVLV66.js';
|
|
3
3
|
import '../../chunk-RBGVNPA6.js';
|
|
4
4
|
import '../../chunk-ZTWA5H77.js';
|
|
@@ -16,12 +16,12 @@ import '../../chunk-JFBZ6XDW.js';
|
|
|
16
16
|
import '../../chunk-2IFYDILW.js';
|
|
17
17
|
import '../../chunk-Q7DJKLEN.js';
|
|
18
18
|
import '../../chunk-HENXLGVD.js';
|
|
19
|
-
import '../../chunk-
|
|
19
|
+
import '../../chunk-BLXJEIQS.js';
|
|
20
20
|
import '../../chunk-RNP5R5I3.js';
|
|
21
21
|
import '../../chunk-EIXSQONC.js';
|
|
22
22
|
import '../../chunk-I7BZVVVU.js';
|
|
23
|
-
import '../../chunk-
|
|
24
|
-
import '../../chunk-
|
|
23
|
+
import '../../chunk-Y6I3IC45.js';
|
|
24
|
+
import '../../chunk-6SSQGWK7.js';
|
|
25
25
|
import '../../chunk-BI5VDO2K.js';
|
|
26
26
|
import '../../chunk-MQZE7SUI.js';
|
|
27
27
|
import '../../chunk-TVTSASST.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConfirmationModal, RequestModal, usePaginationState, useRequestsList, useUpdateRequestStatus, useDeleteRequest, useTableSelection, PageTitleCaption, FilterBar, TableSelectionToolbar, CustomModal, useRequest, ContextViewer, JsonViewer } from '../../../chunk-
|
|
2
|
-
export { RequestActionIcon, RequestModal, requestTopbarActionManifest } from '../../../chunk-
|
|
1
|
+
import { ConfirmationModal, RequestModal, usePaginationState, useRequestsList, useUpdateRequestStatus, useDeleteRequest, useTableSelection, PageTitleCaption, FilterBar, TableSelectionToolbar, CustomModal, useRequest, ContextViewer, JsonViewer } from '../../../chunk-3WVZRN37.js';
|
|
2
|
+
export { RequestActionIcon, RequestModal, requestTopbarActionManifest } from '../../../chunk-3WVZRN37.js';
|
|
3
3
|
import '../../../chunk-4OEVLV66.js';
|
|
4
4
|
import '../../../chunk-RBGVNPA6.js';
|
|
5
5
|
import '../../../chunk-ZTWA5H77.js';
|
|
@@ -17,12 +17,12 @@ import '../../../chunk-JFBZ6XDW.js';
|
|
|
17
17
|
import '../../../chunk-2IFYDILW.js';
|
|
18
18
|
import '../../../chunk-Q7DJKLEN.js';
|
|
19
19
|
import '../../../chunk-HENXLGVD.js';
|
|
20
|
-
import '../../../chunk-
|
|
20
|
+
import '../../../chunk-BLXJEIQS.js';
|
|
21
21
|
import '../../../chunk-RNP5R5I3.js';
|
|
22
22
|
import '../../../chunk-EIXSQONC.js';
|
|
23
23
|
import { formatTimeAgo } from '../../../chunk-I7BZVVVU.js';
|
|
24
|
-
import '../../../chunk-
|
|
25
|
-
import '../../../chunk-
|
|
24
|
+
import '../../../chunk-Y6I3IC45.js';
|
|
25
|
+
import '../../../chunk-6SSQGWK7.js';
|
|
26
26
|
import '../../../chunk-BI5VDO2K.js';
|
|
27
27
|
import '../../../chunk-MQZE7SUI.js';
|
|
28
28
|
import '../../../chunk-TVTSASST.js';
|
|
@@ -350,6 +350,14 @@ type ResourceEntry = z.infer<typeof ResourceEntrySchema>;
|
|
|
350
350
|
* Memory types mirror action types for clarity and filtering
|
|
351
351
|
*/
|
|
352
352
|
type MemoryEntryType = 'context' | 'input' | 'reasoning' | 'tool-result' | 'delegation-result' | 'error';
|
|
353
|
+
/**
|
|
354
|
+
* Who authored an entry's content.
|
|
355
|
+
*
|
|
356
|
+
* This is what lets the assembled prompt tell framework-authored text apart from text that
|
|
357
|
+
* originated outside the trust boundary. `'framework'` content is ours; the other three are not
|
|
358
|
+
* and are rendered inside the JSON data envelope (see `MemoryManager.toContextParts`).
|
|
359
|
+
*/
|
|
360
|
+
type MemoryEntrySource = 'framework' | 'user' | 'tool' | 'model';
|
|
353
361
|
/**
|
|
354
362
|
* Memory entry - represents a single entry in agent memory
|
|
355
363
|
* Stored in agent memory, translated by adapters to vendor-specific formats
|
|
@@ -360,6 +368,16 @@ interface MemoryEntry {
|
|
|
360
368
|
timestamp: number;
|
|
361
369
|
turnNumber: number | null;
|
|
362
370
|
iterationNumber: number | null;
|
|
371
|
+
/**
|
|
372
|
+
* Provenance. **Optional on purpose** — `undefined` means unknown, which is what every
|
|
373
|
+
* pre-existing snapshot and every not-yet-redeployed tenant bundle produces. Read sites MUST
|
|
374
|
+
* test `== null`, never `=== undefined`: the `inTurnScope` predicate in `manager.ts` is the
|
|
375
|
+
* cautionary precedent, where a `=== undefined` check silently dropped every `null`-stamped
|
|
376
|
+
* entry. `isMemoryEntry` is deliberately NOT tightened to require this field; doing so would
|
|
377
|
+
* make every stored snapshot fail validation, and `restoreSessionMemory` fails open by
|
|
378
|
+
* starting the agent with empty memory rather than throwing.
|
|
379
|
+
*/
|
|
380
|
+
source?: MemoryEntrySource;
|
|
363
381
|
}
|
|
364
382
|
/**
|
|
365
383
|
* Agent memory - Self-orchestrated memory with session + working storage
|
|
@@ -2165,6 +2183,12 @@ interface SessionConversationViewProps {
|
|
|
2165
2183
|
* and avoids a double-send.
|
|
2166
2184
|
*/
|
|
2167
2185
|
onPendingSent?: () => void;
|
|
2186
|
+
/**
|
|
2187
|
+
* Opt-in for agent-activity bubbles (reasoning, tool calls/results, errors).
|
|
2188
|
+
* Defaults to false: the session chat shows the conversation only, matching
|
|
2189
|
+
* PublicAgentChat. Pass true from a debugging surface that wants the trace.
|
|
2190
|
+
*/
|
|
2191
|
+
showAgentActivity?: boolean;
|
|
2168
2192
|
}
|
|
2169
2193
|
/**
|
|
2170
2194
|
* Shared session-detail chat body.
|
|
@@ -2177,7 +2201,7 @@ interface SessionConversationViewProps {
|
|
|
2177
2201
|
* connection is suppressed. The first submitted message is handed to onFirstSend, which
|
|
2178
2202
|
* creates the real session row, swaps the URL, and sends turn #1.
|
|
2179
2203
|
*/
|
|
2180
|
-
declare function SessionConversationView({ sessionId, apiUrl, onConnectionStateChange, emptyStateText, emptyStateSubtext, placeholder, onFirstSend, pendingFirstMessage, onPendingSent }: SessionConversationViewProps): react_jsx_runtime.JSX.Element;
|
|
2204
|
+
declare function SessionConversationView({ sessionId, apiUrl, onConnectionStateChange, emptyStateText, emptyStateSubtext, placeholder, onFirstSend, pendingFirstMessage, onPendingSent, showAgentActivity }: SessionConversationViewProps): react_jsx_runtime.JSX.Element;
|
|
2181
2205
|
|
|
2182
2206
|
interface SessionsPageProps {
|
|
2183
2207
|
/** Whether the organization context is ready; blocks render until true */
|
|
@@ -2300,6 +2324,17 @@ interface SessionHeaderProps {
|
|
|
2300
2324
|
* Header component for session chat page.
|
|
2301
2325
|
* Displays session title and connection status. Session details have moved to
|
|
2302
2326
|
* the Info view's SessionDetailsPanel, so there is no longer a sidebar toggle.
|
|
2327
|
+
*
|
|
2328
|
+
* TODO: wire up the context-usage bar. Real token data already exists end to end
|
|
2329
|
+
* — the API emits SessionTokenUsage (cumulativeInputTokens / cumulativeOutputTokens /
|
|
2330
|
+
* contextWindowSize) on the `turn:complete` WebSocket event, and useSessionWebSocket
|
|
2331
|
+
* exposes it as `lastTokenUsage`. It is not reachable from here: this header renders
|
|
2332
|
+
* above SessionChatInterface, while the WS hook lives inside the injected conversation
|
|
2333
|
+
* view below it. To finish, lift `lastTokenUsage` out of the conversation view (mirror
|
|
2334
|
+
* the `onTokenUsage` callback that command-center's ConversationView already uses) and
|
|
2335
|
+
* pass `{ used: cumulativeInput + cumulativeOutput, total: contextWindowSize }` as
|
|
2336
|
+
* `tokenUsage`. Until then the prop stays unset and ChatHeader hides the bar — a mock
|
|
2337
|
+
* 45000/128000 constant used to live here and displayed a permanent, meaningless 35%.
|
|
2303
2338
|
*/
|
|
2304
2339
|
declare function SessionHeader({ session: _session, connectionState, tokenUsage }: SessionHeaderProps): react_jsx_runtime.JSX.Element;
|
|
2305
2340
|
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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';
|
|
2
2
|
import '../../chunk-4OEVLV66.js';
|
|
3
3
|
import '../../chunk-RBGVNPA6.js';
|
|
4
4
|
import '../../chunk-ZTWA5H77.js';
|
|
@@ -16,12 +16,12 @@ import '../../chunk-JFBZ6XDW.js';
|
|
|
16
16
|
import '../../chunk-2IFYDILW.js';
|
|
17
17
|
import '../../chunk-Q7DJKLEN.js';
|
|
18
18
|
import '../../chunk-HENXLGVD.js';
|
|
19
|
-
import '../../chunk-
|
|
19
|
+
import '../../chunk-BLXJEIQS.js';
|
|
20
20
|
import '../../chunk-RNP5R5I3.js';
|
|
21
21
|
import '../../chunk-EIXSQONC.js';
|
|
22
22
|
import '../../chunk-I7BZVVVU.js';
|
|
23
|
-
import '../../chunk-
|
|
24
|
-
import '../../chunk-
|
|
23
|
+
import '../../chunk-Y6I3IC45.js';
|
|
24
|
+
import '../../chunk-6SSQGWK7.js';
|
|
25
25
|
import '../../chunk-BI5VDO2K.js';
|
|
26
26
|
import '../../chunk-MQZE7SUI.js';
|
|
27
27
|
import '../../chunk-TVTSASST.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WebSocketSessionTurnSchema, getWebSocketBaseUrl, createLiveTempMessageIdentity, formatMessageEvent, mergeSessionMessages } from '../../chunk-M7WWRZ5Z.js';
|
|
2
2
|
import { ChatInterface } from '../../chunk-JFBZ6XDW.js';
|
|
3
|
-
import { WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, validateTokenLimit, TOKEN_LIMITS } from '../../chunk-
|
|
3
|
+
import { WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, validateTokenLimit, TOKEN_LIMITS } from '../../chunk-Y6I3IC45.js';
|
|
4
4
|
import { UuidSchema } from '../../chunk-TVTSASST.js';
|
|
5
5
|
import '../../chunk-I2KLQ2HA.js';
|
|
6
6
|
import { Center, Loader, Paper, Stack, Group, Title, Alert, PasswordInput, Button, Text, List, TextInput, Box, Badge, Divider } from '@mantine/core';
|
|
@@ -2746,6 +2746,7 @@ type Database = {
|
|
|
2746
2746
|
deleted_at: string | null;
|
|
2747
2747
|
ended_at: string | null;
|
|
2748
2748
|
memory_snapshot: Json;
|
|
2749
|
+
memory_version: number;
|
|
2749
2750
|
metadata: Json | null;
|
|
2750
2751
|
organization_id: string;
|
|
2751
2752
|
resource_id: string;
|
|
@@ -2762,6 +2763,7 @@ type Database = {
|
|
|
2762
2763
|
deleted_at?: string | null;
|
|
2763
2764
|
ended_at?: string | null;
|
|
2764
2765
|
memory_snapshot: Json;
|
|
2766
|
+
memory_version?: number;
|
|
2765
2767
|
metadata?: Json | null;
|
|
2766
2768
|
organization_id: string;
|
|
2767
2769
|
resource_id: string;
|
|
@@ -2778,6 +2780,7 @@ type Database = {
|
|
|
2778
2780
|
deleted_at?: string | null;
|
|
2779
2781
|
ended_at?: string | null;
|
|
2780
2782
|
memory_snapshot?: Json;
|
|
2783
|
+
memory_version?: number;
|
|
2781
2784
|
metadata?: Json | null;
|
|
2782
2785
|
organization_id?: string;
|
|
2783
2786
|
resource_id?: string;
|
|
@@ -3115,9 +3118,14 @@ type Database = {
|
|
|
3115
3118
|
p_session_id: string;
|
|
3116
3119
|
};
|
|
3117
3120
|
Returns: {
|
|
3121
|
+
context_window_size: number;
|
|
3118
3122
|
created_at: string;
|
|
3123
|
+
cumulative_input_tokens: number;
|
|
3124
|
+
cumulative_output_tokens: number;
|
|
3125
|
+
deleted_at: string;
|
|
3119
3126
|
ended_at: string;
|
|
3120
3127
|
memory_snapshot: Json;
|
|
3128
|
+
memory_version: number;
|
|
3121
3129
|
metadata: Json;
|
|
3122
3130
|
organization_id: string;
|
|
3123
3131
|
resource_id: string;
|
|
@@ -3159,6 +3167,18 @@ type Database = {
|
|
|
3159
3167
|
};
|
|
3160
3168
|
Returns: boolean;
|
|
3161
3169
|
};
|
|
3170
|
+
increment_session_tokens: {
|
|
3171
|
+
Args: {
|
|
3172
|
+
p_input_tokens: number;
|
|
3173
|
+
p_output_tokens: number;
|
|
3174
|
+
p_session_id: string;
|
|
3175
|
+
};
|
|
3176
|
+
Returns: {
|
|
3177
|
+
context_window_size: number;
|
|
3178
|
+
cumulative_input_tokens: number;
|
|
3179
|
+
cumulative_output_tokens: number;
|
|
3180
|
+
}[];
|
|
3181
|
+
};
|
|
3162
3182
|
is_org_member: {
|
|
3163
3183
|
Args: {
|
|
3164
3184
|
org_id: string;
|