@8wave/ai-elements 0.100.0 → 0.101.0-beta.2
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/ai-elements.es.js +1590 -1556
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/PkChatbot-OT6Vj9xn.js +264 -0
- package/dist-vue/_chunks/PkChatbot-OT6Vj9xn.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotMessages-Cj974POl.js.map +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-glcxrv5f.js → PkChatbotViewChat-BhwV8BzI.js} +2 -2
- package/dist-vue/_chunks/PkChatbotViewChat-BhwV8BzI.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-CNZuX3Rl.js → PkChatbotViewConversations-EuLSiakV.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-CNZuX3Rl.js.map → PkChatbotViewConversations-EuLSiakV.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-CyBqTzjY.js → PkChatbotViewFiles-CIr-0xpK.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-CyBqTzjY.js.map → PkChatbotViewFiles-CIr-0xpK.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-BCPCO6mp.js → PkChatbotViewProfile-CIO0mBFM.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-BCPCO6mp.js.map → PkChatbotViewProfile-CIO0mBFM.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-BGkXm2NB.js → createChatbotApiClient-2iaBCziJ.js} +362 -346
- package/dist-vue/_chunks/createChatbotApiClient-2iaBCziJ.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-D9b5Fz-e.js → useChatbotStore-BK1xv_i6.js} +2 -2
- package/dist-vue/_chunks/{useChatbotStore-D9b5Fz-e.js.map → useChatbotStore-BK1xv_i6.js.map} +1 -1
- package/dist-vue/_chunks/{useDialogConfirm-DaoekZdk.js → useDialogConfirm-CMTIKoWn.js} +12 -11
- package/dist-vue/_chunks/useDialogConfirm-CMTIKoWn.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/components/EmbeddedChatWidget.ce.d.ts +3 -3
- package/dist-vue/apps/web-component/src/lib.d.ts +3 -1
- package/dist-vue/composables.js +2 -2
- package/dist-vue/index.js +2875 -2861
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +2 -0
- package/dist-vue/packages/auth/src/index.d.ts +4 -4
- package/dist-vue/packages/components/src/chat/PkChatbot.d.ts +9 -9
- package/dist-vue/packages/components/src/chat/PkChatbotViewChat.d.ts +2 -2
- package/dist-vue/packages/composable/src/useDialog.d.ts +2 -0
- package/dist-vue/packages/models/src/schema/Agent.d.ts +114 -5
- package/dist-vue/packages/models/src/schema/Chat.d.ts +7 -0
- package/dist-vue/packages/models/src/schema/OpenAiCompat.d.ts +192 -0
- package/dist-vue/packages/models/src/schema/OrganizationExternalAuth.d.ts +7 -0
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +6 -0
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +6 -0
- package/dist-vue/packages/models/src/schema/TimingLog.d.ts +153 -0
- package/dist-vue/packages/models/src/schema/UserOverview.d.ts +1 -1
- package/dist-vue/packages/models/src/schema/index.d.ts +2 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist-vue/_chunks/PkChatbot-bWzP1psN.js +0 -236
- package/dist-vue/_chunks/PkChatbot-bWzP1psN.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-glcxrv5f.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-BGkXm2NB.js.map +0 -1
- package/dist-vue/_chunks/useDialogConfirm-DaoekZdk.js.map +0 -1
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Shape of a turn timing record, shared by the backend tracker that produces it,
|
|
4
|
+
* the debug endpoint that serves it and the frontend page that renders it.
|
|
5
|
+
*
|
|
6
|
+
* It lives here because the three used to declare it independently and the
|
|
7
|
+
* response schema strips unknown keys: a field added to the tracker but not to
|
|
8
|
+
* the schema disappears from the API without any error, which is exactly how a
|
|
9
|
+
* new measurement ends up silently missing.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Redis list holding the timing entries (newest first). Declared here, with the
|
|
13
|
+
* shape, so both the tracker that writes it and the operational scripts that
|
|
14
|
+
* read it use one name without dragging the backend DI container into a script.
|
|
15
|
+
*/
|
|
16
|
+
export declare const TIMING_REDIS_KEY = "debug:timing:logs";
|
|
17
|
+
export declare const TimingPhasePosition: {
|
|
18
|
+
readonly Pre: "pre";
|
|
19
|
+
readonly Post: "post";
|
|
20
|
+
};
|
|
21
|
+
export type TimingPhasePosition = (typeof TimingPhasePosition)[keyof typeof TimingPhasePosition];
|
|
22
|
+
export declare const TimingToolCallDetailSchema: z.ZodObject<{
|
|
23
|
+
toolCallId: z.ZodString;
|
|
24
|
+
name: z.ZodString;
|
|
25
|
+
args: z.ZodString;
|
|
26
|
+
result: z.ZodString;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export declare const TimingPhaseRecordSchema: z.ZodObject<{
|
|
29
|
+
label: z.ZodString;
|
|
30
|
+
durationMs: z.ZodNumber;
|
|
31
|
+
position: z.ZodEnum<{
|
|
32
|
+
pre: "pre";
|
|
33
|
+
post: "post";
|
|
34
|
+
}>;
|
|
35
|
+
startOffsetMs: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
endOffsetMs: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export declare const TimingStepRecordSchema: z.ZodObject<{
|
|
39
|
+
stepIndex: z.ZodNumber;
|
|
40
|
+
stepKind: z.ZodString;
|
|
41
|
+
durationMs: z.ZodNumber;
|
|
42
|
+
modelId: z.ZodString;
|
|
43
|
+
inputTokens: z.ZodNumber;
|
|
44
|
+
outputTokens: z.ZodNumber;
|
|
45
|
+
reasoningTokens: z.ZodNumber;
|
|
46
|
+
cacheReadTokens: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
toolCalls: z.ZodArray<z.ZodString>;
|
|
48
|
+
toolCallDetails: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
49
|
+
toolCallId: z.ZodString;
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
args: z.ZodString;
|
|
52
|
+
result: z.ZodString;
|
|
53
|
+
}, z.core.$strip>>>;
|
|
54
|
+
text: z.ZodDefault<z.ZodString>;
|
|
55
|
+
tokenStreamMs: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
responseId: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
/**
|
|
59
|
+
* Named instants on the turn timeline, as offsets from the timing origin (the
|
|
60
|
+
* request entering Fastify when the anchor hook ran, otherwise tracker
|
|
61
|
+
* construction). Recorded only when the turn reaches them.
|
|
62
|
+
*/
|
|
63
|
+
export declare const TimingMilestonesSchema: z.ZodObject<{
|
|
64
|
+
turnStarted: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
providerInvoked: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
providerFirstEvent: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
providerFirstTextDelta: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
responseFirstTextDelta: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
/**
|
|
71
|
+
* Event-loop lag observed process-wide when the entry was written, in ms.
|
|
72
|
+
* Distinguishes "waiting on the network" from "blocking the thread", which is
|
|
73
|
+
* the difference between an I/O fix and a CPU fix.
|
|
74
|
+
*/
|
|
75
|
+
export declare const TimingEventLoopLagSchema: z.ZodObject<{
|
|
76
|
+
meanMs: z.ZodNumber;
|
|
77
|
+
p50Ms: z.ZodNumber;
|
|
78
|
+
p95Ms: z.ZodNumber;
|
|
79
|
+
maxMs: z.ZodNumber;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export declare const TimingEntrySchema: z.ZodObject<{
|
|
82
|
+
id: z.ZodString;
|
|
83
|
+
timestamp: z.ZodNumber;
|
|
84
|
+
label: z.ZodString;
|
|
85
|
+
type: z.ZodEnum<{
|
|
86
|
+
main: "main";
|
|
87
|
+
subagent: "subagent";
|
|
88
|
+
}>;
|
|
89
|
+
totalMs: z.ZodNumber;
|
|
90
|
+
requestTotalMs: z.ZodOptional<z.ZodNumber>;
|
|
91
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
92
|
+
stepIndex: z.ZodNumber;
|
|
93
|
+
stepKind: z.ZodString;
|
|
94
|
+
durationMs: z.ZodNumber;
|
|
95
|
+
modelId: z.ZodString;
|
|
96
|
+
inputTokens: z.ZodNumber;
|
|
97
|
+
outputTokens: z.ZodNumber;
|
|
98
|
+
reasoningTokens: z.ZodNumber;
|
|
99
|
+
cacheReadTokens: z.ZodOptional<z.ZodNumber>;
|
|
100
|
+
toolCalls: z.ZodArray<z.ZodString>;
|
|
101
|
+
toolCallDetails: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
102
|
+
toolCallId: z.ZodString;
|
|
103
|
+
name: z.ZodString;
|
|
104
|
+
args: z.ZodString;
|
|
105
|
+
result: z.ZodString;
|
|
106
|
+
}, z.core.$strip>>>;
|
|
107
|
+
text: z.ZodDefault<z.ZodString>;
|
|
108
|
+
tokenStreamMs: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
responseId: z.ZodOptional<z.ZodString>;
|
|
110
|
+
}, z.core.$strip>>;
|
|
111
|
+
totalInputTokens: z.ZodNumber;
|
|
112
|
+
totalOutputTokens: z.ZodNumber;
|
|
113
|
+
totalReasoningTokens: z.ZodNumber;
|
|
114
|
+
toolCallsSummary: z.ZodArray<z.ZodString>;
|
|
115
|
+
output: z.ZodOptional<z.ZodString>;
|
|
116
|
+
userPrompt: z.ZodOptional<z.ZodString>;
|
|
117
|
+
chatId: z.ZodOptional<z.ZodString>;
|
|
118
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
119
|
+
transport: z.ZodOptional<z.ZodString>;
|
|
120
|
+
phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
121
|
+
label: z.ZodString;
|
|
122
|
+
durationMs: z.ZodNumber;
|
|
123
|
+
position: z.ZodEnum<{
|
|
124
|
+
pre: "pre";
|
|
125
|
+
post: "post";
|
|
126
|
+
}>;
|
|
127
|
+
startOffsetMs: z.ZodOptional<z.ZodNumber>;
|
|
128
|
+
endOffsetMs: z.ZodOptional<z.ZodNumber>;
|
|
129
|
+
}, z.core.$strip>>>;
|
|
130
|
+
totalPreStreamingMs: z.ZodOptional<z.ZodNumber>;
|
|
131
|
+
totalPostStreamingMs: z.ZodOptional<z.ZodNumber>;
|
|
132
|
+
milestones: z.ZodOptional<z.ZodObject<{
|
|
133
|
+
turnStarted: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
providerInvoked: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
providerFirstEvent: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
providerFirstTextDelta: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
responseFirstTextDelta: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
}, z.core.$strip>>;
|
|
139
|
+
phaseCoverage: z.ZodOptional<z.ZodNumber>;
|
|
140
|
+
benchmarkRunId: z.ZodOptional<z.ZodString>;
|
|
141
|
+
eventLoopLag: z.ZodOptional<z.ZodObject<{
|
|
142
|
+
meanMs: z.ZodNumber;
|
|
143
|
+
p50Ms: z.ZodNumber;
|
|
144
|
+
p95Ms: z.ZodNumber;
|
|
145
|
+
maxMs: z.ZodNumber;
|
|
146
|
+
}, z.core.$strip>>;
|
|
147
|
+
}, z.core.$strip>;
|
|
148
|
+
export type TimingToolCallDetail = z.infer<typeof TimingToolCallDetailSchema>;
|
|
149
|
+
export type TimingPhaseRecord = z.infer<typeof TimingPhaseRecordSchema>;
|
|
150
|
+
export type TimingStepRecord = z.infer<typeof TimingStepRecordSchema>;
|
|
151
|
+
export type TimingMilestones = z.infer<typeof TimingMilestonesSchema>;
|
|
152
|
+
export type TimingEventLoopLag = z.infer<typeof TimingEventLoopLagSchema>;
|
|
153
|
+
export type TimingEntry = z.infer<typeof TimingEntrySchema>;
|
|
@@ -22,7 +22,7 @@ export declare const UserOverviewSchema: z.ZodObject<{
|
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
files: z.ZodObject<{
|
|
24
24
|
documents: z.ZodNumber;
|
|
25
|
-
|
|
25
|
+
attachmentsNotInKb: z.ZodNumber;
|
|
26
26
|
bytes: z.ZodNumber;
|
|
27
27
|
}, z.core.$strip>;
|
|
28
28
|
memories: z.ZodObject<{
|
|
@@ -24,6 +24,7 @@ export * from './Media';
|
|
|
24
24
|
export * from './Member';
|
|
25
25
|
export * from './MessageFeedback';
|
|
26
26
|
export * from './Notification';
|
|
27
|
+
export * from './OpenAiCompat';
|
|
27
28
|
export * from './Organization';
|
|
28
29
|
export * from './OrganizationExternalAuth';
|
|
29
30
|
export * from './OrganizationIdentityProvider';
|
|
@@ -33,6 +34,7 @@ export * from './ReasoningChat';
|
|
|
33
34
|
export * from './RevisedAnswer';
|
|
34
35
|
export * from './StreamError';
|
|
35
36
|
export * from './SubAgent';
|
|
37
|
+
export * from './TimingLog';
|
|
36
38
|
export * from './DocumentFolder';
|
|
37
39
|
export * from './User';
|
|
38
40
|
export * from './UserOverview';
|