@meistrari/chat-nuxt 3.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.
Files changed (201) hide show
  1. package/dist/module.d.mts +2 -1
  2. package/dist/module.json +1 -1
  3. package/dist/runtime/conversations/components/chat-conversation-creator-filter.d.vue.ts +1 -1
  4. package/dist/runtime/conversations/components/chat-conversation-creator-filter.vue.d.ts +1 -1
  5. package/dist/runtime/conversations/components/chat-conversation-item.d.vue.ts +3 -3
  6. package/dist/runtime/conversations/components/chat-conversation-item.vue.d.ts +3 -3
  7. package/dist/runtime/conversations/components/chat-conversation-list.d.vue.ts +1 -1
  8. package/dist/runtime/conversations/components/chat-conversation-list.vue.d.ts +1 -1
  9. package/dist/runtime/conversations/components/chat-conversation-new-group-button.d.vue.ts +1 -1
  10. package/dist/runtime/conversations/components/chat-conversation-new-group-button.vue.d.ts +1 -1
  11. package/dist/runtime/conversations/components/chat-conversation-new-group-popover-content.d.vue.ts +4 -4
  12. package/dist/runtime/conversations/components/chat-conversation-new-group-popover-content.vue.d.ts +4 -4
  13. package/dist/runtime/conversations/components/chat-conversation-search.d.vue.ts +3 -3
  14. package/dist/runtime/conversations/components/chat-conversation-search.vue.d.ts +3 -3
  15. package/dist/runtime/conversations/components/chat-new-conversation-modal.d.vue.ts +23 -5
  16. package/dist/runtime/conversations/components/chat-new-conversation-modal.vue.d.ts +23 -5
  17. package/dist/runtime/conversations/composables/conversation-list.d.ts +58 -1
  18. package/dist/runtime/embed/components/chat-configuration-modal.d.vue.ts +3 -3
  19. package/dist/runtime/embed/components/chat-configuration-modal.vue +59 -176
  20. package/dist/runtime/embed/components/chat-configuration-modal.vue.d.ts +3 -3
  21. package/dist/runtime/embed/components/chat-embed-inner.d.vue.ts +3 -3
  22. package/dist/runtime/embed/components/chat-embed-inner.vue.d.ts +3 -3
  23. package/dist/runtime/embed/components/chat-embed.d.vue.ts +3 -3
  24. package/dist/runtime/embed/components/chat-embed.vue.d.ts +3 -3
  25. package/dist/runtime/embed/components/chat-topbar.d.vue.ts +5 -5
  26. package/dist/runtime/embed/components/chat-topbar.vue.d.ts +5 -5
  27. package/dist/runtime/embed/components/configuration/chat-configuration-agent-tab.d.vue.ts +13 -0
  28. package/dist/runtime/embed/components/configuration/chat-configuration-agent-tab.vue +167 -0
  29. package/dist/runtime/embed/components/configuration/chat-configuration-agent-tab.vue.d.ts +13 -0
  30. package/dist/runtime/embed/components/configuration/chat-configuration-credentials-tab.d.vue.ts +3 -3
  31. package/dist/runtime/embed/components/configuration/chat-configuration-credentials-tab.vue.d.ts +3 -3
  32. package/dist/runtime/embed/components/configuration/chat-configuration-knowledge-sources-tab.d.vue.ts +5 -5
  33. package/dist/runtime/embed/components/configuration/chat-configuration-knowledge-sources-tab.vue.d.ts +5 -5
  34. package/dist/runtime/embed/components/configuration/chat-configuration-mobile-shell.d.vue.ts +3 -3
  35. package/dist/runtime/embed/components/configuration/chat-configuration-mobile-shell.vue.d.ts +3 -3
  36. package/dist/runtime/embed/components/mobile/chat-mobile-bottom-sheet.d.vue.ts +3 -3
  37. package/dist/runtime/embed/components/mobile/chat-mobile-bottom-sheet.vue.d.ts +3 -3
  38. package/dist/runtime/embed/components/mobile/chat-mobile-drawer.d.vue.ts +3 -3
  39. package/dist/runtime/embed/components/mobile/chat-mobile-drawer.vue.d.ts +3 -3
  40. package/dist/runtime/embed/components/mobile/chat-mobile-file-preview.d.vue.ts +3 -3
  41. package/dist/runtime/embed/components/mobile/chat-mobile-file-preview.vue.d.ts +3 -3
  42. package/dist/runtime/embed/components/mobile/chat-mobile-files-view.d.vue.ts +3 -3
  43. package/dist/runtime/embed/components/mobile/chat-mobile-files-view.vue.d.ts +3 -3
  44. package/dist/runtime/embed/components/mobile/chat-mobile-header.d.vue.ts +5 -5
  45. package/dist/runtime/embed/components/mobile/chat-mobile-header.vue.d.ts +5 -5
  46. package/dist/runtime/embed/components/mobile/chat-mobile-home-header.d.vue.ts +3 -3
  47. package/dist/runtime/embed/components/mobile/chat-mobile-home-header.vue.d.ts +3 -3
  48. package/dist/runtime/embed/components/mobile/chat-mobile-home-recents.d.vue.ts +3 -3
  49. package/dist/runtime/embed/components/mobile/chat-mobile-home-recents.vue.d.ts +3 -3
  50. package/dist/runtime/embed/components/mobile/chat-mobile-home-suggestions.d.vue.ts +3 -3
  51. package/dist/runtime/embed/components/mobile/chat-mobile-home-suggestions.vue.d.ts +3 -3
  52. package/dist/runtime/embed/components/mobile/chat-mobile-info-bubble.d.vue.ts +1 -1
  53. package/dist/runtime/embed/components/mobile/chat-mobile-info-bubble.vue.d.ts +1 -1
  54. package/dist/runtime/embed/components/mobile/chat-mobile-outdated-settings-sheet.d.vue.ts +3 -3
  55. package/dist/runtime/embed/components/mobile/chat-mobile-outdated-settings-sheet.vue.d.ts +3 -3
  56. package/dist/runtime/embed/components/mobile/chat-mobile-shell.d.vue.ts +41 -9
  57. package/dist/runtime/embed/components/mobile/chat-mobile-shell.vue.d.ts +41 -9
  58. package/dist/runtime/embed/components/mobile/chat-mobile-usage-view.d.vue.ts +1 -1
  59. package/dist/runtime/embed/components/mobile/chat-mobile-usage-view.vue.d.ts +1 -1
  60. package/dist/runtime/embed/components/mobile/chat-mobile-workspace-sheet.d.vue.ts +3 -3
  61. package/dist/runtime/embed/components/mobile/chat-mobile-workspace-sheet.vue.d.ts +3 -3
  62. package/dist/runtime/embed/components/powered-by-tela.d.vue.ts +1 -1
  63. package/dist/runtime/embed/components/powered-by-tela.vue.d.ts +1 -1
  64. package/dist/runtime/files/components/audio-preview.d.vue.ts +3 -3
  65. package/dist/runtime/files/components/audio-preview.vue.d.ts +3 -3
  66. package/dist/runtime/files/components/chat-file-preview.d.vue.ts +1 -1
  67. package/dist/runtime/files/components/chat-file-preview.vue.d.ts +1 -1
  68. package/dist/runtime/files/components/chat-files-view.d.vue.ts +1 -1
  69. package/dist/runtime/files/components/chat-files-view.vue.d.ts +1 -1
  70. package/dist/runtime/files/components/chat-vault-link.d.vue.ts +1 -1
  71. package/dist/runtime/files/components/chat-vault-link.vue.d.ts +1 -1
  72. package/dist/runtime/files/components/conversation-files-panel.d.vue.ts +1 -1
  73. package/dist/runtime/files/components/conversation-files-panel.vue.d.ts +1 -1
  74. package/dist/runtime/files/components/csv-preview.d.vue.ts +3 -3
  75. package/dist/runtime/files/components/csv-preview.vue.d.ts +3 -3
  76. package/dist/runtime/files/components/file-preview-panel.d.vue.ts +1 -1
  77. package/dist/runtime/files/components/file-preview-panel.vue.d.ts +1 -1
  78. package/dist/runtime/files/components/file-uploader.d.vue.ts +3 -3
  79. package/dist/runtime/files/components/file-uploader.vue.d.ts +3 -3
  80. package/dist/runtime/files/components/image-preview.d.vue.ts +3 -3
  81. package/dist/runtime/files/components/image-preview.vue.d.ts +3 -3
  82. package/dist/runtime/files/components/pdf-preview.client.d.vue.ts +3 -3
  83. package/dist/runtime/files/components/pdf-preview.client.vue.d.ts +3 -3
  84. package/dist/runtime/files/components/pdf-viewer.client.d.vue.ts +1 -1
  85. package/dist/runtime/files/components/pdf-viewer.client.vue.d.ts +1 -1
  86. package/dist/runtime/files/components/text-preview.d.vue.ts +3 -3
  87. package/dist/runtime/files/components/text-preview.vue.d.ts +3 -3
  88. package/dist/runtime/files/components/video-preview.d.vue.ts +3 -3
  89. package/dist/runtime/files/components/video-preview.vue.d.ts +3 -3
  90. package/dist/runtime/files/composables/pdf.d.ts +248 -27
  91. package/dist/runtime/files/file-limits.d.ts +2 -0
  92. package/dist/runtime/files/file-limits.js +2 -0
  93. package/dist/runtime/messages/components/chat-canvas-selector-modal.d.vue.ts +23 -5
  94. package/dist/runtime/messages/components/chat-canvas-selector-modal.vue.d.ts +23 -5
  95. package/dist/runtime/messages/components/chat-context-config.d.vue.ts +52 -10
  96. package/dist/runtime/messages/components/chat-context-config.vue +2 -2
  97. package/dist/runtime/messages/components/chat-context-config.vue.d.ts +52 -10
  98. package/dist/runtime/messages/components/chat-mention-dropdown.d.vue.ts +27 -5
  99. package/dist/runtime/messages/components/chat-mention-dropdown.vue.d.ts +27 -5
  100. package/dist/runtime/messages/components/chat-message-bubble.d.vue.ts +3 -3
  101. package/dist/runtime/messages/components/chat-message-bubble.vue.d.ts +3 -3
  102. package/dist/runtime/messages/components/chat-message-feedback.d.vue.ts +1 -1
  103. package/dist/runtime/messages/components/chat-message-feedback.vue.d.ts +1 -1
  104. package/dist/runtime/messages/components/chat-message-input.d.vue.ts +38 -6
  105. package/dist/runtime/messages/components/chat-message-input.vue +1 -1
  106. package/dist/runtime/messages/components/chat-message-input.vue.d.ts +38 -6
  107. package/dist/runtime/messages/components/chat-message-list.d.vue.ts +3 -3
  108. package/dist/runtime/messages/components/chat-message-list.vue.d.ts +3 -3
  109. package/dist/runtime/messages/components/chat-workstation-selector-modal.d.vue.ts +19 -5
  110. package/dist/runtime/messages/components/chat-workstation-selector-modal.vue.d.ts +19 -5
  111. package/dist/runtime/messages/components/reasoning/chat-reasoning-message.d.vue.ts +1 -1
  112. package/dist/runtime/messages/components/reasoning/chat-reasoning-message.vue.d.ts +1 -1
  113. package/dist/runtime/messages/components/reasoning/chat-reasoning-step-item.d.vue.ts +4 -4
  114. package/dist/runtime/messages/components/reasoning/chat-reasoning-step-item.vue.d.ts +4 -4
  115. package/dist/runtime/messages/components/reasoning/chat-reasoning-steps.d.vue.ts +2 -2
  116. package/dist/runtime/messages/components/reasoning/chat-reasoning-steps.vue.d.ts +2 -2
  117. package/dist/runtime/messages/components/reasoning/chat-reasoning-thought.d.vue.ts +1 -1
  118. package/dist/runtime/messages/components/reasoning/chat-reasoning-thought.vue.d.ts +1 -1
  119. package/dist/runtime/messages/components/reasoning/chat-thinking-indicator.d.vue.ts +1 -1
  120. package/dist/runtime/messages/components/reasoning/chat-thinking-indicator.vue.d.ts +1 -1
  121. package/dist/runtime/messages/components/widgets/chat-bash-widget.d.vue.ts +1 -1
  122. package/dist/runtime/messages/components/widgets/chat-bash-widget.vue.d.ts +1 -1
  123. package/dist/runtime/messages/components/widgets/chat-doc-sdk-widget.d.vue.ts +1 -1
  124. package/dist/runtime/messages/components/widgets/chat-doc-sdk-widget.vue.d.ts +1 -1
  125. package/dist/runtime/messages/components/widgets/chat-generic-tool-widget.d.vue.ts +1 -1
  126. package/dist/runtime/messages/components/widgets/chat-generic-tool-widget.vue.d.ts +1 -1
  127. package/dist/runtime/messages/components/widgets/chat-grep-widget.d.vue.ts +1 -1
  128. package/dist/runtime/messages/components/widgets/chat-grep-widget.vue.d.ts +1 -1
  129. package/dist/runtime/messages/components/widgets/chat-read-widget.d.vue.ts +1 -1
  130. package/dist/runtime/messages/components/widgets/chat-read-widget.vue.d.ts +1 -1
  131. package/dist/runtime/messages/components/widgets/chat-tela-skill-widget.d.vue.ts +1 -1
  132. package/dist/runtime/messages/components/widgets/chat-tela-skill-widget.vue.d.ts +1 -1
  133. package/dist/runtime/messages/components/widgets/chat-thinking-widget.d.vue.ts +1 -1
  134. package/dist/runtime/messages/components/widgets/chat-thinking-widget.vue.d.ts +1 -1
  135. package/dist/runtime/messages/components/widgets/chat-web-search-widget.d.vue.ts +1 -1
  136. package/dist/runtime/messages/components/widgets/chat-web-search-widget.vue.d.ts +1 -1
  137. package/dist/runtime/messages/components/widgets/chat-workstation-query-widget.d.vue.ts +1 -1
  138. package/dist/runtime/messages/components/widgets/chat-workstation-query-widget.vue.d.ts +1 -1
  139. package/dist/runtime/messages/components/widgets/chat-write-widget.d.vue.ts +1 -1
  140. package/dist/runtime/messages/components/widgets/chat-write-widget.vue.d.ts +1 -1
  141. package/dist/runtime/messages/composables/chat.js +4 -3
  142. package/dist/runtime/rendering/components/app-markdown-render.d.vue.ts +2 -2
  143. package/dist/runtime/rendering/components/app-markdown-render.vue.d.ts +2 -2
  144. package/dist/runtime/rendering/components/renderers/artifact-display.d.vue.ts +3 -3
  145. package/dist/runtime/rendering/components/renderers/artifact-display.vue.d.ts +3 -3
  146. package/dist/runtime/rendering/components/renderers/audio-renderer.d.vue.ts +1 -1
  147. package/dist/runtime/rendering/components/renderers/audio-renderer.vue.d.ts +1 -1
  148. package/dist/runtime/rendering/components/renderers/csv-renderer.d.vue.ts +1 -1
  149. package/dist/runtime/rendering/components/renderers/csv-renderer.vue.d.ts +1 -1
  150. package/dist/runtime/rendering/components/renderers/image-renderer.d.vue.ts +1 -1
  151. package/dist/runtime/rendering/components/renderers/image-renderer.vue.d.ts +1 -1
  152. package/dist/runtime/rendering/components/renderers/markdown-renderer.d.vue.ts +1 -1
  153. package/dist/runtime/rendering/components/renderers/markdown-renderer.vue.d.ts +1 -1
  154. package/dist/runtime/rendering/components/renderers/mermaid-diagram.d.vue.ts +1 -1
  155. package/dist/runtime/rendering/components/renderers/mermaid-diagram.vue.d.ts +1 -1
  156. package/dist/runtime/rendering/components/renderers/text-renderer.d.vue.ts +1 -1
  157. package/dist/runtime/rendering/components/renderers/text-renderer.vue.d.ts +1 -1
  158. package/dist/runtime/rendering/components/renderers/video-renderer.d.vue.ts +1 -1
  159. package/dist/runtime/rendering/components/renderers/video-renderer.vue.d.ts +1 -1
  160. package/dist/runtime/shared/chat-api-error.d.ts +1 -0
  161. package/dist/runtime/shared/chat-api-error.js +5 -0
  162. package/dist/runtime/shared/components/app-status-toast.d.vue.ts +1 -1
  163. package/dist/runtime/shared/components/app-status-toast.vue.d.ts +1 -1
  164. package/dist/runtime/shared/components/icons/anthropic.d.vue.ts +1 -1
  165. package/dist/runtime/shared/components/icons/anthropic.vue.d.ts +1 -1
  166. package/dist/runtime/shared/components/icons/tela-chat.d.vue.ts +1 -1
  167. package/dist/runtime/shared/components/icons/tela-chat.vue.d.ts +1 -1
  168. package/dist/runtime/shared/components/icons/tela-wordmark.d.vue.ts +1 -1
  169. package/dist/runtime/shared/components/icons/tela-wordmark.vue.d.ts +1 -1
  170. package/dist/runtime/types/schemas/chat/workspace-agent.d.ts +33 -0
  171. package/dist/runtime/types/schemas/chat/workspace-agent.js +12 -0
  172. package/dist/runtime/types/schemas/index.d.ts +1 -0
  173. package/dist/runtime/types/schemas/index.js +1 -0
  174. package/dist/runtime/types/workspace-settings.d.ts +1 -1
  175. package/dist/runtime/usage/components/chat-usage-view.d.vue.ts +1 -1
  176. package/dist/runtime/usage/components/chat-usage-view.vue.d.ts +1 -1
  177. package/dist/runtime/workspace/composables/github-skills-callback.js +1 -1
  178. package/dist/runtime/workspace/composables/workspace-agent.d.ts +8 -0
  179. package/dist/runtime/workspace/composables/workspace-agent.js +89 -0
  180. package/dist/runtime/workspace/composables/workspace-settings.d.ts +42 -1
  181. package/package.json +15 -15
  182. package/dist/runtime/embed/components/configuration/chat-configuration-context-files-tab.d.vue.ts +0 -22
  183. package/dist/runtime/embed/components/configuration/chat-configuration-context-files-tab.vue +0 -133
  184. package/dist/runtime/embed/components/configuration/chat-configuration-context-files-tab.vue.d.ts +0 -22
  185. package/dist/runtime/embed/components/configuration/chat-configuration-external-skills-tab.d.vue.ts +0 -32
  186. package/dist/runtime/embed/components/configuration/chat-configuration-external-skills-tab.vue +0 -222
  187. package/dist/runtime/embed/components/configuration/chat-configuration-external-skills-tab.vue.d.ts +0 -32
  188. package/dist/runtime/embed/components/configuration/chat-configuration-personalization-tab.d.vue.ts +0 -10
  189. package/dist/runtime/embed/components/configuration/chat-configuration-personalization-tab.vue +0 -37
  190. package/dist/runtime/embed/components/configuration/chat-configuration-personalization-tab.vue.d.ts +0 -10
  191. package/dist/runtime/embed/components/configuration/chat-configuration-tela-tools-tab.d.vue.ts +0 -20
  192. package/dist/runtime/embed/components/configuration/chat-configuration-tela-tools-tab.vue +0 -146
  193. package/dist/runtime/embed/components/configuration/chat-configuration-tela-tools-tab.vue.d.ts +0 -20
  194. package/dist/runtime/workspace/composables/workspace-context-files.d.ts +0 -19
  195. package/dist/runtime/workspace/composables/workspace-context-files.js +0 -83
  196. package/dist/runtime/workspace/composables/workspace-external-skills.d.ts +0 -22
  197. package/dist/runtime/workspace/composables/workspace-external-skills.js +0 -137
  198. package/dist/runtime/workspace/composables/workspace-personalization.d.ts +0 -6
  199. package/dist/runtime/workspace/composables/workspace-personalization.js +0 -18
  200. package/dist/runtime/workspace/composables/workspace-tela-tools.d.ts +0 -13
  201. package/dist/runtime/workspace/composables/workspace-tela-tools.js +0 -91
