@blokkli/editor 2.0.0-alpha.58 → 2.0.0-alpha.60

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 (1088) hide show
  1. package/dist/global/types/blockOptions.d.ts +36 -9
  2. package/dist/global/types/colorOptions.d.ts +4 -0
  3. package/dist/module.d.mts +3 -2
  4. package/dist/module.json +1 -1
  5. package/dist/module.mjs +370 -170
  6. package/dist/modules/agent/index.d.mts +2 -1
  7. package/dist/modules/agent/index.mjs +14 -7
  8. package/dist/modules/agent/runtime/app/components/Attachment/PreviewCode/index.vue +11 -0
  9. package/dist/modules/agent/runtime/app/components/Attachment/PreviewCsv/index.vue +56 -0
  10. package/dist/modules/agent/runtime/app/{features/agent/Panel/Attachment/PreviewCode → components/Attachment/PreviewHtml}/index.vue +1 -1
  11. package/dist/modules/agent/runtime/app/components/Attachment/PreviewMarkdown/index.vue +10 -0
  12. package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/index.d.vue.ts +1 -0
  13. package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/index.vue +22 -10
  14. package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/index.vue.d.ts +1 -0
  15. package/dist/modules/agent/runtime/app/components/Conversation/InlineFeedback/index.d.vue.ts +7 -0
  16. package/dist/modules/agent/runtime/app/components/Conversation/InlineFeedback/index.vue +40 -0
  17. package/dist/modules/agent/runtime/app/components/Conversation/InlineFeedback/index.vue.d.ts +7 -0
  18. package/dist/modules/agent/runtime/app/components/Conversation/Item/Assistant/index.vue +24 -0
  19. package/dist/modules/agent/runtime/app/components/Conversation/Item/Bubble/Tool/index.d.vue.ts +20 -0
  20. package/dist/modules/agent/runtime/app/components/Conversation/Item/Bubble/Tool/index.vue +52 -0
  21. package/dist/modules/agent/runtime/app/components/Conversation/Item/Bubble/Tool/index.vue.d.ts +20 -0
  22. package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/Error/index.d.vue.ts +2 -1
  23. package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/Error/index.vue +4 -14
  24. package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/Error/index.vue.d.ts +2 -1
  25. package/dist/modules/agent/runtime/app/components/Conversation/Item/ErrorBubble/index.d.vue.ts +11 -0
  26. package/dist/modules/agent/runtime/app/components/Conversation/Item/ErrorBubble/index.vue +29 -0
  27. package/dist/modules/agent/runtime/app/components/Conversation/Item/ErrorBubble/index.vue.d.ts +11 -0
  28. package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/ServerTool/index.d.vue.ts +2 -1
  29. package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/ServerTool/index.vue +10 -23
  30. package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/ServerTool/index.vue.d.ts +2 -1
  31. package/dist/modules/agent/runtime/app/components/Conversation/Item/Tool/index.vue +36 -0
  32. package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/Unknown/index.vue +2 -5
  33. package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/User/index.d.vue.ts +2 -0
  34. package/dist/modules/agent/runtime/app/components/Conversation/Item/User/index.vue +144 -0
  35. package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/User/index.vue.d.ts +2 -0
  36. package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Thinking/index.vue +3 -3
  37. package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/index.d.vue.ts +2 -0
  38. package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/index.vue +27 -11
  39. package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/index.vue.d.ts +2 -0
  40. package/dist/modules/agent/runtime/app/{tools/delegate_text_rewrite/Details → components/FieldDiffDetails}/index.d.vue.ts +15 -0
  41. package/dist/modules/agent/runtime/app/{tools/delegate_text_rewrite/Details → components/FieldDiffDetails}/index.vue.d.ts +15 -0
  42. package/dist/modules/agent/runtime/app/components/Markdown/index.d.vue.ts +6 -0
  43. package/dist/modules/agent/runtime/app/components/Markdown/index.vue +14 -0
  44. package/dist/modules/agent/runtime/app/components/Markdown/index.vue.d.ts +6 -0
  45. package/dist/modules/agent/runtime/app/composables/index.d.ts +5 -1
  46. package/dist/modules/agent/runtime/app/composables/index.js +2 -0
  47. package/dist/modules/agent/runtime/app/composables/useAgent.d.ts +2 -1
  48. package/dist/modules/agent/runtime/app/composables/useAgent.js +5 -2
  49. package/dist/modules/agent/runtime/app/composables/useAgentFeedbackOptions.d.ts +11 -0
  50. package/dist/modules/agent/runtime/app/composables/useAgentFeedbackOptions.js +24 -0
  51. package/dist/modules/agent/runtime/app/composables/useAgentPaginatedQuery.d.ts +29 -0
  52. package/dist/modules/agent/runtime/app/composables/useAgentPaginatedQuery.js +30 -0
  53. package/dist/modules/agent/runtime/app/features/agent/Container.d.vue.ts +0 -2
  54. package/dist/modules/agent/runtime/app/features/agent/Container.vue +39 -101
  55. package/dist/modules/agent/runtime/app/features/agent/Container.vue.d.ts +0 -2
  56. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/ConversationsTab/Item.d.vue.ts +13 -0
  57. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/ConversationsTab/Item.vue +46 -0
  58. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/ConversationsTab/Item.vue.d.ts +13 -0
  59. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/ConversationsTab/index.vue +74 -0
  60. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/RatingsTab/Item.d.vue.ts +11 -0
  61. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/RatingsTab/Item.vue +55 -0
  62. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/RatingsTab/Item.vue.d.ts +11 -0
  63. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/RatingsTab/index.d.vue.ts +3 -0
  64. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/RatingsTab/index.vue +116 -0
  65. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/RatingsTab/index.vue.d.ts +3 -0
  66. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/ConversationDetail.d.vue.ts +7 -0
  67. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/ConversationDetail.vue +61 -0
  68. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/ConversationDetail.vue.d.ts +7 -0
  69. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/index.d.vue.ts +38 -0
  70. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/index.vue +137 -0
  71. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/index.vue.d.ts +38 -0
  72. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/index.d.vue.ts +7 -0
  73. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/index.vue +45 -0
  74. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/index.vue.d.ts +7 -0
  75. package/dist/modules/agent/runtime/app/features/agent/Panel/ConversationList/index.d.vue.ts +2 -2
  76. package/dist/modules/agent/runtime/app/features/agent/Panel/ConversationList/index.vue +23 -36
  77. package/dist/modules/agent/runtime/app/features/agent/Panel/ConversationList/index.vue.d.ts +2 -2
  78. package/dist/modules/agent/runtime/app/features/agent/Panel/Feedback/index.vue +11 -28
  79. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/Item.d.vue.ts +8 -0
  80. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/Item.vue +20 -0
  81. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/Item.vue.d.ts +8 -0
  82. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/Separator.d.vue.ts +3 -0
  83. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/Separator.vue +3 -0
  84. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/Separator.vue.d.ts +3 -0
  85. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/index.vue +31 -31
  86. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/index.vue +55 -9
  87. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/index.vue +12 -6
  88. package/dist/modules/agent/runtime/app/features/agent/Panel/PendingMutation/index.vue +2 -2
  89. package/dist/modules/agent/runtime/app/features/agent/Panel/Plan/index.vue +13 -10
  90. package/dist/modules/agent/runtime/app/features/agent/Panel/ToolCard/index.d.vue.ts +3 -3
  91. package/dist/modules/agent/runtime/app/features/agent/Panel/ToolCard/index.vue +18 -16
  92. package/dist/modules/agent/runtime/app/features/agent/Panel/ToolCard/index.vue.d.ts +3 -3
  93. package/dist/modules/agent/runtime/app/features/agent/Panel/Welcome/index.vue +44 -13
  94. package/dist/modules/agent/runtime/app/features/agent/Panel/index.d.vue.ts +1 -61
  95. package/dist/modules/agent/runtime/app/features/agent/Panel/index.vue +145 -142
  96. package/dist/modules/agent/runtime/app/features/agent/Panel/index.vue.d.ts +1 -61
  97. package/dist/modules/agent/runtime/app/features/agent/Transcript/MessageContent.d.vue.ts +7 -0
  98. package/dist/modules/agent/runtime/app/features/agent/Transcript/MessageContent.vue +41 -0
  99. package/dist/modules/agent/runtime/app/features/agent/Transcript/MessageContent.vue.d.ts +7 -0
  100. package/dist/modules/agent/runtime/app/features/agent/Transcript/index.vue +83 -122
  101. package/dist/modules/agent/runtime/app/features/agent/index.vue +101 -4
  102. package/dist/modules/agent/runtime/app/features/agent/types.d.ts +85 -18
  103. package/dist/modules/agent/runtime/app/helpers/historySignature.d.ts +14 -0
  104. package/dist/modules/agent/runtime/app/helpers/historySignature.js +13 -0
  105. package/dist/modules/agent/runtime/app/helpers/id.d.ts +6 -0
  106. package/dist/modules/agent/runtime/app/helpers/id.js +3 -0
  107. package/dist/modules/agent/runtime/app/helpers/index.d.ts +0 -14
  108. package/dist/modules/agent/runtime/app/helpers/index.js +1 -19
  109. package/dist/modules/agent/runtime/app/helpers/markdown.d.ts +7 -0
  110. package/dist/modules/agent/runtime/app/helpers/markdown.js +5 -0
  111. package/dist/modules/agent/runtime/app/helpers/pageStructure.js +7 -19
  112. package/dist/modules/agent/runtime/app/helpers/parseConversationData.d.ts +27 -0
  113. package/dist/modules/agent/runtime/app/helpers/parseConversationData.js +42 -0
  114. package/dist/modules/agent/runtime/app/prompts/fixReadability.js +5 -4
  115. package/dist/modules/agent/runtime/app/providers/agentProvider.d.ts +24 -2
  116. package/dist/modules/agent/runtime/app/providers/agentProvider.js +138 -53
  117. package/dist/modules/agent/runtime/app/providers/conversationProvider.d.ts +9 -10
  118. package/dist/modules/agent/runtime/app/providers/conversationProvider.js +10 -39
  119. package/dist/modules/agent/runtime/app/providers/toolsProvider.js +43 -40
  120. package/dist/modules/agent/runtime/app/tools/{add_content_search_paragraph → add_content_search_paragraphs}/index.js +3 -2
  121. package/dist/modules/agent/runtime/app/tools/add_fragment/index.js +2 -2
  122. package/dist/modules/agent/runtime/app/tools/add_media_paragraph/index.js +4 -2
  123. package/dist/modules/agent/runtime/app/tools/add_paragraphs/index.js +37 -28
  124. package/dist/modules/agent/runtime/app/tools/add_reusable_paragraph/index.js +10 -10
  125. package/dist/modules/agent/runtime/app/tools/add_template/index.js +2 -2
  126. package/dist/modules/agent/runtime/app/tools/ask_question/Component.vue +25 -15
  127. package/dist/modules/agent/runtime/app/tools/ask_question/index.d.ts +1 -1
  128. package/dist/modules/agent/runtime/app/tools/ask_question/index.js +5 -4
  129. package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/Component.d.vue.ts +29 -0
  130. package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/Component.vue +172 -0
  131. package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/Component.vue.d.ts +29 -0
  132. package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/index.d.ts +19 -0
  133. package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/index.js +80 -0
  134. package/dist/modules/agent/runtime/app/tools/{check_readability → check_readability_for_texts}/index.js +16 -23
  135. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.d.vue.ts +4 -23
  136. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.vue +95 -593
  137. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.vue.d.ts +4 -23
  138. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.d.ts +18 -17
  139. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.js +56 -47
  140. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/useFieldRewriteStream.d.ts +64 -0
  141. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/useFieldRewriteStream.js +502 -0
  142. package/dist/modules/agent/runtime/app/tools/delete_paragraphs/index.js +2 -2
  143. package/dist/modules/agent/runtime/app/tools/detach_reusable_paragraph/index.js +4 -2
  144. package/dist/modules/agent/runtime/app/tools/duplicate_paragraphs/index.js +8 -8
  145. package/dist/modules/agent/runtime/app/tools/fieldDiffApproval.d.ts +49 -0
  146. package/dist/modules/agent/runtime/app/tools/fieldDiffApproval.js +64 -0
  147. package/dist/modules/agent/runtime/app/tools/find_paragraphs/index.js +14 -13
  148. package/dist/modules/agent/runtime/app/tools/get_all_page_content/index.js +13 -19
  149. package/dist/modules/agent/runtime/app/tools/get_bundle_info/index.js +21 -22
  150. package/dist/modules/agent/runtime/app/tools/get_content_fields/index.js +28 -29
  151. package/dist/modules/agent/runtime/app/tools/get_mutation_history/index.js +5 -3
  152. package/dist/modules/agent/runtime/app/tools/get_page_structure/index.js +3 -1
  153. package/dist/modules/agent/runtime/app/tools/get_page_text/index.d.ts +2 -0
  154. package/dist/modules/agent/runtime/app/tools/get_page_text/index.js +65 -0
  155. package/dist/modules/agent/runtime/app/tools/get_paragraph_context/index.js +35 -49
  156. package/dist/modules/agent/runtime/app/tools/get_paragraph_options/index.js +8 -11
  157. package/dist/modules/agent/runtime/app/tools/get_paragraphs_in_viewport/index.js +8 -4
  158. package/dist/modules/agent/runtime/app/tools/get_readability_issues/index.js +4 -2
  159. package/dist/modules/agent/runtime/app/tools/get_referenced_entities/index.d.ts +2 -0
  160. package/dist/modules/agent/runtime/app/tools/get_referenced_entities/index.js +62 -0
  161. package/dist/modules/agent/runtime/app/tools/get_selected_paragraphs/index.js +3 -1
  162. package/dist/modules/agent/runtime/app/tools/go_to_history_index/index.js +6 -2
  163. package/dist/modules/agent/runtime/app/tools/helpers.d.ts +34 -22
  164. package/dist/modules/agent/runtime/app/tools/helpers.js +64 -39
  165. package/dist/modules/agent/runtime/app/tools/move_paragraphs/index.js +36 -4
  166. package/dist/modules/agent/runtime/app/tools/readability.d.ts +45 -0
  167. package/dist/modules/agent/runtime/app/tools/readability.js +51 -0
  168. package/dist/modules/agent/runtime/app/tools/rearrange_paragraphs/index.js +8 -7
  169. package/dist/modules/agent/runtime/app/tools/replace_content_search_item/index.js +2 -1
  170. package/dist/modules/agent/runtime/app/tools/replace_media_field/index.js +1 -1
  171. package/dist/modules/agent/runtime/app/tools/schemas.d.ts +34 -0
  172. package/dist/modules/agent/runtime/app/tools/schemas.js +47 -0
  173. package/dist/modules/agent/runtime/app/tools/search_content/index.js +3 -1
  174. package/dist/modules/agent/runtime/app/tools/search_media/index.js +2 -2
  175. package/dist/modules/agent/runtime/app/tools/search_reusable_paragraphs/index.js +11 -10
  176. package/dist/modules/agent/runtime/app/tools/search_templates/index.js +3 -1
  177. package/dist/modules/agent/runtime/app/tools/search_text/index.js +2 -2
  178. package/dist/modules/agent/runtime/app/tools/select_media/Component.vue +22 -8
  179. package/dist/modules/agent/runtime/app/tools/select_media/index.js +1 -1
  180. package/dist/modules/agent/runtime/app/tools/set_paragraph_options/index.js +9 -14
  181. package/dist/modules/agent/runtime/app/tools/swap_paragraphs/index.js +9 -9
  182. package/dist/modules/agent/runtime/app/tools/update_text_fields/Component.d.vue.ts +6 -15
  183. package/dist/modules/agent/runtime/app/tools/update_text_fields/Component.vue +48 -92
  184. package/dist/modules/agent/runtime/app/tools/update_text_fields/Component.vue.d.ts +6 -15
  185. package/dist/modules/agent/runtime/app/tools/update_text_fields/index.d.ts +34 -13
  186. package/dist/modules/agent/runtime/app/tools/update_text_fields/index.js +84 -52
  187. package/dist/modules/agent/runtime/app/tools/web_fetch/index.js +1 -1
  188. package/dist/modules/agent/runtime/app/types/index.d.ts +55 -7
  189. package/dist/modules/agent/runtime/app/types/index.js +55 -8
  190. package/dist/modules/agent/runtime/server/agent.js +4 -4
  191. package/dist/modules/agent/runtime/server/classes/ConversationHistory/index.d.ts +93 -0
  192. package/dist/modules/agent/runtime/server/classes/ConversationHistory/index.js +241 -0
  193. package/dist/modules/agent/runtime/server/classes/ConversationMessage/index.d.ts +102 -0
  194. package/dist/modules/agent/runtime/server/classes/ConversationMessage/index.js +156 -0
  195. package/dist/modules/agent/runtime/server/{Session.d.ts → classes/Session/index.d.ts} +46 -14
  196. package/dist/modules/agent/runtime/server/{Session.js → classes/Session/index.js} +354 -382
  197. package/dist/modules/agent/runtime/server/{SessionManager.d.ts → classes/SessionManager/index.d.ts} +2 -2
  198. package/dist/modules/agent/runtime/server/{SessionManager.js → classes/SessionManager/index.js} +4 -19
  199. package/dist/modules/agent/runtime/server/classes/StreamAccumulator/index.d.ts +58 -0
  200. package/dist/modules/agent/runtime/server/classes/StreamAccumulator/index.js +72 -0
  201. package/dist/modules/agent/runtime/server/default-skills/adding-new-paragraphs.js +0 -1
  202. package/dist/modules/agent/runtime/server/default-skills/fixReadability.js +1 -1
  203. package/dist/modules/agent/runtime/server/default-skills/rewriteAndTranslate.js +8 -8
  204. package/dist/modules/agent/runtime/server/default-system-prompts/introduction.js +1 -1
  205. package/dist/modules/agent/runtime/server/default-system-prompts/workflow.js +0 -1
  206. package/dist/modules/agent/runtime/server/{agentPrompt.d.ts → helpers/agentPrompt.d.ts} +3 -3
  207. package/dist/modules/agent/runtime/server/helpers/errors.d.ts +10 -0
  208. package/dist/modules/agent/runtime/server/helpers/errors.js +63 -0
  209. package/dist/modules/agent/runtime/server/helpers/messages.d.ts +6 -0
  210. package/dist/modules/agent/runtime/server/helpers/messages.js +70 -0
  211. package/dist/modules/agent/runtime/server/helpers/models.d.ts +20 -0
  212. package/dist/modules/agent/runtime/server/helpers/models.js +15 -0
  213. package/dist/modules/agent/runtime/server/{routing.d.ts → helpers/routing.d.ts} +2 -2
  214. package/dist/modules/agent/runtime/server/{routing.js → helpers/routing.js} +2 -9
  215. package/dist/modules/agent/runtime/server/helpers/security.d.ts +22 -0
  216. package/dist/modules/agent/runtime/server/helpers/security.js +44 -0
  217. package/dist/modules/agent/runtime/server/helpers/skills.d.ts +14 -0
  218. package/dist/modules/agent/runtime/server/helpers/skills.js +22 -0
  219. package/dist/modules/agent/runtime/server/helpers/socket.d.ts +4 -0
  220. package/dist/modules/agent/runtime/server/helpers/socket.js +3 -0
  221. package/dist/modules/agent/runtime/server/helpers/text.d.ts +5 -0
  222. package/dist/modules/agent/runtime/server/helpers/text.js +3 -0
  223. package/dist/modules/agent/runtime/server/providers/anthropic.js +22 -3
  224. package/dist/modules/agent/runtime/server/providers/openai.js +4 -0
  225. package/dist/modules/agent/runtime/server/route.js +2 -2
  226. package/dist/modules/agent/runtime/server/server-tools/index.d.ts +2 -0
  227. package/dist/modules/agent/runtime/server/server-tools/load_tools/index.js +1 -5
  228. package/dist/modules/agent/runtime/server/stream.js +6 -29
  229. package/dist/modules/agent/runtime/shared/toolParams.d.ts +28 -0
  230. package/dist/modules/agent/runtime/shared/toolParams.js +27 -0
  231. package/dist/modules/agent/runtime/shared/toolResult.d.ts +98 -0
  232. package/dist/modules/agent/runtime/shared/toolResult.js +160 -0
  233. package/dist/modules/agent/runtime/shared/types.d.ts +1 -3
  234. package/dist/modules/agent/runtime/shared/types.js +8 -1
  235. package/dist/modules/charts/index.d.mts +3 -17
  236. package/dist/modules/charts/index.mjs +241 -16
  237. package/dist/modules/charts/runtime/blokkli/chart-types/advanced/definition.d.ts +5 -0
  238. package/dist/modules/charts/runtime/blokkli/chart-types/advanced/definition.js +26 -0
  239. package/dist/modules/charts/runtime/blokkli/chart-types/advanced/render.d.vue.ts +3 -0
  240. package/dist/modules/charts/runtime/blokkli/chart-types/advanced/render.vue +120 -0
  241. package/dist/modules/charts/runtime/blokkli/chart-types/advanced/render.vue.d.ts +3 -0
  242. package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/definition.d.ts +6 -0
  243. package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/definition.js +40 -0
  244. package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/illustration.d.vue.ts +3 -0
  245. package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/illustration.vue +41 -0
  246. package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/illustration.vue.d.ts +3 -0
  247. package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/render.d.vue.ts +3 -0
  248. package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/render.vue +94 -0
  249. package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/render.vue.d.ts +3 -0
  250. package/dist/modules/charts/runtime/blokkli/chart-types/area/definition.d.ts +7 -0
  251. package/dist/modules/charts/runtime/blokkli/chart-types/area/definition.js +49 -0
  252. package/dist/modules/charts/runtime/blokkli/chart-types/area/illustration.d.vue.ts +3 -0
  253. package/dist/modules/charts/runtime/blokkli/chart-types/area/illustration.vue +56 -0
  254. package/dist/modules/charts/runtime/blokkli/chart-types/area/illustration.vue.d.ts +3 -0
  255. package/dist/modules/charts/runtime/blokkli/chart-types/area/render.d.vue.ts +3 -0
  256. package/dist/modules/charts/runtime/blokkli/chart-types/area/render.vue +99 -0
  257. package/dist/modules/charts/runtime/blokkli/chart-types/area/render.vue.d.ts +3 -0
  258. package/dist/modules/charts/runtime/{chartTypes/bar.d.ts → blokkli/chart-types/bar/definition.d.ts} +3 -3
  259. package/dist/modules/charts/runtime/{chartTypes/bar.js → blokkli/chart-types/bar/definition.js} +12 -31
  260. package/dist/modules/charts/runtime/blokkli/chart-types/bar/illustration.d.vue.ts +3 -0
  261. package/dist/modules/charts/runtime/blokkli/chart-types/bar/illustration.vue +34 -0
  262. package/dist/modules/charts/runtime/blokkli/chart-types/bar/illustration.vue.d.ts +3 -0
  263. package/dist/modules/charts/runtime/blokkli/chart-types/bar/render.d.vue.ts +3 -0
  264. package/dist/modules/charts/runtime/blokkli/chart-types/bar/render.vue +107 -0
  265. package/dist/modules/charts/runtime/blokkli/chart-types/bar/render.vue.d.ts +3 -0
  266. package/dist/modules/charts/runtime/blokkli/chart-types/donut/definition.d.ts +7 -0
  267. package/dist/modules/charts/runtime/blokkli/chart-types/donut/definition.js +35 -0
  268. package/dist/modules/charts/runtime/blokkli/chart-types/donut/illustration.d.vue.ts +3 -0
  269. package/dist/modules/charts/runtime/blokkli/chart-types/donut/illustration.vue +35 -0
  270. package/dist/modules/charts/runtime/blokkli/chart-types/donut/illustration.vue.d.ts +3 -0
  271. package/dist/modules/charts/runtime/blokkli/chart-types/donut/render.d.vue.ts +3 -0
  272. package/dist/modules/charts/runtime/blokkli/chart-types/donut/render.vue +87 -0
  273. package/dist/modules/charts/runtime/blokkli/chart-types/donut/render.vue.d.ts +3 -0
  274. package/dist/modules/charts/runtime/{chartTypes/heatmap.d.ts → blokkli/chart-types/heatmap/definition.d.ts} +3 -3
  275. package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/definition.js +29 -0
  276. package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/illustration.d.vue.ts +3 -0
  277. package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/illustration.vue +27 -0
  278. package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/illustration.vue.d.ts +3 -0
  279. package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/render.d.vue.ts +3 -0
  280. package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/render.vue +113 -0
  281. package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/render.vue.d.ts +3 -0
  282. package/dist/modules/charts/runtime/blokkli/chart-types/line/definition.d.ts +7 -0
  283. package/dist/modules/charts/runtime/blokkli/chart-types/line/definition.js +49 -0
  284. package/dist/modules/charts/runtime/blokkli/chart-types/line/illustration.d.vue.ts +3 -0
  285. package/dist/modules/charts/runtime/blokkli/chart-types/line/illustration.vue +59 -0
  286. package/dist/modules/charts/runtime/blokkli/chart-types/line/illustration.vue.d.ts +3 -0
  287. package/dist/modules/charts/runtime/blokkli/chart-types/line/render.d.vue.ts +3 -0
  288. package/dist/modules/charts/runtime/blokkli/chart-types/line/render.vue +98 -0
  289. package/dist/modules/charts/runtime/blokkli/chart-types/line/render.vue.d.ts +3 -0
  290. package/dist/modules/charts/runtime/blokkli/chart-types/pie/definition.d.ts +6 -0
  291. package/dist/modules/charts/runtime/blokkli/chart-types/pie/definition.js +29 -0
  292. package/dist/modules/charts/runtime/blokkli/chart-types/pie/illustration.d.vue.ts +3 -0
  293. package/dist/modules/charts/runtime/blokkli/chart-types/pie/illustration.vue +20 -0
  294. package/dist/modules/charts/runtime/blokkli/chart-types/pie/illustration.vue.d.ts +3 -0
  295. package/dist/modules/charts/runtime/blokkli/chart-types/pie/render.d.vue.ts +3 -0
  296. package/dist/modules/charts/runtime/blokkli/chart-types/pie/render.vue +71 -0
  297. package/dist/modules/charts/runtime/blokkli/chart-types/pie/render.vue.d.ts +3 -0
  298. package/dist/modules/charts/runtime/blokkli/chart-types/radar/definition.d.ts +7 -0
  299. package/dist/modules/charts/runtime/blokkli/chart-types/radar/definition.js +45 -0
  300. package/dist/modules/charts/runtime/blokkli/chart-types/radar/illustration.d.vue.ts +3 -0
  301. package/dist/modules/charts/runtime/blokkli/chart-types/radar/illustration.vue +60 -0
  302. package/dist/modules/charts/runtime/blokkli/chart-types/radar/illustration.vue.d.ts +3 -0
  303. package/dist/modules/charts/runtime/blokkli/chart-types/radar/render.d.vue.ts +3 -0
  304. package/dist/modules/charts/runtime/blokkli/chart-types/radar/render.vue +95 -0
  305. package/dist/modules/charts/runtime/blokkli/chart-types/radar/render.vue.d.ts +3 -0
  306. package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/definition.d.ts +6 -0
  307. package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/definition.js +29 -0
  308. package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/illustration.d.vue.ts +3 -0
  309. package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/illustration.vue +32 -0
  310. package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/illustration.vue.d.ts +3 -0
  311. package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/render.d.vue.ts +3 -0
  312. package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/render.vue +77 -0
  313. package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/render.vue.d.ts +3 -0
  314. package/dist/modules/charts/runtime/blokkli/skills/charts.js +36 -2
  315. package/dist/modules/charts/runtime/blokkli/tools/chart_schemas.d.ts +81 -19
  316. package/dist/modules/charts/runtime/blokkli/tools/chart_schemas.js +79 -32
  317. package/dist/modules/charts/runtime/blokkli/tools/create_advanced_chart/index.d.ts +2 -0
  318. package/dist/modules/charts/runtime/blokkli/tools/create_advanced_chart/index.js +88 -0
  319. package/dist/modules/charts/runtime/blokkli/tools/create_chart/index.js +8 -4
  320. package/dist/modules/charts/runtime/blokkli/tools/get_advanced_chart_config/index.d.ts +2 -0
  321. package/dist/modules/charts/runtime/blokkli/tools/get_advanced_chart_config/index.js +65 -0
  322. package/dist/modules/charts/runtime/blokkli/tools/get_chart_data/index.js +36 -8
  323. package/dist/modules/charts/runtime/blokkli/tools/get_chart_type_options/index.js +4 -2
  324. package/dist/modules/charts/runtime/blokkli/tools/update_advanced_chart/index.d.ts +2 -0
  325. package/dist/modules/charts/runtime/blokkli/tools/update_advanced_chart/index.js +73 -0
  326. package/dist/modules/charts/runtime/blokkli/tools/update_chart/index.js +43 -20
  327. package/dist/modules/charts/runtime/chart-types/definition/index.d.ts +7 -0
  328. package/dist/modules/charts/runtime/chart-types/definition/index.js +3 -0
  329. package/dist/modules/charts/runtime/chart-types/definition/options/index.d.ts +43 -0
  330. package/dist/modules/charts/runtime/{chartTypes/shared.js → chart-types/definition/options/index.js} +30 -23
  331. package/dist/modules/charts/runtime/chart-types/index.d.ts +21 -0
  332. package/dist/modules/charts/runtime/chart-types/index.js +25 -0
  333. package/dist/modules/charts/runtime/components/ChartRenderer/index.d.vue.ts +19 -145
  334. package/dist/modules/charts/runtime/components/ChartRenderer/index.vue +193 -99
  335. package/dist/modules/charts/runtime/components/ChartRenderer/index.vue.d.ts +19 -145
  336. package/dist/modules/charts/runtime/features/charts/Editor/AdvancedConfigPanel/index.d.vue.ts +11 -0
  337. package/dist/modules/charts/runtime/features/charts/Editor/AdvancedConfigPanel/index.vue +149 -0
  338. package/dist/modules/charts/runtime/features/charts/Editor/AdvancedConfigPanel/index.vue.d.ts +11 -0
  339. package/dist/modules/charts/runtime/features/charts/Editor/CategoryColorOverridesPanel/index.d.vue.ts +11 -0
  340. package/dist/modules/charts/runtime/features/charts/Editor/CategoryColorOverridesPanel/index.vue +62 -0
  341. package/dist/modules/charts/runtime/features/charts/Editor/CategoryColorOverridesPanel/index.vue.d.ts +11 -0
  342. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/Field.d.vue.ts +14 -0
  343. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/Field.vue +89 -0
  344. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/Field.vue.d.ts +14 -0
  345. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/index.d.vue.ts +3 -3
  346. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/index.vue +45 -52
  347. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/index.vue.d.ts +3 -3
  348. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/TypeCard.d.vue.ts +7 -0
  349. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/TypeCard.vue +55 -0
  350. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/TypeCard.vue.d.ts +7 -0
  351. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/TypeGrid.d.vue.ts +11 -0
  352. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/TypeGrid.vue +24 -0
  353. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/TypeGrid.vue.d.ts +11 -0
  354. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/index.d.vue.ts +2 -2
  355. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/index.vue +48 -26
  356. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/index.vue.d.ts +2 -2
  357. package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.d.vue.ts +0 -2
  358. package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.vue +64 -20
  359. package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.vue.d.ts +0 -2
  360. package/dist/modules/charts/runtime/features/charts/Editor/CsvExport/index.d.vue.ts +9 -0
  361. package/dist/modules/charts/runtime/features/charts/Editor/CsvExport/index.vue +55 -0
  362. package/dist/modules/charts/runtime/features/charts/Editor/CsvExport/index.vue.d.ts +9 -0
  363. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/FilterEditor/index.d.vue.ts +16 -0
  364. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/FilterEditor/index.vue +88 -0
  365. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/FilterEditor/index.vue.d.ts +16 -0
  366. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/FiltersSection/index.d.vue.ts +13 -0
  367. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/FiltersSection/index.vue +111 -0
  368. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/FiltersSection/index.vue.d.ts +13 -0
  369. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/GroupBySection/index.d.vue.ts +14 -0
  370. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/GroupBySection/index.vue +100 -0
  371. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/GroupBySection/index.vue.d.ts +14 -0
  372. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/OutputPreviewTable/index.d.vue.ts +17 -0
  373. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/OutputPreviewTable/index.vue +152 -0
  374. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/OutputPreviewTable/index.vue.d.ts +17 -0
  375. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/PreviewDialog.d.vue.ts +14 -0
  376. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/PreviewDialog.vue +340 -0
  377. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/PreviewDialog.vue.d.ts +14 -0
  378. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/csvHelpers.d.ts +69 -0
  379. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/csvHelpers.js +368 -0
  380. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/index.d.vue.ts +6 -17
  381. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/index.vue +37 -64
  382. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/index.vue.d.ts +6 -17
  383. package/dist/modules/charts/runtime/features/charts/Editor/DataSourcePicker/index.d.vue.ts +16 -0
  384. package/dist/modules/charts/runtime/features/charts/Editor/DataSourcePicker/index.vue +80 -0
  385. package/dist/modules/charts/runtime/features/charts/Editor/DataSourcePicker/index.vue.d.ts +16 -0
  386. package/dist/modules/charts/runtime/features/charts/Editor/DataTable/index.d.vue.ts +3 -3
  387. package/dist/modules/charts/runtime/features/charts/Editor/DataTable/index.vue +29 -18
  388. package/dist/modules/charts/runtime/features/charts/Editor/DataTable/index.vue.d.ts +3 -3
  389. package/dist/modules/charts/runtime/features/charts/Editor/DateFormatEditor/index.d.vue.ts +13 -0
  390. package/dist/modules/charts/runtime/features/charts/Editor/DateFormatEditor/index.vue +71 -0
  391. package/dist/modules/charts/runtime/features/charts/Editor/DateFormatEditor/index.vue.d.ts +13 -0
  392. package/dist/modules/charts/runtime/features/charts/Editor/DynamicPreviewStatus/index.d.vue.ts +16 -0
  393. package/dist/modules/charts/runtime/features/charts/Editor/DynamicPreviewStatus/index.vue +57 -0
  394. package/dist/modules/charts/runtime/features/charts/Editor/DynamicPreviewStatus/index.vue.d.ts +16 -0
  395. package/dist/modules/charts/runtime/features/charts/Editor/FootnoteEditor/index.d.vue.ts +4 -5
  396. package/dist/modules/charts/runtime/features/charts/Editor/FootnoteEditor/index.vue +63 -51
  397. package/dist/modules/charts/runtime/features/charts/Editor/FootnoteEditor/index.vue.d.ts +4 -5
  398. package/dist/modules/charts/runtime/features/charts/Editor/NumberFormatEditor/index.d.vue.ts +21 -0
  399. package/dist/modules/charts/runtime/features/charts/Editor/NumberFormatEditor/index.vue +120 -0
  400. package/dist/modules/charts/runtime/features/charts/Editor/NumberFormatEditor/index.vue.d.ts +21 -0
  401. package/dist/modules/charts/runtime/features/charts/Editor/OrphanOverridesWarning/index.d.vue.ts +18 -0
  402. package/dist/modules/charts/runtime/features/charts/Editor/OrphanOverridesWarning/index.vue +65 -0
  403. package/dist/modules/charts/runtime/features/charts/Editor/OrphanOverridesWarning/index.vue.d.ts +18 -0
  404. package/dist/modules/charts/runtime/features/charts/Editor/Preview/index.d.vue.ts +2 -1
  405. package/dist/modules/charts/runtime/features/charts/Editor/Preview/index.vue +8 -2
  406. package/dist/modules/charts/runtime/features/charts/Editor/Preview/index.vue.d.ts +2 -1
  407. package/dist/modules/charts/runtime/features/charts/Editor/SeriesOverridesPanel/index.d.vue.ts +13 -0
  408. package/dist/modules/charts/runtime/features/charts/Editor/SeriesOverridesPanel/index.vue +95 -0
  409. package/dist/modules/charts/runtime/features/charts/Editor/SeriesOverridesPanel/index.vue.d.ts +13 -0
  410. package/dist/{runtime/editor/components/AutoHeight → modules/charts/runtime/features/charts/Editor/TranslationsEditor/TranslationRow}/index.d.vue.ts +1 -1
  411. package/dist/modules/charts/runtime/features/charts/Editor/TranslationsEditor/TranslationRow/index.vue +19 -0
  412. package/dist/{runtime/editor/components/AutoHeight → modules/charts/runtime/features/charts/Editor/TranslationsEditor/TranslationRow}/index.vue.d.ts +1 -1
  413. package/dist/modules/charts/runtime/features/charts/Editor/TranslationsEditor/index.d.vue.ts +17 -0
  414. package/dist/modules/charts/runtime/features/charts/Editor/TranslationsEditor/index.vue +264 -0
  415. package/dist/modules/charts/runtime/features/charts/Editor/TranslationsEditor/index.vue.d.ts +17 -0
  416. package/dist/modules/charts/runtime/features/charts/Editor/index.d.vue.ts +1 -0
  417. package/dist/modules/charts/runtime/features/charts/Editor/index.vue +477 -141
  418. package/dist/modules/charts/runtime/features/charts/Editor/index.vue.d.ts +1 -0
  419. package/dist/modules/charts/runtime/features/charts/Editor/useChartDataSourcePreview.d.ts +6 -0
  420. package/dist/modules/charts/runtime/features/charts/Editor/useChartDataSourcePreview.js +17 -0
  421. package/dist/modules/charts/runtime/features/charts/Editor/useChartEditorState.d.ts +8 -2
  422. package/dist/modules/charts/runtime/features/charts/Editor/useChartEditorState.js +85 -5
  423. package/dist/modules/charts/runtime/helpers/adapterTypes.d.ts +38 -0
  424. package/dist/modules/charts/runtime/helpers/adapterTypes.js +1 -0
  425. package/dist/modules/charts/runtime/helpers/dateFormat.d.ts +20 -0
  426. package/dist/modules/charts/runtime/helpers/dateFormat.js +121 -0
  427. package/dist/modules/charts/runtime/helpers/echarts.d.ts +6 -0
  428. package/dist/modules/charts/runtime/helpers/echarts.js +5 -0
  429. package/dist/modules/charts/runtime/helpers/index.d.ts +17 -14
  430. package/dist/modules/charts/runtime/helpers/index.js +24 -27
  431. package/dist/modules/charts/runtime/helpers/nextCategoryValue.d.ts +19 -0
  432. package/dist/modules/charts/runtime/helpers/nextCategoryValue.js +160 -0
  433. package/dist/modules/charts/runtime/helpers/numberFormat.d.ts +13 -0
  434. package/dist/modules/charts/runtime/helpers/numberFormat.js +31 -0
  435. package/dist/modules/charts/runtime/helpers/previewInjection.d.ts +14 -0
  436. package/dist/modules/charts/runtime/helpers/previewInjection.js +3 -0
  437. package/dist/modules/charts/runtime/types.d.ts +238 -15
  438. package/dist/modules/drupal/graphql/base/fragment.paragraphsBlokkliMutationItem.graphql +23 -0
  439. package/dist/modules/drupal/graphql/base/query.pbConfig.graphql +12 -3
  440. package/dist/modules/drupal/graphql/base/query.pbUsers.graphql +10 -0
  441. package/dist/modules/drupal/graphql/features/agent.graphql +75 -23
  442. package/dist/modules/drupal/graphql/features/block-transfer.graphql +42 -0
  443. package/dist/modules/drupal/graphql/features/comments.graphql +81 -11
  444. package/dist/modules/drupal/graphql/features/notifications.graphql +39 -0
  445. package/dist/modules/drupal/index.d.mts +2 -1
  446. package/dist/modules/drupal/index.mjs +14 -1
  447. package/dist/modules/drupal/runtime/adapter/index.js +259 -34
  448. package/dist/modules/iframes/index.d.mts +2 -1
  449. package/dist/modules/iframes/runtime/features/iframes/Editor/index.vue +4 -2
  450. package/dist/modules/index.d.mts +2 -1
  451. package/dist/modules/readability/index.d.mts +2 -1
  452. package/dist/modules/table-of-contents/index.d.mts +2 -1
  453. package/dist/modules/tailwind/index.d.mts +2 -2
  454. package/dist/modules/tailwind/index.mjs +228 -2
  455. package/dist/runtime/components/Blocks/NotImplemented/index.vue +24 -51
  456. package/dist/runtime/components/BlokkliItem.vue +3 -31
  457. package/dist/runtime/editor/adapter/index.d.ts +16 -0
  458. package/dist/runtime/editor/components/Actions/Interactions/Button.d.vue.ts +9 -0
  459. package/dist/runtime/editor/components/Actions/Interactions/Button.vue +19 -0
  460. package/dist/runtime/editor/components/Actions/Interactions/Button.vue.d.ts +9 -0
  461. package/dist/runtime/editor/components/Actions/Interactions/index.vue +24 -88
  462. package/dist/runtime/editor/components/Actions/ItemDropdown/Item.d.vue.ts +7 -0
  463. package/dist/runtime/editor/components/Actions/ItemDropdown/Item.vue +49 -0
  464. package/dist/runtime/editor/components/Actions/ItemDropdown/Item.vue.d.ts +7 -0
  465. package/dist/runtime/editor/components/Actions/ItemDropdown/index.vue +4 -22
  466. package/dist/runtime/editor/components/Actions/ScrollArrow/index.d.vue.ts +13 -0
  467. package/dist/runtime/editor/components/Actions/ScrollArrow/index.vue +52 -0
  468. package/dist/runtime/editor/components/Actions/ScrollArrow/index.vue.d.ts +13 -0
  469. package/dist/runtime/editor/components/Actions/Title/index.d.vue.ts +3 -0
  470. package/dist/runtime/editor/components/Actions/Title/index.vue +295 -0
  471. package/dist/runtime/editor/components/Actions/Title/index.vue.d.ts +3 -0
  472. package/dist/runtime/editor/components/Actions/index.vue +64 -779
  473. package/dist/runtime/editor/components/Actions/useToolbarScroll.d.ts +25 -0
  474. package/dist/runtime/editor/components/Actions/useToolbarScroll.js +125 -0
  475. package/dist/runtime/editor/components/AnimationCanvas/index.vue +4 -2
  476. package/dist/runtime/editor/components/AppMenu/Inner.vue +12 -7
  477. package/dist/runtime/editor/components/AppMenu/MenuButton.d.vue.ts +4 -9
  478. package/dist/runtime/editor/components/AppMenu/MenuButton.vue +54 -194
  479. package/dist/runtime/editor/components/AppMenu/MenuButton.vue.d.ts +4 -9
  480. package/dist/runtime/editor/components/ArtboardTooltip/index.vue +124 -146
  481. package/dist/runtime/editor/components/Avatar/index.d.vue.ts +30 -0
  482. package/dist/runtime/editor/components/Avatar/index.vue +119 -0
  483. package/dist/runtime/editor/components/Avatar/index.vue.d.ts +30 -0
  484. package/dist/runtime/editor/components/Banner/Inner.vue +1 -1
  485. package/dist/runtime/editor/components/Banner/index.d.vue.ts +1 -0
  486. package/dist/runtime/editor/components/Banner/index.vue +21 -18
  487. package/dist/runtime/editor/components/Banner/index.vue.d.ts +1 -0
  488. package/dist/runtime/editor/components/BlockPreviewItem/index.vue +35 -41
  489. package/dist/runtime/editor/components/BlockPreviewRenderer/index.vue +13 -19
  490. package/dist/runtime/editor/components/BlockProxy/index.vue +56 -130
  491. package/dist/runtime/editor/components/BlokkliRootErrorBoundary.vue +117 -48
  492. package/dist/runtime/editor/components/BundleSelector/Group.d.vue.ts +12 -0
  493. package/dist/runtime/editor/components/BundleSelector/Group.vue +28 -0
  494. package/dist/runtime/editor/components/BundleSelector/Group.vue.d.ts +12 -0
  495. package/dist/runtime/editor/components/BundleSelector/index.vue +27 -211
  496. package/dist/runtime/editor/components/BundleSelector/types.d.ts +21 -0
  497. package/dist/runtime/editor/components/BundleSelector/types.js +0 -0
  498. package/dist/runtime/editor/components/Button/index.d.vue.ts +29 -0
  499. package/dist/runtime/editor/components/Button/index.vue +36 -0
  500. package/dist/runtime/editor/components/Button/index.vue.d.ts +29 -0
  501. package/dist/runtime/editor/components/ButtonAction/index.d.vue.ts +13 -0
  502. package/dist/runtime/editor/components/ButtonAction/index.vue +25 -0
  503. package/dist/runtime/editor/components/ButtonAction/index.vue.d.ts +13 -0
  504. package/dist/runtime/editor/components/Dialog/index.d.vue.ts +9 -0
  505. package/dist/runtime/editor/components/Dialog/index.vue +161 -240
  506. package/dist/runtime/editor/components/Dialog/index.vue.d.ts +9 -0
  507. package/dist/runtime/editor/components/DiffApproval/Highlight/Item.d.vue.ts +14 -0
  508. package/dist/runtime/editor/components/DiffApproval/Highlight/Item.vue +39 -20
  509. package/dist/runtime/editor/components/DiffApproval/Highlight/Item.vue.d.ts +14 -0
  510. package/dist/runtime/editor/components/DiffApproval/Highlight/index.d.vue.ts +9 -0
  511. package/dist/runtime/editor/components/DiffApproval/Highlight/index.vue +21 -121
  512. package/dist/runtime/editor/components/DiffApproval/Highlight/index.vue.d.ts +9 -0
  513. package/dist/runtime/editor/components/DiffApproval/Toolbar/index.d.vue.ts +9 -0
  514. package/dist/runtime/editor/components/DiffApproval/Toolbar/index.vue +113 -248
  515. package/dist/runtime/editor/components/DiffApproval/Toolbar/index.vue.d.ts +9 -0
  516. package/dist/runtime/editor/components/DiffApproval/index.d.vue.ts +16 -0
  517. package/dist/runtime/editor/components/DiffApproval/index.vue +7 -1
  518. package/dist/runtime/editor/components/DiffApproval/index.vue.d.ts +16 -0
  519. package/dist/runtime/editor/components/DiffViewer/DiffDisplay/index.vue +1 -1
  520. package/dist/runtime/editor/components/DiffViewer/State.vue +294 -297
  521. package/dist/runtime/editor/{features/analyze/Summary/Chart.d.vue.ts → components/DonutChart/index.d.vue.ts} +4 -4
  522. package/dist/runtime/editor/{features/analyze/Summary/Chart.vue → components/DonutChart/index.vue} +4 -3
  523. package/dist/runtime/editor/{features/analyze/Summary/Chart.vue.d.ts → components/DonutChart/index.vue.d.ts} +4 -4
  524. package/dist/runtime/editor/components/DraggableList.vue +71 -84
  525. package/dist/runtime/editor/components/Dropdown/index.d.vue.ts +1 -0
  526. package/dist/runtime/editor/components/Dropdown/index.vue +91 -89
  527. package/dist/runtime/editor/components/Dropdown/index.vue.d.ts +1 -0
  528. package/dist/runtime/editor/components/EditIndicator.d.vue.ts +0 -1
  529. package/dist/runtime/editor/components/EditIndicator.vue +105 -37
  530. package/dist/runtime/editor/components/EditIndicator.vue.d.ts +0 -1
  531. package/dist/runtime/editor/components/EditProvider.vue +29 -35
  532. package/dist/runtime/editor/components/FileDropHandler/index.vue +24 -20
  533. package/dist/runtime/editor/components/FlexTextarea/index.d.vue.ts +1 -1
  534. package/dist/runtime/editor/components/FlexTextarea/index.vue +8 -4
  535. package/dist/runtime/editor/components/FlexTextarea/index.vue.d.ts +1 -1
  536. package/dist/runtime/editor/components/Form/Checkboxes/index.d.vue.ts +1 -1
  537. package/dist/runtime/editor/components/Form/Checkboxes/index.vue +2 -2
  538. package/dist/runtime/editor/components/Form/Checkboxes/index.vue.d.ts +1 -1
  539. package/dist/runtime/editor/components/Form/Datepicker/index.vue +28 -175
  540. package/dist/runtime/editor/components/Form/Number/index.d.vue.ts +36 -0
  541. package/dist/runtime/editor/components/Form/Number/index.vue +79 -0
  542. package/dist/runtime/editor/components/Form/Number/index.vue.d.ts +36 -0
  543. package/dist/runtime/editor/components/Form/Radio/index.d.vue.ts +1 -1
  544. package/dist/runtime/editor/components/Form/Radio/index.vue +2 -2
  545. package/dist/runtime/editor/components/Form/Radio/index.vue.d.ts +1 -1
  546. package/dist/runtime/editor/components/Form/RadioBox/index.d.vue.ts +33 -0
  547. package/dist/runtime/editor/components/Form/RadioBox/index.vue +40 -0
  548. package/dist/runtime/editor/components/Form/RadioBox/index.vue.d.ts +33 -0
  549. package/dist/runtime/editor/components/Form/RadioTabs/index.vue +55 -0
  550. package/dist/runtime/editor/components/Form/Search/index.d.vue.ts +88 -0
  551. package/dist/runtime/editor/components/Form/Search/index.vue +289 -0
  552. package/dist/runtime/editor/components/Form/Search/index.vue.d.ts +88 -0
  553. package/dist/runtime/editor/components/Form/Search/types.d.ts +19 -0
  554. package/dist/runtime/editor/components/Form/Search/types.js +0 -0
  555. package/dist/runtime/editor/components/Form/Text/index.d.vue.ts +6 -2
  556. package/dist/runtime/editor/components/Form/Text/index.vue +12 -4
  557. package/dist/runtime/editor/components/Form/Text/index.vue.d.ts +6 -2
  558. package/dist/runtime/editor/components/Form/TextDark/index.d.vue.ts +24 -0
  559. package/dist/runtime/editor/components/Form/TextDark/index.vue +55 -0
  560. package/dist/runtime/editor/components/Form/TextDark/index.vue.d.ts +24 -0
  561. package/dist/runtime/editor/components/Form/Textarea/index.d.vue.ts +2 -0
  562. package/dist/runtime/editor/components/Form/Textarea/index.vue +12 -4
  563. package/dist/runtime/editor/components/Form/Textarea/index.vue.d.ts +2 -0
  564. package/dist/runtime/editor/components/Form/Toggle/index.d.vue.ts +13 -1
  565. package/dist/runtime/editor/components/Form/Toggle/index.vue +73 -216
  566. package/dist/runtime/editor/components/Form/Toggle/index.vue.d.ts +13 -1
  567. package/dist/runtime/editor/components/FormOverlay/index.vue +16 -25
  568. package/dist/runtime/editor/components/Icon/index.vue +7 -3
  569. package/dist/runtime/editor/components/Indicators/index.vue +74 -147
  570. package/dist/runtime/editor/components/InfoBox/index.d.vue.ts +7 -4
  571. package/dist/runtime/editor/components/InfoBox/index.vue +18 -69
  572. package/dist/runtime/editor/components/InfoBox/index.vue.d.ts +7 -4
  573. package/dist/runtime/editor/components/InlineActions/Button/index.d.vue.ts +19 -0
  574. package/dist/runtime/editor/components/InlineActions/Button/index.vue +27 -0
  575. package/dist/runtime/editor/components/InlineActions/Button/index.vue.d.ts +19 -0
  576. package/dist/runtime/editor/components/InlineActions/index.d.vue.ts +13 -0
  577. package/dist/runtime/editor/components/InlineActions/index.vue +5 -0
  578. package/dist/runtime/editor/components/InlineActions/index.vue.d.ts +13 -0
  579. package/dist/runtime/editor/components/Konami/Game/index.vue +56 -65
  580. package/dist/runtime/editor/components/Messages/Item/index.vue +5 -2
  581. package/dist/runtime/editor/components/Messages/index.vue +68 -74
  582. package/dist/runtime/editor/components/NestedEditorOverlay/index.d.vue.ts +2 -1
  583. package/dist/runtime/editor/components/NestedEditorOverlay/index.vue +43 -209
  584. package/dist/runtime/editor/components/NestedEditorOverlay/index.vue.d.ts +2 -1
  585. package/dist/runtime/editor/components/Overlay/index.vue +52 -75
  586. package/dist/runtime/editor/components/Pagination/index.vue +18 -24
  587. package/dist/runtime/editor/components/Panel/Action/index.d.vue.ts +11 -0
  588. package/dist/runtime/editor/components/Panel/Action/index.vue +25 -0
  589. package/dist/runtime/editor/components/Panel/Action/index.vue.d.ts +11 -0
  590. package/dist/runtime/editor/components/Panel/AddButton/index.d.vue.ts +8 -0
  591. package/dist/runtime/editor/components/Panel/AddButton/index.vue +17 -0
  592. package/dist/runtime/editor/components/Panel/AddButton/index.vue.d.ts +8 -0
  593. package/dist/runtime/editor/components/Panel/Details/index.d.vue.ts +25 -0
  594. package/dist/runtime/editor/components/Panel/Details/index.vue +45 -0
  595. package/dist/runtime/editor/components/Panel/Details/index.vue.d.ts +25 -0
  596. package/dist/runtime/editor/components/Panel/Item/index.d.vue.ts +65 -0
  597. package/dist/runtime/editor/components/Panel/Item/index.vue +99 -0
  598. package/dist/runtime/editor/components/Panel/Item/index.vue.d.ts +65 -0
  599. package/dist/runtime/editor/components/Panel/Section/index.d.vue.ts +26 -0
  600. package/dist/runtime/editor/components/Panel/Section/index.vue +94 -0
  601. package/dist/runtime/editor/components/Panel/Section/index.vue.d.ts +26 -0
  602. package/dist/runtime/editor/components/Panel/Sheet/index.d.vue.ts +20 -0
  603. package/dist/runtime/editor/components/Panel/Sheet/index.vue +34 -0
  604. package/dist/runtime/editor/components/Panel/Sheet/index.vue.d.ts +20 -0
  605. package/dist/runtime/editor/components/Panel/Tabs/index.d.vue.ts +28 -0
  606. package/dist/runtime/editor/components/Panel/Tabs/index.vue +25 -0
  607. package/dist/runtime/editor/components/Panel/Tabs/index.vue.d.ts +28 -0
  608. package/dist/runtime/editor/components/Pill/index.d.vue.ts +28 -0
  609. package/dist/runtime/editor/components/Pill/index.vue +37 -0
  610. package/dist/runtime/editor/components/Pill/index.vue.d.ts +28 -0
  611. package/dist/runtime/editor/components/PluginConfigForm/index.vue +15 -16
  612. package/dist/runtime/editor/components/PluginConfigFormInline/FilterSelect/index.vue +116 -248
  613. package/dist/runtime/editor/components/PluginConfigFormInline/index.vue +43 -58
  614. package/dist/runtime/editor/components/Popup/index.vue +54 -47
  615. package/dist/runtime/editor/components/PreviewProvider.vue +3 -3
  616. package/dist/runtime/editor/components/Reorder/index.d.vue.ts +53 -0
  617. package/dist/runtime/editor/components/Reorder/index.vue +123 -0
  618. package/dist/runtime/editor/components/Reorder/index.vue.d.ts +53 -0
  619. package/dist/runtime/editor/components/Resizable/index.d.vue.ts +10 -2
  620. package/dist/runtime/editor/components/Resizable/index.vue +84 -79
  621. package/dist/runtime/editor/components/Resizable/index.vue.d.ts +10 -2
  622. package/dist/runtime/editor/components/ResizableEditorView/index.d.vue.ts +26 -0
  623. package/dist/runtime/editor/components/ResizableEditorView/index.vue +76 -0
  624. package/dist/runtime/editor/components/ResizableEditorView/index.vue.d.ts +26 -0
  625. package/dist/runtime/editor/components/RichText/Editor/CleanTaskItem.d.ts +10 -0
  626. package/dist/runtime/editor/components/RichText/Editor/CleanTaskItem.js +59 -0
  627. package/dist/runtime/editor/components/RichText/Editor/Panel/Link/index.d.vue.ts +19 -0
  628. package/dist/runtime/editor/components/RichText/Editor/Panel/Link/index.vue +67 -0
  629. package/dist/runtime/editor/components/RichText/Editor/Panel/Link/index.vue.d.ts +19 -0
  630. package/dist/runtime/editor/components/RichText/Editor/Panel/index.d.vue.ts +20 -0
  631. package/dist/runtime/editor/components/RichText/Editor/Panel/index.vue +35 -0
  632. package/dist/runtime/editor/components/RichText/Editor/Panel/index.vue.d.ts +20 -0
  633. package/dist/runtime/editor/components/RichText/Editor/SuggestionList/Emojis.d.vue.ts +24 -0
  634. package/dist/runtime/editor/components/RichText/Editor/SuggestionList/Emojis.vue +44 -0
  635. package/dist/runtime/editor/components/RichText/Editor/SuggestionList/Emojis.vue.d.ts +24 -0
  636. package/dist/runtime/editor/components/RichText/Editor/SuggestionList/Mentions.d.vue.ts +23 -0
  637. package/dist/runtime/editor/components/RichText/Editor/SuggestionList/Mentions.vue +35 -0
  638. package/dist/runtime/editor/components/RichText/Editor/SuggestionList/Mentions.vue.d.ts +23 -0
  639. package/dist/runtime/editor/components/RichText/Editor/SuggestionList/index.d.vue.ts +30 -0
  640. package/dist/runtime/editor/components/RichText/Editor/SuggestionList/index.vue +69 -0
  641. package/dist/runtime/editor/components/RichText/Editor/SuggestionList/index.vue.d.ts +30 -0
  642. package/dist/runtime/editor/components/RichText/Editor/Toolbar/Button/index.d.vue.ts +18 -0
  643. package/dist/runtime/editor/components/RichText/Editor/Toolbar/Button/index.vue +31 -0
  644. package/dist/runtime/editor/components/RichText/Editor/Toolbar/Button/index.vue.d.ts +18 -0
  645. package/dist/runtime/editor/components/RichText/Editor/Toolbar/Group/index.d.vue.ts +3 -0
  646. package/dist/runtime/editor/components/RichText/Editor/Toolbar/Group/index.vue +13 -0
  647. package/dist/runtime/editor/components/RichText/Editor/Toolbar/Group/index.vue.d.ts +3 -0
  648. package/dist/runtime/editor/components/RichText/Editor/Toolbar/index.d.vue.ts +13 -0
  649. package/dist/runtime/editor/components/RichText/Editor/Toolbar/index.vue +7 -0
  650. package/dist/runtime/editor/components/RichText/Editor/Toolbar/index.vue.d.ts +13 -0
  651. package/dist/runtime/editor/components/RichText/Editor/index.d.vue.ts +31 -0
  652. package/dist/runtime/editor/components/RichText/Editor/index.vue +386 -0
  653. package/dist/runtime/editor/components/RichText/Editor/index.vue.d.ts +31 -0
  654. package/dist/runtime/editor/components/RichText/Renderer/enrichRichContent.d.ts +12 -0
  655. package/dist/runtime/editor/components/RichText/Renderer/enrichRichContent.js +42 -0
  656. package/dist/runtime/editor/components/RichText/Renderer/index.d.vue.ts +23 -0
  657. package/dist/runtime/editor/components/RichText/Renderer/index.vue +39 -0
  658. package/dist/runtime/editor/components/RichText/Renderer/index.vue.d.ts +23 -0
  659. package/dist/runtime/editor/components/ScaleToFit/index.vue +18 -21
  660. package/dist/runtime/editor/components/ScheduleDate/index.d.vue.ts +2 -2
  661. package/dist/runtime/editor/components/ScheduleDate/index.vue +19 -12
  662. package/dist/runtime/editor/components/ScheduleDate/index.vue.d.ts +2 -2
  663. package/dist/runtime/editor/components/SearchOverlay/index.d.vue.ts +2 -2
  664. package/dist/runtime/editor/components/SearchOverlay/index.vue +31 -112
  665. package/dist/runtime/editor/components/SearchOverlay/index.vue.d.ts +2 -2
  666. package/dist/runtime/editor/components/SidebarFloater/index.d.vue.ts +16 -0
  667. package/dist/runtime/editor/components/SidebarFloater/index.vue +45 -0
  668. package/dist/runtime/editor/components/SidebarFloater/index.vue.d.ts +16 -0
  669. package/dist/runtime/editor/components/StatusIcon/index.vue +42 -91
  670. package/dist/runtime/editor/components/SystemRequirements/index.vue +40 -46
  671. package/dist/runtime/editor/components/Tabs/index.d.vue.ts +1 -0
  672. package/dist/runtime/editor/components/Tabs/index.vue +5 -3
  673. package/dist/runtime/editor/components/Tabs/index.vue.d.ts +1 -0
  674. package/dist/runtime/editor/components/Toolbar/ViewOptions/List/Button/index.d.vue.ts +3 -0
  675. package/dist/runtime/editor/components/Toolbar/ViewOptions/List/Button/index.vue +74 -0
  676. package/dist/runtime/editor/components/Toolbar/ViewOptions/List/Button/index.vue.d.ts +3 -0
  677. package/dist/runtime/editor/components/Toolbar/ViewOptions/List/index.d.vue.ts +7 -0
  678. package/dist/runtime/editor/components/Toolbar/ViewOptions/List/index.vue +16 -0
  679. package/dist/runtime/editor/components/Toolbar/ViewOptions/List/index.vue.d.ts +7 -0
  680. package/dist/runtime/editor/components/Toolbar/ViewOptions/index.d.vue.ts +3 -0
  681. package/dist/runtime/editor/components/Toolbar/ViewOptions/index.vue +57 -0
  682. package/dist/runtime/editor/components/Toolbar/ViewOptions/index.vue.d.ts +3 -0
  683. package/dist/runtime/editor/components/Toolbar/index.vue +132 -168
  684. package/dist/runtime/editor/components/ToolbarDropdown/index.d.vue.ts +21 -0
  685. package/dist/runtime/editor/components/ToolbarDropdown/index.vue +36 -0
  686. package/dist/runtime/editor/components/ToolbarDropdown/index.vue.d.ts +21 -0
  687. package/dist/runtime/editor/components/Tooltip/Context.vue +3 -1
  688. package/dist/runtime/editor/components/Tooltip/index.vue +19 -6
  689. package/dist/runtime/editor/components/Transition/Collapse/index.d.vue.ts +13 -0
  690. package/dist/runtime/editor/components/Transition/Collapse/index.vue +20 -0
  691. package/dist/runtime/editor/components/Transition/Collapse/index.vue.d.ts +13 -0
  692. package/dist/runtime/editor/components/Transition/List/index.d.vue.ts +21 -0
  693. package/dist/runtime/editor/components/Transition/List/index.vue +31 -0
  694. package/dist/runtime/editor/components/Transition/List/index.vue.d.ts +21 -0
  695. package/dist/runtime/editor/components/Transition/index.d.vue.ts +1 -1
  696. package/dist/runtime/editor/components/Transition/index.vue +2 -1
  697. package/dist/runtime/editor/components/Transition/index.vue.d.ts +1 -1
  698. package/dist/runtime/editor/components/index.d.ts +12 -2
  699. package/dist/runtime/editor/components/index.js +11 -4
  700. package/dist/runtime/editor/composables/defineEditorComponent.d.ts +126 -0
  701. package/dist/runtime/editor/composables/defineEditorComponent.js +6 -0
  702. package/dist/runtime/editor/composables/defineViewOption.d.ts +5 -0
  703. package/dist/runtime/editor/composables/defineViewOption.js +10 -0
  704. package/dist/runtime/editor/composables/index.d.ts +4 -0
  705. package/dist/runtime/editor/composables/index.js +6 -0
  706. package/dist/runtime/editor/composables/useDialog.d.ts +1 -1
  707. package/dist/runtime/editor/composables/useDialog.js +2 -2
  708. package/dist/runtime/editor/composables/useDismiss.d.ts +30 -0
  709. package/dist/runtime/editor/composables/useDismiss.js +43 -0
  710. package/dist/runtime/editor/composables/useEditableFieldOverride.js +16 -8
  711. package/dist/runtime/editor/composables/useGlobalBlokkliObject.d.ts +17 -3
  712. package/dist/runtime/editor/composables/useGlobalBlokkliObject.js +6 -0
  713. package/dist/runtime/editor/css/output.css +1 -1
  714. package/dist/runtime/editor/events/index.d.ts +45 -2
  715. package/dist/runtime/editor/features/add-list/Actions/index.vue +4 -1
  716. package/dist/runtime/editor/features/add-list/Blocks/index.vue +5 -1
  717. package/dist/runtime/editor/features/add-list/Help/Item.vue +9 -3
  718. package/dist/runtime/editor/features/add-list/Help/index.vue +126 -167
  719. package/dist/runtime/editor/features/add-list/index.vue +169 -324
  720. package/dist/runtime/editor/features/analyze/Ignored/index.vue +6 -22
  721. package/dist/runtime/editor/features/analyze/Main.vue +49 -43
  722. package/dist/runtime/editor/features/analyze/Results/Results.vue +6 -28
  723. package/dist/runtime/editor/features/analyze/Results/ResultsItem.vue +19 -9
  724. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodes.vue +23 -6
  725. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodesTarget.vue +2 -4
  726. package/dist/runtime/editor/features/analyze/Results/Section.d.vue.ts +10 -0
  727. package/dist/runtime/editor/features/analyze/Results/Section.vue +42 -0
  728. package/dist/runtime/editor/features/analyze/Results/Section.vue.d.ts +10 -0
  729. package/dist/runtime/editor/features/analyze/Results/Status.vue +12 -6
  730. package/dist/runtime/editor/features/analyze/Summary/index.vue +19 -8
  731. package/dist/runtime/editor/features/analyze/index.vue +3 -454
  732. package/dist/runtime/editor/features/anchors/Overlay/index.vue +3 -11
  733. package/dist/runtime/editor/features/anchors/index.vue +11 -11
  734. package/dist/runtime/editor/features/anchors/types.d.ts +1 -0
  735. package/dist/runtime/editor/features/anchors/types.js +1 -0
  736. package/dist/runtime/editor/features/artboard/Overview/index.vue +6 -8
  737. package/dist/runtime/editor/features/artboard/Renderer.vue +70 -56
  738. package/dist/runtime/editor/features/artboard/Scrollbar/index.vue +22 -63
  739. package/dist/runtime/editor/features/block-scheduler/Dialog/ScheduleSection.d.vue.ts +3 -0
  740. package/dist/runtime/editor/features/block-scheduler/Dialog/ScheduleSection.vue +35 -25
  741. package/dist/runtime/editor/features/block-scheduler/Dialog/ScheduleSection.vue.d.ts +3 -0
  742. package/dist/runtime/editor/features/block-scheduler/Dialog/index.vue +21 -85
  743. package/dist/runtime/editor/features/block-scheduler/index.vue +8 -65
  744. package/dist/runtime/editor/features/block-transfer/SummaryDialog/index.d.vue.ts +11 -0
  745. package/dist/runtime/editor/features/block-transfer/SummaryDialog/index.vue +184 -0
  746. package/dist/runtime/editor/features/block-transfer/SummaryDialog/index.vue.d.ts +11 -0
  747. package/dist/runtime/editor/features/block-transfer/index.d.vue.ts +3 -0
  748. package/dist/runtime/editor/features/block-transfer/index.vue +235 -0
  749. package/dist/runtime/editor/features/block-transfer/index.vue.d.ts +3 -0
  750. package/dist/runtime/editor/features/block-transfer/types.d.ts +101 -0
  751. package/dist/runtime/editor/features/block-transfer/types.js +0 -0
  752. package/dist/runtime/editor/features/breadcrumbs/Crumb/index.d.vue.ts +31 -0
  753. package/dist/runtime/editor/features/breadcrumbs/Crumb/index.vue +100 -0
  754. package/dist/runtime/editor/features/breadcrumbs/Crumb/index.vue.d.ts +31 -0
  755. package/dist/runtime/editor/features/breadcrumbs/index.vue +56 -195
  756. package/dist/runtime/editor/features/breadcrumbs/types.d.ts +17 -0
  757. package/dist/runtime/editor/features/breadcrumbs/types.js +0 -0
  758. package/dist/runtime/editor/features/changelog/Dialog/index.vue +14 -68
  759. package/dist/runtime/editor/features/changelog/changelog.json +16 -0
  760. package/dist/runtime/editor/features/changelog/index.vue +1 -1
  761. package/dist/runtime/editor/features/clipboard/DropElement/index.vue +137 -152
  762. package/dist/runtime/editor/features/clipboard/index.vue +24 -143
  763. package/dist/runtime/editor/features/clipboard/types.d.ts +9 -0
  764. package/dist/runtime/editor/features/command-palette/Palette/Item/index.vue +3 -3
  765. package/dist/runtime/editor/features/command-palette/Palette/index.vue +3 -1
  766. package/dist/runtime/editor/features/comments/AddForm/index.vue +24 -14
  767. package/dist/runtime/editor/features/comments/Comment/Actions/index.d.vue.ts +27 -0
  768. package/dist/runtime/editor/features/comments/Comment/Actions/index.vue +89 -0
  769. package/dist/runtime/editor/features/comments/Comment/Actions/index.vue.d.ts +27 -0
  770. package/dist/runtime/editor/features/comments/Comment/EditForm/index.d.vue.ts +15 -0
  771. package/dist/runtime/editor/features/comments/Comment/EditForm/index.vue +38 -0
  772. package/dist/runtime/editor/features/comments/Comment/EditForm/index.vue.d.ts +15 -0
  773. package/dist/runtime/editor/features/comments/Comment/Meta/index.d.vue.ts +12 -0
  774. package/dist/runtime/editor/features/comments/Comment/Meta/index.vue +30 -0
  775. package/dist/runtime/editor/features/comments/Comment/Meta/index.vue.d.ts +12 -0
  776. package/dist/runtime/editor/features/comments/Comment/index.d.vue.ts +30 -14
  777. package/dist/runtime/editor/features/comments/Comment/index.vue +133 -28
  778. package/dist/runtime/editor/features/comments/Comment/index.vue.d.ts +30 -14
  779. package/dist/runtime/editor/features/comments/CommentInput/index.d.vue.ts +25 -10
  780. package/dist/runtime/editor/features/comments/CommentInput/index.vue +74 -19
  781. package/dist/runtime/editor/features/comments/CommentInput/index.vue.d.ts +25 -10
  782. package/dist/runtime/editor/features/comments/Overlay/Item/index.d.vue.ts +32 -5
  783. package/dist/runtime/editor/features/comments/Overlay/Item/index.vue +85 -47
  784. package/dist/runtime/editor/features/comments/Overlay/Item/index.vue.d.ts +32 -5
  785. package/dist/runtime/editor/features/comments/Overlay/index.d.vue.ts +29 -7
  786. package/dist/runtime/editor/features/comments/Overlay/index.vue +42 -11
  787. package/dist/runtime/editor/features/comments/Overlay/index.vue.d.ts +29 -7
  788. package/dist/runtime/editor/features/comments/Sidebar/AddForm/index.d.vue.ts +9 -0
  789. package/dist/runtime/editor/features/comments/Sidebar/AddForm/index.vue +57 -0
  790. package/dist/runtime/editor/features/comments/Sidebar/AddForm/index.vue.d.ts +9 -0
  791. package/dist/runtime/editor/features/comments/Sidebar/index.d.vue.ts +66 -0
  792. package/dist/runtime/editor/features/comments/Sidebar/index.vue +116 -0
  793. package/dist/runtime/editor/features/comments/Sidebar/index.vue.d.ts +66 -0
  794. package/dist/runtime/editor/features/comments/Thread/ReplyForm/index.d.vue.ts +11 -0
  795. package/dist/runtime/editor/features/comments/Thread/ReplyForm/index.vue +57 -0
  796. package/dist/runtime/editor/features/comments/Thread/ReplyForm/index.vue.d.ts +11 -0
  797. package/dist/runtime/editor/features/comments/Thread/index.d.vue.ts +60 -0
  798. package/dist/runtime/editor/features/comments/Thread/index.vue +162 -0
  799. package/dist/runtime/editor/features/comments/Thread/index.vue.d.ts +60 -0
  800. package/dist/runtime/editor/features/comments/index.vue +111 -260
  801. package/dist/runtime/editor/features/comments/types.d.ts +42 -8
  802. package/dist/runtime/editor/features/debug/Main.vue +148 -146
  803. package/dist/runtime/editor/features/debug/Section/Logging.vue +5 -2
  804. package/dist/runtime/editor/features/debug/Section/Rendering.vue +3 -3
  805. package/dist/runtime/editor/features/delete/index.vue +1 -1
  806. package/dist/runtime/editor/features/delete/types.d.ts +1 -0
  807. package/dist/runtime/editor/features/delete/types.js +1 -0
  808. package/dist/runtime/editor/features/dev-mode/index.vue +48 -50
  809. package/dist/runtime/editor/features/diff/index.vue +1 -1
  810. package/dist/runtime/editor/features/dragging-overlay/DragItems/index.vue +124 -1
  811. package/dist/runtime/editor/features/dragging-overlay/Renderer/index.vue +51 -0
  812. package/dist/runtime/editor/features/dragging-overlay/index.vue +143 -313
  813. package/dist/runtime/editor/features/dragging-overlay/types.d.ts +28 -0
  814. package/dist/runtime/editor/features/dragging-overlay/types.js +0 -0
  815. package/dist/runtime/editor/features/droppable-field-edit/Overlay/index.vue +26 -24
  816. package/dist/runtime/editor/features/duplicate/types.d.ts +1 -0
  817. package/dist/runtime/editor/features/duplicate/types.js +1 -0
  818. package/dist/runtime/editor/features/edit/index.vue +3 -6
  819. package/dist/runtime/editor/features/edit-form/index.vue +1 -1
  820. package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.vue +15 -15
  821. package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/ChunkOverlay.vue +48 -51
  822. package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/index.vue +4 -1
  823. package/dist/runtime/editor/features/editable-field/Overlay/index.vue +132 -183
  824. package/dist/runtime/editor/features/editable-mask/index.vue +26 -25
  825. package/dist/runtime/editor/features/entity-title/index.vue +11 -3
  826. package/dist/runtime/editor/features/exit/index.vue +1 -1
  827. package/dist/runtime/editor/features/fragments/Dialog/index.vue +4 -91
  828. package/dist/runtime/editor/features/grid/index.vue +16 -15
  829. package/dist/runtime/editor/features/grid/types.d.ts +1 -0
  830. package/dist/runtime/editor/features/grid/types.js +1 -0
  831. package/dist/runtime/editor/features/help/Dialog/index.vue +57 -0
  832. package/dist/runtime/editor/features/help/Shortcuts/index.vue +48 -60
  833. package/dist/runtime/editor/features/help/index.vue +52 -48
  834. package/dist/runtime/editor/features/highlights/Renderer/fragment.glsl +1 -1
  835. package/dist/runtime/editor/features/highlights/Renderer/index.vue +1 -1
  836. package/dist/runtime/editor/features/history/List/index.vue +208 -206
  837. package/dist/runtime/editor/features/history/index.vue +2 -2
  838. package/dist/runtime/editor/features/history/types.d.ts +1 -0
  839. package/dist/runtime/editor/features/history/types.js +1 -0
  840. package/dist/runtime/editor/features/hover/Renderer/index.vue +4 -2
  841. package/dist/runtime/editor/features/hover/Renderer/vertex.glsl +3 -1
  842. package/dist/runtime/editor/features/hover/index.vue +2 -2
  843. package/dist/runtime/editor/features/import-existing/Dialog/Item.vue +19 -32
  844. package/dist/runtime/editor/features/import-existing/Dialog/index.vue +39 -26
  845. package/dist/runtime/editor/features/import-existing/index.vue +1 -1
  846. package/dist/runtime/editor/features/library/{LibraryDialog → DialogBrowseLibrary}/index.vue +2 -2
  847. package/dist/runtime/editor/features/library/{ReusableDialog → DialogMakeReusable}/index.vue +25 -22
  848. package/dist/runtime/editor/features/library/index.vue +4 -4
  849. package/dist/runtime/editor/features/media-library/Library/index.vue +1 -1
  850. package/dist/runtime/editor/features/media-library/index.vue +126 -182
  851. package/dist/runtime/editor/features/multi-select/index.vue +2 -6
  852. package/dist/runtime/editor/features/notifications/Item/index.d.vue.ts +4 -0
  853. package/dist/runtime/editor/features/notifications/Item/index.vue +96 -0
  854. package/dist/runtime/editor/features/notifications/Item/index.vue.d.ts +4 -0
  855. package/dist/runtime/editor/features/notifications/List/index.d.vue.ts +11 -0
  856. package/dist/runtime/editor/features/notifications/List/index.vue +126 -0
  857. package/dist/runtime/editor/features/notifications/List/index.vue.d.ts +11 -0
  858. package/dist/runtime/editor/features/notifications/docs.md +12 -0
  859. package/dist/runtime/editor/features/notifications/index.d.vue.ts +3 -0
  860. package/dist/runtime/editor/features/notifications/index.vue +123 -0
  861. package/dist/runtime/editor/features/notifications/index.vue.d.ts +3 -0
  862. package/dist/runtime/editor/features/notifications/types.d.ts +132 -0
  863. package/dist/runtime/editor/features/notifications/types.js +20 -0
  864. package/dist/runtime/editor/features/options/Form/Checkbox/index.d.vue.ts +2 -2
  865. package/dist/runtime/editor/features/options/Form/Checkbox/index.vue +11 -4
  866. package/dist/runtime/editor/features/options/Form/Checkbox/index.vue.d.ts +2 -2
  867. package/dist/runtime/editor/features/options/Form/Checkboxes/index.vue +23 -8
  868. package/dist/runtime/editor/features/options/Form/DateTimeLocal/index.vue +3 -1
  869. package/dist/runtime/editor/features/options/Form/Group.vue +3 -1
  870. package/dist/runtime/editor/features/options/Form/Item.vue +6 -2
  871. package/dist/runtime/editor/features/options/Form/Number/index.d.vue.ts +10 -13
  872. package/dist/runtime/editor/features/options/Form/Number/index.vue +84 -12
  873. package/dist/runtime/editor/features/options/Form/Number/index.vue.d.ts +10 -13
  874. package/dist/runtime/editor/features/options/Form/Radios/index.vue +3 -1
  875. package/dist/runtime/editor/features/options/Form/Range/index.vue +7 -1
  876. package/dist/runtime/editor/features/options/Form/Text/index.vue +5 -1
  877. package/dist/runtime/editor/features/options/Form/index.vue +34 -24
  878. package/dist/runtime/editor/features/options/index.vue +705 -694
  879. package/dist/runtime/editor/features/ownership/Banner/index.vue +3 -1
  880. package/dist/runtime/editor/features/ownership/types.d.ts +1 -0
  881. package/dist/runtime/editor/features/ownership/types.js +1 -0
  882. package/dist/runtime/editor/features/preview-grant/QrCode/index.vue +17 -10
  883. package/dist/runtime/editor/features/preview-grant/index.vue +1 -0
  884. package/dist/runtime/editor/features/preview-grant/types.d.ts +1 -0
  885. package/dist/runtime/editor/features/preview-grant/types.js +1 -0
  886. package/dist/runtime/editor/features/proxy-view/index.vue +24 -21
  887. package/dist/runtime/editor/features/publish/Dialog/Item.vue +53 -9
  888. package/dist/runtime/editor/features/publish/Dialog/PublishOption.vue +34 -12
  889. package/dist/runtime/editor/features/publish/Dialog/Summary.vue +41 -30
  890. package/dist/runtime/editor/features/publish/Dialog/index.vue +140 -133
  891. package/dist/runtime/editor/features/publish/index.vue +3 -838
  892. package/dist/runtime/editor/features/referenced-entities/List/Item/index.vue +1 -1
  893. package/dist/runtime/editor/features/responsive-preview/Frame/index.vue +162 -179
  894. package/dist/runtime/editor/features/revert/index.vue +1 -1
  895. package/dist/runtime/editor/features/revert/types.d.ts +1 -0
  896. package/dist/runtime/editor/features/revert/types.js +1 -0
  897. package/dist/runtime/editor/features/search/Overlay/Results/Content/index.vue +1 -1
  898. package/dist/runtime/editor/features/search/Overlay/Results/Page/index.vue +1 -1
  899. package/dist/runtime/editor/features/search/index.vue +340 -442
  900. package/dist/runtime/editor/features/selection/AddButtons/Renderer/index.vue +33 -58
  901. package/dist/runtime/editor/features/selection/AddButtons/index.vue +23 -7
  902. package/dist/runtime/editor/features/selection/Renderer/index.vue +1 -1
  903. package/dist/runtime/editor/features/selection/types.d.ts +22 -0
  904. package/dist/runtime/editor/features/selection/types.js +0 -0
  905. package/dist/runtime/editor/features/settings/Dialog/FeatureSetting/index.vue +36 -36
  906. package/dist/runtime/editor/features/settings/Dialog/index.vue +31 -24
  907. package/dist/runtime/editor/features/settings/index.vue +2 -151
  908. package/dist/runtime/editor/features/structure/List/Item/index.vue +3 -4
  909. package/dist/runtime/editor/features/structure/index.vue +132 -152
  910. package/dist/runtime/editor/features/swap/types.d.ts +1 -0
  911. package/dist/runtime/editor/features/swap/types.js +1 -0
  912. package/dist/runtime/editor/features/templates/{Dialog → DialogBrowseTemplates}/index.vue +1 -1
  913. package/dist/runtime/editor/features/templates/{CreateDialog → DialogCreateTemplate}/index.vue +11 -12
  914. package/dist/runtime/editor/features/templates/{ManageDialog → DialogManageTemplates}/Item.vue +35 -30
  915. package/dist/runtime/editor/features/templates/DialogManageTemplates/index.d.vue.ts +7 -0
  916. package/dist/runtime/editor/features/templates/DialogManageTemplates/index.vue +117 -0
  917. package/dist/runtime/editor/features/templates/DialogManageTemplates/index.vue.d.ts +7 -0
  918. package/dist/runtime/editor/features/templates/index.vue +7 -5
  919. package/dist/runtime/editor/features/theme/index.vue +38 -56
  920. package/dist/runtime/editor/features/touch-action-bar/Bar/index.vue +15 -30
  921. package/dist/runtime/editor/features/tour/Overlay/index.vue +137 -196
  922. package/dist/runtime/editor/features/transform/Dialog/index.vue +102 -111
  923. package/dist/runtime/editor/features/translations/AutoTranslate/index.d.vue.ts +3 -0
  924. package/dist/runtime/editor/features/translations/AutoTranslate/index.vue +138 -0
  925. package/dist/runtime/editor/features/translations/AutoTranslate/index.vue.d.ts +3 -0
  926. package/dist/runtime/editor/features/translations/Banner/index.vue +17 -8
  927. package/dist/runtime/editor/features/translations/CsvDialog/Export/index.vue +58 -46
  928. package/dist/runtime/editor/features/translations/CsvDialog/Import/index.vue +55 -36
  929. package/dist/runtime/editor/features/translations/CsvDialog/index.vue +4 -5
  930. package/dist/runtime/editor/features/translations/LanguageSwitcher/Dropdown/index.d.vue.ts +13 -0
  931. package/dist/runtime/editor/features/translations/LanguageSwitcher/Dropdown/index.vue +49 -0
  932. package/dist/runtime/editor/features/translations/LanguageSwitcher/Dropdown/index.vue.d.ts +13 -0
  933. package/dist/runtime/editor/features/translations/LanguageSwitcher/InlineButtons/index.d.vue.ts +12 -0
  934. package/dist/runtime/editor/features/translations/LanguageSwitcher/InlineButtons/index.vue +48 -0
  935. package/dist/runtime/editor/features/translations/LanguageSwitcher/InlineButtons/index.vue.d.ts +12 -0
  936. package/dist/runtime/editor/features/translations/LanguageSwitcher/index.d.vue.ts +7 -0
  937. package/dist/runtime/editor/features/translations/LanguageSwitcher/index.vue +64 -0
  938. package/dist/runtime/editor/features/translations/LanguageSwitcher/index.vue.d.ts +7 -0
  939. package/dist/runtime/editor/features/translations/LanguageSwitcher/types.d.ts +8 -0
  940. package/dist/runtime/editor/features/translations/LanguageSwitcher/types.js +0 -0
  941. package/dist/runtime/editor/features/translations/SelectionTable/index.d.vue.ts +5 -18
  942. package/dist/runtime/editor/features/translations/SelectionTable/index.vue +18 -54
  943. package/dist/runtime/editor/features/translations/SelectionTable/index.vue.d.ts +5 -18
  944. package/dist/runtime/editor/features/translations/TranslateDialog/index.vue +128 -106
  945. package/dist/runtime/editor/features/translations/index.vue +26 -239
  946. package/dist/runtime/editor/features/validations/Overlay/index.vue +60 -117
  947. package/dist/runtime/editor/features/validations/index.vue +16 -35
  948. package/dist/runtime/editor/features/workspace/Overlay/Item.vue +9 -17
  949. package/dist/runtime/editor/features/workspace/Overlay/index.vue +4 -2
  950. package/dist/runtime/editor/features/workspace/index.vue +1 -1
  951. package/dist/runtime/editor/helpers/diff/index.d.ts +12 -0
  952. package/dist/runtime/editor/helpers/diff/index.js +9 -0
  953. package/dist/runtime/editor/helpers/options/index.js +7 -1
  954. package/dist/runtime/editor/helpers/string/index.d.ts +8 -0
  955. package/dist/runtime/editor/helpers/string/index.js +7 -0
  956. package/dist/runtime/editor/icons/svg/ghost.svg +1 -0
  957. package/dist/runtime/editor/plugins/ContextMenu/Menu/index.vue +7 -38
  958. package/dist/runtime/editor/plugins/ItemAction/index.d.vue.ts +13 -3
  959. package/dist/runtime/editor/plugins/ItemAction/index.vue +35 -16
  960. package/dist/runtime/editor/plugins/ItemAction/index.vue.d.ts +13 -3
  961. package/dist/runtime/editor/plugins/Sidebar/Detached/index.d.vue.ts +1 -1
  962. package/dist/runtime/editor/plugins/Sidebar/Detached/index.vue.d.ts +1 -1
  963. package/dist/runtime/editor/plugins/Sidebar/index.d.vue.ts +3 -3
  964. package/dist/runtime/editor/plugins/Sidebar/index.vue +184 -317
  965. package/dist/runtime/editor/plugins/Sidebar/index.vue.d.ts +3 -3
  966. package/dist/runtime/editor/plugins/ToolbarButton/index.d.vue.ts +8 -2
  967. package/dist/runtime/editor/plugins/ToolbarButton/index.vue +125 -29
  968. package/dist/runtime/editor/plugins/ToolbarButton/index.vue.d.ts +8 -2
  969. package/dist/runtime/editor/plugins/index.d.ts +1 -2
  970. package/dist/runtime/editor/plugins/index.js +1 -3
  971. package/dist/runtime/editor/providers/config.d.ts +8 -0
  972. package/dist/runtime/editor/providers/config.js +18 -0
  973. package/dist/runtime/editor/providers/directive.d.ts +8 -0
  974. package/dist/runtime/editor/providers/directive.js +6 -0
  975. package/dist/runtime/editor/providers/fieldValue.js +11 -13
  976. package/dist/runtime/editor/providers/plugin.d.ts +12 -0
  977. package/dist/runtime/editor/providers/plugin.js +9 -0
  978. package/dist/runtime/editor/providers/state.d.ts +0 -16
  979. package/dist/runtime/editor/providers/state.js +1 -19
  980. package/dist/runtime/editor/providers/texts.d.ts +8 -1
  981. package/dist/runtime/editor/providers/texts.js +5 -2
  982. package/dist/runtime/editor/providers/ui.d.ts +43 -2
  983. package/dist/runtime/editor/providers/ui.js +43 -2
  984. package/dist/runtime/editor/providers/user.d.ts +20 -0
  985. package/dist/runtime/editor/providers/user.js +14 -0
  986. package/dist/runtime/editor/translations/de.json +349 -313
  987. package/dist/runtime/editor/translations/fr.json +45 -127
  988. package/dist/runtime/editor/translations/gsw_CH.json +281 -252
  989. package/dist/runtime/editor/translations/it.json +45 -127
  990. package/dist/runtime/editor/types/app.d.ts +4 -0
  991. package/dist/runtime/editor/types/clipboard.d.ts +53 -0
  992. package/dist/runtime/editor/types/clipboard.js +23 -0
  993. package/dist/runtime/editor/types/config.d.ts +5 -0
  994. package/dist/runtime/editor/types/config.js +0 -0
  995. package/dist/runtime/editor/types/permissions.d.ts +1 -0
  996. package/dist/runtime/editor/types/ui.d.ts +1 -0
  997. package/dist/runtime/editor/types/user.d.ts +9 -0
  998. package/dist/runtime/editor/types/user.js +0 -0
  999. package/dist/runtime/helpers/runtimeHelpers/index.d.ts +1 -1
  1000. package/dist/runtime/helpers/runtimeHelpers/index.js +7 -0
  1001. package/dist/runtime/types/definitions.d.ts +3 -0
  1002. package/dist/shared/{editor.Bpw1EP57.d.mts → editor.D28NbXr3.d.mts} +20 -4
  1003. package/dist/shared/{editor.FygP6XeF.mjs → editor.Gu7mgJ5Q.mjs} +33 -1
  1004. package/dist/types.d.mts +1 -1
  1005. package/package.json +30 -17
  1006. package/dist/chunks/tailwindConfig.mjs +0 -222
  1007. package/dist/modules/agent/runtime/app/features/agent/Panel/Attachment/PreviewCsv/index.vue +0 -31
  1008. package/dist/modules/agent/runtime/app/features/agent/Panel/Attachment/PreviewHtml/index.vue +0 -12
  1009. package/dist/modules/agent/runtime/app/features/agent/Panel/Attachment/PreviewMarkdown/index.vue +0 -17
  1010. package/dist/modules/agent/runtime/app/features/agent/Panel/Conversation/Item/Assistant/index.vue +0 -38
  1011. package/dist/modules/agent/runtime/app/features/agent/Panel/Conversation/Item/Tool/index.vue +0 -61
  1012. package/dist/modules/agent/runtime/app/features/agent/Panel/Conversation/Item/User/index.vue +0 -28
  1013. package/dist/modules/agent/runtime/app/features/agent/Panel/DebugGallery/index.vue +0 -161
  1014. package/dist/modules/agent/runtime/app/tools/update_text_fields/Details/index.d.vue.ts +0 -6
  1015. package/dist/modules/agent/runtime/app/tools/update_text_fields/Details/index.vue +0 -24
  1016. package/dist/modules/agent/runtime/app/tools/update_text_fields/Details/index.vue.d.ts +0 -6
  1017. package/dist/modules/agent/runtime/server/helpers.d.ts +0 -77
  1018. package/dist/modules/agent/runtime/server/helpers.js +0 -354
  1019. package/dist/modules/charts/runtime/chartTypes/area.d.ts +0 -7
  1020. package/dist/modules/charts/runtime/chartTypes/area.js +0 -68
  1021. package/dist/modules/charts/runtime/chartTypes/define.d.ts +0 -2
  1022. package/dist/modules/charts/runtime/chartTypes/define.js +0 -3
  1023. package/dist/modules/charts/runtime/chartTypes/donut.d.ts +0 -6
  1024. package/dist/modules/charts/runtime/chartTypes/donut.js +0 -45
  1025. package/dist/modules/charts/runtime/chartTypes/heatmap.js +0 -54
  1026. package/dist/modules/charts/runtime/chartTypes/index.d.ts +0 -39
  1027. package/dist/modules/charts/runtime/chartTypes/index.js +0 -47
  1028. package/dist/modules/charts/runtime/chartTypes/line.d.ts +0 -7
  1029. package/dist/modules/charts/runtime/chartTypes/line.js +0 -68
  1030. package/dist/modules/charts/runtime/chartTypes/pie.d.ts +0 -5
  1031. package/dist/modules/charts/runtime/chartTypes/pie.js +0 -28
  1032. package/dist/modules/charts/runtime/chartTypes/radar.d.ts +0 -7
  1033. package/dist/modules/charts/runtime/chartTypes/radar.js +0 -52
  1034. package/dist/modules/charts/runtime/chartTypes/radialBar.d.ts +0 -6
  1035. package/dist/modules/charts/runtime/chartTypes/radialBar.js +0 -44
  1036. package/dist/modules/charts/runtime/chartTypes/shared.d.ts +0 -67
  1037. package/dist/modules/charts/runtime/chartTypes/types.d.ts +0 -29
  1038. package/dist/runtime/editor/components/AutoHeight/index.vue +0 -55
  1039. package/dist/runtime/editor/features/templates/ManageDialog/index.vue +0 -128
  1040. package/dist/runtime/editor/plugins/ViewOption/index.d.vue.ts +0 -139
  1041. package/dist/runtime/editor/plugins/ViewOption/index.vue +0 -97
  1042. package/dist/runtime/editor/plugins/ViewOption/index.vue.d.ts +0 -139
  1043. /package/dist/{modules/charts/runtime/chartTypes/types.js → global/types/colorOptions.js} +0 -0
  1044. /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/PreviewCode/index.d.vue.ts +0 -0
  1045. /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/PreviewCode/index.vue.d.ts +0 -0
  1046. /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/PreviewCsv/index.d.vue.ts +0 -0
  1047. /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/PreviewCsv/index.vue.d.ts +0 -0
  1048. /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/PreviewHtml/index.d.vue.ts +0 -0
  1049. /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/PreviewHtml/index.vue.d.ts +0 -0
  1050. /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/PreviewMarkdown/index.d.vue.ts +0 -0
  1051. /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/PreviewMarkdown/index.vue.d.ts +0 -0
  1052. /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/Assistant/index.d.vue.ts +0 -0
  1053. /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/Assistant/index.vue.d.ts +0 -0
  1054. /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/Tool/index.d.vue.ts +0 -0
  1055. /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/Tool/index.vue.d.ts +0 -0
  1056. /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/Unknown/index.d.vue.ts +0 -0
  1057. /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/Unknown/index.vue.d.ts +0 -0
  1058. /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/index.d.vue.ts +0 -0
  1059. /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/index.vue +0 -0
  1060. /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/index.vue.d.ts +0 -0
  1061. /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Thinking/index.d.vue.ts +0 -0
  1062. /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Thinking/index.vue.d.ts +0 -0
  1063. /package/dist/modules/agent/runtime/app/{tools/delegate_text_rewrite/Details → components/FieldDiffDetails}/index.vue +0 -0
  1064. /package/dist/modules/agent/runtime/app/features/agent/{Panel/DebugGallery → ConversationsAdmin/ConversationsTab}/index.d.vue.ts +0 -0
  1065. /package/dist/modules/agent/runtime/app/features/agent/{Panel/DebugGallery → ConversationsAdmin/ConversationsTab}/index.vue.d.ts +0 -0
  1066. /package/dist/modules/agent/runtime/app/tools/{add_content_search_paragraph → add_content_search_paragraphs}/index.d.ts +0 -0
  1067. /package/dist/modules/agent/runtime/app/tools/{check_readability → check_readability_for_texts}/index.d.ts +0 -0
  1068. /package/dist/modules/agent/runtime/server/{streamParser.d.ts → classes/FieldStreamParser/index.d.ts} +0 -0
  1069. /package/dist/modules/agent/runtime/server/{streamParser.js → classes/FieldStreamParser/index.js} +0 -0
  1070. /package/dist/modules/agent/runtime/server/{agentPrompt.js → helpers/agentPrompt.js} +0 -0
  1071. /package/dist/runtime/editor/features/{templates/ManageDialog → help/Dialog}/index.d.vue.ts +0 -0
  1072. /package/dist/runtime/editor/features/{templates/ManageDialog → help/Dialog}/index.vue.d.ts +0 -0
  1073. /package/dist/runtime/editor/features/library/{LibraryDialog → DialogBrowseLibrary}/Item/index.d.vue.ts +0 -0
  1074. /package/dist/runtime/editor/features/library/{LibraryDialog → DialogBrowseLibrary}/Item/index.vue +0 -0
  1075. /package/dist/runtime/editor/features/library/{LibraryDialog → DialogBrowseLibrary}/Item/index.vue.d.ts +0 -0
  1076. /package/dist/runtime/editor/features/library/{LibraryDialog → DialogBrowseLibrary}/index.d.vue.ts +0 -0
  1077. /package/dist/runtime/editor/features/library/{LibraryDialog → DialogBrowseLibrary}/index.vue.d.ts +0 -0
  1078. /package/dist/runtime/editor/features/library/{ReusableDialog → DialogMakeReusable}/index.d.vue.ts +0 -0
  1079. /package/dist/runtime/editor/features/library/{ReusableDialog → DialogMakeReusable}/index.vue.d.ts +0 -0
  1080. /package/dist/runtime/editor/features/templates/{Dialog → DialogBrowseTemplates}/Item/index.d.vue.ts +0 -0
  1081. /package/dist/runtime/editor/features/templates/{Dialog → DialogBrowseTemplates}/Item/index.vue +0 -0
  1082. /package/dist/runtime/editor/features/templates/{Dialog → DialogBrowseTemplates}/Item/index.vue.d.ts +0 -0
  1083. /package/dist/runtime/editor/features/templates/{Dialog → DialogBrowseTemplates}/index.d.vue.ts +0 -0
  1084. /package/dist/runtime/editor/features/templates/{Dialog → DialogBrowseTemplates}/index.vue.d.ts +0 -0
  1085. /package/dist/runtime/editor/features/templates/{CreateDialog → DialogCreateTemplate}/index.d.vue.ts +0 -0
  1086. /package/dist/runtime/editor/features/templates/{CreateDialog → DialogCreateTemplate}/index.vue.d.ts +0 -0
  1087. /package/dist/runtime/editor/features/templates/{ManageDialog → DialogManageTemplates}/Item.d.vue.ts +0 -0
  1088. /package/dist/runtime/editor/features/templates/{ManageDialog → DialogManageTemplates}/Item.vue.d.ts +0 -0
