@meistrari/chat-nuxt 1.6.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/README.md +25 -0
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +23 -2
  4. package/dist/runtime/components/MeistrariChatEmbed.vue +8 -1
  5. package/dist/runtime/components/chat/bash-widget.vue +3 -3
  6. package/dist/runtime/components/chat/doc-sdk-widget.vue +3 -3
  7. package/dist/runtime/components/chat/files-view.vue +3 -64
  8. package/dist/runtime/components/chat/generic-tool-widget.vue +3 -3
  9. package/dist/runtime/components/chat/grep-widget.vue +3 -3
  10. package/dist/runtime/components/chat/message-bubble.vue +1 -1
  11. package/dist/runtime/components/chat/message-input.d.vue.ts +2 -0
  12. package/dist/runtime/components/chat/message-input.vue +21 -5
  13. package/dist/runtime/components/chat/message-input.vue.d.ts +2 -0
  14. package/dist/runtime/components/chat/message-list.vue +1 -1
  15. package/dist/runtime/components/chat/mobile/files/file-preview.d.vue.ts +11 -0
  16. package/dist/runtime/components/chat/mobile/files/file-preview.vue +112 -0
  17. package/dist/runtime/components/chat/mobile/files/file-preview.vue.d.ts +11 -0
  18. package/dist/runtime/components/chat/mobile/files/files-view.d.vue.ts +10 -0
  19. package/dist/runtime/components/chat/mobile/files/files-view.vue +384 -0
  20. package/dist/runtime/components/chat/mobile/files/files-view.vue.d.ts +10 -0
  21. package/dist/runtime/components/chat/mobile/home/header.d.vue.ts +19 -0
  22. package/dist/runtime/components/chat/mobile/home/header.vue +55 -0
  23. package/dist/runtime/components/chat/mobile/home/header.vue.d.ts +19 -0
  24. package/dist/runtime/components/chat/mobile/home/recents.d.vue.ts +14 -0
  25. package/dist/runtime/components/chat/mobile/home/recents.vue +48 -0
  26. package/dist/runtime/components/chat/mobile/home/recents.vue.d.ts +14 -0
  27. package/dist/runtime/components/chat/mobile/home/suggestions.d.vue.ts +7 -0
  28. package/dist/runtime/components/chat/mobile/home/suggestions.vue +31 -0
  29. package/dist/runtime/components/chat/mobile/home/suggestions.vue.d.ts +7 -0
  30. package/dist/runtime/components/chat/mobile/primitives/bottom-sheet.d.vue.ts +21 -0
  31. package/dist/runtime/components/chat/mobile/primitives/bottom-sheet.vue +48 -0
  32. package/dist/runtime/components/chat/mobile/primitives/bottom-sheet.vue.d.ts +21 -0
  33. package/dist/runtime/components/chat/mobile/primitives/info-bubble.d.vue.ts +6 -0
  34. package/dist/runtime/components/chat/mobile/primitives/info-bubble.vue +50 -0
  35. package/dist/runtime/components/chat/mobile/primitives/info-bubble.vue.d.ts +6 -0
  36. package/dist/runtime/components/chat/mobile/shell/drawer.d.vue.ts +22 -0
  37. package/dist/runtime/components/chat/mobile/shell/drawer.vue +143 -0
  38. package/dist/runtime/components/chat/mobile/shell/drawer.vue.d.ts +22 -0
  39. package/dist/runtime/components/chat/mobile/shell/header.d.vue.ts +40 -0
  40. package/dist/runtime/components/chat/mobile/shell/header.vue +139 -0
  41. package/dist/runtime/components/chat/mobile/shell/header.vue.d.ts +40 -0
  42. package/dist/runtime/components/chat/mobile/shell/outdated-settings-sheet.d.vue.ts +14 -0
  43. package/dist/runtime/components/chat/mobile/shell/outdated-settings-sheet.vue +47 -0
  44. package/dist/runtime/components/chat/mobile/shell/outdated-settings-sheet.vue.d.ts +14 -0
  45. package/dist/runtime/components/chat/mobile/shell/shell.d.vue.ts +122 -0
  46. package/dist/runtime/components/chat/mobile/shell/shell.vue +283 -0
  47. package/dist/runtime/components/chat/mobile/shell/shell.vue.d.ts +122 -0
  48. package/dist/runtime/components/chat/mobile/shell/workspace-sheet.d.vue.ts +19 -0
  49. package/dist/runtime/components/chat/mobile/shell/workspace-sheet.vue +51 -0
  50. package/dist/runtime/components/chat/mobile/shell/workspace-sheet.vue.d.ts +19 -0
  51. package/dist/runtime/components/chat/mobile/usage/usage-view.d.vue.ts +8 -0
  52. package/dist/runtime/components/chat/mobile/usage/usage-view.vue +243 -0
  53. package/dist/runtime/components/chat/mobile/usage/usage-view.vue.d.ts +8 -0
  54. package/dist/runtime/components/chat/model-selector.vue +6 -0
  55. package/dist/runtime/components/chat/read-widget.vue +3 -3
  56. package/dist/runtime/components/chat/reasoning-step-item.vue +1 -1
  57. package/dist/runtime/components/chat/reasoning-steps.vue +1 -1
  58. package/dist/runtime/components/chat/reasoning-thought.vue +2 -3
  59. package/dist/runtime/components/chat/tela-skill-widget.vue +3 -3
  60. package/dist/runtime/components/chat/thinking-widget.vue +3 -3
  61. package/dist/runtime/components/chat/usage-view.vue +20 -101
  62. package/dist/runtime/components/chat/web-search-widget.vue +3 -3
  63. package/dist/runtime/components/chat/workstation-query-widget.vue +6 -6
  64. package/dist/runtime/components/chat/write-widget.vue +3 -3
  65. package/dist/runtime/composables/useChat.js +2 -1
  66. package/dist/runtime/composables/useChatApi.js +4 -0
  67. package/dist/runtime/composables/useConversationFileDownloads.d.ts +6 -0
  68. package/dist/runtime/composables/useConversationFileDownloads.js +50 -0
  69. package/dist/runtime/composables/useConversationUsage.d.ts +13 -0
  70. package/dist/runtime/composables/useConversationUsage.js +121 -0
  71. package/dist/runtime/composables/useConversations.js +3 -1
  72. package/dist/runtime/composables/useEmbedConfig.d.ts +4 -0
  73. package/dist/runtime/composables/useEmbedConfig.js +9 -0
  74. package/dist/runtime/composables/useMentionAutocomplete.d.ts +6 -0
  75. package/dist/runtime/composables/useMentionAutocomplete.js +71 -23
  76. package/dist/runtime/composables/useWorkspaceSwitchModal.d.ts +5 -0
  77. package/dist/runtime/composables/useWorkspaceSwitchModal.js +14 -0
  78. package/dist/runtime/embed/components/ChatConfigurationModal.vue +119 -13
  79. package/dist/runtime/embed/components/ChatEmbed.vue +9 -2
  80. package/dist/runtime/embed/components/ChatEmbedInner.d.vue.ts +2 -0
  81. package/dist/runtime/embed/components/ChatEmbedInner.vue +201 -11
  82. package/dist/runtime/embed/components/ChatEmbedInner.vue.d.ts +2 -0
  83. package/dist/runtime/embed/components/configuration/ChatConfigurationMobileShell.d.vue.ts +34 -0
  84. package/dist/runtime/embed/components/configuration/ChatConfigurationMobileShell.vue +95 -0
  85. package/dist/runtime/embed/components/configuration/ChatConfigurationMobileShell.vue.d.ts +34 -0
  86. package/dist/runtime/server/api/conversations/[id]/duplicate.post.js +1 -0
  87. package/dist/runtime/server/api/conversations/[id]/messages/[messageId]/retry.post.js +3 -1
  88. package/dist/runtime/server/api/conversations/[id]/messages/index.get.js +29 -5
  89. package/dist/runtime/server/api/conversations/index.post.js +1 -0
  90. package/dist/runtime/server/db/schema/conversations.d.ts +17 -0
  91. package/dist/runtime/server/db/schema/conversations.js +1 -0
  92. package/dist/runtime/server/utils/chat-context.d.ts +2 -0
  93. package/dist/runtime/server/utils/chat-context.js +15 -1
  94. package/dist/runtime/server/utils/conversation-message-sync.d.ts +8 -2
  95. package/dist/runtime/server/utils/conversation-message-sync.js +52 -6
  96. package/dist/runtime/server/utils/conversation-scope.js +2 -1
  97. package/dist/runtime/types/chat-auth.d.ts +9 -8
  98. package/dist/runtime/types/embed.d.ts +21 -0
  99. package/dist/runtime/utils/breakpoints.d.ts +1 -0
  100. package/dist/runtime/utils/breakpoints.js +1 -0
  101. package/dist/runtime/utils/tela-chat.d.ts +3 -1
  102. package/dist/runtime/utils/tela-chat.js +11 -2
  103. package/drizzle/0015_illegal_blindfold.sql +1 -0
  104. package/drizzle/meta/0015_snapshot.json +738 -0
  105. package/drizzle/meta/_journal.json +7 -0
  106. package/package.json +6 -1