@@ -2,25 +2,20 @@
2
2
  import { useBreakpoints, useMagicKeys } from "@vueuse/core";
3
3
  import { CHAT_MOBILE_BREAKPOINT } from "../../shared/breakpoints";
4
4
  import ChatConfigurationMobileShell from "./configuration/chat-configuration-mobile-shell.vue";
5
- import { useFileUpload } from "../../files/composables/file-upload";
6
5
  import { useKnowledgeSources } from "../../workspace/composables/knowledge-sources";
7
6
  import { useStatusToast } from "../../shared/composables/status-toast";
8
7
  import { useTela } from "../../shared/composables/tela";
9
- import { useWorkspaceContextFiles } from "../../workspace/composables/workspace-context-files";
10
- import { useWorkspaceExternalSkills } from "../../workspace/composables/workspace-external-skills";
8
+ import { useWorkspaceAgent } from "../../workspace/composables/workspace-agent";
11
9
  import { useWorkspaceKnowledgeSources } from "../../workspace/composables/workspace-knowledge-sources";
12
- import { useWorkspacePersonalization } from "../../workspace/composables/workspace-personalization";
13
10
  import { useWorkspaceSettings } from "../../workspace/composables/workspace-settings";
14
- import { useWorkspaceTelaTools } from "../../workspace/composables/workspace-tela-tools";
15
11
  const props = defineProps({
16
12
  open: { type: Boolean, required: true },
17
13
  settings: { type: null, required: false },
18
- initialTab: { type: String, required: false, default: "personalization" },
14
+ initialTab: { type: String, required: false, default: "agent" },
19
15
  saving: { type: Boolean, required: false, default: false },
20
16
  showCredentialsTab: { type: Boolean, required: false, default: false }
21
17
  });
