@meistrari/chat-nuxt 2.0.0 → 3.1.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.
- package/README.md +7 -9
- package/dist/module.d.mts +3 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +0 -39
- package/dist/runtime/conversations/components/chat-conversation-creator-filter.d.vue.ts +1 -1
- package/dist/runtime/conversations/components/chat-conversation-creator-filter.vue.d.ts +1 -1
- package/dist/runtime/conversations/components/chat-conversation-item.d.vue.ts +3 -3
- package/dist/runtime/conversations/components/chat-conversation-item.vue.d.ts +3 -3
- package/dist/runtime/conversations/components/chat-conversation-list.d.vue.ts +1 -1
- package/dist/runtime/conversations/components/chat-conversation-list.vue.d.ts +1 -1
- package/dist/runtime/conversations/components/chat-conversation-new-group-button.d.vue.ts +1 -1
- package/dist/runtime/conversations/components/chat-conversation-new-group-button.vue.d.ts +1 -1
- package/dist/runtime/conversations/components/chat-conversation-new-group-popover-content.d.vue.ts +4 -4
- package/dist/runtime/conversations/components/chat-conversation-new-group-popover-content.vue.d.ts +4 -4
- package/dist/runtime/conversations/components/chat-conversation-search.d.vue.ts +3 -3
- package/dist/runtime/conversations/components/chat-conversation-search.vue.d.ts +3 -3
- package/dist/runtime/conversations/components/chat-new-conversation-modal.d.vue.ts +23 -5
- package/dist/runtime/conversations/components/chat-new-conversation-modal.vue.d.ts +23 -5
- package/dist/runtime/conversations/composables/conversation-list.d.ts +58 -1
- package/dist/runtime/conversations/composables/conversations.d.ts +1 -4
- package/dist/runtime/conversations/composables/conversations.js +3 -6
- package/dist/runtime/embed/components/chat-configuration-modal.d.vue.ts +3 -3
- package/dist/runtime/embed/components/chat-configuration-modal.vue +59 -176
- package/dist/runtime/embed/components/chat-configuration-modal.vue.d.ts +3 -3
- package/dist/runtime/embed/components/chat-embed-inner.d.vue.ts +3 -3
- package/dist/runtime/embed/components/chat-embed-inner.vue +4 -35
- package/dist/runtime/embed/components/chat-embed-inner.vue.d.ts +3 -3
- package/dist/runtime/embed/components/chat-embed.d.vue.ts +6 -3
- package/dist/runtime/embed/components/chat-embed.vue +10 -2
- package/dist/runtime/embed/components/chat-embed.vue.d.ts +6 -3
- package/dist/runtime/embed/components/chat-topbar.d.vue.ts +5 -5
- package/dist/runtime/embed/components/chat-topbar.vue.d.ts +5 -5
- package/dist/runtime/embed/components/configuration/chat-configuration-agent-tab.d.vue.ts +13 -0
- package/dist/runtime/embed/components/configuration/chat-configuration-agent-tab.vue +167 -0
- package/dist/runtime/embed/components/configuration/chat-configuration-agent-tab.vue.d.ts +13 -0
- package/dist/runtime/embed/components/configuration/chat-configuration-credentials-tab.d.vue.ts +3 -3
- package/dist/runtime/embed/components/configuration/chat-configuration-credentials-tab.vue.d.ts +3 -3
- package/dist/runtime/embed/components/configuration/chat-configuration-knowledge-sources-tab.d.vue.ts +3 -3
- package/dist/runtime/embed/components/configuration/chat-configuration-knowledge-sources-tab.vue.d.ts +3 -3
- package/dist/runtime/embed/components/configuration/chat-configuration-mobile-shell.d.vue.ts +3 -3
- package/dist/runtime/embed/components/configuration/chat-configuration-mobile-shell.vue.d.ts +3 -3
- package/dist/runtime/embed/components/meistrari-chat-embed.vue +9 -1
- package/dist/runtime/embed/components/mobile/chat-mobile-bottom-sheet.d.vue.ts +3 -3
- package/dist/runtime/embed/components/mobile/chat-mobile-bottom-sheet.vue.d.ts +3 -3
- package/dist/runtime/embed/components/mobile/chat-mobile-drawer.d.vue.ts +3 -3
- package/dist/runtime/embed/components/mobile/chat-mobile-drawer.vue.d.ts +3 -3
- package/dist/runtime/embed/components/mobile/chat-mobile-file-preview.d.vue.ts +3 -3
- package/dist/runtime/embed/components/mobile/chat-mobile-file-preview.vue.d.ts +3 -3
- package/dist/runtime/embed/components/mobile/chat-mobile-files-view.d.vue.ts +3 -3
- package/dist/runtime/embed/components/mobile/chat-mobile-files-view.vue.d.ts +3 -3
- package/dist/runtime/embed/components/mobile/chat-mobile-header.d.vue.ts +5 -5
- package/dist/runtime/embed/components/mobile/chat-mobile-header.vue.d.ts +5 -5
- package/dist/runtime/embed/components/mobile/chat-mobile-home-header.d.vue.ts +3 -3
- package/dist/runtime/embed/components/mobile/chat-mobile-home-header.vue.d.ts +3 -3
- package/dist/runtime/embed/components/mobile/chat-mobile-home-recents.d.vue.ts +3 -3
- package/dist/runtime/embed/components/mobile/chat-mobile-home-recents.vue.d.ts +3 -3
- package/dist/runtime/embed/components/mobile/chat-mobile-home-suggestions.d.vue.ts +3 -3
- package/dist/runtime/embed/components/mobile/chat-mobile-home-suggestions.vue.d.ts +3 -3
- package/dist/runtime/embed/components/mobile/chat-mobile-info-bubble.d.vue.ts +1 -1
- package/dist/runtime/embed/components/mobile/chat-mobile-info-bubble.vue.d.ts +1 -1
- package/dist/runtime/embed/components/mobile/chat-mobile-outdated-settings-sheet.d.vue.ts +3 -3
- package/dist/runtime/embed/components/mobile/chat-mobile-outdated-settings-sheet.vue.d.ts +3 -3
- package/dist/runtime/embed/components/mobile/chat-mobile-shell.d.vue.ts +41 -15
- package/dist/runtime/embed/components/mobile/chat-mobile-shell.vue +2 -12
- package/dist/runtime/embed/components/mobile/chat-mobile-shell.vue.d.ts +41 -15
- package/dist/runtime/embed/components/mobile/chat-mobile-usage-view.d.vue.ts +1 -1
- package/dist/runtime/embed/components/mobile/chat-mobile-usage-view.vue.d.ts +1 -1
- package/dist/runtime/embed/components/mobile/chat-mobile-workspace-sheet.d.vue.ts +3 -3
- package/dist/runtime/embed/components/mobile/chat-mobile-workspace-sheet.vue.d.ts +3 -3
- package/dist/runtime/embed/components/powered-by-tela.d.vue.ts +1 -1
- package/dist/runtime/embed/components/powered-by-tela.vue.d.ts +1 -1
- package/dist/runtime/embed/composables/embed-config.d.ts +6 -0
- package/dist/runtime/embed/composables/embed-config.js +11 -3
- package/dist/runtime/embed/feature-config.d.ts +0 -2
- package/dist/runtime/embed/feature-config.js +0 -1
- package/dist/runtime/embed/types.d.ts +14 -0
- package/dist/runtime/files/components/audio-preview.d.vue.ts +3 -3
- package/dist/runtime/files/components/audio-preview.vue.d.ts +3 -3
- package/dist/runtime/files/components/chat-file-preview.d.vue.ts +1 -1
- package/dist/runtime/files/components/chat-file-preview.vue.d.ts +1 -1
- package/dist/runtime/files/components/chat-files-view.d.vue.ts +1 -1
- package/dist/runtime/files/components/chat-files-view.vue.d.ts +1 -1
- package/dist/runtime/files/components/chat-vault-link.d.vue.ts +1 -1
- package/dist/runtime/files/components/chat-vault-link.vue.d.ts +1 -1
- package/dist/runtime/files/components/conversation-files-panel.d.vue.ts +1 -1
- package/dist/runtime/files/components/conversation-files-panel.vue.d.ts +1 -1
- package/dist/runtime/files/components/csv-preview.d.vue.ts +3 -3
- package/dist/runtime/files/components/csv-preview.vue.d.ts +3 -3
- package/dist/runtime/files/components/file-preview-panel.d.vue.ts +1 -1
- package/dist/runtime/files/components/file-preview-panel.vue.d.ts +1 -1
- package/dist/runtime/files/components/file-uploader.d.vue.ts +3 -3
- package/dist/runtime/files/components/file-uploader.vue.d.ts +3 -3
- package/dist/runtime/files/components/image-preview.d.vue.ts +3 -3
- package/dist/runtime/files/components/image-preview.vue.d.ts +3 -3
- package/dist/runtime/files/components/pdf-preview.client.d.vue.ts +3 -3
- package/dist/runtime/files/components/pdf-preview.client.vue.d.ts +3 -3
- package/dist/runtime/files/components/pdf-viewer.client.d.vue.ts +1 -1
- package/dist/runtime/files/components/pdf-viewer.client.vue.d.ts +1 -1
- package/dist/runtime/files/components/text-preview.d.vue.ts +3 -3
- package/dist/runtime/files/components/text-preview.vue.d.ts +3 -3
- package/dist/runtime/files/components/video-preview.d.vue.ts +3 -3
- package/dist/runtime/files/components/video-preview.vue.d.ts +3 -3
- package/dist/runtime/files/composables/pdf.d.ts +248 -27
- package/dist/runtime/files/file-limits.d.ts +2 -0
- package/dist/runtime/files/file-limits.js +2 -0
- package/dist/runtime/messages/components/chat-canvas-selector-modal.d.vue.ts +23 -5
- package/dist/runtime/messages/components/chat-canvas-selector-modal.vue.d.ts +23 -5
- package/dist/runtime/messages/components/chat-context-config.d.vue.ts +52 -10
- package/dist/runtime/messages/components/chat-context-config.vue +2 -2
- package/dist/runtime/messages/components/chat-context-config.vue.d.ts +52 -10
- package/dist/runtime/messages/components/chat-mention-dropdown.d.vue.ts +27 -5
- package/dist/runtime/messages/components/chat-mention-dropdown.vue.d.ts +27 -5
- package/dist/runtime/messages/components/chat-message-bubble.d.vue.ts +3 -3
- package/dist/runtime/messages/components/chat-message-bubble.vue +8 -4
- package/dist/runtime/messages/components/chat-message-bubble.vue.d.ts +3 -3
- package/dist/runtime/messages/components/chat-message-feedback.d.vue.ts +7 -0
- package/dist/runtime/messages/components/chat-message-feedback.vue +251 -0
- package/dist/runtime/messages/components/chat-message-feedback.vue.d.ts +7 -0
- package/dist/runtime/messages/components/chat-message-input.d.vue.ts +38 -16
- package/dist/runtime/messages/components/chat-message-input.vue +1 -8
- package/dist/runtime/messages/components/chat-message-input.vue.d.ts +38 -16
- package/dist/runtime/messages/components/chat-message-list.d.vue.ts +3 -3
- package/dist/runtime/messages/components/chat-message-list.vue.d.ts +3 -3
- package/dist/runtime/messages/components/chat-workstation-selector-modal.d.vue.ts +19 -5
- package/dist/runtime/messages/components/chat-workstation-selector-modal.vue.d.ts +19 -5
- package/dist/runtime/messages/components/reasoning/chat-reasoning-message.d.vue.ts +1 -1
- package/dist/runtime/messages/components/reasoning/chat-reasoning-message.vue.d.ts +1 -1
- package/dist/runtime/messages/components/reasoning/chat-reasoning-step-item.d.vue.ts +4 -4
- package/dist/runtime/messages/components/reasoning/chat-reasoning-step-item.vue.d.ts +4 -4
- package/dist/runtime/messages/components/reasoning/chat-reasoning-steps.d.vue.ts +2 -2
- package/dist/runtime/messages/components/reasoning/chat-reasoning-steps.vue.d.ts +2 -2
- package/dist/runtime/messages/components/reasoning/chat-reasoning-thought.d.vue.ts +1 -1
- package/dist/runtime/messages/components/reasoning/chat-reasoning-thought.vue.d.ts +1 -1
- package/dist/runtime/messages/components/reasoning/chat-thinking-indicator.d.vue.ts +1 -1
- package/dist/runtime/messages/components/reasoning/chat-thinking-indicator.vue.d.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-bash-widget.d.vue.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-bash-widget.vue.d.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-doc-sdk-widget.d.vue.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-doc-sdk-widget.vue.d.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-generic-tool-widget.d.vue.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-generic-tool-widget.vue.d.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-grep-widget.d.vue.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-grep-widget.vue.d.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-read-widget.d.vue.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-read-widget.vue.d.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-tela-skill-widget.d.vue.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-tela-skill-widget.vue.d.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-thinking-widget.d.vue.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-thinking-widget.vue.d.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-web-search-widget.d.vue.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-web-search-widget.vue.d.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-workstation-query-widget.d.vue.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-workstation-query-widget.vue.d.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-write-widget.d.vue.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-write-widget.vue.d.ts +1 -1
- package/dist/runtime/messages/composables/chat-feedback.d.ts +21 -0
- package/dist/runtime/messages/composables/chat-feedback.js +12 -0
- package/dist/runtime/messages/composables/chat.d.ts +1 -1
- package/dist/runtime/messages/composables/chat.js +37 -14
- package/dist/runtime/messages/message-state.d.ts +3 -0
- package/dist/runtime/messages/message-state.js +13 -0
- package/dist/runtime/rendering/components/app-markdown-render.d.vue.ts +2 -2
- package/dist/runtime/rendering/components/app-markdown-render.vue.d.ts +2 -2
- package/dist/runtime/rendering/components/renderers/artifact-display.d.vue.ts +3 -3
- package/dist/runtime/rendering/components/renderers/artifact-display.vue.d.ts +3 -3
- package/dist/runtime/rendering/components/renderers/audio-renderer.d.vue.ts +1 -1
- package/dist/runtime/rendering/components/renderers/audio-renderer.vue.d.ts +1 -1
- package/dist/runtime/rendering/components/renderers/csv-renderer.d.vue.ts +1 -1
- package/dist/runtime/rendering/components/renderers/csv-renderer.vue.d.ts +1 -1
- package/dist/runtime/rendering/components/renderers/image-renderer.d.vue.ts +1 -1
- package/dist/runtime/rendering/components/renderers/image-renderer.vue.d.ts +1 -1
- package/dist/runtime/rendering/components/renderers/markdown-renderer.d.vue.ts +1 -1
- package/dist/runtime/rendering/components/renderers/markdown-renderer.vue.d.ts +1 -1
- package/dist/runtime/rendering/components/renderers/mermaid-diagram.d.vue.ts +1 -1
- package/dist/runtime/rendering/components/renderers/mermaid-diagram.vue.d.ts +1 -1
- package/dist/runtime/rendering/components/renderers/text-renderer.d.vue.ts +1 -1
- package/dist/runtime/rendering/components/renderers/text-renderer.vue.d.ts +1 -1
- package/dist/runtime/rendering/components/renderers/video-renderer.d.vue.ts +1 -1
- package/dist/runtime/rendering/components/renderers/video-renderer.vue.d.ts +1 -1
- package/dist/runtime/shared/chat-api-error.d.ts +1 -0
- package/dist/runtime/shared/chat-api-error.js +5 -0
- package/dist/runtime/shared/components/app-status-toast.d.vue.ts +1 -1
- package/dist/runtime/shared/components/app-status-toast.vue.d.ts +1 -1
- package/dist/runtime/shared/components/icons/anthropic.d.vue.ts +1 -1
- package/dist/runtime/shared/components/icons/anthropic.vue.d.ts +1 -1
- package/dist/runtime/shared/components/icons/tela-chat.d.vue.ts +1 -1
- package/dist/runtime/shared/components/icons/tela-chat.vue.d.ts +1 -1
- package/dist/runtime/shared/components/icons/tela-wordmark.d.vue.ts +1 -1
- package/dist/runtime/shared/components/icons/tela-wordmark.vue.d.ts +1 -1
- package/dist/runtime/types/embed.d.ts +1 -0
- package/dist/runtime/types/schemas/chat/conversations.d.ts +2 -3
- package/dist/runtime/types/schemas/chat/conversations.js +2 -3
- package/dist/runtime/types/schemas/chat/messages.d.ts +6 -48
- package/dist/runtime/types/schemas/chat/messages.js +5 -4
- package/dist/runtime/types/schemas/chat/workspace-agent.d.ts +33 -0
- package/dist/runtime/types/schemas/chat/workspace-agent.js +12 -0
- package/dist/runtime/types/schemas/chat/workspace-settings.d.ts +0 -47
- package/dist/runtime/types/schemas/chat/workspace-settings.js +0 -1
- package/dist/runtime/types/schemas/index.d.ts +1 -0
- package/dist/runtime/types/schemas/index.js +1 -0
- package/dist/runtime/types/schemas/integrations/tela-agent-api.d.ts +34 -0
- package/dist/runtime/types/schemas/integrations/tela-agent-api.js +3 -0
- package/dist/runtime/types/workspace-settings.d.ts +1 -1
- package/dist/runtime/usage/components/chat-usage-view.d.vue.ts +1 -1
- package/dist/runtime/usage/components/chat-usage-view.vue.d.ts +1 -1
- package/dist/runtime/workspace/composables/github-skills-callback.js +1 -1
- package/dist/runtime/workspace/composables/workspace-agent.d.ts +8 -0
- package/dist/runtime/workspace/composables/workspace-agent.js +89 -0
- package/dist/runtime/workspace/composables/workspace-settings.d.ts +42 -1
- package/dist/types.d.mts +1 -1
- package/package.json +15 -15
- package/dist/runtime/embed/components/configuration/chat-configuration-context-files-tab.d.vue.ts +0 -22
- package/dist/runtime/embed/components/configuration/chat-configuration-context-files-tab.vue +0 -133
- package/dist/runtime/embed/components/configuration/chat-configuration-context-files-tab.vue.d.ts +0 -22
- package/dist/runtime/embed/components/configuration/chat-configuration-external-skills-tab.d.vue.ts +0 -32
- package/dist/runtime/embed/components/configuration/chat-configuration-external-skills-tab.vue +0 -222
- package/dist/runtime/embed/components/configuration/chat-configuration-external-skills-tab.vue.d.ts +0 -32
- package/dist/runtime/embed/components/configuration/chat-configuration-personalization-tab.d.vue.ts +0 -10
- package/dist/runtime/embed/components/configuration/chat-configuration-personalization-tab.vue +0 -37
- package/dist/runtime/embed/components/configuration/chat-configuration-personalization-tab.vue.d.ts +0 -10
- package/dist/runtime/embed/components/configuration/chat-configuration-tela-tools-tab.d.vue.ts +0 -20
- package/dist/runtime/embed/components/configuration/chat-configuration-tela-tools-tab.vue +0 -146
- package/dist/runtime/embed/components/configuration/chat-configuration-tela-tools-tab.vue.d.ts +0 -20
- package/dist/runtime/internal/agent-environment-resolver.stub.d.ts +0 -2
- package/dist/runtime/internal/agent-environment-resolver.stub.js +0 -1
- package/dist/runtime/messages/components/chat-model-selector.d.vue.ts +0 -15
- package/dist/runtime/messages/components/chat-model-selector.vue +0 -42
- package/dist/runtime/messages/components/chat-model-selector.vue.d.ts +0 -15
- package/dist/runtime/messages/composables/selected-model.d.ts +0 -4
- package/dist/runtime/messages/composables/selected-model.js +0 -48
- package/dist/runtime/types/chat-agent-environment-resolver.d.ts +0 -4
- package/dist/runtime/workspace/composables/workspace-context-files.d.ts +0 -19
- package/dist/runtime/workspace/composables/workspace-context-files.js +0 -83
- package/dist/runtime/workspace/composables/workspace-external-skills.d.ts +0 -22
- package/dist/runtime/workspace/composables/workspace-external-skills.js +0 -137
- package/dist/runtime/workspace/composables/workspace-personalization.d.ts +0 -6
- package/dist/runtime/workspace/composables/workspace-personalization.js +0 -18
- package/dist/runtime/workspace/composables/workspace-tela-tools.d.ts +0 -13
- package/dist/runtime/workspace/composables/workspace-tela-tools.js +0 -91
package/README.md
CHANGED
|
@@ -120,14 +120,14 @@ The chat workspace is resolved from the authenticated `activeOrganization` provi
|
|
|
120
120
|
|
|
121
121
|
`<MeistrariChatEmbed />` has two mutually exclusive runtimes:
|
|
122
122
|
|
|
123
|
-
- **Default chat mode** uses the
|
|
123
|
+
- **Default chat mode** uses the Chat API and the workspace's configured Tela agent. Runtime configuration, entitlements, and workspace-specific agent selection are owned by `@meistrari/chat-api`.
|
|
124
124
|
- **Tela agent mode** uses a configured Tela agent directly. Pass `telaAgentId`; the embed sends user messages to `POST /agent/:id/run`, polls `GET /agent/sessions/:sessionId`, and ends sessions with `DELETE /agent/sessions/:sessionId`.
|
|
125
125
|
|
|
126
126
|
```vue
|
|
127
127
|
<MeistrariChatEmbed tela-agent-id="agent_123" />
|
|
128
128
|
```
|
|
129
129
|
|
|
130
|
-
`conversationScope` works in both runtimes. In default chat mode, it isolates conversations inside the authenticated workspace
|
|
130
|
+
`conversationScope` works in both runtimes. In default chat mode, it isolates conversations inside the authenticated workspace while the Chat API resolves the correct Tela agent:
|
|
131
131
|
|
|
132
132
|
```vue
|
|
133
133
|
<MeistrariChatEmbed :conversation-scope="`user:${userId}`" />
|
|
@@ -145,7 +145,7 @@ Host apps can also provide Tela agent inputs directly. When `telaAgentInputs` is
|
|
|
145
145
|
/>
|
|
146
146
|
```
|
|
147
147
|
|
|
148
|
-
In Tela agent mode, `workspaceSettings` and `user` are not accepted by the public prop contract
|
|
148
|
+
In Tela agent mode, `workspaceSettings` and `user` are not accepted by the public prop contract - the Tela agent owns runtime configuration and identity for execution. `features` is still accepted for shared UI controls.
|
|
149
149
|
|
|
150
150
|
## Embedding in Your Layout
|
|
151
151
|
|
|
@@ -227,13 +227,12 @@ Scoped embeds only see conversations created with the same scope. Unscoped embed
|
|
|
227
227
|
|
|
228
228
|
## Optional: Feature Flags
|
|
229
229
|
|
|
230
|
-
`<MeistrariChatEmbed>` accepts a `:features` prop with
|
|
230
|
+
`<MeistrariChatEmbed>` accepts a `:features` prop with three optional toggles. All default to `false`. The host owns the policy - hardcode them, gate by user role, or wire them through a feature-flag provider of your choice.
|
|
231
231
|
|
|
232
232
|
| Flag | Effect |
|
|
233
233
|
|------|--------|
|
|
234
234
|
| `showUsageTab` | Usage tab in the chat topbar (per-conversation token/cost stats) |
|
|
235
235
|
| `showDebugOption` | Debug entry in the topbar overflow menu |
|
|
236
|
-
| `showModelSelector` | Model picker inside the message input |
|
|
237
236
|
| `showCancelButton` | "Stop generation" button while a response streams |
|
|
238
237
|
|
|
239
238
|
Static example:
|
|
@@ -292,7 +291,6 @@ const { isFeatureEnabled } = useFeatureFlags()
|
|
|
292
291
|
const features = computed(() => ({
|
|
293
292
|
showUsageTab: isFeatureEnabled('enable-usage-tab'),
|
|
294
293
|
showDebugOption: isFeatureEnabled('enable-debug-mode'),
|
|
295
|
-
showModelSelector: isFeatureEnabled('enable-model-selector'),
|
|
296
294
|
showCancelButton: isFeatureEnabled('enable-cancel-generation'),
|
|
297
295
|
}))
|
|
298
296
|
</script>
|
|
@@ -325,11 +323,11 @@ To override them, pass settings directly from your host app:
|
|
|
325
323
|
|
|
326
324
|
The `server/chat/resolve-workspace-settings.ts` host resolver from earlier versions is no longer invoked: the module proxies chat requests to the Chat API, which owns workspace settings resolution.
|
|
327
325
|
|
|
328
|
-
## Agent
|
|
326
|
+
## Agent Runtime Configuration
|
|
329
327
|
|
|
330
|
-
`chat-nuxt` proxies chat requests to `@meistrari/chat-api`; it
|
|
328
|
+
`chat-nuxt` proxies chat requests to `@meistrari/chat-api`; it does not start agent sessions directly or resolve runtime environment variables. Agent runtime configuration, entitlements, and Tela agent selection are owned by `chat-api` and the Tela agent configuration. Host apps do not need Nuxt-side agent environment resolver files for this module.
|
|
331
329
|
|
|
332
|
-
|
|
330
|
+
A skill that calls a host backend must implement its own callback contract with the host backend. In short, callback authorization belongs to the skill and host backend, not `chat-nuxt`. The host backend remains responsible for validating invocation grants, allowed tools, schemas, replay protection, confirmation for writes, and audit logging.
|
|
333
331
|
|
|
334
332
|
## `<ChatConfigurationModal>`
|
|
335
333
|
|
package/dist/module.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
export { ChatActionPayload, ChatActor, ChatEmbedSharedProps, ChatFeatureConfig, DefaultChatEmbedProps, MeistrariChatEmbedProps, MessageFeedbackConfig, MessageFeedbackPayload, MessageFeedbackRating, TelaAgentChatEmbedProps, TelaAgentExecutionInput } from '../dist/runtime/types/embed.js';
|
|
2
3
|
|
|
3
4
|
type ChatNuxtConfigValidationMode = false | 'warn' | 'error';
|
|
4
5
|
|
|
@@ -11,7 +12,7 @@ interface ChatNuxtModuleOptions {
|
|
|
11
12
|
*/
|
|
12
13
|
validateConfig?: ChatNuxtConfigValidationMode;
|
|
13
14
|
}
|
|
14
|
-
declare const _default:
|
|
15
|
+
declare const _default: _nuxt_schema.NuxtModule<ChatNuxtModuleOptions, ChatNuxtModuleOptions, false>;
|
|
15
16
|
|
|
16
17
|
export { _default as default };
|
|
17
18
|
export type { ChatNuxtModuleOptions };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -3,32 +3,6 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { join, dirname } from 'node:path';
|
|
4
4
|
import { defineNuxtModule, createResolver, addTemplate, addTypeTemplate, addPlugin, addImportsDir, addComponent, addComponentsDir } from 'nuxt/kit';
|
|
5
5
|
|
|
6
|
-
const agentEnvironmentResolverCandidates = [
|
|
7
|
-
"server/chat/resolve-agent-environment.ts",
|
|
8
|
-
"server/chat/resolve-agent-environment.mts",
|
|
9
|
-
"server/chat/resolve-agent-environment.mjs",
|
|
10
|
-
"server/chat/resolve-agent-environment.js"
|
|
11
|
-
];
|
|
12
|
-
const stubExtensions$1 = [".ts", ".mjs", ".js"];
|
|
13
|
-
function resolveAgentEnvironmentResolverEntry(srcDir, fallbackResolverBase) {
|
|
14
|
-
for (const relativePath of agentEnvironmentResolverCandidates) {
|
|
15
|
-
const candidate = join(srcDir, relativePath);
|
|
16
|
-
if (existsSync(candidate)) {
|
|
17
|
-
return candidate;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
for (const ext of stubExtensions$1) {
|
|
21
|
-
const candidate = fallbackResolverBase + ext;
|
|
22
|
-
if (existsSync(candidate)) {
|
|
23
|
-
return candidate;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
const attempted = stubExtensions$1.map((ext) => fallbackResolverBase + ext).join(", ");
|
|
27
|
-
throw new Error(
|
|
28
|
-
`[@meistrari/chat-nuxt] Unable to resolve agent-environment stub. Tried: ${attempted}. This indicates a packaging bug - please report it.`
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
6
|
const localRequire = createRequire(import.meta.url);
|
|
33
7
|
const runtimeAliasPackages = [
|
|
34
8
|
"vue",
|
|
@@ -340,10 +314,6 @@ const module$1 = defineNuxtModule({
|
|
|
340
314
|
nuxt.options.srcDir,
|
|
341
315
|
join(runtimeDir, "internal/workspace-settings-resolver.stub")
|
|
342
316
|
);
|
|
343
|
-
const agentEnvironmentResolverEntry = resolveAgentEnvironmentResolverEntry(
|
|
344
|
-
nuxt.options.srcDir,
|
|
345
|
-
join(runtimeDir, "internal/agent-environment-resolver.stub")
|
|
346
|
-
);
|
|
347
317
|
const telaBuildPath = resolveTelaBuildLayer();
|
|
348
318
|
const runtimeAliases = resolveRuntimeAliases(telaBuildPath);
|
|
349
319
|
const chatAuthMode = resolveChatAuthMode(nuxt.options.runtimeConfig);
|
|
@@ -355,13 +325,6 @@ const module$1 = defineNuxtModule({
|
|
|
355
325
|
filename: "chat-nuxt/chat-auth.d.ts",
|
|
356
326
|
src: join(runtimeDir, "types/chat-auth.d.ts")
|
|
357
327
|
});
|
|
358
|
-
addTypeTemplate({
|
|
359
|
-
filename: "chat-nuxt/chat-agent-environment-resolver.d.ts",
|
|
360
|
-
src: join(runtimeDir, "types/chat-agent-environment-resolver.d.ts")
|
|
361
|
-
}, {
|
|
362
|
-
nitro: true,
|
|
363
|
-
nuxt: true
|
|
364
|
-
});
|
|
365
328
|
nuxt.hook("prepare:types", ({ tsConfig }) => {
|
|
366
329
|
tsConfig.compilerOptions ||= {};
|
|
367
330
|
tsConfig.compilerOptions.paths ||= {};
|
|
@@ -376,7 +339,6 @@ const module$1 = defineNuxtModule({
|
|
|
376
339
|
nuxt.options.alias = {
|
|
377
340
|
...nuxt.options.alias,
|
|
378
341
|
"#chat-auth": chatAuthTemplate.dst,
|
|
379
|
-
"#chat-agent-environment-resolver": agentEnvironmentResolverEntry,
|
|
380
342
|
"#chat-workspace-settings-resolver": workspaceSettingsResolverEntry,
|
|
381
343
|
"#chat-runtime": runtimeDir,
|
|
382
344
|
"@iconify-json/ph": resolvePackageRoot("@iconify-json/ph")
|
|
@@ -475,7 +437,6 @@ export default globalThis.ELK;
|
|
|
475
437
|
nitroConfig.alias = {
|
|
476
438
|
...nitroConfig.alias,
|
|
477
439
|
"#chat-auth": chatAuthTemplate.dst,
|
|
478
|
-
"#chat-agent-environment-resolver": agentEnvironmentResolverEntry,
|
|
479
440
|
"#chat-runtime": runtimeDir,
|
|
480
441
|
"#chat-workspace-settings-resolver": workspaceSettingsResolverEntry
|
|
481
442
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1
|
+
declare const __VLS_export: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
declare const _default: typeof __VLS_export;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1
|
+
declare const __VLS_export: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
declare const _default: typeof __VLS_export;
|
|
3
3
|
export default _default;
|
|
@@ -7,20 +7,20 @@ type __VLS_Props = {
|
|
|
7
7
|
userImage?: string;
|
|
8
8
|
selectConversation?: (id: string) => void | Promise<void>;
|
|
9
9
|
};
|
|
10
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
10
|
+
declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
|
|
11
11
|
delete: (id: string) => any;
|
|
12
12
|
rename: (id: string, title: string) => any;
|
|
13
13
|
duplicate: (id: string) => any;
|
|
14
14
|
export: (id: string) => any;
|
|
15
15
|
dragStart: (id: string) => any;
|
|
16
16
|
dragEnd: () => any;
|
|
17
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
18
|
onDelete?: ((id: string) => any) | undefined;
|
|
19
19
|
onRename?: ((id: string, title: string) => any) | undefined;
|
|
20
20
|
onDuplicate?: ((id: string) => any) | undefined;
|
|
21
21
|
onExport?: ((id: string) => any) | undefined;
|
|
22
22
|
onDragStart?: ((id: string) => any) | undefined;
|
|
23
23
|
onDragEnd?: (() => any) | undefined;
|
|
24
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
26
26
|
export default _default;
|
|
@@ -7,20 +7,20 @@ type __VLS_Props = {
|
|
|
7
7
|
userImage?: string;
|
|
8
8
|
selectConversation?: (id: string) => void | Promise<void>;
|
|
9
9
|
};
|
|
10
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
10
|
+
declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
|
|
11
11
|
delete: (id: string) => any;
|
|
12
12
|
rename: (id: string, title: string) => any;
|
|
13
13
|
duplicate: (id: string) => any;
|
|
14
14
|
export: (id: string) => any;
|
|
15
15
|
dragStart: (id: string) => any;
|
|
16
16
|
dragEnd: () => any;
|
|
17
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
18
|
onDelete?: ((id: string) => any) | undefined;
|
|
19
19
|
onRename?: ((id: string, title: string) => any) | undefined;
|
|
20
20
|
onDuplicate?: ((id: string) => any) | undefined;
|
|
21
21
|
onExport?: ((id: string) => any) | undefined;
|
|
22
22
|
onDragStart?: ((id: string) => any) | undefined;
|
|
23
23
|
onDragEnd?: (() => any) | undefined;
|
|
24
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
26
26
|
export default _default;
|
|
@@ -9,6 +9,6 @@ type __VLS_Props = {
|
|
|
9
9
|
startConversation?: (groupId?: string | null) => void | Promise<void>;
|
|
10
10
|
loading?: boolean;
|
|
11
11
|
};
|
|
12
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
declare const _default: typeof __VLS_export;
|
|
14
14
|
export default _default;
|
|
@@ -9,6 +9,6 @@ type __VLS_Props = {
|
|
|
9
9
|
startConversation?: (groupId?: string | null) => void | Promise<void>;
|
|
10
10
|
loading?: boolean;
|
|
11
11
|
};
|
|
12
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
declare const _default: typeof __VLS_export;
|
|
14
14
|
export default _default;
|
|
@@ -2,6 +2,6 @@ type __VLS_Props = {
|
|
|
2
2
|
label?: string;
|
|
3
3
|
variant?: 'empty-state';
|
|
4
4
|
};
|
|
5
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
6
6
|
declare const _default: typeof __VLS_export;
|
|
7
7
|
export default _default;
|
|
@@ -2,6 +2,6 @@ type __VLS_Props = {
|
|
|
2
2
|
label?: string;
|
|
3
3
|
variant?: 'empty-state';
|
|
4
4
|
};
|
|
5
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
6
6
|
declare const _default: typeof __VLS_export;
|
|
7
7
|
export default _default;
|
package/dist/runtime/conversations/components/chat-conversation-new-group-popover-content.d.vue.ts
CHANGED
|
@@ -7,17 +7,17 @@ type __VLS_ModelProps = {
|
|
|
7
7
|
modelValue: string;
|
|
8
8
|
};
|
|
9
9
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
10
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
10
|
+
declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps, {
|
|
11
11
|
focusInput: typeof focusInput;
|
|
12
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
13
13
|
"update:modelValue": (value: string) => any;
|
|
14
14
|
} & {
|
|
15
15
|
submit: () => any;
|
|
16
16
|
cancel: () => any;
|
|
17
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
18
|
onSubmit?: (() => any) | undefined;
|
|
19
19
|
onCancel?: (() => any) | undefined;
|
|
20
20
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
21
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const _default: typeof __VLS_export;
|
|
23
23
|
export default _default;
|
package/dist/runtime/conversations/components/chat-conversation-new-group-popover-content.vue.d.ts
CHANGED
|
@@ -7,17 +7,17 @@ type __VLS_ModelProps = {
|
|
|
7
7
|
modelValue: string;
|
|
8
8
|
};
|
|
9
9
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
10
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
10
|
+
declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps, {
|
|
11
11
|
focusInput: typeof focusInput;
|
|
12
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
13
13
|
"update:modelValue": (value: string) => any;
|
|
14
14
|
} & {
|
|
15
15
|
submit: () => any;
|
|
16
16
|
cancel: () => any;
|
|
17
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
18
|
onSubmit?: (() => any) | undefined;
|
|
19
19
|
onCancel?: (() => any) | undefined;
|
|
20
20
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
21
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const _default: typeof __VLS_export;
|
|
23
23
|
export default _default;
|
|
@@ -5,12 +5,12 @@ type __VLS_ModelProps = {
|
|
|
5
5
|
modelValue: string;
|
|
6
6
|
};
|
|
7
7
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
9
9
|
"update:modelValue": (value: string) => any;
|
|
10
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
11
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
13
|
placeholder: string;
|
|
14
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
16
16
|
export default _default;
|
|
@@ -5,12 +5,12 @@ type __VLS_ModelProps = {
|
|
|
5
5
|
modelValue: string;
|
|
6
6
|
};
|
|
7
7
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
9
9
|
"update:modelValue": (value: string) => any;
|
|
10
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
11
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
13
|
placeholder: string;
|
|
14
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
16
16
|
export default _default;
|
|
@@ -1,13 +1,31 @@
|
|
|
1
1
|
type __VLS_ModelProps = {
|
|
2
2
|
modelValue?: boolean;
|
|
3
3
|
};
|
|
4
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5
5
|
"update:modelValue": (value: boolean | undefined) => any;
|
|
6
6
|
} & {
|
|
7
|
-
create: (canvasTools:
|
|
8
|
-
|
|
7
|
+
create: (canvasTools: {
|
|
8
|
+
canvasId: string;
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
variables?: Record<string, {
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
14
|
+
type: "file" | "text";
|
|
15
|
+
}> | undefined;
|
|
16
|
+
}[]) => any;
|
|
17
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
9
18
|
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
10
|
-
onCreate?: ((canvasTools:
|
|
11
|
-
|
|
19
|
+
onCreate?: ((canvasTools: {
|
|
20
|
+
canvasId: string;
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
variables?: Record<string, {
|
|
24
|
+
name: string;
|
|
25
|
+
description: string;
|
|
26
|
+
type: "file" | "text";
|
|
27
|
+
}> | undefined;
|
|
28
|
+
}[]) => any) | undefined;
|
|
29
|
+
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
12
30
|
declare const _default: typeof __VLS_export;
|
|
13
31
|
export default _default;
|
|
@@ -1,13 +1,31 @@
|
|
|
1
1
|
type __VLS_ModelProps = {
|
|
2
2
|
modelValue?: boolean;
|
|
3
3
|
};
|
|
4
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5
5
|
"update:modelValue": (value: boolean | undefined) => any;
|
|
6
6
|
} & {
|
|
7
|
-
create: (canvasTools:
|
|
8
|
-
|
|
7
|
+
create: (canvasTools: {
|
|
8
|
+
canvasId: string;
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
variables?: Record<string, {
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
14
|
+
type: "file" | "text";
|
|
15
|
+
}> | undefined;
|
|
16
|
+
}[]) => any;
|
|
17
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
9
18
|
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
10
|
-
onCreate?: ((canvasTools:
|
|
11
|
-
|
|
19
|
+
onCreate?: ((canvasTools: {
|
|
20
|
+
canvasId: string;
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
variables?: Record<string, {
|
|
24
|
+
name: string;
|
|
25
|
+
description: string;
|
|
26
|
+
type: "file" | "text";
|
|
27
|
+
}> | undefined;
|
|
28
|
+
}[]) => any) | undefined;
|
|
29
|
+
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
12
30
|
declare const _default: typeof __VLS_export;
|
|
13
31
|
export default _default;
|
|
@@ -115,7 +115,64 @@ export declare function useConversationList(options: ConversationListOptions): {
|
|
|
115
115
|
handleDragLeave: (event: DragEvent, groupId: string | null) => void;
|
|
116
116
|
isDropTarget: (groupId: string | null) => boolean;
|
|
117
117
|
getConversationItemProps: (conversation: DeepReadonly<Conversation>) => {
|
|
118
|
-
conversation:
|
|
118
|
+
conversation: {
|
|
119
|
+
readonly id: string;
|
|
120
|
+
readonly workspaceId: string;
|
|
121
|
+
readonly groupId: string | null;
|
|
122
|
+
readonly userId: string;
|
|
123
|
+
readonly title: string;
|
|
124
|
+
readonly threadSessionId: string | null;
|
|
125
|
+
readonly telaAgentId: string | null;
|
|
126
|
+
readonly conversationScope: string | null;
|
|
127
|
+
readonly model: string | null;
|
|
128
|
+
readonly appliedSettingsAt: Date | null;
|
|
129
|
+
readonly appliedSettingsSnapshot: {
|
|
130
|
+
readonly systemMessage: string | null;
|
|
131
|
+
readonly contextFiles: readonly {
|
|
132
|
+
readonly url: string;
|
|
133
|
+
readonly name: string;
|
|
134
|
+
readonly vaultReference?: string | undefined;
|
|
135
|
+
readonly mimeType?: string | undefined;
|
|
136
|
+
}[] | null;
|
|
137
|
+
readonly canvasTools: readonly {
|
|
138
|
+
readonly canvasId: string;
|
|
139
|
+
readonly name: string;
|
|
140
|
+
readonly description: string;
|
|
141
|
+
readonly variables?: {
|
|
142
|
+
readonly [x: string]: {
|
|
143
|
+
readonly name: string;
|
|
144
|
+
readonly description: string;
|
|
145
|
+
readonly type: "file" | "text";
|
|
146
|
+
};
|
|
147
|
+
} | undefined;
|
|
148
|
+
}[] | null;
|
|
149
|
+
readonly knowledgeSources: readonly {
|
|
150
|
+
readonly type: "workstation";
|
|
151
|
+
readonly id: string;
|
|
152
|
+
readonly name: string;
|
|
153
|
+
readonly projectId: string;
|
|
154
|
+
readonly description?: string | undefined;
|
|
155
|
+
readonly taskCount?: number | undefined;
|
|
156
|
+
}[] | null;
|
|
157
|
+
readonly externalSkills: readonly {
|
|
158
|
+
readonly ref: string;
|
|
159
|
+
readonly name: string;
|
|
160
|
+
readonly description: string;
|
|
161
|
+
readonly runtime: string;
|
|
162
|
+
readonly allowedTools: readonly string[];
|
|
163
|
+
readonly isPublic: boolean;
|
|
164
|
+
readonly addedBy: {
|
|
165
|
+
readonly userId: string;
|
|
166
|
+
readonly username: string;
|
|
167
|
+
};
|
|
168
|
+
readonly addedAt: string;
|
|
169
|
+
}[] | null;
|
|
170
|
+
readonly updatedAt: string | Date;
|
|
171
|
+
} | null;
|
|
172
|
+
readonly createdBy: string | null;
|
|
173
|
+
readonly createdAt: Date;
|
|
174
|
+
readonly updatedAt: Date;
|
|
175
|
+
};
|
|
119
176
|
active: boolean;
|
|
120
177
|
draggable: boolean;
|
|
121
178
|
userImage: string | undefined;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { DeepReadonly } from 'vue';
|
|
2
2
|
import type { Conversation, ConversationWithMessages } from '../../types/schemas/chat/conversations.js';
|
|
3
|
-
import type { ChatModel } from '../../types/schemas/chat/models.js';
|
|
4
3
|
export declare function mergeFetchedConversations(fetchedConversations: Conversation[], localConversations: readonly Conversation[], deletedConversationIds?: readonly string[], locallyMutatedConversationIds?: readonly string[]): Conversation[];
|
|
5
4
|
export declare function useConversations(): {
|
|
6
5
|
conversations: any;
|
|
@@ -9,9 +8,7 @@ export declare function useConversations(): {
|
|
|
9
8
|
fetchConversations: (options?: {
|
|
10
9
|
force?: boolean;
|
|
11
10
|
}) => Promise<void>;
|
|
12
|
-
createConversation: (
|
|
13
|
-
model?: ChatModel | null;
|
|
14
|
-
}) => Promise<Conversation | null>;
|
|
11
|
+
createConversation: () => Promise<Conversation | null>;
|
|
15
12
|
deleteConversation: (id: string) => Promise<boolean>;
|
|
16
13
|
renameConversation: (id: string, title: string) => Promise<boolean>;
|
|
17
14
|
moveConversationToGroup: (id: string, groupId: string | null) => Promise<boolean>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useChatAuth } from "#chat-auth";
|
|
2
2
|
import * as Sentry from "@sentry/nuxt";
|
|
3
|
-
import { defaultChatModel } from "../../types/schemas/chat/models.js";
|
|
4
3
|
import { resolveChatStateScope } from "../scope.js";
|
|
5
4
|
import { useChatApi } from "../../shared/composables/chat-api.js";
|
|
6
5
|
import { useEmbedConfig } from "../../embed/composables/embed-config.js";
|
|
@@ -73,7 +72,6 @@ export function useConversations() {
|
|
|
73
72
|
"conversation-creator-filter",
|
|
74
73
|
() => embedConfig?.defaultConversationCreatorFilter?.value ?? "all"
|
|
75
74
|
);
|
|
76
|
-
const isTelaAgentMode = computed(() => !!embedConfig?.telaAgentId.value);
|
|
77
75
|
const runtimeScope = computed(() => resolveChatStateScope(
|
|
78
76
|
embedConfig?.workspaceId.value || activeOrganization.value?.id,
|
|
79
77
|
embedConfig?.telaAgentId.value,
|
|
@@ -293,7 +291,7 @@ export function useConversations() {
|
|
|
293
291
|
setBucketValue(loadingBuckets, requestScope, false);
|
|
294
292
|
}
|
|
295
293
|
};
|
|
296
|
-
const createConversation = async (
|
|
294
|
+
const createConversation = async () => {
|
|
297
295
|
error.value = null;
|
|
298
296
|
const requestRuntimeScope = runtimeScope.value;
|
|
299
297
|
const metadataSnapshot = snapshotConversationMetadata(requestRuntimeScope);
|
|
@@ -305,7 +303,7 @@ export function useConversations() {
|
|
|
305
303
|
userId: authUser.value?.id ?? "",
|
|
306
304
|
title: "Nova conversa",
|
|
307
305
|
threadSessionId: null,
|
|
308
|
-
model:
|
|
306
|
+
model: null,
|
|
309
307
|
appliedSettingsAt: null,
|
|
310
308
|
appliedSettingsSnapshot: null,
|
|
311
309
|
telaAgentId: embedConfig?.telaAgentId.value ?? null,
|
|
@@ -320,8 +318,7 @@ export function useConversations() {
|
|
|
320
318
|
const conversation = await $fetch(
|
|
321
319
|
chatApi.path("/conversations"),
|
|
322
320
|
chatApi.withChatHeaders({
|
|
323
|
-
method: "POST"
|
|
324
|
-
body: !isTelaAgentMode.value && options?.model ? { model: options.model } : void 0
|
|
321
|
+
method: "POST"
|
|
325
322
|
})
|
|
326
323
|
);
|
|
327
324
|
upsertConversationInLoadedBuckets(conversation, requestRuntimeScope, optimisticConversation.id);
|
|
@@ -8,16 +8,16 @@ type __VLS_Props = {
|
|
|
8
8
|
saving?: boolean;
|
|
9
9
|
showCredentialsTab?: boolean;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
|
+
declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
|
|
12
12
|
save: (payload: ChatConfigurationSavePayload) => any;
|
|
13
13
|
"update:open": (value: boolean) => any;
|
|
14
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
15
|
onSave?: ((payload: ChatConfigurationSavePayload) => any) | undefined;
|
|
16
16
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
saving: boolean;
|
|
19
19
|
initialTab: ChatConfigurationTab;
|
|
20
20
|
showCredentialsTab: boolean;
|
|
21
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const _default: typeof __VLS_export;
|
|
23
23
|
export default _default;
|