@meistrari/chat-nuxt 1.1.2 → 1.2.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 +95 -11
- package/dist/module.d.mts +5 -0
- package/dist/module.json +2 -2
- package/dist/module.mjs +96 -23
- package/dist/runtime/components/chat/conversation-list.d.vue.ts +1 -0
- package/dist/runtime/components/chat/conversation-list.vue +22 -2
- package/dist/runtime/components/chat/conversation-list.vue.d.ts +1 -0
- package/dist/runtime/components/chat/message-list.d.vue.ts +1 -0
- package/dist/runtime/components/chat/message-list.vue +23 -2
- package/dist/runtime/components/chat/message-list.vue.d.ts +1 -0
- package/dist/runtime/composables/useChat.d.ts +2 -1
- package/dist/runtime/composables/useChat.js +32 -3
- package/dist/runtime/composables/useChatApi.js +2 -1
- package/dist/runtime/composables/useConversations.d.ts +3 -2
- package/dist/runtime/composables/useConversations.js +99 -11
- package/dist/runtime/composables/useEmbedConfig.d.ts +11 -6
- package/dist/runtime/composables/useEmbedConfig.js +35 -7
- package/dist/runtime/composables/useIDB.js +4 -0
- package/dist/runtime/composables/usePdf.d.ts +840 -1
- package/dist/runtime/composables/usePdf.js +21 -3
- package/dist/runtime/composables/useWorkspaceContextFiles.d.ts +3 -3
- package/dist/runtime/composables/useWorkspaceContextFiles.js +19 -10
- package/dist/runtime/composables/useWorkspaceCredentials.d.ts +3 -3
- package/dist/runtime/composables/useWorkspaceExternalSkills.d.ts +1 -1
- package/dist/runtime/composables/useWorkspaceExternalSkills.js +5 -6
- package/dist/runtime/composables/useWorkspacePersonalization.d.ts +1 -1
- package/dist/runtime/composables/useWorkspacePersonalization.js +4 -5
- package/dist/runtime/composables/useWorkspaceSettings.js +12 -9
- package/dist/runtime/embed/components/ChatConfigurationModal.d.vue.ts +25 -0
- package/dist/runtime/embed/components/ChatConfigurationModal.vue +373 -0
- package/dist/runtime/embed/components/ChatConfigurationModal.vue.d.ts +25 -0
- package/dist/runtime/embed/components/ChatEmbed.vue +12 -1
- package/dist/runtime/embed/components/ChatEmbedInner.vue +31 -16
- package/dist/runtime/embed/components/configuration/ChatConfigurationContextFilesTab.d.vue.ts +22 -0
- package/dist/runtime/embed/components/configuration/ChatConfigurationContextFilesTab.vue +133 -0
- package/dist/runtime/embed/components/configuration/ChatConfigurationContextFilesTab.vue.d.ts +22 -0
- package/dist/runtime/embed/components/configuration/ChatConfigurationCredentialsTab.d.vue.ts +10 -0
- package/dist/runtime/embed/components/configuration/ChatConfigurationCredentialsTab.vue +220 -0
- package/dist/runtime/embed/components/configuration/ChatConfigurationCredentialsTab.vue.d.ts +10 -0
- package/dist/runtime/embed/components/configuration/ChatConfigurationExternalSkillsTab.d.vue.ts +32 -0
- package/dist/runtime/embed/components/configuration/ChatConfigurationExternalSkillsTab.vue +222 -0
- package/dist/runtime/embed/components/configuration/ChatConfigurationExternalSkillsTab.vue.d.ts +32 -0
- package/dist/runtime/embed/components/configuration/ChatConfigurationKnowledgeSourcesTab.d.vue.ts +18 -0
- package/dist/runtime/embed/components/configuration/ChatConfigurationKnowledgeSourcesTab.vue +142 -0
- package/dist/runtime/embed/components/configuration/ChatConfigurationKnowledgeSourcesTab.vue.d.ts +18 -0
- package/dist/runtime/embed/components/configuration/ChatConfigurationPersonalizationTab.d.vue.ts +10 -0
- package/dist/runtime/embed/components/configuration/ChatConfigurationPersonalizationTab.vue +37 -0
- package/dist/runtime/embed/components/configuration/ChatConfigurationPersonalizationTab.vue.d.ts +10 -0
- package/dist/runtime/embed/components/configuration/ChatConfigurationTelaToolsTab.d.vue.ts +20 -0
- package/dist/runtime/embed/components/configuration/ChatConfigurationTelaToolsTab.vue +146 -0
- package/dist/runtime/embed/components/configuration/ChatConfigurationTelaToolsTab.vue.d.ts +20 -0
- package/dist/runtime/server/api/admin/trigger-usage-report.post.d.ts +4 -1
- package/dist/runtime/server/api/admin/trigger-usage-report.post.js +2 -0
- package/dist/runtime/server/api/chat/workspace/settings.get.d.ts +1 -1
- package/dist/runtime/server/api/chat/workspace/settings.get.js +1 -0
- package/dist/runtime/server/api/conversations/[id]/cancel.post.d.ts +4 -1
- package/dist/runtime/server/api/conversations/[id]/cancel.post.js +1 -0
- package/dist/runtime/server/api/conversations/[id]/clear.post.d.ts +1 -1
- package/dist/runtime/server/api/conversations/[id]/clear.post.js +1 -0
- package/dist/runtime/server/api/conversations/[id]/duplicate.post.d.ts +1 -1
- package/dist/runtime/server/api/conversations/[id]/duplicate.post.js +46 -12
- package/dist/runtime/server/api/conversations/[id]/files.get.d.ts +1 -1
- package/dist/runtime/server/api/conversations/[id]/files.get.js +2 -0
- package/dist/runtime/server/api/conversations/[id]/index.delete.d.ts +3 -1
- package/dist/runtime/server/api/conversations/[id]/index.delete.js +1 -0
- package/dist/runtime/server/api/conversations/[id]/index.get.d.ts +1 -1
- package/dist/runtime/server/api/conversations/[id]/index.get.js +1 -0
- package/dist/runtime/server/api/conversations/[id]/index.patch.d.ts +1 -1
- package/dist/runtime/server/api/conversations/[id]/index.patch.js +1 -0
- package/dist/runtime/server/api/conversations/[id]/messages/[messageId]/retry.post.d.ts +1 -1
- package/dist/runtime/server/api/conversations/[id]/messages/[messageId]/retry.post.js +2 -0
- package/dist/runtime/server/api/conversations/[id]/messages/index.get.d.ts +14 -1
- package/dist/runtime/server/api/conversations/[id]/messages/index.get.js +2 -0
- package/dist/runtime/server/api/conversations/[id]/messages/index.post.d.ts +4 -1
- package/dist/runtime/server/api/conversations/[id]/messages/index.post.js +2 -0
- package/dist/runtime/server/api/conversations/[id]/usage.get.d.ts +1 -1
- package/dist/runtime/server/api/conversations/[id]/usage.get.js +1 -0
- package/dist/runtime/server/api/conversations/generate-title.post.d.ts +3 -1
- package/dist/runtime/server/api/conversations/generate-title.post.js +2 -0
- package/dist/runtime/server/api/conversations/index.get.d.ts +1 -1
- package/dist/runtime/server/api/conversations/index.get.js +1 -0
- package/dist/runtime/server/api/conversations/index.post.d.ts +1 -1
- package/dist/runtime/server/api/conversations/index.post.js +1 -0
- package/dist/runtime/server/api/external-skills/discover.post.d.ts +1 -1
- package/dist/runtime/server/api/external-skills/discover.post.js +2 -0
- package/dist/runtime/server/api/github/disconnect.post.d.ts +3 -1
- package/dist/runtime/server/api/github/disconnect.post.js +2 -0
- package/dist/runtime/server/api/github/status.get.d.ts +1 -1
- package/dist/runtime/server/api/github/status.get.js +2 -0
- package/dist/runtime/server/api/tela/canvas.get.d.ts +1 -1
- package/dist/runtime/server/api/tela/canvas.get.js +1 -0
- package/dist/runtime/server/api/tela/projects.get.d.ts +1 -1
- package/dist/runtime/server/api/tela/projects.get.js +1 -0
- package/dist/runtime/server/api/tela/workspaces.get.d.ts +1 -1
- package/dist/runtime/server/api/tela/workspaces.get.js +1 -0
- package/dist/runtime/server/api/tela/workstations.get.d.ts +1 -1
- package/dist/runtime/server/api/tela/workstations.get.js +1 -0
- package/dist/runtime/server/api/vault/permalink-metadata.post.d.ts +5 -1
- package/dist/runtime/server/api/vault/permalink-metadata.post.js +2 -0
- package/dist/runtime/server/api/vault/resolve.post.d.ts +9 -1
- package/dist/runtime/server/api/vault/resolve.post.js +2 -0
- package/dist/runtime/server/api/vault/upload.post.d.ts +6 -1
- package/dist/runtime/server/api/vault/upload.post.js +2 -0
- package/dist/runtime/server/api/workspace/credentials/[id].delete.d.ts +3 -1
- package/dist/runtime/server/api/workspace/credentials/[id].delete.js +1 -0
- package/dist/runtime/server/api/workspace/credentials/[id].put.d.ts +1 -1
- package/dist/runtime/server/api/workspace/credentials/[id].put.js +1 -0
- package/dist/runtime/server/api/workspace/credentials/index.get.d.ts +1 -1
- package/dist/runtime/server/api/workspace/credentials/index.get.js +1 -0
- package/dist/runtime/server/api/workspace/credentials/index.post.d.ts +1 -1
- package/dist/runtime/server/api/workspace/credentials/index.post.js +1 -0
- package/dist/runtime/server/api/workspace/settings.get.d.ts +1 -1
- package/dist/runtime/server/api/workspace/settings.get.js +1 -0
- package/dist/runtime/server/api/workspace/settings.patch.d.ts +1 -1
- package/dist/runtime/server/api/workspace/settings.patch.js +1 -0
- package/dist/runtime/server/api/workspace/usage.get.d.ts +1 -1
- package/dist/runtime/server/api/workspace/usage.get.js +1 -0
- package/dist/runtime/server/db/index.js +1 -0
- package/dist/runtime/server/middleware/domain-validation.d.ts +1 -1
- package/dist/runtime/server/middleware/domain-validation.js +2 -0
- package/dist/runtime/server/middleware/request-logger.d.ts +1 -1
- package/dist/runtime/server/middleware/request-logger.js +1 -0
- package/dist/runtime/server/tasks/send-daily-usage-report.d.ts +1 -1
- package/dist/runtime/server/tasks/send-daily-usage-report.js +1 -0
- package/dist/runtime/server/utils/agent-api.d.ts +1 -1
- package/dist/runtime/server/utils/agent-api.js +2 -0
- package/dist/runtime/server/utils/auth-api.js +2 -0
- package/dist/runtime/server/utils/auth.d.ts +1 -1
- package/dist/runtime/server/utils/auth.js +1 -0
- package/dist/runtime/server/utils/tela-api.d.ts +1 -1
- package/dist/runtime/server/utils/tela-api.js +2 -0
- package/dist/runtime/server/utils/workspace.js +1 -0
- package/dist/runtime/types/chat.d.ts +2 -1
- package/dist/runtime/types/workspace-settings.d.ts +3 -0
- package/dist/runtime/types/workspace-settings.js +0 -0
- package/dist/runtime/utils/conversation-list-skeleton.d.ts +31 -0
- package/dist/runtime/utils/conversation-list-skeleton.js +12 -0
- package/dist/runtime/utils/file.js +42 -42
- package/dist/types.d.mts +2 -0
- package/package.json +24 -12
- package/dist/runtime/composables/PageNavigation.d.ts +0 -13
- package/dist/runtime/composables/PageNavigation.js +0 -18
- /package/dist/runtime/components/{TelaChat.d.vue.ts → MeistrariChatEmbed.d.vue.ts} +0 -0
- /package/dist/runtime/components/{TelaChat.vue → MeistrariChatEmbed.vue} +0 -0
- /package/dist/runtime/components/{TelaChat.vue.d.ts → MeistrariChatEmbed.vue.d.ts} +0 -0
- /package/dist/runtime/components/{pdf-preview.d.vue.ts → pdf-preview.client.d.vue.ts} +0 -0
- /package/dist/runtime/components/{pdf-preview.vue → pdf-preview.client.vue} +0 -0
- /package/dist/runtime/components/{pdf-preview.vue.d.ts → pdf-preview.client.vue.d.ts} +0 -0
- /package/dist/runtime/components/{pdf-viewer.d.vue.ts → pdf-viewer.client.d.vue.ts} +0 -0
- /package/dist/runtime/components/{pdf-viewer.vue → pdf-viewer.client.vue} +0 -0
- /package/dist/runtime/components/{pdf-viewer.vue.d.ts → pdf-viewer.client.vue.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meistrari/chat-nuxt",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -8,7 +8,14 @@
|
|
|
8
8
|
"import": "./dist/module.mjs"
|
|
9
9
|
},
|
|
10
10
|
"./assets/css/*": "./dist/runtime/assets/css/*",
|
|
11
|
-
"./types/*":
|
|
11
|
+
"./types/*": {
|
|
12
|
+
"types": "./dist/runtime/types/*.d.ts",
|
|
13
|
+
"import": "./dist/runtime/types/*.js"
|
|
14
|
+
},
|
|
15
|
+
"./utils/*": {
|
|
16
|
+
"types": "./dist/runtime/utils/*.d.ts",
|
|
17
|
+
"import": "./dist/runtime/utils/*.js"
|
|
18
|
+
}
|
|
12
19
|
},
|
|
13
20
|
"main": "./dist/module.mjs",
|
|
14
21
|
"types": "./dist/types.d.mts",
|
|
@@ -18,6 +25,7 @@
|
|
|
18
25
|
"scripts": {
|
|
19
26
|
"build": "mkdir -p .nuxt && { [ -f .nuxt/tsconfig.json ] || printf '{}' > .nuxt/tsconfig.json; } && { [ -f .nuxt/tsconfig.server.json ] || printf '{}' > .nuxt/tsconfig.server.json; } && nuxt-module-build build",
|
|
20
27
|
"dev:prepare": "nuxt-module-build build --stub",
|
|
28
|
+
"smoke:pack": "./scripts/smoke-pack-consumer.sh",
|
|
21
29
|
"lint": "eslint .",
|
|
22
30
|
"lint:fix": "eslint . --fix",
|
|
23
31
|
"lint:attrs": "! grep -rn '[a-z0-9-]![[:space:]>@\"'\"'\"']' --include='*.vue' src/runtime/components/ src/runtime/embed/components/ 2>/dev/null",
|
|
@@ -28,41 +36,45 @@
|
|
|
28
36
|
"db:studio": "infisical run --env=dev -- ./scripts/drizzle.sh studio"
|
|
29
37
|
},
|
|
30
38
|
"peerDependencies": {
|
|
31
|
-
"
|
|
39
|
+
"nuxt": "^3.17.0",
|
|
40
|
+
"vue": "^3.5.0"
|
|
32
41
|
},
|
|
33
42
|
"dependencies": {
|
|
34
43
|
"@iconify-json/ph": "^1.2.2",
|
|
44
|
+
"@iconify/vue": "^5.0.0",
|
|
45
|
+
"@meistrari/auth-nuxt": "^3.5.0",
|
|
35
46
|
"@meistrari/logger": "^2.1.3",
|
|
36
47
|
"@meistrari/mise-en-place": "^2.5.1",
|
|
37
|
-
"@meistrari/tela-build": "^1.30.0",
|
|
38
48
|
"@meistrari/tela-sdk-js": "^2.8.0",
|
|
49
|
+
"@meistrari/tela-build": "^1.30.0",
|
|
39
50
|
"@meistrari/vault-sdk": "^3.0.0",
|
|
40
|
-
"@sentry/nuxt": "^10.
|
|
41
|
-
"@vueuse/components": "12.8.
|
|
42
|
-
"@vueuse/core": "12.8.
|
|
51
|
+
"@sentry/nuxt": "^10.0.0",
|
|
52
|
+
"@vueuse/components": "^12.8.0",
|
|
53
|
+
"@vueuse/core": "^12.8.0",
|
|
43
54
|
"beautiful-mermaid": "^1.1.3",
|
|
44
55
|
"dompurify": "^3.3.2",
|
|
45
56
|
"drizzle-orm": "^0.38.0",
|
|
46
|
-
"h3": "^1.15.
|
|
57
|
+
"h3": "^1.15.0",
|
|
47
58
|
"markstream-vue": "0.0.3-beta.6",
|
|
48
59
|
"mermaid": "^11.13.0",
|
|
49
|
-
"motion": "11.13.
|
|
50
|
-
"nitropack": "2.10.
|
|
51
|
-
"nuxt": "3.17.7",
|
|
60
|
+
"motion": "^11.13.0",
|
|
61
|
+
"nitropack": "^2.10.0",
|
|
52
62
|
"pdfjs-dist": "^5.4.530",
|
|
53
63
|
"postgres": "^3.4.5",
|
|
54
64
|
"posthog-js": "^1.364.2",
|
|
65
|
+
"virtua": "^0.42.0",
|
|
55
66
|
"xlsx": "^0.18.5",
|
|
67
|
+
"vue-i18n": "^11.0.0",
|
|
56
68
|
"zod": "^4.1.13"
|
|
57
69
|
},
|
|
58
70
|
"devDependencies": {
|
|
59
71
|
"@antfu/eslint-config": "3.11.2",
|
|
60
|
-
"@meistrari/auth-nuxt": "3.4.1",
|
|
61
72
|
"@nuxt/module-builder": "^1.0.2",
|
|
62
73
|
"@types/node": "^20.19.0",
|
|
63
74
|
"dotenv-cli": "^11.0.0",
|
|
64
75
|
"drizzle-kit": "^0.30.0",
|
|
65
76
|
"eslint": "9.16.0",
|
|
77
|
+
"nuxt": "3.17.7",
|
|
66
78
|
"pino": "^10.3.1",
|
|
67
79
|
"pino-pretty": "^13.1.3",
|
|
68
80
|
"typescript": "^5.7.3",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare function usePageNavigation(): {
|
|
2
|
-
currentPage: any;
|
|
3
|
-
pageMetadata: {
|
|
4
|
-
readonly '/': {
|
|
5
|
-
readonly title: "Home";
|
|
6
|
-
readonly icon: "i-ph-house";
|
|
7
|
-
};
|
|
8
|
-
readonly '/sample-page': {
|
|
9
|
-
readonly title: "Sample Page";
|
|
10
|
-
readonly icon: "i-ph-stack-simple";
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export function usePageNavigation() {
|
|
2
|
-
const pageMetadata = {
|
|
3
|
-
"/": {
|
|
4
|
-
title: "Home",
|
|
5
|
-
icon: "i-ph-house"
|
|
6
|
-
},
|
|
7
|
-
"/sample-page": {
|
|
8
|
-
title: "Sample Page",
|
|
9
|
-
icon: "i-ph-stack-simple"
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
const route = useRoute();
|
|
13
|
-
const currentPage = computed(() => pageMetadata[route.path]);
|
|
14
|
-
return {
|
|
15
|
-
currentPage,
|
|
16
|
-
pageMetadata
|
|
17
|
-
};
|
|
18
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|