@@ -106,6 +106,13 @@
106
106
  "when": 1777993742734,
107
107
  "tag": "0014_faulty_lake",
108
108
  "breakpoints": true
109
+ },
110
+ {
111
+ "idx": 15,
112
+ "version": "7",
113
+ "when": 1779212743677,
114
+ "tag": "0015_illegal_blindfold",
115
+ "breakpoints": true
109
116
  }
110
117
  ]
111
118
  }
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
- "version": "1.6.0",
3
+ "version": "1.8.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/types.d.mts",
8
8
  "import": "./dist/module.mjs"
9
9
  },
10
+ "./components/MeistrariChatEmbed": {
11
+ "types": "./dist/runtime/components/MeistrariChatEmbed.vue.d.ts",
12
+ "import": "./dist/runtime/components/MeistrariChatEmbed.vue"
13
+ },
10
14
  "./assets/css/*": "./dist/runtime/assets/css/*",
11
15
  "./types/*": {
12
16
  "types": "./dist/runtime/types/*.d.ts",
@@ -26,6 +30,7 @@
26
30
  "scripts": {
27
31
  "build": "mkdir -p .nuxt && { [ -f .nuxt/tsconfig.json ] || printf '{}' > .nuxt/tsconfig.json; } && { [ -f .nuxt/tsconfig.server.json ] || printf '{}' > .nuxt/tsconfig.server.json; } && nuxt-module-build build",
28
32
  "dev:prepare": "nuxt-module-build build --stub",
33
+ "test:types": "pnpm build && tsc -p tsconfig.type-tests.json --noEmit",
29
34
  "smoke:pack": "./scripts/smoke-pack-consumer.sh",
30
35
  "lint": "eslint .",
31
36
  "lint:fix": "eslint . --fix",