22
18
  const emit = defineEmits(["update:open", "save"]);
23
- const { uploadFiles, uploading } = useFileUpload();
24
19
  const { canvas, projects, workstations, loadingWorkstations } = useTela();
25
20
  const { setKnowledgeSources } = useKnowledgeSources();
26
21
  const statusToast = useStatusToast();
@@ -33,6 +28,7 @@ const {
33
28
  fetchSettings,
34
29
  updateSettings
35
30
  } = useWorkspaceSettings();
31
+ const workspaceAgent = useWorkspaceAgent();
36
32
  const searchQuery = ref("");
37
33
  const activeTab = ref(props.initialTab);
38
34
  const activeMobileTab = ref(null);
@@ -40,29 +36,15 @@ const showDiscardConfirm = ref(false);
40
36
  const loadingInitialSettings = ref(false);
41
37
  const hasSettingsOverride = computed(() => props.settings !== void 0);
42
38
  const mutableSettings = computed(() => hasSettingsOverride.value ? props.settings : workspaceSettings.value);
43
- const currentSystemMessage = computed(() => mutableSettings.value?.systemMessage ?? null);
44
- const currentContextFiles = computed(() => mutableSettings.value?.contextFiles ?? null);
45
- const currentCanvasTools = computed(() => mutableSettings.value?.canvasTools ?? null);
46
39
  const currentKnowledgeSources = computed(() => mutableSettings.value?.knowledgeSources ?? null);
