@8wave/ai-elements 0.112.0-beta.9 → 0.112.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.
Files changed (62) hide show
  1. package/dist/_chunks/{PkToolShowVideo-Djr8Ofsz.js → PkToolShowVideo-p6Y9j3-B.js} +3 -3
  2. package/dist/_chunks/PkToolShowVideo-p6Y9j3-B.js.map +1 -0
  3. package/dist/_chunks/{browser-B0Xnbqi7.js → browser-Ct5TRDgj.js} +521 -518
  4. package/dist/_chunks/{browser-B0Xnbqi7.js.map → browser-Ct5TRDgj.js.map} +1 -1
  5. package/dist/_chunks/markdown-BRD-hDrH.js.map +1 -1
  6. package/dist/_chunks/{web-Dzr6HJ14.js → web-CEmtEYdH.js} +89 -65
  7. package/dist/_chunks/web-CEmtEYdH.js.map +1 -0
  8. package/dist/ai-elements.es.js +2838 -3058
  9. package/dist/ai-elements.es.js.map +1 -1
  10. package/dist-vue/PkChatbot.js +1 -1
  11. package/dist-vue/PkChatbotAuth.js +1 -1
  12. package/dist-vue/PkChatbotMessages.js +1 -1
  13. package/dist-vue/PkChatbotViewChat.js +1 -1
  14. package/dist-vue/PkChatbotViewConversations.js +1 -1
  15. package/dist-vue/PkChatbotViewFiles.js +1 -1
  16. package/dist-vue/PkChatbotViewProfile.js +1 -1
  17. package/dist-vue/_chunks/{Document-B6RpxFr9.js → Document-2X01-F4Z.js} +2 -2
  18. package/dist-vue/_chunks/Document-2X01-F4Z.js.map +1 -0
  19. package/dist-vue/_chunks/{PkChatbot-CI9ucJ2M.js → PkChatbot-C11EVHnI.js} +6 -6
  20. package/dist-vue/_chunks/{PkChatbot-CI9ucJ2M.js.map → PkChatbot-C11EVHnI.js.map} +1 -1
  21. package/dist-vue/_chunks/{PkChatbotAuth-AxAOI9t2.js → PkChatbotAuth-Bi508F1u.js} +57 -57
  22. package/dist-vue/_chunks/PkChatbotAuth-Bi508F1u.js.map +1 -0
  23. package/dist-vue/_chunks/{PkChatbotMessages-BsT48S-h.js → PkChatbotMessages-BD-vUak6.js} +4 -4
  24. package/dist-vue/_chunks/{PkChatbotMessages-BsT48S-h.js.map → PkChatbotMessages-BD-vUak6.js.map} +1 -1
  25. package/dist-vue/_chunks/{PkChatbotViewChat-jEBBPmSo.js → PkChatbotViewChat-DJnjuhjt.js} +5 -5
  26. package/dist-vue/_chunks/{PkChatbotViewChat-jEBBPmSo.js.map → PkChatbotViewChat-DJnjuhjt.js.map} +1 -1
  27. package/dist-vue/_chunks/{PkChatbotViewConversations-CWSrP36z.js → PkChatbotViewConversations-BCdolW0R.js} +2 -2
  28. package/dist-vue/_chunks/{PkChatbotViewConversations-CWSrP36z.js.map → PkChatbotViewConversations-BCdolW0R.js.map} +1 -1
  29. package/dist-vue/_chunks/{PkChatbotViewFiles-DzLp1WfU.js → PkChatbotViewFiles-Cudao8ew.js} +3 -3
  30. package/dist-vue/_chunks/{PkChatbotViewFiles-DzLp1WfU.js.map → PkChatbotViewFiles-Cudao8ew.js.map} +1 -1
  31. package/dist-vue/_chunks/{PkChatbotViewProfile-CHbn3W6F.js → PkChatbotViewProfile-DDsKOkcC.js} +2 -2
  32. package/dist-vue/_chunks/{PkChatbotViewProfile-CHbn3W6F.js.map → PkChatbotViewProfile-DDsKOkcC.js.map} +1 -1
  33. package/dist-vue/_chunks/{PkToolShowDiagram-CjJcLvWs.js → PkToolShowDiagram-RtkI_sKL.js} +2 -2
  34. package/dist-vue/_chunks/{PkToolShowDiagram-CjJcLvWs.js.map → PkToolShowDiagram-RtkI_sKL.js.map} +1 -1
  35. package/dist-vue/_chunks/{PkToolShowSources-Cc26LzRd.js → PkToolShowSources-gI947JOm.js} +2 -2
  36. package/dist-vue/_chunks/{PkToolShowSources-Cc26LzRd.js.map → PkToolShowSources-gI947JOm.js.map} +1 -1
  37. package/dist-vue/_chunks/{PkToolShowVideo-Bv9kMd88.js → PkToolShowVideo-BZOTu2Qe.js} +3 -3
  38. package/dist-vue/_chunks/PkToolShowVideo-BZOTu2Qe.js.map +1 -0
  39. package/dist-vue/_chunks/{useChatbotStore-CMS2zFht.js → useChatbotStore-BwrBZJCq.js} +944 -1259
  40. package/dist-vue/_chunks/useChatbotStore-BwrBZJCq.js.map +1 -0
  41. package/dist-vue/_chunks/{web-Dzr6HJ14.js → web-CEmtEYdH.js} +89 -65
  42. package/dist-vue/_chunks/web-CEmtEYdH.js.map +1 -0
  43. package/dist-vue/apps/web-component/src/composables/useChatbotAuthForm.d.ts +0 -1
  44. package/dist-vue/composables.js +2809 -80
  45. package/dist-vue/composables.js.map +1 -1
  46. package/dist-vue/index.js +250 -195
  47. package/dist-vue/index.js.map +1 -1
  48. package/dist-vue/locales.js +16 -20
  49. package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +2 -2
  50. package/dist-vue/packages/models/src/schema/ModelProvider.d.ts +11 -2
  51. package/dist-vue/packages/models/src/schema/Organization.d.ts +3 -3
  52. package/dist-vue/packages/models/src/schema/User.d.ts +10 -0
  53. package/dist-vue/packages/models/src/schema/constants.d.ts +1 -1
  54. package/dist-vue/style.css +1 -1
  55. package/package.json +3 -3
  56. package/dist/_chunks/PkToolShowVideo-Djr8Ofsz.js.map +0 -1
  57. package/dist/_chunks/web-Dzr6HJ14.js.map +0 -1
  58. package/dist-vue/_chunks/Document-B6RpxFr9.js.map +0 -1
  59. package/dist-vue/_chunks/PkChatbotAuth-AxAOI9t2.js.map +0 -1
  60. package/dist-vue/_chunks/PkToolShowVideo-Bv9kMd88.js.map +0 -1
  61. package/dist-vue/_chunks/useChatbotStore-CMS2zFht.js.map +0 -1
  62. package/dist-vue/_chunks/web-Dzr6HJ14.js.map +0 -1
