docus 5.12.0 → 5.12.1

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.
@@ -33,9 +33,6 @@ export default defineNuxtModule<AssistantModuleOptions>({
33
33
  meta: {
34
34
  name: 'assistant',
35
35
  },
36
- moduleDependencies: {
37
- '@comark/nuxt': {},
38
- },
39
36
  setup(_options, nuxt) {
40
37
  const legacyOptions = nuxt.options.assistant
41
38
  if (legacyOptions && Object.keys(legacyOptions).length > 0) {
@@ -77,6 +74,11 @@ export default defineNuxtModule<AssistantModuleOptions>({
77
74
  }),
78
75
  )
79
76
 
77
+ addComponent({
78
+ name: 'AssistantComark',
79
+ filePath: resolve('./runtime/components/AssistantComark'),
80
+ })
81
+
80
82
  if (!hasAiGatewayAuth) {
81
83
  nuxt.hook('modules:done', () => {
82
84
  log.warn('AI assistant disabled: neither `AI_GATEWAY_API_KEY` nor `VERCEL_OIDC_TOKEN` found')
@@ -89,11 +91,6 @@ export default defineNuxtModule<AssistantModuleOptions>({
89
91
  model: options.model,
90
92
  }
91
93
 
92
- addComponent({
93
- name: 'AssistantComark',
94
- filePath: resolve('./runtime/components/AssistantComark'),
95
- })
96
-
97
94
  const routePath = options.apiPath!.replace(/^\//, '')
98
95
  addServerHandler({
99
96
  route: `/${routePath}`,
@@ -1,4 +1,5 @@
1
- import highlight from '@comark/nuxt/plugins/highlight'
1
+ import { defineComarkComponent } from '@comark/vue'
2
+ import highlight from '@comark/vue/plugins/highlight'
2
3
 
3
4
  export default defineComarkComponent({
4
5
  name: 'AssistantComark',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docus",
3
3
  "description": "Nuxt layer for Docus documentation theme",
4
- "version": "5.12.0",
4
+ "version": "5.12.1",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
7
7
  "repository": {
@@ -23,6 +23,10 @@
23
23
  "README.md"
24
24
  ],
25
25
  "dependencies": {
26
+ "@ai-sdk/gateway": "^3.0.120",
27
+ "@ai-sdk/mcp": "^1.0.43",
28
+ "@ai-sdk/vue": "^3.0.191",
29
+ "@comark/vue": "^0.4.0",
26
30
  "@iconify-json/lucide": "^1.2.111",
27
31
  "@iconify-json/simple-icons": "^1.2.85",
28
32
  "@iconify-json/vscode-icons": "^1.2.53",
@@ -41,6 +45,7 @@
41
45
  "@shikijs/themes": "^4.2.0",
42
46
  "@takumi-rs/core": "^1.6.0",
43
47
  "@vueuse/core": "^14.3.0",
48
+ "ai": "^6.0.191",
44
49
  "defu": "^6.1.7",
45
50
  "exsolve": "^1.0.8",
46
51
  "git-url-parse": "^16.1.0",
@@ -57,29 +62,7 @@
57
62
  "zod-to-json-schema": "^3.25.2"
58
63
  },
59
64
  "peerDependencies": {
60
- "@ai-sdk/gateway": "^3.0.120",
61
- "@ai-sdk/mcp": "^1.0.43",
62
- "@ai-sdk/vue": "^3.0.191",
63
- "@comark/nuxt": "^0.3.1",
64
- "ai": "^6.0.191",
65
65
  "better-sqlite3": "12.x",
66
66
  "nuxt": "4.x"
67
- },
68
- "peerDependenciesMeta": {
69
- "@ai-sdk/gateway": {
70
- "optional": true
71
- },
72
- "@ai-sdk/mcp": {
73
- "optional": true
74
- },
75
- "@ai-sdk/vue": {
76
- "optional": true
77
- },
78
- "@comark/nuxt": {
79
- "optional": true
80
- },
81
- "ai": {
82
- "optional": true
83
- }
84
67
  }
85
68
  }