@8wave/ai-elements 0.127.0-beta.7 → 0.127.0-beta.8

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 (144) hide show
  1. package/dist/_chunks/{Agent-nB9V45mr.js → Agent-C5Jpr5i5.js} +76 -58
  2. package/dist/_chunks/Agent-C5Jpr5i5.js.map +1 -0
  3. package/dist/_chunks/{Document-Dm5GM40t.js → Document-lhfsmafy.js} +2 -2
  4. package/dist/_chunks/{Document-Dm5GM40t.js.map → Document-lhfsmafy.js.map} +1 -1
  5. package/dist/_chunks/{PkFilePreview-BaJet5cw.js → PkFilePreview-yKT0QkEB.js} +3 -3
  6. package/dist/_chunks/{PkFilePreview-BaJet5cw.js.map → PkFilePreview-yKT0QkEB.js.map} +1 -1
  7. package/dist/_chunks/{PkFilePreviewDialog-Cq8DGCD1.js → PkFilePreviewDialog-B4yKQbLi.js} +2 -2
  8. package/dist/_chunks/{PkFilePreviewDialog-Cq8DGCD1.js.map → PkFilePreviewDialog-B4yKQbLi.js.map} +1 -1
  9. package/dist/_chunks/{PkImageEditorDialog-5Px7Y_8G.js → PkImageEditorDialog-BF6tQvTY.js} +2 -2
  10. package/dist/_chunks/{PkImageEditorDialog-5Px7Y_8G.js.map → PkImageEditorDialog-BF6tQvTY.js.map} +1 -1
  11. package/dist/_chunks/{PkSelectionActions-DDhbwE4U.js → PkSelectionActions-J1AaO8Of.js} +2 -2
  12. package/dist/_chunks/{PkSelectionActions-DDhbwE4U.js.map → PkSelectionActions-J1AaO8Of.js.map} +1 -1
  13. package/dist/_chunks/{PkStreamingMarkdown-5WfFCjFv.js → PkStreamingMarkdown-CvIq4j9U.js} +3 -3
  14. package/dist/_chunks/{PkStreamingMarkdown-5WfFCjFv.js.map → PkStreamingMarkdown-CvIq4j9U.js.map} +1 -1
  15. package/dist/_chunks/{PkToolChatFile-fTo6gdqx.js → PkToolChatFile-Y5CR96-B.js} +3 -3
  16. package/dist/_chunks/{PkToolChatFile-fTo6gdqx.js.map → PkToolChatFile-Y5CR96-B.js.map} +1 -1
  17. package/dist/_chunks/{PkToolRequestGeolocation-BeFZQQxz.js → PkToolRequestGeolocation-UQJ9S20q.js} +2 -2
  18. package/dist/_chunks/{PkToolRequestGeolocation-BeFZQQxz.js.map → PkToolRequestGeolocation-UQJ9S20q.js.map} +1 -1
  19. package/dist/_chunks/{PkToolRequestOAuthConnection-_01ct5du.js → PkToolRequestOAuthConnection-DunGTHsM.js} +2 -2
  20. package/dist/_chunks/{PkToolRequestOAuthConnection-_01ct5du.js.map → PkToolRequestOAuthConnection-DunGTHsM.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowArtifact-C28dOM5W.js → PkToolShowArtifact-CBsIMKuq.js} +2 -2
  22. package/dist/_chunks/{PkToolShowArtifact-C28dOM5W.js.map → PkToolShowArtifact-CBsIMKuq.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowContactForm-D06qrkHm.js → PkToolShowContactForm-D8tYijcg.js} +2 -2
  24. package/dist/_chunks/{PkToolShowContactForm-D06qrkHm.js.map → PkToolShowContactForm-D8tYijcg.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowForm-qj_f9Z5D.js → PkToolShowForm-CM63L5WC.js} +4 -4
  26. package/dist/_chunks/{PkToolShowForm-qj_f9Z5D.js.map → PkToolShowForm-CM63L5WC.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowImageGallery-Dm2UEfWl.js → PkToolShowImageGallery-DN6kSeuD.js} +2 -2
  28. package/dist/_chunks/{PkToolShowImageGallery-Dm2UEfWl.js.map → PkToolShowImageGallery-DN6kSeuD.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowProductList-DorHQJMd.js → PkToolShowProductList-BkmajNm0.js} +2 -2
  30. package/dist/_chunks/{PkToolShowProductList-DorHQJMd.js.map → PkToolShowProductList-BkmajNm0.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowSources-BMJeacz7.js → PkToolShowSources-BoJmMb4K.js} +3 -3
  32. package/dist/_chunks/{PkToolShowSources-BMJeacz7.js.map → PkToolShowSources-BoJmMb4K.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowSuggestedReply-DBfeOl05.js → PkToolShowSuggestedReply-BVMpjsys.js} +2 -2
  34. package/dist/_chunks/{PkToolShowSuggestedReply-DBfeOl05.js.map → PkToolShowSuggestedReply-BVMpjsys.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowVideo-YwSq8c2P.js → PkToolShowVideo-DP2fDXF9.js} +2 -2
  36. package/dist/_chunks/{PkToolShowVideo-YwSq8c2P.js.map → PkToolShowVideo-DP2fDXF9.js.map} +1 -1
  37. package/dist/_chunks/{PkToolShowWebPages-DtZC0KHO.js → PkToolShowWebPages-B7w6G2iO.js} +2 -2
  38. package/dist/_chunks/{PkToolShowWebPages-DtZC0KHO.js.map → PkToolShowWebPages-B7w6G2iO.js.map} +1 -1
  39. package/dist/_chunks/{chatImagePolicy-Cj5lkTVq.js → chatImagePolicy-DSoafnHw.js} +2 -2
  40. package/dist/_chunks/{chatImagePolicy-Cj5lkTVq.js.map → chatImagePolicy-DSoafnHw.js.map} +1 -1
  41. package/dist/_chunks/{utils-CRy3kzE3.js → utils-BYVRPDrv.js} +2 -2
  42. package/dist/_chunks/{utils-CRy3kzE3.js.map → utils-BYVRPDrv.js.map} +1 -1
  43. package/dist/ai-elements.es.js +26 -23
  44. package/dist/ai-elements.es.js.map +1 -1
  45. package/dist-vue/PkChatbot.js +1 -1
  46. package/dist-vue/PkChatbotEmptyState.js +1 -1
  47. package/dist-vue/PkChatbotInput.js +1 -1
  48. package/dist-vue/PkChatbotMessages.js +1 -1
  49. package/dist-vue/PkChatbotStepPayload.js +1 -1
  50. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  51. package/dist-vue/PkChatbotSteps.js +1 -1
  52. package/dist-vue/PkChatbotViewChat.js +1 -1
  53. package/dist-vue/PkChatbotViewConversations.js +1 -1
  54. package/dist-vue/PkChatbotViewFiles.js +1 -1
  55. package/dist-vue/PkChatbotViewProfile.js +1 -1
  56. package/dist-vue/_chunks/{Agent-DKefaJeG.js → Agent-BmgzrjcZ.js} +302 -280
  57. package/dist-vue/_chunks/Agent-BmgzrjcZ.js.map +1 -0
  58. package/dist-vue/_chunks/{Document-B49E_gxT.js → Document-ebwxbTSm.js} +12 -12
  59. package/dist-vue/_chunks/{Document-B49E_gxT.js.map → Document-ebwxbTSm.js.map} +1 -1
  60. package/dist-vue/_chunks/{PkChatbot-CuCgECW2.js → PkChatbot-z8y2N48s.js} +8 -8
  61. package/dist-vue/_chunks/{PkChatbot-CuCgECW2.js.map → PkChatbot-z8y2N48s.js.map} +1 -1
  62. package/dist-vue/_chunks/{PkChatbotEmptyState-C_htXOSW.js → PkChatbotEmptyState-BSdctGUp.js} +2 -2
  63. package/dist-vue/_chunks/{PkChatbotEmptyState-C_htXOSW.js.map → PkChatbotEmptyState-BSdctGUp.js.map} +1 -1
  64. package/dist-vue/_chunks/{PkChatbotInput-CJ5lPtpH.js → PkChatbotInput-Bkr2FMAR.js} +4 -4
  65. package/dist-vue/_chunks/{PkChatbotInput-CJ5lPtpH.js.map → PkChatbotInput-Bkr2FMAR.js.map} +1 -1
  66. package/dist-vue/_chunks/{PkChatbotMessages-CDDoxZAf.js → PkChatbotMessages-DDlmLGyp.js} +21 -21
  67. package/dist-vue/_chunks/{PkChatbotMessages-CDDoxZAf.js.map → PkChatbotMessages-DDlmLGyp.js.map} +1 -1
  68. package/dist-vue/_chunks/{PkChatbotStepPayload-BLjH1pkP.js → PkChatbotStepPayload-BWeGBOGl.js} +2 -2
  69. package/dist-vue/_chunks/{PkChatbotStepPayload-BLjH1pkP.js.map → PkChatbotStepPayload-BWeGBOGl.js.map} +1 -1
  70. package/dist-vue/_chunks/{PkChatbotStepToolDetail-wIZmkvr-.js → PkChatbotStepToolDetail-k_purHyE.js} +3 -3
  71. package/dist-vue/_chunks/{PkChatbotStepToolDetail-wIZmkvr-.js.map → PkChatbotStepToolDetail-k_purHyE.js.map} +1 -1
  72. package/dist-vue/_chunks/{PkChatbotSteps-DG09GyCb.js → PkChatbotSteps-DvYhk_xP.js} +6 -6
  73. package/dist-vue/_chunks/{PkChatbotSteps-DG09GyCb.js.map → PkChatbotSteps-DvYhk_xP.js.map} +1 -1
  74. package/dist-vue/_chunks/{PkChatbotViewChat-FtOpDmks.js → PkChatbotViewChat-DmhTbDrb.js} +9 -9
  75. package/dist-vue/_chunks/{PkChatbotViewChat-FtOpDmks.js.map → PkChatbotViewChat-DmhTbDrb.js.map} +1 -1
  76. package/dist-vue/_chunks/{PkChatbotViewConversations-NA_PCvZR.js → PkChatbotViewConversations-D6i4rxKl.js} +4 -4
  77. package/dist-vue/_chunks/{PkChatbotViewConversations-NA_PCvZR.js.map → PkChatbotViewConversations-D6i4rxKl.js.map} +1 -1
  78. package/dist-vue/_chunks/{PkChatbotViewFiles-D8_Khdu2.js → PkChatbotViewFiles-D9MF3DCL.js} +3 -3
  79. package/dist-vue/_chunks/{PkChatbotViewFiles-D8_Khdu2.js.map → PkChatbotViewFiles-D9MF3DCL.js.map} +1 -1
  80. package/dist-vue/_chunks/{PkChatbotViewProfile-iTBiQVsZ.js → PkChatbotViewProfile-ufTg8n0v.js} +2 -2
  81. package/dist-vue/_chunks/{PkChatbotViewProfile-iTBiQVsZ.js.map → PkChatbotViewProfile-ufTg8n0v.js.map} +1 -1
  82. package/dist-vue/_chunks/{PkFilePreview-B6PSJcvA.js → PkFilePreview-DFOGpWq1.js} +3 -3
  83. package/dist-vue/_chunks/{PkFilePreview-B6PSJcvA.js.map → PkFilePreview-DFOGpWq1.js.map} +1 -1
  84. package/dist-vue/_chunks/{PkFilePreviewDialog-3HJbVudc.js → PkFilePreviewDialog-C9MPW3Ca.js} +2 -2
  85. package/dist-vue/_chunks/{PkFilePreviewDialog-3HJbVudc.js.map → PkFilePreviewDialog-C9MPW3Ca.js.map} +1 -1
  86. package/dist-vue/_chunks/{PkImageEditorDialog-CrjpCier.js → PkImageEditorDialog-bt-_WXJ7.js} +2 -2
  87. package/dist-vue/_chunks/{PkImageEditorDialog-CrjpCier.js.map → PkImageEditorDialog-bt-_WXJ7.js.map} +1 -1
  88. package/dist-vue/_chunks/{PkStreamingMarkdown-CgKFdzCI.js → PkStreamingMarkdown-D38PPSbB.js} +3 -3
  89. package/dist-vue/_chunks/{PkStreamingMarkdown-CgKFdzCI.js.map → PkStreamingMarkdown-D38PPSbB.js.map} +1 -1
  90. package/dist-vue/_chunks/{PkToolChatFile-IEQxfzjM.js → PkToolChatFile-Dvn6Jg9n.js} +4 -4
  91. package/dist-vue/_chunks/{PkToolChatFile-IEQxfzjM.js.map → PkToolChatFile-Dvn6Jg9n.js.map} +1 -1
  92. package/dist-vue/_chunks/{PkToolRequestGeolocation-BmrbMPke.js → PkToolRequestGeolocation-B9t-ttW_.js} +2 -2
  93. package/dist-vue/_chunks/{PkToolRequestGeolocation-BmrbMPke.js.map → PkToolRequestGeolocation-B9t-ttW_.js.map} +1 -1
  94. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-yKgXyOUN.js → PkToolRequestOAuthConnection-D73L805S.js} +2 -2
  95. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-yKgXyOUN.js.map → PkToolRequestOAuthConnection-D73L805S.js.map} +1 -1
  96. package/dist-vue/_chunks/{PkToolShowArtifact-CF90yFCe.js → PkToolShowArtifact-Clkqoz26.js} +2 -2
  97. package/dist-vue/_chunks/{PkToolShowArtifact-CF90yFCe.js.map → PkToolShowArtifact-Clkqoz26.js.map} +1 -1
  98. package/dist-vue/_chunks/{PkToolShowChart-CDR8ag4q.js → PkToolShowChart-RLAsKQT7.js} +2 -2
  99. package/dist-vue/_chunks/{PkToolShowChart-CDR8ag4q.js.map → PkToolShowChart-RLAsKQT7.js.map} +1 -1
  100. package/dist-vue/_chunks/{PkToolShowContactForm-Cg2TiqP1.js → PkToolShowContactForm-BSDtKWWD.js} +2 -2
  101. package/dist-vue/_chunks/{PkToolShowContactForm-Cg2TiqP1.js.map → PkToolShowContactForm-BSDtKWWD.js.map} +1 -1
  102. package/dist-vue/_chunks/{PkToolShowDiagram-Do20AvFb.js → PkToolShowDiagram-9EYiOJXE.js} +2 -2
  103. package/dist-vue/_chunks/{PkToolShowDiagram-Do20AvFb.js.map → PkToolShowDiagram-9EYiOJXE.js.map} +1 -1
  104. package/dist-vue/_chunks/{PkToolShowForm-DfFmPOt6.js → PkToolShowForm-mXmiZPIW.js} +4 -4
  105. package/dist-vue/_chunks/{PkToolShowForm-DfFmPOt6.js.map → PkToolShowForm-mXmiZPIW.js.map} +1 -1
  106. package/dist-vue/_chunks/{PkToolShowImageGallery-DA6KW2g_.js → PkToolShowImageGallery-B2phVedq.js} +2 -2
  107. package/dist-vue/_chunks/{PkToolShowImageGallery-DA6KW2g_.js.map → PkToolShowImageGallery-B2phVedq.js.map} +1 -1
  108. package/dist-vue/_chunks/{PkToolShowProductList-FcDDabPI.js → PkToolShowProductList-BX9D6A8k.js} +2 -2
  109. package/dist-vue/_chunks/{PkToolShowProductList-FcDDabPI.js.map → PkToolShowProductList-BX9D6A8k.js.map} +1 -1
  110. package/dist-vue/_chunks/{PkToolShowSources-afCYBONq.js → PkToolShowSources-B0Xw8RR2.js} +3 -3
  111. package/dist-vue/_chunks/{PkToolShowSources-afCYBONq.js.map → PkToolShowSources-B0Xw8RR2.js.map} +1 -1
  112. package/dist-vue/_chunks/{PkToolShowSuggestedReply-C863wgtU.js → PkToolShowSuggestedReply-C4ymiiHa.js} +2 -2
  113. package/dist-vue/_chunks/{PkToolShowSuggestedReply-C863wgtU.js.map → PkToolShowSuggestedReply-C4ymiiHa.js.map} +1 -1
  114. package/dist-vue/_chunks/{PkToolShowVideo-kUiwxRlz.js → PkToolShowVideo-DyOPeNq_.js} +2 -2
  115. package/dist-vue/_chunks/{PkToolShowVideo-kUiwxRlz.js.map → PkToolShowVideo-DyOPeNq_.js.map} +1 -1
  116. package/dist-vue/_chunks/{PkToolShowWebPages-Dw9D1__u.js → PkToolShowWebPages-DajE3TAx.js} +2 -2
  117. package/dist-vue/_chunks/{PkToolShowWebPages-Dw9D1__u.js.map → PkToolShowWebPages-DajE3TAx.js.map} +1 -1
  118. package/dist-vue/_chunks/{createChatbotApiClient-DzrHp52e.js → createChatbotApiClient-GhHO4Bni.js} +18 -17
  119. package/dist-vue/_chunks/createChatbotApiClient-GhHO4Bni.js.map +1 -0
  120. package/dist-vue/_chunks/{localFolders-ChZp8dLu.js → localFolders-D8DxM-5y.js} +46 -46
  121. package/dist-vue/_chunks/{localFolders-ChZp8dLu.js.map → localFolders-D8DxM-5y.js.map} +1 -1
  122. package/dist-vue/_chunks/{useChatbotStore-DZlc7dzK.js → useChatbotStore-BTq-tgZB.js} +21 -21
  123. package/dist-vue/_chunks/{useChatbotStore-DZlc7dzK.js.map → useChatbotStore-BTq-tgZB.js.map} +1 -1
  124. package/dist-vue/_chunks/{utils-CY0jFRnG.js → utils-SmeQuVL1.js} +8 -8
  125. package/dist-vue/_chunks/{utils-CY0jFRnG.js.map → utils-SmeQuVL1.js.map} +1 -1
  126. package/dist-vue/api.js +1 -1
  127. package/dist-vue/composables.js +15 -13
  128. package/dist-vue/composables.js.map +1 -1
  129. package/dist-vue/index.js +4876 -4802
  130. package/dist-vue/index.js.map +1 -1
  131. package/dist-vue/locales.js +14 -0
  132. package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +11 -2
  133. package/dist-vue/packages/composable/src/chatbot/useChatProjectsStore.d.ts +9 -0
  134. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +9 -0
  135. package/dist-vue/packages/composable/src/chatbot/useConversationActions.d.ts +1 -0
  136. package/dist-vue/packages/models/src/schema/Agent.d.ts +53 -0
  137. package/dist-vue/packages/models/src/schema/Chat.d.ts +1 -0
  138. package/dist-vue/packages/models/src/schema/Organization.d.ts +10 -0
  139. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +11 -0
  140. package/dist-vue/packages/models/src/schema/SubAgent.d.ts +10 -0
  141. package/package.json +1 -1
  142. package/dist/_chunks/Agent-nB9V45mr.js.map +0 -1
  143. package/dist-vue/_chunks/Agent-DKefaJeG.js.map +0 -1
  144. package/dist-vue/_chunks/createChatbotApiClient-DzrHp52e.js.map +0 -1