@@ -229,7 +229,7 @@ var e = {
229
229
  fileUploadMaxFilesPerChat: "Max files per chat",
230
230
  webSearch: "Web search",
231
231
  toolWorkingSet: "Tool selection",
232
- toolWorkingSetMode: "Show the agent only the tools a message needs",
232
+ toolWorkingSetMode: "Mode",
233
233
  deprecated: "Deprecated",
234
234
  whatsapp: "WhatsApp",
235
235
  teams: "Microsoft Teams",
@@ -397,7 +397,6 @@ var e = {
397
397
  dismissableNotice: "It will be hidden after the first message.",
398
398
  privacyPolicyNotice: "Displayed at the bottom of the contact form. Supports Markdown.",
399
399
  fileUploadEnabled: "Allow users to attach files to their messages.",
400
- toolWorkingSetMode: "Before each reply, an evaluation model (TypeSafe Jev, through the AI gateway) picks the MCP servers, API tools and sub-agents the message needs, and the agent sees only those: a shorter context and quicker replies. When the agent needs another one, it brings it back on its own. In shadow mode the choice is only recorded, to compare it with the tools the agent actually uses.",
401
400
  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.",
402
401
  platformSupported: "Renders natively on WhatsApp and Teams",
403
402
  tool: {
@@ -542,20 +541,19 @@ var e = {
542
541
  prompt: "Your confirmation is needed to continue:"
543
542
  },
544
543
  toolSelection: {
545
- title: "Tool selection",
546
- failed: "Failed",
547
- exposed: "Exposed",
548
- threshold: "threshold {threshold}",
549
- latency: "Time",
550
- budget: "limit {budget} ms",
551
- cost: "Cost",
544
+ exposed: "Groups exposed to the model: probability {threshold} or higher, or used earlier",
545
+ latency: "Evaluation time, limit {budget} ms",
546
+ cost: "Cost charged to the organization: {cost}",
552
547
  notCharged: "Not charged",
553
548
  inputTokens: "Input tokens",
549
+ title: "Tool selection",
550
+ failed: "Failed",
551
+ leadFailed: "The evaluation failed or did not answer within {budget} ms: every group stayed exposed.",
554
552
  tools: "{n} tool | {n} tools",
555
553
  missed: "Missed",
556
554
  used: "Used",
557
555
  enabled: "Brought back",
558
- seeded: "From the conversation",
556
+ seeded: "Used earlier",
559
557
  probability: "Probability that the message needs the group; exposed from {threshold}"
560
558
  },
561
559
  validation: { invalidPhoneNumber: "The number entered is incorrect" },
@@ -800,7 +798,7 @@ var e = {
800
798
  fileUploadMaxFilesPerChat: "File massimi per chat",
801
799
  webSearch: "Ricerca web",
802
800
  toolWorkingSet: "Selezione dei tool",
803
- toolWorkingSetMode: "Mostra all’agente solo i tool che servono al messaggio",
801
+ toolWorkingSetMode: "Modalità",
804
802
  deprecated: "Deprecato",
805
803
  whatsapp: "WhatsApp",
806
804
  teams: "Microsoft Teams",
@@ -968,7 +966,6 @@ var e = {
968
966
  dismissableNotice: "Verrà nascosto dopo il primo messaggio.",
969
967
  privacyPolicyNotice: "Visibile del modulo di contatto.",
970
968
  fileUploadEnabled: "Permetti agli utenti di allegare file ai messaggi.",
971
- toolWorkingSetMode: "Prima di ogni risposta un modello di valutazione (TypeSafe Jev, tramite il gateway AI) sceglie i server MCP, gli API Tools e i sotto-agenti che servono al messaggio, e l’agente vede solo quelli: contesto più corto e risposte più rapide. Quando gliene serve un altro, l’agente lo riattiva da solo. In modalità ombra la scelta viene solo registrata, per confrontarla con i tool che l’agente usa davvero.",
972
969
  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.",
973
970
  platformSupported: "Resa nativa su WhatsApp e Teams",
974
971
  tool: {
@@ -1113,20 +1110,19 @@ var e = {
1113
1110
  prompt: "Per continuare serve la tua conferma:"
1114
1111
  },
1115
1112
  toolSelection: {
1116
- title: "Selezione dei tool",
1117
- failed: "Non riuscita",
1118
- exposed: "Esposti",
1119
- threshold: "soglia {threshold}",
1120
- latency: "Tempo",
1121
- budget: "limite {budget} ms",
1122
- cost: "Costo",
1113
+ exposed: "Gruppi esposti al modello: probabilità da {threshold} in su, o usati prima",
1114
+ latency: "Tempo della valutazione, limite {budget} ms",
1115
+ cost: "Costo addebitato all’organizzazione: {cost}",
1123
1116
  notCharged: "Non addebitata",
1124
1117
  inputTokens: "Token in ingresso",
1118
+ title: "Selezione dei tool",
1119
+ failed: "Non riuscita",
1120
+ leadFailed: "La valutazione non è riuscita o non ha risposto entro {budget} ms: tutti i gruppi sono rimasti esposti.",
1125
1121
  tools: "{n} tool | {n} tool",
1126
1122
  missed: "Mancato",
1127
1123
  used: "Usato",
1128
1124
  enabled: "Riattivato",
1129
- seeded: "Dalla conversazione",
1125
+ seeded: "Usato in precedenza",
1130
1126
  probability: "Probabilità che il messaggio abbia bisogno del gruppo; esposto da {threshold}"
1131
1127
  },
1132
1128
  validation: { invalidPhoneNumber: "Il numero inserito non è corretto" },
@@ -119,9 +119,9 @@ type __VLS_ModelProps = {
119
119
  } | undefined;
120
120
  };
121
121
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
122
- declare var __VLS_760: {};
122
+ declare var __VLS_766: {};
123
123
  type __VLS_Slots = {} & {
124
- default?: (props: typeof __VLS_760) => any;
124
+ default?: (props: typeof __VLS_766) => any;
125
125
  };
126
126
  declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
127
127
  "update:reasoning": (value: {
@@ -69,13 +69,15 @@ export declare const ByokEmbeddingFamilySchema: z.ZodEnum<{
69
69
  "openai/text-embedding-3-large": "openai/text-embedding-3-large";
70
70
  }>;
71
71
  /**
72
- * How the two families read on a page: the product name and its producer.
73
- * Here with the list, because the gateway catalog the pages read holds the
72
+ * How the two families read on a page: the product name, its producer and
73
+ * the producer's logo (the one the catalog gives its language models). Here
74
+ * with the list, because the gateway catalog the pages read holds the
74
75
  * language models only.
75
76
  */
76
77
  export declare const BYOK_EMBEDDING_FAMILY_NAMES: Record<ByokEmbeddingFamily, {
77
78
  label: string;
78
79
  brand: string;
80
+ brandIcon: string;
79
81
  }>;
80
82
  /**
81
83
  * The semantic space a vector belongs to. Two vectors are comparable only
@@ -348,6 +350,9 @@ export declare const DiscoveredModelSchema: z.ZodObject<{
348
350
  id: z.ZodString;
349
351
  listingMatch: z.ZodNullable<z.ZodString>;
350
352
  kind: z.ZodEnum<typeof DiscoveredModelKind>;
353
+ brand: z.ZodOptional<z.ZodString>;
354
+ brandIcon: z.ZodOptional<z.ZodString>;
355
+ releasedAt: z.ZodOptional<z.ZodString>;
351
356
  }, z.core.$strip>;
352
357
  export type DiscoveredModel = z.infer<typeof DiscoveredModelSchema>;
353
358
  export declare const ModelProviderDiscoverResponseSchema: z.ZodObject<{
@@ -355,6 +360,9 @@ export declare const ModelProviderDiscoverResponseSchema: z.ZodObject<{
355
360
  id: z.ZodString;
356
361
  listingMatch: z.ZodNullable<z.ZodString>;
357
362
  kind: z.ZodEnum<typeof DiscoveredModelKind>;
363
+ brand: z.ZodOptional<z.ZodString>;
364
+ brandIcon: z.ZodOptional<z.ZodString>;
365
+ releasedAt: z.ZodOptional<z.ZodString>;
358
366
  }, z.core.$strip>>;
359
367
  listingUnavailable: z.ZodBoolean;
360
368
  }, z.core.$strip>;
@@ -399,6 +407,7 @@ export declare const ModelCatalogEntrySchema: z.ZodObject<{
399
407
  priceEstimated: z.ZodBoolean;
400
408
  contextWindow: z.ZodOptional<z.ZodNumber>;
401
409
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
410
+ releasedAt: z.ZodOptional<z.ZodString>;
402
411
  inputModalities: z.ZodOptional<z.ZodArray<z.ZodString>>;
403
412
  reasoning: z.ZodOptional<z.ZodObject<{
404
413
  effortLevels: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -302,9 +302,9 @@ export type OrganizationModelDefaults = z.infer<typeof OrganizationModelDefaults
302
302
  * shape would turn the first switch into a silent change of mode, from
303
303
  * "follow the platform" to "frozen at today's list". The price is on the
304
304
  * other side: a newly curated model appears switched on even for an
305
- * organization that curated its list, which is acceptable because this
306
- * switch is curation, not security (an agent left on a switched off model
307
- * keeps answering).
305
+ * organization that curated its list. A switched off model never answers:
306
+ * an agent left on it answers with the organization's default, and a
307
+ * fallback on it is dropped (`applyModelSwitches` in the backend).
308
308
  */
309
309
  export declare const OrganizationModelSettingsSchema: z.ZodObject<{
310
310
  agentModel: z.ZodOptional<z.ZodString>;
@@ -1,5 +1,15 @@
1
1
  import { StoragePolicy } from './Media';
2
2
  import * as z from 'zod';
3
+ /** Shortest password better-auth accepts, see `packages/auth`. */
4
+ export declare const PASSWORD_MIN_LENGTH = 8;
5
+ /**
6
+ * Longest password better-auth accepts. Since better-auth 1.7.6 a longer one
7
+ * is refused on sign-in too (`PASSWORD_TOO_LONG`), so every form checks it
8
+ * before sending and shows the translated validation error instead.
9
+ */
10
+ export declare const PASSWORD_MAX_LENGTH = 64;
11
+ /** A password as better-auth accepts it, for every form that sends one. */
12
+ export declare const PasswordSchema: z.ZodString;
3
13
  export declare const UserSchema: z.ZodObject<{
4
14
  id: z.ZodString;
5
15
  name: z.ZodString;
@@ -17,7 +17,7 @@
17
17
  * A test checks every id against a saved copy of the listing, which is what
18
18
  * replaces the by-hand verification that missed a model on 2026-09-18.
19
19
  */
20
- export declare const GATEWAY_MODELS: readonly ["openai/gpt-5-nano", "openai/gpt-5-mini", "openai/gpt-5.1-thinking", "openai/gpt-5.2", "openai/gpt-5.4-nano", "openai/gpt-5.4-mini", "openai/gpt-5.4", "openai/gpt-5.4-pro", "openai/gpt-5.5", "openai/gpt-5.5-pro", "openai/gpt-5.6-luna", "openai/gpt-5.6-terra", "openai/gpt-5.6-sol", "openai/gpt-5.6-luna-fast", "openai/gpt-5.6-terra-fast", "openai/gpt-5.6-sol-fast", "openai/gpt-6-astra", "openai/gpt-6-astra-fast", "openai/gpt-6-sol", "openai/gpt-6-sol-fast", "openai/gpt-6-luna", "openai/gpt-6-luna-fast", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash", "google/gemini-2.5-pro", "google/gemini-3-flash", "google/gemini-3.1-pro-preview", "google/gemini-3.1-flash-lite", "google/gemini-3.5-flash", "google/gemini-3.5-flash-lite", "google/gemini-3.6-flash", "google/gemini-3.7-flash", "google/gemini-3.8-flash", "anthropic/claude-haiku-4.5", "anthropic/claude-sonnet-4.6", "anthropic/claude-sonnet-5", "anthropic/claude-sonnet-5.5", "anthropic/claude-opus-4.6", "anthropic/claude-opus-4.7", "anthropic/claude-opus-4.8", "anthropic/claude-opus-5", "anthropic/claude-opus-5-fast", "anthropic/claude-opus-5.5", "anthropic/claude-opus-5.5-fast", "anthropic/claude-fable-5", "anthropic/claude-fable-5.1", "deepseek/deepseek-v3.2", "deepseek/deepseek-v4-flash-0731", "deepseek/deepseek-v4.1-flash", "deepseek/deepseek-v4-pro-0813", "alibaba/qwen3.6-plus", "alibaba/qwen3.7-max", "alibaba/qwen3.7-plus", "alibaba/qwen3.7-flash", "alibaba/qwen3.8-flash", "alibaba/qwen3.8-max", "alibaba/qwen3.8-27b", "alibaba/qwen3.8-max-0902", "alibaba/qwen3.8-omni-flash", "alibaba/qwen3.8-max-prime", "spacexai/grok-4.3", "spacexai/grok-4.6", "spacexai/grok-4.7", "zai/glm-5.2", "zai/glm-5.2-fast", "zai/glm-5.3", "zai/glm-5.3-flash", "zai/glm-5.3-fast", "zai/glm-5.3-flashx", "meta/muse-spark-1.1", "meta/muse-spark-1.2", "meta/muse-spark-1.3", "moonshotai/kimi-k3", "moonshotai/kimi-k3-fast", "mistral/ministral-14b", "mistral/mistral-small", "mistral/mistral-medium-3.5", "mistral/mistral-large-3", "xiaomi/mimo-v2.6-flash", "xiaomi/mimo-v2.6-pro", "xiaomi/mimo-v2.6-pro-ultraspeed"];
20
+ export declare const GATEWAY_MODELS: readonly ["openai/gpt-5-nano", "openai/gpt-5-mini", "openai/gpt-5.1-thinking", "openai/gpt-5.2", "openai/gpt-5.4-nano", "openai/gpt-5.4-mini", "openai/gpt-5.4", "openai/gpt-5.4-pro", "openai/gpt-5.5", "openai/gpt-5.5-pro", "openai/gpt-5.6-luna", "openai/gpt-5.6-terra", "openai/gpt-5.6-sol", "openai/gpt-5.6-luna-fast", "openai/gpt-5.6-terra-fast", "openai/gpt-5.6-sol-fast", "openai/gpt-6-astra", "openai/gpt-6-astra-fast", "openai/gpt-6-sol", "openai/gpt-6-sol-fast", "openai/gpt-6-luna", "openai/gpt-6-luna-fast", "openai/gpt-6.1-sol", "openai/gpt-6.1-sol-fast", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash", "google/gemini-2.5-pro", "google/gemini-3-flash", "google/gemini-3.1-pro-preview", "google/gemini-3.1-flash-lite", "google/gemini-3.5-flash", "google/gemini-3.5-flash-lite", "google/gemini-3.6-flash", "google/gemini-3.7-flash", "google/gemini-3.8-flash", "anthropic/claude-haiku-4.5", "anthropic/claude-sonnet-4.6", "anthropic/claude-sonnet-5", "anthropic/claude-sonnet-5.5", "anthropic/claude-opus-4.6", "anthropic/claude-opus-4.7", "anthropic/claude-opus-4.8", "anthropic/claude-opus-5", "anthropic/claude-opus-5-fast", "anthropic/claude-opus-5.5", "anthropic/claude-opus-5.5-fast", "anthropic/claude-fable-5", "anthropic/claude-fable-5.1", "deepseek/deepseek-v3.2", "deepseek/deepseek-v4-flash-0731", "deepseek/deepseek-v4.1-flash", "deepseek/deepseek-v4-pro-0813", "alibaba/qwen3.6-plus", "alibaba/qwen3.7-max", "alibaba/qwen3.7-plus", "alibaba/qwen3.7-flash", "alibaba/qwen3.8-flash", "alibaba/qwen3.8-max", "alibaba/qwen3.8-27b", "alibaba/qwen3.8-max-0902", "alibaba/qwen3.8-omni-flash", "alibaba/qwen3.8-max-prime", "spacexai/grok-4.3", "spacexai/grok-4.6", "spacexai/grok-4.7", "zai/glm-5.2", "zai/glm-5.2-fast", "zai/glm-5.3", "zai/glm-5.3-flash", "zai/glm-5.3-fast", "zai/glm-5.3-flashx", "meta/muse-spark-1.1", "meta/muse-spark-1.2", "meta/muse-spark-1.3", "moonshotai/kimi-k3", "moonshotai/kimi-k3-fast", "mistral/ministral-14b", "mistral/mistral-small", "mistral/mistral-medium-3.5", "mistral/mistral-large-3", "xiaomi/mimo-v2.6-flash", "xiaomi/mimo-v2.6-pro", "xiaomi/mimo-v2.6-pro-ultraspeed"];
21
21
  /**
22
22
  * A model id: an entry of {@link GATEWAY_MODELS}, or a `byok/` id served by an
23
23
  * organization's own endpoint. A plain string on purpose, because the second