@movk/nuxt-docs 1.17.3 → 1.17.4

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.
@@ -1,14 +1,16 @@
1
1
  import type { UIMessage } from 'ai'
2
2
  import { createSharedComposable, useLocalStorage } from '@vueuse/core'
3
+ import { kebabCase } from '@movk/core'
3
4
 
4
5
  export const useAIChat = createSharedComposable(() => {
5
6
  const config = useRuntimeConfig()
6
7
  const site = useSiteConfig()
8
+ const name = kebabCase(site.name)
7
9
 
8
10
  const isEnabled = computed(() => config.public.aiChat?.enabled ?? false)
9
11
 
10
- const storageOpen = useLocalStorage(`${site.name}-ai-chat-open`, false)
11
- const messages = useLocalStorage<UIMessage[]>(`${site.name}-ai-chat-messages`, [])
12
+ const storageOpen = useLocalStorage(`${name}-ai-chat-open`, false)
13
+ const messages = useLocalStorage<UIMessage[]>(`${name}-ai-chat-messages`, [])
12
14
 
13
15
  const isOpen = ref(false)
14
16
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@movk/nuxt-docs",
3
3
  "type": "module",
4
- "version": "1.17.3",
4
+ "version": "1.17.4",
5
5
  "private": false,
6
6
  "description": "Modern Nuxt 4 documentation theme with auto-generated component docs, AI chat assistant, MCP server, and complete developer experience optimization.",
7
7
  "author": "YiXuan <mhaibaraai@gmail.com>",
@@ -39,11 +39,11 @@
39
39
  "README.md"
40
40
  ],
41
41
  "dependencies": {
42
- "@ai-sdk/gateway": "^3.0.88",
43
- "@ai-sdk/mcp": "^1.0.32",
44
- "@ai-sdk/vue": "^3.0.146",
42
+ "@ai-sdk/gateway": "^3.0.91",
43
+ "@ai-sdk/mcp": "^1.0.35",
44
+ "@ai-sdk/vue": "^3.0.149",
45
45
  "@iconify-json/lucide": "^1.2.101",
46
- "@iconify-json/simple-icons": "^1.2.76",
46
+ "@iconify-json/simple-icons": "^1.2.77",
47
47
  "@iconify-json/vscode-icons": "^1.2.45",
48
48
  "@movk/core": "^1.2.3",
49
49
  "@nuxt/a11y": "^1.0.0-alpha.1",
@@ -51,7 +51,7 @@
51
51
  "@nuxt/image": "^2.0.0",
52
52
  "@nuxt/kit": "^4.4.2",
53
53
  "@nuxt/ui": "^4.6.1",
54
- "@nuxtjs/mcp-toolkit": "^0.13.3",
54
+ "@nuxtjs/mcp-toolkit": "^0.13.4",
55
55
  "@nuxtjs/mdc": "^0.21.1",
56
56
  "@nuxtjs/robots": "^6.0.6",
57
57
  "@octokit/rest": "^22.0.1",
@@ -63,8 +63,8 @@
63
63
  "@takumi-rs/wasm": "^0.73.1",
64
64
  "@vueuse/core": "^14.2.1",
65
65
  "@vueuse/nuxt": "^14.2.1",
66
- "ai": "^6.0.146",
67
- "defu": "^6.1.6",
66
+ "ai": "^6.0.149",
67
+ "defu": "^6.1.7",
68
68
  "exsolve": "^1.0.8",
69
69
  "git-url-parse": "^16.1.0",
70
70
  "motion-v": "^2.2.0",