@@ -1,23 +1,31 @@
1
1
  import { z } from "zod";
2
- import { buildSystemPrompt, buildSystemPromptEntries } from "./agentPrompt.js";
2
+ import { coerceStringifiedParams } from "../../../shared/toolParams.js";
3
+ import { ToolResult } from "../../../shared/toolResult.js";
4
+ import {
5
+ buildSystemPrompt,
6
+ buildSystemPromptEntries
7
+ } from "../../helpers/agentPrompt.js";
3
8
  import { provider, models } from "#blokkli-build/agent-server";
9
+ import { send } from "../../helpers/socket.js";
10
+ import {
11
+ ConversationHistory
12
+ } from "../ConversationHistory/index.js";
4
13
  import {
5
- send,
6
- KEEP_RECENT_TURNS,
7
- resolveSkills,
8
- transformText,
9
- classifyError,
10
- pruneMessages,
11
- pruneForPersistence,
12
- computeStateHash,
13
- verifyStateHash,
14
- validateMessages
15
- } from "./helpers.js";
16
- import { buildDefinition, stripSchemaOverhead } from "./server-tools/index.js";
17
- import loadSkillTool from "./server-tools/load_skills/index.js";
18
- import loadToolsTool from "./server-tools/load_tools/index.js";
19
- import createPlanTool from "./server-tools/create_plan/index.js";
20
- import completePlanStepTool from "./server-tools/complete_plan_step/index.js";
14
+ UserPromptMessage,
15
+ AssistantMessage,
16
+ ToolRelayMessage
17
+ } from "../ConversationMessage/index.js";
18
+ import { resolveSkills } from "../../helpers/skills.js";
19
+ import { classifyError } from "../../helpers/errors.js";
20
+ import { computeStateHash, verifyStateHash } from "../../helpers/security.js";
21
+ import { validateMessages } from "../../helpers/messages.js";
22
+ import { getDefaultModel, createUsageTurn } from "../../helpers/models.js";
23
+ import { buildDefinition, stripSchemaOverhead } from "../../server-tools/index.js";
24
+ import { StreamAccumulator } from "../StreamAccumulator/index.js";
25
+ import loadSkillTool from "../../server-tools/load_skills/index.js";
26
+ import loadToolsTool from "../../server-tools/load_tools/index.js";
27
+ import createPlanTool from "../../server-tools/create_plan/index.js";
28
+ import completePlanStepTool from "../../server-tools/complete_plan_step/index.js";
21
29
  const serverTools = [
22
30
  loadSkillTool,
23
31
  loadToolsTool,
@@ -25,7 +33,8 @@ const serverTools = [
25
33
  completePlanStepTool
26
34
  ];
27
35
  export class Session {
28
- messages = [];
36
+ /** The single, immutable source of truth for the conversation. */
37
+ history = new ConversationHistory();
29
38
  pendingToolCalls = /* @__PURE__ */ new Map();
30
39
  abortController = null;
31
40
  isProcessing = false;
@@ -45,8 +54,6 @@ export class Session {
45
54
  planStepHasWork = false;
46
55
  /** Pending plan approval promise resolver */
47
56
  pendingPlanApproval = null;
48
- /** Pre-pruned messages snapshot for transcript (captured before pruneMessages) */
49
- unprunedMessages = [];
50
57
  /** Last generic tool definitions for transcript */
51
58
  lastTools = [];
52
59
  /** Last raw request payload for transcript (dev only) */
@@ -122,7 +129,7 @@ export class Session {
122
129
  this.loadedSkills = /* @__PURE__ */ new Set();
123
130
  this.pageContext = pageContext;
124
131
  }
125
- start(peer, prompt, apiKey, authSecret, selectedUuids, autoLoadTools, autoLoadSkills, preSeededResults, autoExecuteTools) {
132
+ start(peer, prompt, apiKey, authSecret, selectedUuids, autoLoadTools, autoLoadSkills, preSeededResults, autoExecuteTools, rollbackToUserMessageIndex) {
126
133
  if (this.isProcessing) {
127
134
  send(peer, {
128
135
  type: "error",
@@ -131,6 +138,19 @@ export class Session {
131
138
  });
132
139
  return;
133
140
  }
141
+ if (rollbackToUserMessageIndex !== void 0) {
142
+ try {
143
+ this.truncateAtUserMessage(rollbackToUserMessageIndex);
144
+ } catch (e) {
145
+ send(peer, {
146
+ type: "error",
147
+ errorType: "bad_request",
148
+ message: e instanceof Error ? e.message : "Rollback target out of range"
149
+ });
150
+ return;
151
+ }
152
+ }
153
+ this.isProcessing = true;
134
154
  this.runAgentLoop(
135
155
  peer,
136
156
  prompt,
@@ -143,6 +163,24 @@ export class Session {
143
163
  autoExecuteTools
144
164
  );
145
165
  }
166
+ /**
167
+ * Remove the Nth real user turn (0-based) and every message after it.
168
+ * "Real user turn" excludes tool-result relays. Throws if the index is
169
+ * out of range — typically because the target turn has been pruned away.
170
+ */
171
+ truncateAtUserMessage(targetIndex) {
172
+ this.history.truncateAtUserTurn(targetIndex);
173
+ this.lastTools = [];
174
+ this.lastDebugPayload = null;
175
+ for (const pending of this.pendingToolCalls.values()) {
176
+ pending.reject(new Error("Rollback cancelled pending tool call"));
177
+ }
178
+ this.pendingToolCalls.clear();
179
+ if (this.pendingPlanApproval) {
180
+ this.pendingPlanApproval.resolve(false);
181
+ this.pendingPlanApproval = null;
182
+ }
183
+ }
146
184
  resolveToolResult(callId, result) {
147
185
  const pending = this.pendingToolCalls.get(callId);
148
186
  if (pending) {
@@ -193,8 +231,11 @@ export class Session {
193
231
  }
194
232
  newConversation(peer, authSecret) {
195
233
  this.abortController?.abort();
196
- this.messages = [];
197
- this.unprunedMessages = [];
234
+ for (const pending of this.pendingToolCalls.values()) {
235
+ pending.reject(new Error("Cancelled"));
236
+ }
237
+ this.pendingToolCalls.clear();
238
+ this.history.clear();
198
239
  this.lastTools = [];
199
240
  this.lastDebugPayload = null;
200
241
  this.activatedLazyTools.clear();
@@ -218,7 +259,7 @@ export class Session {
218
259
  this.pendingPlanApproval = null;
219
260
  }
220
261
  this.plan = null;
221
- this.messages = [];
262
+ this.history.clear();
222
263
  this.toolNames = [];
223
264
  this.lazyToolNames = [];
224
265
  this.activatedLazyTools.clear();
@@ -237,7 +278,7 @@ export class Session {
237
278
  * for client-side persistence.
238
279
  */
239
280
  getConversationStateForPersistence(authSecret) {
240
- const prunedMessages = pruneForPersistence(this.messages);
281
+ const prunedMessages = this.history.projectForPersistence();
241
282
  const activatedLazyTools = Array.from(this.activatedLazyTools);
242
283
  const hash = computeStateHash(
243
284
  prunedMessages,
@@ -262,8 +303,7 @@ export class Session {
262
303
  if (issues.length > 0) {
263
304
  return { success: false, reason: "Invalid message structure" };
264
305
  }
265
- this.messages = state.messages;
266
- this.unprunedMessages = [];
306
+ this.history.replaceAll(state.messages);
267
307
  this.lastTools = [];
268
308
  const validLazyToolNames = new Set(this.lazyToolNames);
269
309
  this.activatedLazyTools = new Set(
@@ -318,6 +358,7 @@ export class Session {
318
358
  }
319
359
  async runAgentLoop(peer, prompt, apiKey, authSecret, selectedUuids, autoLoadTools, autoLoadSkills, preSeededResults, autoExecuteTools) {
320
360
  if (this.toolNames.length === 0) {
361
+ this.isProcessing = false;
321
362
  send(peer, {
322
363
  type: "error",
323
364
  errorType: "bad_request",
@@ -326,6 +367,7 @@ export class Session {
326
367
  return;
327
368
  }
328
369
  if (!this.pageContext) {
370
+ this.isProcessing = false;
329
371
  send(peer, {
330
372
  type: "error",
331
373
  errorType: "bad_request",
@@ -368,39 +410,21 @@ ${skill.content}`
368
410
  );
369
411
  }
370
412
  userParts.push(prompt);
371
- const userMessage = autoLoadedSkillBlocks.length > 0 ? {
372
- role: "user",
373
- content: [
374
- ...autoLoadedSkillBlocks,
375
- { type: "text", text: userParts.join("\n\n") }
376
- ]
377
- } : { role: "user", content: userParts.join("\n\n") };
378
- this.messages.push(userMessage);
413
+ const userMessage = autoLoadedSkillBlocks.length > 0 ? new UserPromptMessage([
414
+ ...autoLoadedSkillBlocks,
415
+ { type: "text", text: userParts.join("\n\n") }
416
+ ]) : new UserPromptMessage(userParts.join("\n\n"));
417
+ this.history.append(userMessage);
379
418
  if (preSeededResults?.length) {
380
419
  for (let i = 0; i < preSeededResults.length; i++) {
381
420
  const preSeeded = preSeededResults[i];
382
421
  const toolUseId = `preseed_${i}`;
383
- this.messages.push({
384
- role: "assistant",
385
- content: [
386
- {
387
- type: "tool_use",
388
- id: toolUseId,
389
- name: preSeeded.toolName,
390
- input: preSeeded.params
391
- }
392
- ]
393
- });
394
- this.messages.push({
395
- role: "user",
396
- content: [
397
- {
398
- type: "tool_result",
399
- tool_use_id: toolUseId,
400
- content: JSON.stringify(preSeeded.result)
401
- }
402
- ]
403
- });
422
+ this.pushToolExchange(
423
+ toolUseId,
424
+ preSeeded.toolName,
425
+ preSeeded.params,
426
+ ToolResult.fromWire(JSON.stringify(preSeeded.result))
427
+ );
404
428
  }
405
429
  }
406
430
  let allAutoToolsSkipLlm = false;
@@ -419,78 +443,32 @@ ${skill.content}`
419
443
  });
420
444
  try {
421
445
  const clientResult = await this.waitForToolResult(callId);
422
- this.messages.push({
423
- role: "assistant",
424
- content: [
425
- {
426
- type: "tool_use",
427
- id: toolUseId,
428
- name: autoTool.toolName,
429
- input: autoTool.params
430
- }
431
- ]
432
- });
446
+ let result;
433
447
  if (clientResult.error) {
434
448
  hasErrors = true;
435
449
  allSkip = false;
436
- this.messages.push({
437
- role: "user",
438
- content: [
439
- {
440
- type: "tool_result",
441
- tool_use_id: toolUseId,
442
- content: JSON.stringify({ error: clientResult.error }),
443
- is_error: true
444
- }
445
- ]
446
- });
450
+ result = ToolResult.error(clientResult.error);
447
451
  } else {
448
452
  if (!clientResult.skipLlmResponse) {
449
453
  allSkip = false;
450
454
  }
451
- let resultForLLM = clientResult.result;
452
- if (typeof resultForLLM === "object" && resultForLLM !== null && "agentMessage" in resultForLLM) {
453
- const { agentMessage, ...rest } = resultForLLM;
454
- resultForLLM = { ...rest, label: agentMessage };
455
- }
456
- this.messages.push({
457
- role: "user",
458
- content: [
459
- {
460
- type: "tool_result",
461
- tool_use_id: toolUseId,
462
- content: JSON.stringify(resultForLLM)
463
- }
464
- ]
465
- });
455
+ result = ToolResult.fromClientResult(clientResult.result);
466
456
  }
457
+ this.pushToolExchange(
458
+ toolUseId,
459
+ autoTool.toolName,
460
+ autoTool.params,
461
+ result
462
+ );
467
463
  } catch {
468
464
  hasErrors = true;
469
465
  allSkip = false;
470
- this.messages.push({
471
- role: "assistant",
472
- content: [
473
- {
474
- type: "tool_use",
475
- id: toolUseId,
476
- name: autoTool.toolName,
477
- input: autoTool.params
478
- }
479
- ]
480
- });
481
- this.messages.push({
482
- role: "user",
483
- content: [
484
- {
485
- type: "tool_result",
486
- tool_use_id: toolUseId,
487
- content: JSON.stringify({
488
- error: "Auto-executed tool call was cancelled."
489
- }),
490
- is_error: true
491
- }
492
- ]
493
- });
466
+ this.pushToolExchange(
467
+ toolUseId,
468
+ autoTool.toolName,
469
+ autoTool.params,
470
+ ToolResult.error("Auto-executed tool call was cancelled.")
471
+ );
494
472
  }
495
473
  }
496
474
  allAutoToolsSkipLlm = allSkip && !hasErrors;
@@ -502,7 +480,6 @@ ${skill.content}`
502
480
  return;
503
481
  }
504
482
  this.abortController = new AbortController();
505
- this.isProcessing = true;
506
483
  let toolCallCounter = 0;
507
484
  let planRetryCount = 0;
508
485
  let streamRetryCount = 0;
@@ -510,19 +487,19 @@ ${skill.content}`
510
487
  let lastToolCallKey = "";
511
488
  let consecutiveIdenticalCalls = 0;
512
489
  const MAX_IDENTICAL_CALLS = 2;
490
+ let consecutiveValidationFailures = 0;
491
+ const MAX_HIDDEN_VALIDATION_FAILURES = 2;
513
492
  try {
514
493
  while (true) {
515
494
  if (this.abortController.signal.aborted) {
516
495
  break;
517
496
  }
518
497
  send(peer, { type: "thinking" });
519
- const assistantContent = [];
498
+ const accumulator = new StreamAccumulator();
499
+ const assistantContent = accumulator.blocks;
520
500
  const toolResults = [];
521
501
  const extraBlocks = [];
522
502
  let messagesCommittedByPlanTool = false;
523
- let currentToolUse = null;
524
- let currentTextContent = "";
525
- let inTextBlock = false;
526
503
  const eagerTools = this.resolveToolDefinitions(this.toolNames);
527
504
  const activatedToolNames = this.lazyToolNames.filter(
528
505
  (name) => this.activatedLazyTools.has(name)
@@ -537,7 +514,8 @@ ${skill.content}`
537
514
  const defCtx = {
538
515
  resolvedSkills,
539
516
  plan: this.plan,
540
- unloadedLazyTools
517
+ unloadedLazyTools,
518
+ lazyToolNames: this.lazyToolNames
541
519
  };
542
520
  const serverToolDefs = serverTools.map((t) => buildDefinition(t, defCtx)).filter((d) => d !== null);
543
521
  const allTools = [...serverToolDefs, ...eagerTools, ...activatedTools];
@@ -555,11 +533,14 @@ ${skill.content}`
555
533
  const stream = provider.createStream(
556
534
  {
557
535
  apiKey,
558
- model: (models.find((m) => m.isDefault) || models[0]).name
536
+ model: getDefaultModel(models)?.name ?? ""
559
537
  },
560
538
  {
561
539
  systemPrompt,
562
- messages: this.messages,
540
+ // Pure projection of the immutable history — recomputed each round
541
+ // from pristine canonical (applies the age + token-budget ceilings
542
+ // and eager volatile-staleness without ever mutating the source).
543
+ messages: this.history.projectForLlm(this.volatileLookup()),
563
544
  tools: allTools,
564
545
  maxTokens: 4096,
565
546
  signal: this.abortController.signal
@@ -575,70 +556,42 @@ ${skill.content}`
575
556
  this.lastDebugPayload = event.payload;
576
557
  break;
577
558
  case "text_start":
578
- inTextBlock = true;
579
- currentTextContent = "";
559
+ accumulator.startText();
580
560
  break;
581
- case "text_delta":
582
- if (inTextBlock) {
583
- const transformed = transformText(event.text);
584
- currentTextContent += transformed;
561
+ case "text_delta": {
562
+ const transformed = accumulator.pushTextDelta(event.text);
563
+ if (transformed !== null) {
585
564
  send(peer, { type: "text_delta", content: transformed });
586
565
  }
587
566
  break;
567
+ }
588
568
  case "text_end":
589
- if (inTextBlock && currentTextContent) {
590
- assistantContent.push({
591
- type: "text",
592
- text: currentTextContent
593
- });
594
- }
595
- currentTextContent = "";
596
- inTextBlock = false;
569
+ accumulator.endText();
597
570
  break;
598
571
  case "tool_use_start":
599
- currentToolUse = {
600
- id: event.id,
601
- name: event.name,
602
- inputJson: ""
603
- };
572
+ accumulator.startToolUse(event.id, event.name);
604
573
  break;
605
574
  case "tool_use_delta":
606
- if (currentToolUse) {
607
- currentToolUse.inputJson += event.partial_json;
608
- }
575
+ accumulator.pushToolUseDelta(event.partial_json);
609
576
  break;
610
- case "tool_use_end":
611
- if (currentToolUse) {
612
- let input;
613
- try {
614
- input = JSON.parse(currentToolUse.inputJson || "{}");
615
- } catch {
616
- input = {};
617
- assistantContent.push({
618
- type: "tool_use",
619
- id: currentToolUse.id,
620
- name: currentToolUse.name,
621
- input
622
- });
577
+ case "tool_use_end": {
578
+ const finished = accumulator.finishToolUse();
579
+ if (finished) {
580
+ if (!finished.ok) {
623
581
  toolResults.push({
624
582
  type: "tool_result",
625
- tool_use_id: currentToolUse.id,
583
+ tool_use_id: finished.id,
626
584
  content: JSON.stringify({
627
585
  error: "Your tool call produced malformed JSON input. Please try again."
628
586
  }),
629
587
  is_error: true
630
588
  });
631
- currentToolUse = null;
632
589
  break;
633
590
  }
591
+ const { id: toolUseId, name: toolName, input } = finished;
592
+ const inputJson = finished.inputJson;
634
593
  const callId = `tc_${toolCallCounter++}`;
635
- assistantContent.push({
636
- type: "tool_use",
637
- id: currentToolUse.id,
638
- name: currentToolUse.name,
639
- input
640
- });
641
- const toolCallKey = currentToolUse.name + ":" + currentToolUse.inputJson;
594
+ const toolCallKey = toolName + ":" + inputJson;
642
595
  if (toolCallKey === lastToolCallKey) {
643
596
  consecutiveIdenticalCalls++;
644
597
  } else {
@@ -648,159 +601,65 @@ ${skill.content}`
648
601
  if (consecutiveIdenticalCalls > MAX_IDENTICAL_CALLS) {
649
602
  toolResults.push({
650
603
  type: "tool_result",
651
- tool_use_id: currentToolUse.id,
604
+ tool_use_id: toolUseId,
652
605
  content: JSON.stringify({
653
- error: `You have called "${currentToolUse.name}" ${consecutiveIdenticalCalls} times in a row with identical parameters and received the same result each time. Stop repeating this call. Use the information you already have or try a different approach.`
606
+ error: `You have called "${toolName}" ${consecutiveIdenticalCalls} times in a row with identical parameters and received the same result each time. Stop repeating this call. Use the information you already have or try a different approach.`
654
607
  }),
655
608
  is_error: true
656
609
  });
657
- currentToolUse = null;
658
610
  break;
659
611
  }
660
612
  const matchedServerTool = serverTools.find(
661
- (t) => t.name === currentToolUse.name
613
+ (t) => t.name === toolName
662
614
  );
663
615
  if (matchedServerTool) {
664
- if (matchedServerTool.isAvailable && !matchedServerTool.isAvailable(defCtx)) {
665
- toolResults.push({
666
- type: "tool_result",
667
- tool_use_id: currentToolUse.id,
668
- content: JSON.stringify({
669
- error: "This tool is not available right now."
670
- }),
671
- is_error: true
672
- });
673
- currentToolUse = null;
674
- break;
675
- }
676
- const handlerCtx = {
677
- toolUseId: currentToolUse.id,
678
- send: (msg) => send(peer, msg),
679
- resolvedSkills,
680
- lazyToolNames: this.lazyToolNames,
681
- activatedLazyTools: this.activatedLazyTools,
682
- loadedSkills: this.loadedSkills,
683
- plan: this.plan,
684
- setPlan: (p) => {
685
- this.plan = p;
686
- },
687
- toClientPlan: () => this.toClientPlan(),
688
- waitForPlanApproval: () => this.waitForPlanApproval(),
689
- assistantContent,
690
- commitMessagesEarly: (toolResult) => {
691
- if (assistantContent.length) {
692
- this.messages.push({
693
- role: "assistant",
694
- content: [...assistantContent]
695
- });
696
- assistantContent.length = 0;
697
- }
698
- this.messages.push({
699
- role: "user",
700
- content: [toolResult]
701
- });
702
- },
703
- updateLastToolResult: (toolUseId, content) => {
704
- const lastMsg = this.messages[this.messages.length - 1];
705
- if (lastMsg.role === "user" && Array.isArray(lastMsg.content)) {
706
- const resultBlock = lastMsg.content.find(
707
- (b) => b.type === "tool_result" && b.tool_use_id === toolUseId
708
- );
709
- if (resultBlock && resultBlock.type === "tool_result") {
710
- resultBlock.content = content;
711
- }
712
- }
713
- },
714
- planStepHasWork: this.planStepHasWork,
715
- markPlanStepWork: () => {
716
- this.planStepHasWork = true;
717
- },
718
- resetPlanStepWork: () => {
719
- this.planStepHasWork = false;
616
+ const dispatch = await this.dispatchServerTool(
617
+ matchedServerTool,
618
+ {
619
+ toolUseId,
620
+ input,
621
+ defCtx,
622
+ resolvedSkills,
623
+ peer,
624
+ assistantContent
720
625
  }
721
- };
722
- try {
723
- const coercedInput = {};
724
- for (const key of Object.keys(input)) {
725
- const value = input[key];
726
- if (typeof value === "string" && (value[0] === "[" || value[0] === "{")) {
727
- try {
728
- coercedInput[key] = JSON.parse(value);
729
- } catch {
730
- coercedInput[key] = value;
731
- }
732
- } else {
733
- coercedInput[key] = value;
734
- }
735
- }
736
- const parsed = matchedServerTool.inputSchema(defCtx).parse(coercedInput);
737
- const result = await matchedServerTool.handle(
738
- handlerCtx,
739
- parsed
740
- );
741
- toolResults.push(...result.toolResults);
742
- if (result.extraBlocks) {
743
- extraBlocks.push(...result.extraBlocks);
744
- }
745
- if (result.messagesCommitted) {
746
- messagesCommittedByPlanTool = true;
747
- }
748
- } catch (e) {
749
- toolResults.push({
750
- type: "tool_result",
751
- tool_use_id: currentToolUse.id,
752
- content: JSON.stringify({
753
- error: `Invalid input: ${e.message}`
754
- }),
755
- is_error: true
756
- });
626
+ );
627
+ toolResults.push(...dispatch.toolResults);
628
+ if (dispatch.extraBlocks) {
629
+ extraBlocks.push(...dispatch.extraBlocks);
630
+ }
631
+ if (dispatch.messagesCommitted) {
632
+ messagesCommittedByPlanTool = true;
757
633
  }
758
- currentToolUse = null;
759
634
  break;
760
635
  }
761
- send(peer, {
762
- type: "tool_call",
763
- callId,
764
- tool: currentToolUse.name,
765
- params: input
766
- });
767
- try {
768
- const clientResult = await this.waitForToolResult(callId);
769
- if (clientResult.error) {
770
- toolResults.push({
771
- type: "tool_result",
772
- tool_use_id: currentToolUse.id,
773
- content: JSON.stringify({
774
- error: clientResult.error
775
- }),
776
- is_error: true
777
- });
778
- } else {
779
- let resultForLLM = clientResult.result;
780
- if (typeof resultForLLM === "object" && resultForLLM !== null && "agentMessage" in resultForLLM) {
781
- const { agentMessage, ...rest } = resultForLLM;
782
- resultForLLM = { ...rest, label: agentMessage };
783
- }
784
- toolResults.push({
785
- type: "tool_result",
786
- tool_use_id: currentToolUse.id,
787
- content: JSON.stringify(resultForLLM)
788
- });
789
- this.planStepHasWork = true;
790
- }
791
- } catch (error) {
636
+ const validation = this.validateClientToolInput(
637
+ toolName,
638
+ input
639
+ );
640
+ if (!validation.ok && consecutiveValidationFailures < MAX_HIDDEN_VALIDATION_FAILURES) {
641
+ consecutiveValidationFailures++;
792
642
  toolResults.push({
793
643
  type: "tool_result",
794
- tool_use_id: currentToolUse.id,
795
- content: JSON.stringify({
796
- error: error.message
797
- }),
644
+ tool_use_id: toolUseId,
645
+ content: JSON.stringify({ error: validation.error }),
798
646
  is_error: true
799
647
  });
648
+ break;
800
649
  }
801
- currentToolUse = null;
650
+ consecutiveValidationFailures = 0;
651
+ toolResults.push(
652
+ ...await this.dispatchClientTool({
653
+ toolUseId,
654
+ toolName,
655
+ callId,
656
+ input,
657
+ peer
658
+ })
659
+ );
802
660
  }
803
661
  break;
662
+ }
804
663
  case "reasoning_summary":
805
664
  assistantContent.push({
806
665
  type: "reasoning",
@@ -809,21 +668,13 @@ ${skill.content}`
809
668
  encryptedContent: event.encryptedContent
810
669
  });
811
670
  break;
812
- case "message_end":
813
- if (event.inputTokens !== void 0 && event.outputTokens !== void 0) {
814
- const defaultModel = models.find((m) => m.isDefault) || models[0];
815
- send(peer, {
816
- type: "usage",
817
- usage: {
818
- inputTokens: event.inputTokens,
819
- outputTokens: event.outputTokens,
820
- cacheCreationInputTokens: event.cacheCreationInputTokens ?? 0,
821
- cacheReadInputTokens: event.cacheReadInputTokens ?? 0,
822
- pricing: defaultModel?.pricing ?? null
823
- }
824
- });
671
+ case "message_end": {
672
+ const usage = createUsageTurn(event, getDefaultModel(models));
673
+ if (usage) {
674
+ send(peer, { type: "usage", usage });
825
675
  }
826
676
  break;
677
+ }
827
678
  case "error":
828
679
  throw event.error;
829
680
  }
@@ -839,8 +690,8 @@ ${skill.content}`
839
690
  );
840
691
  continue;
841
692
  }
842
- if (isRetryable && this.messages[this.messages.length - 1] === userMessage) {
843
- this.messages.pop();
693
+ if (isRetryable && this.history.peekLast() === userMessage) {
694
+ this.history.popLast();
844
695
  console.error(
845
696
  "[blokkli agent] Transient stream error, retries exhausted:",
846
697
  streamError
@@ -858,17 +709,18 @@ ${skill.content}`
858
709
  this.planStepHasWork = false;
859
710
  continue;
860
711
  }
712
+ let assistantNames;
861
713
  if (assistantContent.length) {
862
- this.messages.push({
863
- role: "assistant",
864
- content: assistantContent
865
- });
714
+ const assistant = new AssistantMessage([...assistantContent]);
715
+ assistantNames = assistant.toolUseNames();
716
+ this.history.append(assistant);
866
717
  }
867
718
  if (toolResults.length) {
868
- this.messages.push({
719
+ const relay = ToolRelayMessage.fromWire({
869
720
  role: "user",
870
721
  content: [...toolResults, ...extraBlocks]
871
- });
722
+ }).withResolvedNames((id) => assistantNames?.get(id));
723
+ this.history.append(relay);
872
724
  planRetryCount = 0;
873
725
  streamRetryCount = 0;
874
726
  }
@@ -895,15 +747,6 @@ ${skill.content}`
895
747
  } finally {
896
748
  this.isProcessing = false;
897
749
  this.abortController = null;
898
- this.unprunedMessages = structuredClone(this.messages);
899
- pruneMessages(
900
- this.messages,
901
- KEEP_RECENT_TURNS,
902
- this.buildToolMetadataMap()
903
- );
904
- if (this.loadedSkills.size > 0) {
905
- this.reconcileLoadedSkills();
906
- }
907
750
  this.sendConversationState(peer, authSecret);
908
751
  }
909
752
  }
@@ -922,53 +765,196 @@ ${skill.content}`
922
765
  });
923
766
  }
924
767
  /**
925
- * Bug 3 fix: safely push a user message, merging with the last message
926
- * if it's also a user message to avoid consecutive same-role messages.
768
+ * Build the context object passed to a server-side tool handler. `assistantContent`
769
+ * is the live block array for the current turn `commitMessagesEarly` flushes and
770
+ * resets it in place, so it must be the same reference the stream loop appends to.
927
771
  */
928
- safePushUserMessage(text) {
929
- const lastMessage = this.messages[this.messages.length - 1];
930
- if (lastMessage && lastMessage.role === "user") {
931
- if (typeof lastMessage.content === "string") {
932
- lastMessage.content = lastMessage.content + "\n" + text;
933
- } else {
934
- lastMessage.content.push({ type: "text", text });
772
+ buildServerToolContext(args) {
773
+ const { toolUseId, peer, resolvedSkills, assistantContent } = args;
774
+ return {
775
+ toolUseId,
776
+ send: (msg) => send(peer, msg),
777
+ resolvedSkills,
778
+ lazyToolNames: this.lazyToolNames,
779
+ activatedLazyTools: this.activatedLazyTools,
780
+ loadedSkills: this.loadedSkills,
781
+ plan: this.plan,
782
+ setPlan: (p) => {
783
+ this.plan = p;
784
+ },
785
+ toClientPlan: () => this.toClientPlan(),
786
+ waitForPlanApproval: () => this.waitForPlanApproval(),
787
+ assistantContent,
788
+ commitMessagesEarly: (toolResult) => {
789
+ let names;
790
+ if (assistantContent.length) {
791
+ const assistant = new AssistantMessage([...assistantContent]);
792
+ names = assistant.toolUseNames();
793
+ this.history.append(assistant);
794
+ assistantContent.length = 0;
795
+ }
796
+ this.history.append(
797
+ ToolRelayMessage.fromWire({
798
+ role: "user",
799
+ content: [toolResult]
800
+ }).withResolvedNames((id) => names?.get(id))
801
+ );
802
+ },
803
+ updateLastToolResult: (id, content) => {
804
+ this.history.replaceLastResult(id, ToolResult.fromWire(content));
805
+ },
806
+ planStepHasWork: this.planStepHasWork,
807
+ markPlanStepWork: () => {
808
+ this.planStepHasWork = true;
809
+ },
810
+ resetPlanStepWork: () => {
811
+ this.planStepHasWork = false;
935
812
  }
936
- } else {
937
- this.messages.push({ role: "user", content: text });
938
- }
813
+ };
939
814
  }
940
815
  /**
941
- * Remove skills from loadedSkills whose text content has been pruned
942
- * from the conversation messages.
816
+ * Dispatch a server-side tool: reject if unavailable, coerce + validate input,
817
+ * run the handler. Returns the blocks to merge into the turn's results.
943
818
  */
944
- reconcileLoadedSkills() {
945
- const presentSkills = /* @__PURE__ */ new Set();
946
- for (const msg of this.messages) {
947
- if (msg.role !== "user" || !Array.isArray(msg.content)) continue;
948
- for (const block of msg.content) {
949
- if (block.type === "skill") {
950
- presentSkills.add(block.name);
951
- }
952
- }
819
+ async dispatchServerTool(tool, args) {
820
+ const { toolUseId, input, defCtx, resolvedSkills, peer, assistantContent } = args;
821
+ if (tool.isAvailable && !tool.isAvailable(defCtx)) {
822
+ return {
823
+ toolResults: [
824
+ {
825
+ type: "tool_result",
826
+ tool_use_id: toolUseId,
827
+ content: JSON.stringify({
828
+ error: "This tool is not available right now."
829
+ }),
830
+ is_error: true
831
+ }
832
+ ]
833
+ };
953
834
  }
954
- for (const name of this.loadedSkills) {
955
- if (!presentSkills.has(name)) {
956
- this.loadedSkills.delete(name);
957
- }
835
+ const handlerCtx = this.buildServerToolContext({
836
+ toolUseId,
837
+ peer,
838
+ resolvedSkills,
839
+ assistantContent
840
+ });
841
+ try {
842
+ const parsed = tool.inputSchema(defCtx).parse(coerceStringifiedParams(input));
843
+ const result = await tool.handle(handlerCtx, parsed);
844
+ return {
845
+ toolResults: result.toolResults,
846
+ extraBlocks: result.extraBlocks,
847
+ messagesCommitted: result.messagesCommitted
848
+ };
849
+ } catch (e) {
850
+ return {
851
+ toolResults: [
852
+ {
853
+ type: "tool_result",
854
+ tool_use_id: toolUseId,
855
+ content: JSON.stringify({
856
+ error: `Invalid input: ${e.message}`
857
+ }),
858
+ is_error: true
859
+ }
860
+ ]
861
+ };
958
862
  }
959
863
  }
960
864
  /**
961
- * Build a map of tool name to pruning metadata from all known tools.
865
+ * Dispatch a client-side tool: send the call to the peer and await its result.
866
+ * An `agentMessage` on the result replaces the `label` in the payload fed back
867
+ * to the LLM (the label is UI-only). Returns the tool_result block(s).
962
868
  */
963
- buildToolMetadataMap() {
964
- const map = /* @__PURE__ */ new Map();
965
- for (const name of [...this.toolNames, ...this.lazyToolNames]) {
966
- const bundled = this.bundledToolMap.get(name);
967
- if (bundled?.volatile) {
968
- map.set(name, { volatile: true });
869
+ /**
870
+ * Validate an LLM-generated client tool call against its Zod `paramsSchema`
871
+ * (the same schema the client parses with), server-side, before dispatching
872
+ * to the peer. Returns an error string on a schema failure so the caller can
873
+ * reject it silently. Unknown tools pass through (handled by normal dispatch).
874
+ */
875
+ validateClientToolInput(toolName, input) {
876
+ const bundled = this.bundledToolMap.get(toolName);
877
+ if (!bundled) return { ok: true };
878
+ const parsed = bundled.paramsSchema.safeParse(
879
+ coerceStringifiedParams(input)
880
+ );
881
+ if (parsed.success) return { ok: true };
882
+ return {
883
+ ok: false,
884
+ error: `Invalid input: ${z.prettifyError(parsed.error)}`
885
+ };
886
+ }
887
+ async dispatchClientTool(args) {
888
+ const { toolUseId, toolName, callId, input, peer } = args;
889
+ send(peer, {
890
+ type: "tool_call",
891
+ callId,
892
+ tool: toolName,
893
+ params: input
894
+ });
895
+ try {
896
+ const clientResult = await this.waitForToolResult(callId);
897
+ if (clientResult.error) {
898
+ return [
899
+ {
900
+ type: "tool_result",
901
+ tool_use_id: toolUseId,
902
+ content: JSON.stringify({ error: clientResult.error }),
903
+ is_error: true
904
+ }
905
+ ];
969
906
  }
907
+ let resultForLLM = clientResult.result;
908
+ if (typeof resultForLLM === "object" && resultForLLM !== null && "agentMessage" in resultForLLM) {
909
+ const { agentMessage, ...rest } = resultForLLM;
910
+ resultForLLM = { ...rest, label: agentMessage };
911
+ }
912
+ this.planStepHasWork = true;
913
+ return [
914
+ {
915
+ type: "tool_result",
916
+ tool_use_id: toolUseId,
917
+ content: JSON.stringify(resultForLLM)
918
+ }
919
+ ];
920
+ } catch (error) {
921
+ return [
922
+ {
923
+ type: "tool_result",
924
+ tool_use_id: toolUseId,
925
+ content: JSON.stringify({ error: error.message }),
926
+ is_error: true
927
+ }
928
+ ];
970
929
  }
971
- return map;
930
+ }
931
+ /**
932
+ * Append a synthetic assistant `tool_use` + user `tool_result` message pair —
933
+ * the shape used to inject pre-seeded results and to record auto-executed tool
934
+ * calls before the LLM loop starts.
935
+ */
936
+ pushToolExchange(toolUseId, toolName, input, result) {
937
+ this.history.appendToolExchange(
938
+ new AssistantMessage([
939
+ { type: "tool_use", id: toolUseId, name: toolName, input }
940
+ ]),
941
+ new ToolRelayMessage([{ toolUseId, toolName, result }])
942
+ );
943
+ }
944
+ /**
945
+ * Safely push a user message, merging with the last message if it's also a
946
+ * user message — the LLM API rejects consecutive same-role messages.
947
+ */
948
+ safePushUserMessage(text) {
949
+ this.history.mergeOrAppendUserText(text);
950
+ }
951
+ /**
952
+ * Whether a tool's results go stale after a mutation — used by the live
953
+ * projection's eager volatile eviction. Volatility is a property of the tool
954
+ * definition, so it holds regardless of the current tool set.
955
+ */
956
+ volatileLookup() {
957
+ return (name) => !!(name && this.bundledToolMap.get(name)?.volatile);
972
958
  }
973
959
  buildTranscript() {
974
960
  const system = this.pageContext ? buildSystemPromptEntries(
@@ -980,21 +966,7 @@ ${skill.content}`
980
966
  this.getActivePlanContext(),
981
967
  this.loadedSkills
982
968
  ) : [];
983
- const messages = this.messages.map((msg, i) => {
984
- const entry = {
985
- type: msg.role === "assistant" ? "agent" : "user",
986
- seen: msg.content
987
- };
988
- const unpruned = this.unprunedMessages[i];
989
- if (unpruned) {
990
- const seenJson = JSON.stringify(msg.content);
991
- const fullJson = JSON.stringify(unpruned.content);
992
- if (seenJson !== fullJson) {
993
- entry.full = unpruned.content;
994
- }
995
- }
996
- return entry;
997
- });
969
+ const messages = this.history.buildTranscriptMessages(this.volatileLookup());
998
970
  const tools = this.lastTools.map((t) => ({
999
971
  name: t.name,
1000
972
  description: t.description,