@@ -245,6 +245,10 @@ var e = {
245
245
  searchMode: "Search mode",
246
246
  limit: "Limit",
247
247
  maxStepCount: "Max steps",
248
+ summaryAndAnalysis: "Summary and analysis",
249
+ compactionWindowPercent: "Summary threshold",
250
+ compactionMaxTokens: "Conversation cap (tokens)",
251
+ analysisInterval: "Messages between analyses",
248
252
  smartRanking: "Smart ranking",
249
253
  freshnessBoost: "Freshness boost",
250
254
  freshnessWeight: "Freshness weight",
@@ -516,6 +520,9 @@ var e = {
516
520
  providerTimeoutMs: "1000-789000, then the next one. BYOK only.",
517
521
  showReasoning: "Turned off, the chat says the agent is reasoning without showing its text.",
518
522
  showExtendedSteps: "Shows reasoning and tool calls as an expandable timeline in the chat.",
523
+ compactionWindowPercent: "How much of the room the model's window leaves after instructions and tools the conversation may fill: past it, the oldest messages become a summary and the last two exchanges stay.",
524
+ compactionMaxTokens: "From 10,000 to 1,000,000. Past these tokens the conversation is summarized even when the model's window is larger. For a model of your endpoint the catalog does not recognize, a window of 128,000 is assumed: if it is smaller, lower the cap.",
525
+ analysisInterval: "The conversation is checked for abuse and agent mistakes each time this many new messages arrive. The lower it is, the sooner the warnings that lead to the automatic block add up too.",
519
526
  freshnessBoost: "Applies a boost based on how recently the document was updated.",
520
527
  freshnessScale: "Freshness scale (days)",
521
528
  freshnessScaleTooltip: "The half-life of the exponential decay. A document as old as this value will receive 50% of the maximum boost. Lower values cause older documents to lose the boost more quickly.",
@@ -1402,6 +1409,10 @@ var e = {
1402
1409
  searchMode: "Modalità di ricerca",
1403
1410
  limit: "Limite",
1404
1411
  maxStepCount: "Numero massimo di step",
1412
+ summaryAndAnalysis: "Riassunto e analisi",
1413
+ compactionWindowPercent: "Soglia del riassunto",
1414
+ compactionMaxTokens: "Tetto della conversazione (token)",
1415
+ analysisInterval: "Messaggi tra due analisi",
1405
1416
  smartRanking: "Ranking intelligente",
1406
1417
  freshnessBoost: "Boost freschezza",
1407
1418
  freshnessWeight: "Peso freschezza",
@@ -1673,6 +1684,9 @@ var e = {
1673
1684
  providerTimeoutMs: "1000-789000, poi il successivo. Solo BYOK.",
1674
1685
  showReasoning: "Spento, la chat dice che l'agente sta ragionando senza mostrarne il testo.",
1675
1686
  showExtendedSteps: "Visualizza la timeline con il ragionamento e gli strumenti nella chat.",
1687
+ compactionWindowPercent: "Quanta parte dello spazio che la finestra del modello lascia dopo istruzioni e tool può occupare la conversazione: oltre, i messaggi più vecchi diventano un riassunto e restano gli ultimi due scambi.",
1688
+ compactionMaxTokens: "Da 10.000 a 1.000.000. Oltre questi token la conversazione si riassume anche se la finestra del modello è più grande. Per un modello del tuo endpoint che il catalogo non riconosce si assume una finestra da 128.000: se è più piccola, abbassa il tetto.",
1689
+ analysisInterval: "La conversazione si analizza per abusi ed errori dell’agente ogni volta che arriva questo numero di messaggi nuovi. Più è basso, prima si accumulano anche gli avvisi che portano al blocco automatico.",
1676
1690
  freshnessBoost: "Applica un boost basandosi su quanto recentemente il documento è stato aggiornato.",
1677
1691
  freshnessScale: "Scala temporale spinta (Giorni)",
1678
1692
  freshnessScaleTooltip: "Il tempo di dimezzamento (half-life) del decadimento esponenziale. Un documento vecchio esattamente quanto questo valore riceverà il 50% del boost massimo. Più è basso, più i documenti vecchi perderanno rapidamente il boost.",
@@ -46,6 +46,9 @@ type __VLS_ModelProps = {
46
46
  'visibility'?: string;
47
47
  'limit'?: number;
48
48
  'maxStepCount'?: number;
49
+ 'compactionWindowPercent'?: number;
50
+ 'compactionMaxTokens'?: number | undefined;
51
+ 'analysisInterval'?: number;
49
52
  'maxOutputTokens'?: number | undefined;
50
53
  'presencePenalty'?: number;
51
54
  'frequencyPenalty'?: number;
@@ -171,9 +174,9 @@ type __VLS_ModelProps = {
171
174
  } | undefined;
172
175
  };
173
176
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
174
- declare var __VLS_963: {};
177
+ declare var __VLS_984: {};
175
178
  type __VLS_Slots = {} & {
176
- default?: (props: typeof __VLS_963) => any;
179
+ default?: (props: typeof __VLS_984) => any;
177
180
  };
178
181
  declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
179
182
  "update:reasoning": (value: {
@@ -274,6 +277,9 @@ declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Com
274
277
  "update:visibility": (value: string) => any;
275
278
  "update:limit": (value: number) => any;
276
279
  "update:maxStepCount": (value: number) => any;
280
+ "update:compactionWindowPercent": (value: number) => any;
281
+ "update:compactionMaxTokens": (value: number | undefined) => any;
282
+ "update:analysisInterval": (value: number) => any;
277
283
  "update:maxOutputTokens": (value: number | undefined) => any;
278
284
  "update:presencePenalty": (value: number) => any;
279
285
  "update:frequencyPenalty": (value: number) => any;
@@ -581,6 +587,9 @@ declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Com
581
587
  "onUpdate:visibility"?: ((value: string) => any) | undefined;
582
588
  "onUpdate:limit"?: ((value: number) => any) | undefined;
583
589
  "onUpdate:maxStepCount"?: ((value: number) => any) | undefined;
590
+ "onUpdate:compactionWindowPercent"?: ((value: number) => any) | undefined;
591
+ "onUpdate:compactionMaxTokens"?: ((value: number | undefined) => any) | undefined;
592
+ "onUpdate:analysisInterval"?: ((value: number) => any) | undefined;
584
593
  "onUpdate:maxOutputTokens"?: ((value: number | undefined) => any) | undefined;
585
594
  "onUpdate:presencePenalty"?: ((value: number) => any) | undefined;
586
595
  "onUpdate:frequencyPenalty"?: ((value: number) => any) | undefined;
@@ -639,6 +639,7 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
639
639
  blockedReason: string | null;
640
640
  warningCount: number;
641
641
  lastMessageAt: Date;
642
+ messageCountAtLastAnalysis?: number | null | undefined;
642
643
  conversationAnalysis?: {
643
644
  analyzedAt: Date;
644
645
  analysisTrigger: ConversationAnalysisTrigger;
@@ -684,6 +685,7 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
684
685
  blockedReason: string | null;
685
686
  warningCount: number;
686
687
  lastMessageAt: Date;
688
+ messageCountAtLastAnalysis?: number | null | undefined;
687
689
  conversationAnalysis?: {
688
690
  analyzedAt: Date;
689
691
  analysisTrigger: ConversationAnalysisTrigger;
@@ -1282,6 +1284,7 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
1282
1284
  blockedReason: string | null;
1283
1285
  warningCount: number;
1284
1286
  lastMessageAt: Date;
1287
+ messageCountAtLastAnalysis?: number | null | undefined;
1285
1288
  conversationAnalysis?: {
1286
1289
  analyzedAt: Date;
1287
1290
  analysisTrigger: ConversationAnalysisTrigger;
@@ -1970,6 +1973,7 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
1970
1973
  blockedReason: string | null;
1971
1974
  warningCount: number;
1972
1975
  lastMessageAt: Date;
1976
+ messageCountAtLastAnalysis?: number | null | undefined;
1973
1977
  conversationAnalysis?: {
1974
1978
  analyzedAt: Date;
1975
1979
  analysisTrigger: ConversationAnalysisTrigger;
@@ -2015,6 +2019,7 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
2015
2019
  blockedReason: string | null;
2016
2020
  warningCount: number;
2017
2021
  lastMessageAt: Date;
2022
+ messageCountAtLastAnalysis?: number | null | undefined;
2018
2023
  conversationAnalysis?: {
2019
2024
  analyzedAt: Date;
2020
2025
  analysisTrigger: ConversationAnalysisTrigger;
@@ -2613,6 +2618,7 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
2613
2618
  blockedReason: string | null;
2614
2619
  warningCount: number;
2615
2620
  lastMessageAt: Date;
2621
+ messageCountAtLastAnalysis?: number | null | undefined;
2616
2622
  conversationAnalysis?: {
2617
2623
  analyzedAt: Date;
2618
2624
  analysisTrigger: ConversationAnalysisTrigger;
@@ -3301,6 +3307,7 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
3301
3307
  blockedReason: string | null;
3302
3308
  warningCount: number;
3303
3309
  lastMessageAt: Date;
3310
+ messageCountAtLastAnalysis?: number | null | undefined;
3304
3311
  conversationAnalysis?: {
3305
3312
  analyzedAt: Date;
3306
3313
  analysisTrigger: ConversationAnalysisTrigger;
@@ -3346,6 +3353,7 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
3346
3353
  blockedReason: string | null;
3347
3354
  warningCount: number;
3348
3355
  lastMessageAt: Date;
3356
+ messageCountAtLastAnalysis?: number | null | undefined;
3349
3357
  conversationAnalysis?: {
3350
3358
  analyzedAt: Date;
3351
3359
  analysisTrigger: ConversationAnalysisTrigger;
@@ -3944,6 +3952,7 @@ export declare function useChatProjectsStore(agentId: string): Store<`chat-proje
3944
3952
  blockedReason: string | null;
3945
3953
  warningCount: number;
3946
3954
  lastMessageAt: Date;
3955
+ messageCountAtLastAnalysis?: number | null | undefined;
3947
3956
  conversationAnalysis?: {
3948
3957
  analyzedAt: Date;
3949
3958
  analysisTrigger: ConversationAnalysisTrigger;
@@ -1392,6 +1392,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
1392
1392
  blockedReason: string | null;
1393
1393
  warningCount: number;
1394
1394
  lastMessageAt: Date;
1395
+ messageCountAtLastAnalysis?: number | null | undefined;
1395
1396
  conversationAnalysis?: {
1396
1397
  analyzedAt: Date;
1397
1398
  analysisTrigger: ConversationAnalysisTrigger;
@@ -1437,6 +1438,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
1437
1438
  blockedReason: string | null;
1438
1439
  warningCount: number;
1439
1440
  lastMessageAt: Date;
1441
+ messageCountAtLastAnalysis?: number | null | undefined;
1440
1442
  conversationAnalysis?: {
1441
1443
  analyzedAt: Date;
1442
1444
  analysisTrigger: ConversationAnalysisTrigger;
@@ -2035,6 +2037,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
2035
2037
  blockedReason: string | null;
2036
2038
  warningCount: number;
2037
2039
  lastMessageAt: Date;
2040
+ messageCountAtLastAnalysis?: number | null | undefined;
2038
2041
  conversationAnalysis?: {
2039
2042
  analyzedAt: Date;
2040
2043
  analysisTrigger: ConversationAnalysisTrigger;
@@ -3666,6 +3669,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
3666
3669
  blockedReason: string | null;
3667
3670
  warningCount: number;
3668
3671
  lastMessageAt: Date;
3672
+ messageCountAtLastAnalysis?: number | null | undefined;
3669
3673
  conversationAnalysis?: {
3670
3674
  analyzedAt: Date;
3671
3675
  analysisTrigger: ConversationAnalysisTrigger;
@@ -3711,6 +3715,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
3711
3715
  blockedReason: string | null;
3712
3716
  warningCount: number;
3713
3717
  lastMessageAt: Date;
3718
+ messageCountAtLastAnalysis?: number | null | undefined;
3714
3719
  conversationAnalysis?: {
3715
3720
  analyzedAt: Date;
3716
3721
  analysisTrigger: ConversationAnalysisTrigger;
@@ -4309,6 +4314,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
4309
4314
  blockedReason: string | null;
4310
4315
  warningCount: number;
4311
4316
  lastMessageAt: Date;
4317
+ messageCountAtLastAnalysis?: number | null | undefined;
4312
4318
  conversationAnalysis?: {
4313
4319
  analyzedAt: Date;
4314
4320
  analysisTrigger: ConversationAnalysisTrigger;
@@ -5940,6 +5946,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
5940
5946
  blockedReason: string | null;
5941
5947
  warningCount: number;
5942
5948
  lastMessageAt: Date;
5949
+ messageCountAtLastAnalysis?: number | null | undefined;
5943
5950
  conversationAnalysis?: {
5944
5951
  analyzedAt: Date;
5945
5952
  analysisTrigger: ConversationAnalysisTrigger;
@@ -5985,6 +5992,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
5985
5992
  blockedReason: string | null;
5986
5993
  warningCount: number;
5987
5994
  lastMessageAt: Date;
5995
+ messageCountAtLastAnalysis?: number | null | undefined;
5988
5996
  conversationAnalysis?: {
5989
5997
  analyzedAt: Date;
5990
5998
  analysisTrigger: ConversationAnalysisTrigger;
@@ -6583,6 +6591,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
6583
6591
  blockedReason: string | null;
6584
6592
  warningCount: number;
6585
6593
  lastMessageAt: Date;
6594
+ messageCountAtLastAnalysis?: number | null | undefined;
6586
6595
  conversationAnalysis?: {
6587
6596
  analyzedAt: Date;
6588
6597
  analysisTrigger: ConversationAnalysisTrigger;
@@ -35,6 +35,7 @@ export declare function groupConversationsByDate(conversations: Conversation[]):
35
35
  blockedReason: string | null;
36
36
  warningCount: number;
37
37
  lastMessageAt: Date;
38
+ messageCountAtLastAnalysis?: number | null | undefined;
38
39
  conversationAnalysis?: {
39
40
  analyzedAt: Date;
40
41
  analysisTrigger: ConversationAnalysisTrigger;
@@ -1504,6 +1504,44 @@ export declare const AgentConfirmationsCapabilitySchema: z.ZodObject<{
1504
1504
  allowAutomatic: z.ZodLiteral<true>;
1505
1505
  }, z.core.$strip>;
1506
1506
  export type AgentConfirmationsCapability = z.infer<typeof AgentConfirmationsCapabilitySchema>;
1507
+ /**
1508
+ * What an agent that leaves `settings.conversation` empty runs with (spec
1509
+ * `context-compaction.md`): the conversation is compacted at 80% of the room
1510
+ * the model's window leaves it, never past 100k tokens, and analyzed every ten
1511
+ * messages.
1512
+ */
1513
+ export declare const AGENT_CONVERSATION_DEFAULTS: {
1514
+ readonly compactionWindowPercent: 80;
1515
+ readonly compactionMaxTokens: 100000;
1516
+ readonly analysisInterval: 10;
1517
+ };
1518
+ /** The bounds of the conversation settings, for the schema and the panel. */
1519
+ export declare const AGENT_CONVERSATION_LIMITS: {
1520
+ readonly compactionWindowPercent: {
1521
+ readonly min: 20;
1522
+ readonly max: 95;
1523
+ };
1524
+ readonly compactionMaxTokens: {
1525
+ readonly min: 10000;
1526
+ readonly max: 1000000;
1527
+ };
1528
+ readonly analysisInterval: {
1529
+ readonly min: 1;
1530
+ readonly max: 100;
1531
+ };
1532
+ };
1533
+ /**
1534
+ * How the agent keeps a long conversation in the context and how often it is
1535
+ * analyzed (spec `context-compaction.md`). A field left out takes
1536
+ * {@link AGENT_CONVERSATION_DEFAULTS}, so an agent saved before these existed
1537
+ * keeps the platform values, and a later change of them reaches it too.
1538
+ */
1539
+ export declare const AgentConversationSchema: z.ZodObject<{
1540
+ compactionWindowPercent: z.ZodOptional<z.ZodNumber>;
1541
+ compactionMaxTokens: z.ZodOptional<z.ZodNumber>;
1542
+ analysisInterval: z.ZodOptional<z.ZodNumber>;
1543
+ }, z.core.$strip>;
1544
+ export type AgentConversation = z.infer<typeof AgentConversationSchema>;
1507
1545
  export declare const AgentSettingsSchema: z.ZodObject<{
1508
1546
  model: z.ZodObject<{
1509
1547
  prompt: z.ZodOptional<z.ZodString>;
@@ -2355,6 +2393,11 @@ export declare const AgentSettingsSchema: z.ZodObject<{
2355
2393
  }, z.core.$strip>>>;
2356
2394
  }, z.core.$strip>>>;
2357
2395
  }, z.core.$strip>>;
2396
+ conversation: z.ZodOptional<z.ZodObject<{
2397
+ compactionWindowPercent: z.ZodOptional<z.ZodNumber>;
2398
+ compactionMaxTokens: z.ZodOptional<z.ZodNumber>;
2399
+ analysisInterval: z.ZodOptional<z.ZodNumber>;
2400
+ }, z.core.$strip>>;
2358
2401
  }, z.core.$strip>;
2359
2402
  export type AgentSettings = z.infer<typeof AgentSettingsSchema>;
2360
2403
  export declare const AgentSecuritySchema: z.ZodObject<{
@@ -3228,6 +3271,11 @@ export declare const AgentDtoSchema: z.ZodObject<{
3228
3271
  }, z.core.$strip>>>;
3229
3272
  }, z.core.$strip>>>;
3230
3273
  }, z.core.$strip>>;
3274
+ conversation: z.ZodOptional<z.ZodObject<{
3275
+ compactionWindowPercent: z.ZodOptional<z.ZodNumber>;
3276
+ compactionMaxTokens: z.ZodOptional<z.ZodNumber>;
3277
+ analysisInterval: z.ZodOptional<z.ZodNumber>;
3278
+ }, z.core.$strip>>;
3231
3279
  }, z.core.$strip>;
3232
3280
  security: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3233
3281
  rateLimits: z.ZodObject<{
@@ -4102,6 +4150,11 @@ export declare const AgentSchema: z.ZodLazy<z.ZodObject<{
4102
4150
  }, z.core.$strip>>>;
4103
4151
  }, z.core.$strip>>>;
4104
4152
  }, z.core.$strip>>;
4153
+ conversation: z.ZodOptional<z.ZodObject<{
4154
+ compactionWindowPercent: z.ZodOptional<z.ZodNumber>;
4155
+ compactionMaxTokens: z.ZodOptional<z.ZodNumber>;
4156
+ analysisInterval: z.ZodOptional<z.ZodNumber>;
4157
+ }, z.core.$strip>>;
4105
4158
  }, z.core.$strip>;
4106
4159
  security: z.ZodNullable<z.ZodObject<{
4107
4160
  rateLimits: z.ZodObject<{
@@ -606,6 +606,7 @@ export declare const ChatSchema: z.ZodObject<{
606
606
  title: z.ZodNullable<z.ZodString>;
607
607
  summary: z.ZodNullable<z.ZodString>;
608
608
  messageCountAtLastSummary: z.ZodNullable<z.ZodString>;
609
+ messageCountAtLastAnalysis: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
609
610
  createdAt: z.ZodCoercedDate<unknown>;
610
611
  updatedAt: z.ZodCoercedDate<unknown>;
611
612
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -449,6 +449,16 @@ export declare enum OrganizationFeature {
449
449
  * while the phases ship.
450
450
  */
451
451
  ChatProjects = "chatProjects",
452
+ /**
453
+ * The analysis of the conversations (spec context-compaction.md): a
454
+ * model reads them for abuse, for the assistant's mistakes and for the
455
+ * facts the user states about themselves. It reaches the runtime: off,
456
+ * no conversation of the organization is analyzed, neither after a turn
457
+ * nor from the chat log, so no automatic block, no notification to the
458
+ * admins and no memory written from what the user said. The analyses
459
+ * already stored stay readable.
460
+ */
461
+ ConversationAnalysis = "conversationAnalysis",
452
462
  /**
453
463
  * One flag per agent visibility an organization may go without (spec
454
464
  * agent-visibility-modes.md, "Modalità per organizzazione"), and none
@@ -879,6 +879,11 @@ export declare const ReasoningChatSchema: z.ZodObject<{
879
879
  }, z.core.$strip>>>;
880
880
  }, z.core.$strip>>>;
881
881
  }, z.core.$strip>>;
882
+ conversation: z.ZodOptional<z.ZodObject<{
883
+ compactionWindowPercent: z.ZodOptional<z.ZodNumber>;
884
+ compactionMaxTokens: z.ZodOptional<z.ZodNumber>;
885
+ analysisInterval: z.ZodOptional<z.ZodNumber>;
886
+ }, z.core.$strip>>;
882
887
  }, z.core.$strip>;
883
888
  security: z.ZodNullable<z.ZodObject<{
884
889
  rateLimits: z.ZodObject<{
@@ -909,6 +914,7 @@ export declare const ReasoningChatSchema: z.ZodObject<{
909
914
  title: z.ZodNullable<z.ZodString>;
910
915
  summary: z.ZodNullable<z.ZodString>;
911
916
  messageCountAtLastSummary: z.ZodNullable<z.ZodString>;
917
+ messageCountAtLastAnalysis: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
912
918
  createdAt: z.ZodCoercedDate<unknown>;
913
919
  updatedAt: z.ZodCoercedDate<unknown>;
914
920
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -1807,6 +1813,11 @@ export declare const ReasoningChatSchema: z.ZodObject<{
1807
1813
  }, z.core.$strip>>>;
1808
1814
  }, z.core.$strip>>>;
1809
1815
  }, z.core.$strip>>;
1816
+ conversation: z.ZodOptional<z.ZodObject<{
1817
+ compactionWindowPercent: z.ZodOptional<z.ZodNumber>;
1818
+ compactionMaxTokens: z.ZodOptional<z.ZodNumber>;
1819
+ analysisInterval: z.ZodOptional<z.ZodNumber>;
1820
+ }, z.core.$strip>>;
1810
1821
  }, z.core.$strip>;
1811
1822
  security: z.ZodNullable<z.ZodObject<{
1812
1823
  rateLimits: z.ZodObject<{
@@ -879,6 +879,11 @@ export declare const SubAgentSchema: z.ZodObject<{
879
879
  }, z.core.$strip>>>;
880
880
  }, z.core.$strip>>>;
881
881
  }, z.core.$strip>>;
882
+ conversation: z.ZodOptional<z.ZodObject<{
883
+ compactionWindowPercent: z.ZodOptional<z.ZodNumber>;
884
+ compactionMaxTokens: z.ZodOptional<z.ZodNumber>;
885
+ analysisInterval: z.ZodOptional<z.ZodNumber>;
886
+ }, z.core.$strip>>;
882
887
  }, z.core.$strip>;
883
888
  security: z.ZodNullable<z.ZodObject<{
884
889
  rateLimits: z.ZodObject<{
@@ -1762,6 +1767,11 @@ export declare const SubAgentSchema: z.ZodObject<{
1762
1767
  }, z.core.$strip>>>;
1763
1768
  }, z.core.$strip>>>;
1764
1769
  }, z.core.$strip>>;
1770
+ conversation: z.ZodOptional<z.ZodObject<{
1771
+ compactionWindowPercent: z.ZodOptional<z.ZodNumber>;
1772
+ compactionMaxTokens: z.ZodOptional<z.ZodNumber>;
1773
+ analysisInterval: z.ZodOptional<z.ZodNumber>;
1774
+ }, z.core.$strip>>;
1765
1775
  }, z.core.$strip>;
1766
1776
  security: z.ZodNullable<z.ZodObject<{
1767
1777
  rateLimits: z.ZodObject<{
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@8wave/ai-elements",
3
3
  "private": false,
4
- "version": "0.127.0-beta.7",
4
+ "version": "0.127.0-beta.8",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite --port 8082 --open --host",