47
- const currentExternalSkills = computed(() => mutableSettings.value?.externalSkills ?? null);
48
- const personalization = useWorkspacePersonalization(currentSystemMessage);
49
- const telaTools = useWorkspaceTelaTools(canvas, projects, searchQuery, currentCanvasTools);
50
40
  const knowledgeSources = useWorkspaceKnowledgeSources(workstations, canvas, projects, searchQuery, currentKnowledgeSources);
51
- const contextFiles = useWorkspaceContextFiles(searchQuery, currentContextFiles);
52
- const externalSkills = useWorkspaceExternalSkills(currentExternalSkills, searchQuery);
53
41
  const settingsTabs = computed(() => [
54
- { value: "personalization", label: "Personaliza\xE7\xE3o", icon: "i-ph-sliders" },
55
- { value: "context-files", label: "Arquivos de contexto", icon: "i-ph-file-text" },
42
+ { value: "agent", label: "Agente", icon: "i-ph-robot" },
56
43
  { value: "knowledge-sources", label: "Tela workstations", icon: "i-ph-database" },
57
- { value: "tela-tools", label: "Skills Tela", icon: "i-ph-puzzle-piece" },
58
- { value: "external-skills", label: "Skills Externas", icon: "i-ph-wrench" },
59
44
  ...props.showCredentialsTab ? [{ value: "credentials", label: "Credenciais", icon: "i-ph-password-bold" }] : []
60
45
  ]);
