@8wave/ai-elements 0.119.0-beta.64 → 0.119.0-beta.66
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 +4 -4
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/composables.js +4 -4
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +2581 -2629
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +23 -23
- package/dist-vue/packages/auth/src/hook-session.d.ts +14 -0
- package/dist-vue/packages/components/src/chat/PkLanguageModel.d.ts +6 -0
- package/dist-vue/packages/components/src/chat/PkModelOption.d.ts +0 -9
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
package/dist-vue/locales.js
CHANGED
|
@@ -217,7 +217,7 @@ var e = {
|
|
|
217
217
|
mmrCandidatesLimit: "Candidates limit",
|
|
218
218
|
privacy: "Privacy",
|
|
219
219
|
zeroDataRetention: "Zero data retention (ZDR)",
|
|
220
|
-
disallowPromptTraining: "Prompt
|
|
220
|
+
disallowPromptTraining: "Prompt training disallowed",
|
|
221
221
|
voice: "Voice",
|
|
222
222
|
voiceEnabled: "Voice conversation",
|
|
223
223
|
voiceId: "Voice",
|
|
@@ -269,7 +269,7 @@ var e = {
|
|
|
269
269
|
toolRequiresApproval: "Ask the user to confirm",
|
|
270
270
|
chatWidget: "Chat widget",
|
|
271
271
|
widgetUrl: "Widget URL",
|
|
272
|
-
loadDelay: "Load
|
|
272
|
+
loadDelay: "Load delay (ms)",
|
|
273
273
|
loaderStrategy: "Loader strategy",
|
|
274
274
|
loaderStrategyInlineModule: "Inline module",
|
|
275
275
|
loaderStrategyScriptSrc: "Script src",
|
|
@@ -409,12 +409,12 @@ var e = {
|
|
|
409
409
|
modelNotCompatible: "Not compatible with the privacy flags of this agent.",
|
|
410
410
|
modelGuaranteedOnSome: "The guarantees you switched on hold only on some providers of this model: the gateway routes accordingly.",
|
|
411
411
|
modelContextWindow: "Context window: {count}k tokens.",
|
|
412
|
-
voiceId: "Cloned voices are not
|
|
412
|
+
voiceId: "Cloned voices are not allowed here.",
|
|
413
413
|
freshnessScaleExplanationMonths: "A document updated today gets a +{weight} bonus. This bonus halves to +{halfWeight} after {half} days and practically drops to zero (+{zeroWeight}) after {zero} days (approx. {months} months).",
|
|
414
414
|
freshnessScaleExplanationDays: "A document updated today gets a +{weight} bonus. This bonus halves to +{halfWeight} after {half} days and practically drops to zero (+{zeroWeight}) after {zero} days.",
|
|
415
415
|
reasoningVisibility: "A reasoning agent is visible to its organization only.",
|
|
416
416
|
agentOnOwnEndpoint: "This agent runs on your organization's endpoint.",
|
|
417
|
-
providerTimeoutMs: "
|
|
417
|
+
providerTimeoutMs: "1000-789000, then the next one. BYOK only.",
|
|
418
418
|
showExtendedSteps: "Shows reasoning and tool calls as an expandable timeline in the chat.",
|
|
419
419
|
freshnessBoost: "Applies a boost based on how recently the document was updated.",
|
|
420
420
|
freshnessScale: "Freshness scale (days)",
|
|
@@ -428,21 +428,21 @@ var e = {
|
|
|
428
428
|
voiceEnabled: "Let people talk to this agent. The answer is still this agent, with its knowledge and tools.",
|
|
429
429
|
voiceApprovalRefused: "During a call these actions do not run: approval is given on screen and on the phone there is nobody to ask, so the agent refuses them and says so. Affected: {tools}.",
|
|
430
430
|
voiceLanguage: "Used to recognise speech and to speak.",
|
|
431
|
-
voiceFirstMessage: "Said
|
|
431
|
+
voiceFirstMessage: "Said on pickup, covers the first turn.",
|
|
432
432
|
voiceIgnoreBackgroundVoices: "Listen only to who is talking. Leave on where the microphone hears a room.",
|
|
433
|
-
voiceTurnEagerness: "Eager answers sooner, patient waits
|
|
433
|
+
voiceTurnEagerness: "Eager answers sooner, patient waits.",
|
|
434
434
|
voiceTurnTimeoutSeconds: "How long the agent lets the caller stay silent before speaking again. Nothing to do with how fast it answers.",
|
|
435
|
-
voiceMaxSessionSeconds: "
|
|
435
|
+
voiceMaxSessionSeconds: "Billed by the minute, ends at this limit.",
|
|
436
436
|
voiceSlowAgentOnCall: "A large knowledge base or connected MCP servers can take an agent several seconds to answer, and on a call those seconds are silence: the two settings below are what keeps the caller company while it works. If your calls feel slow, the answer itself gets shorter with fewer steps, a smaller retrieval limit or a faster model.",
|
|
437
|
-
voiceFillerAfterSeconds: "Says it is working
|
|
438
|
-
voiceFillerMessage: "Empty: a
|
|
437
|
+
voiceFillerAfterSeconds: "Says it is working. Empty: 4 seconds.",
|
|
438
|
+
voiceFillerMessage: "Empty: a line in the voice language.",
|
|
439
439
|
useColorsForAgentHeader: "Color the agent header based on the main color.",
|
|
440
440
|
smoothStream: "Smooths text streaming creating a more natural reading experience.",
|
|
441
441
|
welcomePopup: "Show a welcome popup with the initial message before the chat is opened.",
|
|
442
442
|
interactiveLogin: "Lets anonymous users sign in from the chat. The external token stays active.",
|
|
443
443
|
customCss: "CSS injected into the widget shadow DOM. Allows styling the chat interface from the outside.",
|
|
444
444
|
dismissableNotice: "It will be hidden after the first message.",
|
|
445
|
-
privacyPolicyNotice: "
|
|
445
|
+
privacyPolicyNotice: "At the foot of the contact form, in Markdown.",
|
|
446
446
|
fileUploadEnabled: "Allow users to attach files to their messages.",
|
|
447
447
|
approvalChannels: "A tool can ask the user to confirm before it runs: expand a tool to turn it on. On API endpoints and scheduled runs the call is refused.",
|
|
448
448
|
platformSupported: "Renders natively on WhatsApp and Teams",
|
|
@@ -455,7 +455,7 @@ var e = {
|
|
|
455
455
|
channelAppDisabled: "The App channel is disabled: the direct link and iframe will not work.",
|
|
456
456
|
embedCode: "Copy and paste this code to embed the agent in your website.",
|
|
457
457
|
widgetUrl: "Keep the default address to load this installation's widget.",
|
|
458
|
-
loadDelay: "Wait before loading
|
|
458
|
+
loadDelay: "Wait before loading, for slow AMD loaders.",
|
|
459
459
|
embedIframe: "Embed the chat interface directly using an iframe. ",
|
|
460
460
|
embedPreview: "The agent will be accessible at the following URL.",
|
|
461
461
|
externalContextSchema: "Define which contextual data the hosting site can send to the agent.",
|
|
@@ -470,7 +470,7 @@ var e = {
|
|
|
470
470
|
},
|
|
471
471
|
modelSourceEndpoint: "Runs on {name}, your organization's own endpoint: your provider bills it, and the costs shown here are estimated from the price list.",
|
|
472
472
|
modelSourcePlatform: "Runs on the platform AI gateway and is paid with your organization's credit.",
|
|
473
|
-
reasoningDefault: "
|
|
473
|
+
reasoningDefault: "The platform's default value.",
|
|
474
474
|
includeThoughts: "Streams the model's thoughts to the client along with the response.",
|
|
475
475
|
reasoningNotSupported: "Reasoning is not supported for the selected provider.",
|
|
476
476
|
voiceRemaining: "Time left in this call",
|
|
@@ -925,7 +925,7 @@ var e = {
|
|
|
925
925
|
mmrCandidatesLimit: "Limite candidati MMR",
|
|
926
926
|
privacy: "Privacy",
|
|
927
927
|
zeroDataRetention: "Zero data retention (ZDR)",
|
|
928
|
-
disallowPromptTraining: "Prompt
|
|
928
|
+
disallowPromptTraining: "Prompt training disabilitato",
|
|
929
929
|
voice: "Voce",
|
|
930
930
|
voiceEnabled: "Conversazione vocale",
|
|
931
931
|
voiceId: "Voce",
|
|
@@ -1117,12 +1117,12 @@ var e = {
|
|
|
1117
1117
|
modelNotCompatible: "Non compatibile con i flag di riservatezza di questo agente.",
|
|
1118
1118
|
modelGuaranteedOnSome: "Le garanzie che hai acceso valgono solo su alcuni provider di questo modello: il gateway instrada di conseguenza.",
|
|
1119
1119
|
modelContextWindow: "Finestra di contesto: {count}k token.",
|
|
1120
|
-
voiceId: "Le voci clonate non sono
|
|
1120
|
+
voiceId: "Le voci clonate qui non sono ammesse.",
|
|
1121
1121
|
freshnessScaleExplanationMonths: "Un documento modificato oggi ottiene un bonus di +{weight}. Il bonus si dimezza a +{halfWeight} dopo {half} giorni e si azzera praticamente (+{zeroWeight}) dopo {zero} giorni (circa {months} mesi).",
|
|
1122
1122
|
freshnessScaleExplanationDays: "Un documento modificato oggi ottiene un bonus di +{weight}. Il bonus si dimezza a +{halfWeight} dopo {half} giorni e si azzera praticamente (+{zeroWeight}) dopo {zero} giorni.",
|
|
1123
1123
|
reasoningVisibility: "Un agente reasoning è visibile solo all'organizzazione.",
|
|
1124
1124
|
agentOnOwnEndpoint: "Questo agente gira sull’endpoint della tua organizzazione.",
|
|
1125
|
-
providerTimeoutMs: "
|
|
1125
|
+
providerTimeoutMs: "1000-789000, poi il successivo. Solo BYOK.",
|
|
1126
1126
|
showExtendedSteps: "Visualizza la timeline con il ragionamento e gli strumenti nella chat.",
|
|
1127
1127
|
freshnessBoost: "Applica un boost basandosi su quanto recentemente il documento è stato aggiornato.",
|
|
1128
1128
|
freshnessScale: "Scala temporale spinta (Giorni)",
|
|
@@ -1136,21 +1136,21 @@ var e = {
|
|
|
1136
1136
|
voiceEnabled: "Permette di parlare con questo agente. La risposta resta sua, con la sua knowledge base e i suoi strumenti.",
|
|
1137
1137
|
voiceApprovalRefused: "Durante una chiamata queste azioni non partono: l'approvazione si dà a schermo e al telefono non c'è nessuno a cui chiederla, quindi l'agente le rifiuta e lo dice. Riguarda: {tools}.",
|
|
1138
1138
|
voiceLanguage: "Usata per riconoscere il parlato e per parlare.",
|
|
1139
|
-
voiceFirstMessage: "Detta
|
|
1139
|
+
voiceFirstMessage: "Detta all'apertura, copre il primo turno.",
|
|
1140
1140
|
voiceIgnoreBackgroundVoices: "Ascolta solo chi parla. Da tenere attivo dove il microfono sente la stanza.",
|
|
1141
|
-
voiceTurnEagerness: "Pronto risponde prima, paziente
|
|
1141
|
+
voiceTurnEagerness: "Pronto risponde prima, paziente aspetta.",
|
|
1142
1142
|
voiceTurnTimeoutSeconds: "Quanto l’agente aspetta il chiamante zitto prima di riprendere la parola. Niente a che vedere con la sua velocità di risposta.",
|
|
1143
|
-
voiceMaxSessionSeconds: "
|
|
1143
|
+
voiceMaxSessionSeconds: "Si paga a minuto; oltre, si chiude.",
|
|
1144
1144
|
voiceSlowAgentOnCall: "Una knowledge base grande o server MCP collegati possono far metterci diversi secondi all'agente, e in chiamata quei secondi sono silenzio: le due impostazioni qui sotto sono ciò che tiene compagnia a chi chiama mentre lavora. Se le chiamate sembrano lente, la risposta si accorcia anche con meno passi, un limite di retrieval più basso o un modello più rapido.",
|
|
1145
|
-
voiceFillerAfterSeconds: "Dice che
|
|
1146
|
-
voiceFillerMessage: "Vuoto:
|
|
1145
|
+
voiceFillerAfterSeconds: "Dice che ci lavora. Vuoto: 4 secondi.",
|
|
1146
|
+
voiceFillerMessage: "Vuoto: frase nella lingua della voce.",
|
|
1147
1147
|
useColorsForAgentHeader: "Colora l'intestazione dell'agente in base al colore principale.",
|
|
1148
1148
|
smoothStream: "Uniforma lo streaming del testo creando un'esperienza di lettura più naturale.",
|
|
1149
1149
|
welcomePopup: "Mostra un popup di benvenuto con il messaggio iniziale prima che la chat venga aperta.",
|
|
1150
1150
|
interactiveLogin: "Permette agli utenti anonimi di accedere dalla chat. L'external token resta sempre attivo.",
|
|
1151
1151
|
customCss: "CSS iniettato nello shadow DOM del widget. Permette di personalizzare l'interfaccia della chat dall'esterno.",
|
|
1152
1152
|
dismissableNotice: "Verrà nascosto dopo il primo messaggio.",
|
|
1153
|
-
privacyPolicyNotice: "
|
|
1153
|
+
privacyPolicyNotice: "In fondo al modulo di contatto, in Markdown.",
|
|
1154
1154
|
fileUploadEnabled: "Permetti agli utenti di allegare file ai messaggi.",
|
|
1155
1155
|
approvalChannels: "Un tool può chiedere conferma all'utente prima di eseguire: espandi il tool per attivarla. Via API o in esecuzioni schedulate la chiamata viene rifiutata.",
|
|
1156
1156
|
platformSupported: "Resa nativa su WhatsApp e Teams",
|
|
@@ -1163,7 +1163,7 @@ var e = {
|
|
|
1163
1163
|
channelAppDisabled: "Il canale App è disabilitato: il link diretto e l'iframe non funzioneranno.",
|
|
1164
1164
|
embedCode: "Copia e incolla questo codice per incorporare l'agente nel tuo sito web.",
|
|
1165
1165
|
widgetUrl: "Lascia l'indirizzo predefinito per caricare il widget di questa installazione.",
|
|
1166
|
-
loadDelay: "Attesa prima
|
|
1166
|
+
loadDelay: "Attesa prima del widget, per loader AMD lenti.",
|
|
1167
1167
|
embedIframe: "Incorpora l'interfaccia della chat direttamente con un iframe.",
|
|
1168
1168
|
embedPreview: "L'agente sarà accessibile al seguente URL.",
|
|
1169
1169
|
externalContextSchema: "Definisci quali dati contestuali il sito ospitante può inviare all'agente.",
|
|
@@ -1178,7 +1178,7 @@ var e = {
|
|
|
1178
1178
|
},
|
|
1179
1179
|
modelSourceEndpoint: "Gira su {name}, l’endpoint della tua organizzazione: lo fattura il tuo fornitore, e i costi che vedi qui sono stimati dal listino.",
|
|
1180
1180
|
modelSourcePlatform: "Gira sul gateway AI della piattaforma e si paga con il credito della tua organizzazione.",
|
|
1181
|
-
reasoningDefault: "
|
|
1181
|
+
reasoningDefault: "Il valore predefinito della piattaforma.",
|
|
1182
1182
|
includeThoughts: "Invia i pensieri del modello al client insieme alla risposta.",
|
|
1183
1183
|
reasoningNotSupported: "Il reasoning non è supportato per il provider selezionato.",
|
|
1184
1184
|
voiceRemaining: "Tempo che resta in questa chiamata",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { getSessionFromCtx } from 'better-auth/api';
|
|
2
|
+
import { MiddlewareContext } from './two-factor-policy-plugin';
|
|
3
|
+
type HookSession = Awaited<ReturnType<typeof getSessionFromCtx>>;
|
|
4
|
+
/**
|
|
5
|
+
* The session of a request, read from a before hook as the route will see it.
|
|
6
|
+
* `getSessionFromCtx` sees only the cookie there: the bearer plugin turns an
|
|
7
|
+
* `Authorization: Bearer` header into the session cookie once every before
|
|
8
|
+
* hook has run, so a hook that relied on it took a bearer request for one
|
|
9
|
+
* with no session and let it through. This reads `/get-session` through the
|
|
10
|
+
* hook pipeline, where the bearer plugin runs first. Nothing is cached on the
|
|
11
|
+
* context: the route reads its own session.
|
|
12
|
+
*/
|
|
13
|
+
export declare function readHookSession(ctx: MiddlewareContext): Promise<HookSession>;
|
|
14
|
+
export {};
|
|
@@ -26,6 +26,12 @@ type __VLS_Props = {
|
|
|
26
26
|
* an endpoint model says where it runs.
|
|
27
27
|
*/
|
|
28
28
|
showSource?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Drawn as an option of a list: the icon at the size and distance of
|
|
31
|
+
* every other option with an icon (PkIconOption, DESIGN.md), instead
|
|
32
|
+
* of the size of the text around a chip.
|
|
33
|
+
*/
|
|
34
|
+
asOption?: boolean;
|
|
29
35
|
};
|
|
30
36
|
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
31
37
|
declare const _default: typeof __VLS_export;
|
|
@@ -4,15 +4,6 @@ type __VLS_Props = {
|
|
|
4
4
|
entry?: ModelCatalogEntry;
|
|
5
5
|
/** Fallback for a model the catalog does not describe (an old id). */
|
|
6
6
|
modelName?: string;
|
|
7
|
-
/** Drawn only in the dropdown: the closed field has no room. */
|
|
8
|
-
detailed?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* The name on its own line and the details under it. A dropdown is as
|
|
11
|
-
* wide as the field that opens it, and on one line the details, which
|
|
12
|
-
* cannot shrink, squeezed the name to nothing: the one thing you pick
|
|
13
|
-
* by was the only thing that gave way.
|
|
14
|
-
*/
|
|
15
|
-
stacked?: boolean;
|
|
16
7
|
};
|
|
17
8
|
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
18
9
|
declare const _default: typeof __VLS_export;
|