61
- const hasChanges = computed(
62
- () => personalization.hasChanges.value || contextFiles.hasChanges.value || telaTools.hasChanges.value || knowledgeSources.hasChanges.value || externalSkills.hasChanges.value
63
- );
64
- const isBusy = computed(() => props.saving || uploading.value || !hasSettingsOverride.value && workspaceSettingsLoading.value);
65
- const gitHubButtonText = computed(() => externalSkills.getGitHubButtonText());
46
+ const hasChanges = computed(() => knowledgeSources.hasChanges.value);
47
+ const isBusy = computed(() => props.saving || !hasSettingsOverride.value && workspaceSettingsLoading.value);
66
48
  watch(() => escape?.value, (pressed) => {
67
49
  if (pressed && props.open && !showDiscardConfirm.value)
68
50
  handleClose();
@@ -72,11 +54,12 @@ watch(() => props.open, (isOpen) => {
72
54
  searchQuery.value = "";
73
55
  activateTab(props.initialTab);
74
56
  activeMobileTab.value = null;
57
+ void loadAgentStatus();
75
58
  if (!hasSettingsOverride.value && !mutableSettings.value) {
76
59
  void loadSettings();
77
60
  return;
78
61
  }
79
- initializeConfigurationState();
62
+ knowledgeSources.initialize();
80
63
  } else {
81
64
  loadingInitialSettings.value = false;
82
65
  }
@@ -85,27 +68,14 @@ watch(() => props.initialTab, (tab) => {
85
68
  if (props.open)
86
69
  activateTab(tab);
87
70
  });
88
- watch(currentSystemMessage, () => {
89
- if (props.open)
90
- personalization.initialize();
91
- });
92
71
  watch(mutableSettings, (settings, previousSettings) => {
93
72
  if (props.open && hasSettingsOverride.value && settings && !previousSettings)
94
- initializeConfigurationState();
73
+ knowledgeSources.initialize();
95
74
  });
96
- function initializeConfigurationState() {
97
- personalization.initialize();
98
- telaTools.initialize();
99
- knowledgeSources.initialize();
100
- contextFiles.initialize();
101
- externalSkills.initialize();
102
- }
103
75
  function activateTab(tab) {
104
76
  const isVisible = settingsTabs.value.some((t) => t.value === tab);
105
- activeTab.value = isVisible ? tab : "personalization";
77
+ activeTab.value = isVisible ? tab : "agent";
106
78
  searchQuery.value = "";
107
- if (activeTab.value === "external-skills")
108
- void externalSkills.fetchGitHubConnection();
109
79
  }
110
80
  function activateMobileTab(tab) {
111
81
  activateTab(tab);
@@ -115,7 +85,7 @@ async function loadSettings() {
115
85
  loadingInitialSettings.value = true;
116
86
  try {
117
87
  await fetchSettings();
118
- initializeConfigurationState();
88
+ knowledgeSources.initialize();
119
89
  } catch (error) {
120
90
  console.error("Failed to load workspace settings:", error);
121
91
  statusToast.update({
@@ -126,44 +96,47 @@ async function loadSettings() {
126
96
  loadingInitialSettings.value = false;
127
97
  }
128
98
  }
99
+ async function loadAgentStatus() {
100
+ try {
101
+ await workspaceAgent.fetchStatus();
102
+ } catch (error) {
103
+ console.error("Failed to load workspace agent status:", error);
104
+ statusToast.update({
105
+ text: "Erro ao carregar o status do agente",
106
+ icon: "i-ph-warning"
107
+ });
108
+ }
109
+ }
110
+ async function handleCreateAgent() {
111
+ try {
112
+ const status = await workspaceAgent.createAgent();
113
+ if (!status)
114
+ return;
115
+ statusToast.update({
116
+ text: "Agente criado no Tela",
117
+ icon: "i-ph-check"
118
+ });
119
+ if (status.telaAgentUrl)
120
+ window.open(status.telaAgentUrl, "_blank", "noopener");
121
+ } catch (error) {
122
+ console.error("Failed to create workspace agent:", error);
123
+ statusToast.update({
124
+ text: "Erro ao criar o agente no Tela",
125
+ icon: "i-ph-warning"
126
+ });
127
+ }
128
+ }
129
129
  async function handleSave() {
130
130
  if (!hasChanges.value || isBusy.value)
131
131
  return;
132
132
  try {
133
- const updates = {};
134
- if (personalization.hasChanges.value)
135
- updates.systemMessage = personalization.getSystemMessage();
136
- if (contextFiles.hasChanges.value) {
137
- const pendingFilesList = contextFiles.getPendingFiles();
138
- const uploadedFiles = pendingFilesList.length > 0 ? await uploadFiles(pendingFilesList) : [];
139
- const newContextFiles = [
140
- ...contextFiles.getKeptContextFiles(),
141
- ...uploadedFiles.map((f) => ({ url: f.url, name: f.name, mimeType: f.mimeType }))
142
- ];
143
- updates.contextFiles = newContextFiles.length > 0 ? newContextFiles : null;
144
- }
145
- if (telaTools.hasChanges.value) {
146
- const tools = telaTools.buildCanvasTools();
147
- updates.canvasTools = tools.length > 0 ? tools : null;
148
- }
149
- let pendingKnowledgeSources = null;
150
- if (knowledgeSources.hasChanges.value) {
151
- const sources = knowledgeSources.buildKnowledgeSources();
152
- updates.knowledgeSources = sources.length > 0 ? sources : null;
153
- pendingKnowledgeSources = sources.length > 0 ? sources : null;
154
- }
155
- if (externalSkills.hasChanges.value)
156
- updates.externalSkills = externalSkills.buildExternalSkills();
157
- const shouldUpdateKnowledgeSources = pendingKnowledgeSources !== null || knowledgeSources.hasChanges.value;
158
- const shouldClearContextFiles = contextFiles.hasChanges.value;
159
- const shouldResetExternalSkills = externalSkills.hasChanges.value;
133
+ const sources = knowledgeSources.buildKnowledgeSources();
134
+ const pendingKnowledgeSources = sources.length > 0 ? sources : null;
135
+ const updates = {
136
+ knowledgeSources: pendingKnowledgeSources
137
+ };
160
138
  const onSaved = () => {
161
- if (shouldUpdateKnowledgeSources)
162
- setKnowledgeSources(pendingKnowledgeSources);
163
- if (shouldClearContextFiles)
164
- contextFiles.clearPendingFiles();
165
- if (shouldResetExternalSkills)
166
- externalSkills.initialize();
139
+ setKnowledgeSources(pendingKnowledgeSources);
167
140
  };
168
141
  if (hasSettingsOverride.value) {
169
142
  emit("save", { updates, onSaved });
@@ -224,23 +197,12 @@ function cancelDiscard() {
224
197
  </p>
225
198
  </div>
226
199
 
227
- <ChatConfigurationPersonalizationTab
228
- v-else-if="activeTab === 'personalization'"
229
- v-model:system-message="personalization.localSystemMessage.value"
230
- />
231
-
232
- <ChatConfigurationContextFilesTab
233
- v-else-if="activeTab === 'context-files'"
234
- :search-query="searchQuery"
235
- :filtered-context-files="contextFiles.filteredContextFiles.value"
236
- :filtered-pending-files="contextFiles.filteredPendingFiles.value"
237
- :current-file-count="contextFiles.currentFileCount.value"
238
- :max-files="contextFiles.maxFiles"
239
- :get-file-type="contextFiles.getFileType"
240
- @update:search-query="searchQuery = $event"
241
- @handle-file-select="contextFiles.handleFileSelect"
242
- @remove-pending-file="contextFiles.removePendingFile"
243
- @remove-context-file="contextFiles.removeContextFile"
200
+ <ChatConfigurationAgentTab
201
+ v-else-if="activeTab === 'agent'"
202
+ :status="workspaceAgent.status.value"
203
+ :loading="workspaceAgent.loading.value"
204
+ :creating="workspaceAgent.creating.value"
205
+ @create="handleCreateAgent"
244
206
  />
245
207
 
246
208
  <ChatConfigurationKnowledgeSourcesTab
@@ -255,40 +217,6 @@ function cancelDiscard() {
255
217
  @toggle="knowledgeSources.toggleKnowledgeSource"
256
218
  />
257
219
 
258
- <ChatConfigurationTelaToolsTab
259
- v-else-if="activeTab === 'tela-tools'"
260
- :search-query="searchQuery"
261
- :canvas="canvas"
262
- :filtered-canvas-tools="telaTools.filteredCanvasTools.value"
263
- :selected-tool-ids="telaTools.selectedToolIds.value"
264
- :all-tools-selected="telaTools.allToolsSelected.value"
265
- :get-project-name="telaTools.getProjectName"
266
- @update:search-query="searchQuery = $event"
267
- @toggle-tool="telaTools.toggleCanvasTool"
268
- @toggle-all="telaTools.toggleAllTools"
269
- />
270
-
271
- <ChatConfigurationExternalSkillsTab
272
- v-else-if="activeTab === 'external-skills'"
273
- :search-query="searchQuery"
274
- :displayed-skills="externalSkills.displayedSkills.value"
275
- :filtered-skills="externalSkills.filteredSkills.value"
276
- :has-changes="externalSkills.hasChanges.value"
277
- :is-pending="externalSkills.isPending"
278
- :skill-modal-open="externalSkills.skillModalOpen.value"
279
- :skill-ref-input="externalSkills.skillRefInput.value"
280
- :skill-error="externalSkills.skillError.value"
281
- :discovering-skills="externalSkills.discoveringSkills.value"
282
- :git-hub-button-text="gitHubButtonText"
283
- @update:search-query="searchQuery = $event"
284
- @update:skill-modal-open="externalSkills.skillModalOpen.value = $event"
285
- @update:skill-ref-input="externalSkills.skillRefInput.value = $event"
286
- @remove-skill="externalSkills.removeSkill"
287
- @close-skill-modal="externalSkills.closeSkillModal"
288
- @handle-add-skill-and-close="externalSkills.handleAddSkillAndClose"
289
- @connect-git-hub="externalSkills.connectGitHub"
290
- />
291
-
292
220
  <ChatConfigurationCredentialsTab
293
221
  v-else-if="activeTab === 'credentials' && props.showCredentialsTab"
294
222
  :search-query="searchQuery"
@@ -388,23 +316,12 @@ function cancelDiscard() {
388
316
  </p>
389
317
  </div>
390
318
 
391
- <ChatConfigurationPersonalizationTab
392
- v-else-if="activeTab === 'personalization'"
393
- v-model:system-message="personalization.localSystemMessage.value"
394
- />
395
-
396
- <ChatConfigurationContextFilesTab
397
- v-else-if="activeTab === 'context-files'"
398
- :search-query="searchQuery"
399
- :filtered-context-files="contextFiles.filteredContextFiles.value"
400
- :filtered-pending-files="contextFiles.filteredPendingFiles.value"
401
- :current-file-count="contextFiles.currentFileCount.value"
402
- :max-files="contextFiles.maxFiles"
403
- :get-file-type="contextFiles.getFileType"
404
- @update:search-query="searchQuery = $event"
405
- @handle-file-select="contextFiles.handleFileSelect"
406
- @remove-pending-file="contextFiles.removePendingFile"
407
- @remove-context-file="contextFiles.removeContextFile"
319
+ <ChatConfigurationAgentTab
320
+ v-else-if="activeTab === 'agent'"
321
+ :status="workspaceAgent.status.value"
322
+ :loading="workspaceAgent.loading.value"
323
+ :creating="workspaceAgent.creating.value"
324
+ @create="handleCreateAgent"
408
325
  />
409
326
 
410
327
  <ChatConfigurationKnowledgeSourcesTab
@@ -419,40 +336,6 @@ function cancelDiscard() {
419
336
  @toggle="knowledgeSources.toggleKnowledgeSource"
420
337
  />
421
338
 
422
- <ChatConfigurationTelaToolsTab
423
- v-else-if="activeTab === 'tela-tools'"
424
- :search-query="searchQuery"
425
- :canvas="canvas"
426
- :filtered-canvas-tools="telaTools.filteredCanvasTools.value"
427
- :selected-tool-ids="telaTools.selectedToolIds.value"
428
- :all-tools-selected="telaTools.allToolsSelected.value"
429
- :get-project-name="telaTools.getProjectName"
430
- @update:search-query="searchQuery = $event"
431
- @toggle-tool="telaTools.toggleCanvasTool"
432
- @toggle-all="telaTools.toggleAllTools"
433
- />
434
-
435
- <ChatConfigurationExternalSkillsTab
436
- v-else-if="activeTab === 'external-skills'"
437
- :search-query="searchQuery"
438
- :displayed-skills="externalSkills.displayedSkills.value"
439
- :filtered-skills="externalSkills.filteredSkills.value"
440
- :has-changes="externalSkills.hasChanges.value"
441
- :is-pending="externalSkills.isPending"
442
- :skill-modal-open="externalSkills.skillModalOpen.value"
443
- :skill-ref-input="externalSkills.skillRefInput.value"
444
- :skill-error="externalSkills.skillError.value"
445
- :discovering-skills="externalSkills.discoveringSkills.value"
446
- :git-hub-button-text="gitHubButtonText"
447
- @update:search-query="searchQuery = $event"
448
- @update:skill-modal-open="externalSkills.skillModalOpen.value = $event"
449
- @update:skill-ref-input="externalSkills.skillRefInput.value = $event"
450
- @remove-skill="externalSkills.removeSkill"
451
- @close-skill-modal="externalSkills.closeSkillModal"
452
- @handle-add-skill-and-close="externalSkills.handleAddSkillAndClose"
453
- @connect-git-hub="externalSkills.connectGitHub"
454
- />
455
-
456
339
  <ChatConfigurationCredentialsTab
457
340
  v-else-if="activeTab === 'credentials' && props.showCredentialsTab"
458
341
  :search-query="searchQuery"
@@ -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;
@@ -9,14 +9,14 @@ type __VLS_Props = {
9
9
  user?: EmbedUser | null;
10
10
  features?: Partial<ChatFeatureConfig>;
11
11
  };
12
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
12
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
13
13
  "update:conversationId": (value: string | null) => any;
14
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
15
  "onUpdate:conversationId"?: ((value: string | null) => any) | undefined;
16
16
  }>, {
17
17
  hideSettings: boolean;
18
18
  hideSidebar: boolean;
19
19
  initialConversationId: string | null;
20
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
21
21
  declare const _default: typeof __VLS_export;
22
22
  export default _default;
@@ -9,14 +9,14 @@ type __VLS_Props = {
9
9
  user?: EmbedUser | null;
10
10
  features?: Partial<ChatFeatureConfig>;
11
11
  };
12
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
12
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
13
13
  "update:conversationId": (value: string | null) => any;
14
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
15
  "onUpdate:conversationId"?: ((value: string | null) => any) | undefined;
16
16
  }>, {
17
17
  hideSettings: boolean;
18
18
  hideSidebar: boolean;
19
19
  initialConversationId: string | null;
20
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
21
21
  declare const _default: typeof __VLS_export;
22
22
  export default _default;
@@ -1,13 +1,13 @@
1
1
  import { type ChatActionPayload } from '../../messages/composables/chat-action.js';
2
2
  import { type MessageFeedbackPayload } from '../../messages/composables/chat-feedback.js';
3
- declare const __VLS_export: import("vue").DefineComponent<import("../types.js").DefaultChatEmbedProps | import("../types.js").TelaAgentChatEmbedProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<import("../types.js").DefaultChatEmbedProps | import("../types.js").TelaAgentChatEmbedProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
4
4
  "update:conversationId": (value: string | null) => any;
5
5
  messageFeedback: (payload: MessageFeedbackPayload) => any;
6
6
  action: (payload: ChatActionPayload) => any;
7
- }, string, import("vue").PublicProps, Readonly<import("../types.js").DefaultChatEmbedProps | import("../types.js").TelaAgentChatEmbedProps> & Readonly<{
7
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<import("../types.js").DefaultChatEmbedProps | import("../types.js").TelaAgentChatEmbedProps> & Readonly<{
8
8
  "onUpdate:conversationId"?: ((value: string | null) => any) | undefined;
9
9
  onMessageFeedback?: ((payload: MessageFeedbackPayload) => any) | undefined;
10
10
  onAction?: ((payload: ChatActionPayload) => any) | undefined;
11
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
12
12
  declare const _default: typeof __VLS_export;
13
13
  export default _default;
@@ -1,13 +1,13 @@
1
1
  import { type ChatActionPayload } from '../../messages/composables/chat-action.js';
2
2
  import { type MessageFeedbackPayload } from '../../messages/composables/chat-feedback.js';
3
- declare const __VLS_export: import("vue").DefineComponent<import("../types.js").DefaultChatEmbedProps | import("../types.js").TelaAgentChatEmbedProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<import("../types.js").DefaultChatEmbedProps | import("../types.js").TelaAgentChatEmbedProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
4
4
  "update:conversationId": (value: string | null) => any;
5
5
  messageFeedback: (payload: MessageFeedbackPayload) => any;
6
6
  action: (payload: ChatActionPayload) => any;
7
- }, string, import("vue").PublicProps, Readonly<import("../types.js").DefaultChatEmbedProps | import("../types.js").TelaAgentChatEmbedProps> & Readonly<{
7
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<import("../types.js").DefaultChatEmbedProps | import("../types.js").TelaAgentChatEmbedProps> & Readonly<{
8
8
  "onUpdate:conversationId"?: ((value: string | null) => any) | undefined;
9
9
  onMessageFeedback?: ((payload: MessageFeedbackPayload) => any) | undefined;
10
10
  onAction?: ((payload: ChatActionPayload) => any) | undefined;
11
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
12
12
  declare const _default: typeof __VLS_export;
13
13
  export default _default;
@@ -14,30 +14,30 @@ type __VLS_Props = {
14
14
  showUsageTab?: boolean;
15
15
  showDebugOption?: boolean;
16
16
  };
17
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
17
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
18
18
  delete: () => any;
19
19
  rename: () => any;
20
20
  duplicate: () => any;
21
21
  export: () => any;
22
22
  copyLink: () => any;
23
23
  debug: () => any;
24
- tabChange: (tab: TopbarTab) => any;
24
+ tabChange: (tab: "files" | "usage" | "chat") => any;
25
25
  cancelEditing: () => any;
26
26
  saveTitle: () => any;
27
27
  "update:editTitle": (value: string) => any;
28
28
  "update:isEditing": (value: boolean) => any;
29
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
30
30
  onDelete?: (() => any) | undefined;
31
31
  onRename?: (() => any) | undefined;
32
32
  onDuplicate?: (() => any) | undefined;
33
33
  onExport?: (() => any) | undefined;
34
34
  onCopyLink?: (() => any) | undefined;
35
35
  onDebug?: (() => any) | undefined;
36
- onTabChange?: ((tab: TopbarTab) => any) | undefined;
36
+ onTabChange?: ((tab: "files" | "usage" | "chat") => any) | undefined;
37
37
  onCancelEditing?: (() => any) | undefined;
38
38
  onSaveTitle?: (() => any) | undefined;
39
39
  "onUpdate:editTitle"?: ((value: string) => any) | undefined;
40
40
  "onUpdate:isEditing"?: ((value: boolean) => any) | undefined;
41
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
42
42
  declare const _default: typeof __VLS_export;
43
43
  export default _default;
@@ -14,30 +14,30 @@ type __VLS_Props = {
14
14
  showUsageTab?: boolean;
15
15
  showDebugOption?: boolean;
16
16
  };
17
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
17
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
18
18
  delete: () => any;
19
19
  rename: () => any;
20
20
  duplicate: () => any;
21
21
  export: () => any;
22
22
  copyLink: () => any;
23
23
  debug: () => any;
24
- tabChange: (tab: TopbarTab) => any;
24
+ tabChange: (tab: "files" | "usage" | "chat") => any;
25
25
  cancelEditing: () => any;
26
26
  saveTitle: () => any;
27
27
  "update:editTitle": (value: string) => any;
28
28
  "update:isEditing": (value: boolean) => any;
29
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
30
30
  onDelete?: (() => any) | undefined;
31
31
  onRename?: (() => any) | undefined;
32
32
  onDuplicate?: (() => any) | undefined;
33
33
  onExport?: (() => any) | undefined;
34
34
  onCopyLink?: (() => any) | undefined;
35
35
  onDebug?: (() => any) | undefined;
36
- onTabChange?: ((tab: TopbarTab) => any) | undefined;
36
+ onTabChange?: ((tab: "files" | "usage" | "chat") => any) | undefined;
37
37
  onCancelEditing?: (() => any) | undefined;
38
38
  onSaveTitle?: (() => any) | undefined;
39
39
  "onUpdate:editTitle"?: ((value: string) => any) | undefined;
40
40
  "onUpdate:isEditing"?: ((value: boolean) => any) | undefined;
41
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
42
42
  declare const _default: typeof __VLS_export;
43
43
  export default _default;
@@ -0,0 +1,13 @@
1
+ import type { WorkspaceAgentStatusResponse } from '../../../types/schemas/chat/workspace-agent.js';
2
+ type __VLS_Props = {
3
+ status: WorkspaceAgentStatusResponse | null;
4
+ loading: boolean;
5
+ creating: boolean;
6
+ };
7
+ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
8
+ create: () => any;
9
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onCreate?: (() => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;