@vite-hub/docs 0.3.1 → 0.4.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.
Files changed (42) hide show
  1. package/README.md +15 -13
  2. package/dist/{agent-copy-BJp_Yf5d.js → agent-copy-xPaWye_g.js} +1 -1
  3. package/dist/assistant-pages-BN7hNsSZ.js +37 -0
  4. package/dist/{assistant-shared-Dll_F_yy.d.ts → assistant-shared-CWIKRtBv.d.ts} +3 -2
  5. package/dist/{assistant-shared-CdtXowot.js → assistant-shared-WzButktj.js} +23 -7
  6. package/dist/assistant-worker.d.ts +1 -1
  7. package/dist/assistant-worker.js +1 -1
  8. package/dist/assistant.d.ts +1 -1
  9. package/dist/assistant.js +1 -1
  10. package/dist/{content-9CINWiRf.js → content-CPZGnn3S.js} +3 -33
  11. package/dist/{draft-DUBx--r9.js → draft-BjWmaiLn.js} +1 -1
  12. package/dist/error-diagnostics-B_ZOy7kF.js +93 -0
  13. package/dist/files-UY4h1_36.js +38 -0
  14. package/dist/index.d.ts +2 -2
  15. package/dist/index.js +1 -1
  16. package/dist/link-checker-redirects.js +1 -1
  17. package/dist/{manifest-Dzp5-_AJ.d.ts → manifest-CMoxcwPm.d.ts} +8 -2
  18. package/dist/{manifest-D66AEF8F.js → manifest-ZdxLrcvt.js} +47 -33
  19. package/dist/{markdown-Cn9-4oVG.js → markdown-DUWnEMPp.js} +1 -1
  20. package/dist/navigation.d.ts +1 -2
  21. package/dist/navigation.js +1 -2
  22. package/dist/{nuxt-B5LrERKc.d.ts → nuxt-CAGpKl_-.d.ts} +5 -4
  23. package/dist/nuxt.d.ts +1 -1
  24. package/dist/nuxt.js +465 -82
  25. package/dist/{page-BbmSfZO8.js → page-GPt09oex.js} +2 -1
  26. package/dist/primitive-rail.d.ts +1 -1
  27. package/dist/primitive-rail.js +7 -2
  28. package/dist/{raw-C03EUJKw.js → raw-BChwipz_.js} +6 -0
  29. package/dist/{redirects-BrbWFSzW.js → redirects-CmR1yu5A.js} +18 -6
  30. package/dist/runtime/app/components/content/McpClient.vue +170 -0
  31. package/dist/runtime/app/components/content/McpInstall.vue +238 -0
  32. package/dist/runtime/server/llms.js +1 -1
  33. package/dist/runtime/server/markdown.js +1 -1
  34. package/dist/runtime/server/mcp.js +1 -1
  35. package/dist/runtime/server/page.js +3 -3
  36. package/dist/runtime/server/raw.js +1 -1
  37. package/dist/runtime/server/search.js +2 -2
  38. package/dist/runtime/server/sitemap.js +1 -1
  39. package/dist/server.d.ts +1 -1
  40. package/dist/server.js +4 -4
  41. package/package.json +11 -11
  42. package/dist/error-diagnostics-BoOsP6Y4.js +0 -53
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vite-hub/docs",
3
- "version": "0.3.1",
3
+ "version": "0.4.1",
4
4
  "description": "A documentation site on ViteHub primitives: typed Markdown pages, navigation, tutorials, search, agent resources, Console editing, and a docs assistant.",
5
5
  "keywords": [
6
6
  "content",
@@ -66,11 +66,11 @@
66
66
  "@nuxt/fonts": "^1.2.0",
67
67
  "@nuxt/kit": "4.6.2",
68
68
  "@takumi-rs/core": "2.19.0",
69
- "@vite-hub/content": "0.3.1",
70
- "@vite-hub/rate-limit": "0.3.1",
71
- "@vite-hub/source": "0.3.1",
72
- "@vite-hub/ui": "0.3.1",
73
- "@vite-hub/workspace": "0.3.1",
69
+ "@vite-hub/content": "0.4.1",
70
+ "@vite-hub/rate-limit": "0.4.1",
71
+ "@vite-hub/source": "0.4.1",
72
+ "@vite-hub/ui": "0.4.1",
73
+ "@vite-hub/workspace": "0.4.1",
74
74
  "@vueuse/core": "^14.4.0",
75
75
  "comark-content": "0.5.1",
76
76
  "comark-zoom": "^0.12.0",
@@ -94,8 +94,8 @@
94
94
  "@nuxt/ui": "^4.12.0",
95
95
  "@types/node": "^24.19.1",
96
96
  "@vue/test-utils": "2.5.1",
97
- "@vite-hub/agent": "0.3.1",
98
- "@vite-hub/gateways": "0.3.1",
97
+ "@vite-hub/agent": "0.4.1",
98
+ "@vite-hub/gateways": "0.4.1",
99
99
  "@vite-hub/icons": "0.1.0",
100
100
  "@vite-hub/internal": "0.0.1",
101
101
  "comark": "^0.9.0",
@@ -117,8 +117,8 @@
117
117
  "@comark/html": "^0.8.1 || ^0.9.0",
118
118
  "@comark/vue": "^0.8.1 || ^0.9.0",
119
119
  "@nuxt/ui": "^4.11.0",
120
- "@vite-hub/agent": "0.3.1",
121
- "@vite-hub/gateways": "0.3.1",
120
+ "@vite-hub/agent": "0.4.1",
121
+ "@vite-hub/gateways": "0.4.1",
122
122
  "comark": "^0.8.1 || ^0.9.0",
123
123
  "comark-ui": "^0.12.0",
124
124
  "nuxt": ">=5.0.0-0",
@@ -133,7 +133,7 @@
133
133
  }
134
134
  },
135
135
  "engines": {
136
- "node": ">=22.22.0"
136
+ "node": ">=24.15.0"
137
137
  },
138
138
  "scripts": {
139
139
  "build": "vp pack",
@@ -1,53 +0,0 @@
1
- import { defineDiagnostics } from "nostics";
2
- //#region src/error-diagnostics.ts
3
- const docsErrorDiagnostics = /*#__PURE__*/ defineDiagnostics({
4
- docsBase: "https://vitehub.dev/docs/docs-site/diagnostics",
5
- codes: {
6
- DOCS_ASSISTANT_AGENTS_MISSING: {
7
- why: ({ agent }) => `[@vite-hub/docs] docs.assistant needs ViteHub Agents to answer from the "${agent}" Agent.`,
8
- fix: "Add `vite-hub/nuxt` to modules and set `vitehub: { agent: true, connections: true }` in nuxt.config.ts, or set `docs: { assistant: false }`."
9
- },
10
- DOCS_COMMENTS_DATABASE_OFF: {
11
- why: "[@vite-hub/docs] Docs sites on vite-hub/nuxt have Comments on, which keeps threads in the Database, but vitehub sets database: false.",
12
- fix: "Remove `database: false` from the `vitehub` options in nuxt.config.ts, or set `docs: { comments: false }`."
13
- },
14
- DOCS_COMMENTS_PACKAGE_MISSING: {
15
- why: "[@vite-hub/docs] Docs sites on vite-hub/nuxt have Comments on, which needs @vite-hub/comments.",
16
- fix: "Run `pnpm add @vite-hub/comments`, or set `docs: { comments: false }` in nuxt.config.ts."
17
- },
18
- DOCS_COMMENTS_VITEHUB_MISSING: {
19
- why: "[@vite-hub/docs] docs.comments needs vite-hub/nuxt, which keeps the threads in a ViteHub Database.",
20
- fix: "Add `vite-hub/nuxt` to modules in nuxt.config.ts, or set `docs: { comments: false }`."
21
- },
22
- DOCS_CONTENT_INVALID: {
23
- why: ({ details, file }) => `Invalid docs frontmatter in ${file}: ${details}`,
24
- fix: "Fix the field that the message names in the page frontmatter or the `.navigation.yml` file. The schemas are `docsPageSchema` and `docsSectionSchema` from `@vite-hub/docs`."
25
- },
26
- DOCS_EXAMPLE_MISSING: {
27
- why: ({ name }) => `::example names "${name}", but the examples folder has no ${name}.vue.`,
28
- fix: "Add the component that the message names to the examples folder of the docs, or correct the `name` of the `::example` block."
29
- },
30
- DOCS_LINKS_BROKEN: {
31
- why: ({ problems }) => `Broken docs links:\n${problems.map((problem) => `- ${problem}`).join("\n")}`,
32
- fix: "Fix each link that the message lists in the page that it names, or add the target to `checkDocsLinks({ excludeLinks })` when it is served outside the docs output."
33
- },
34
- DOCS_OUTPUT_MISSING: {
35
- why: ({ root }) => `Docs output does not exist: ${root}`,
36
- fix: "Build the docs site first, or pass `checkDocsLinks({ dir })` the folder that the build writes."
37
- },
38
- DOCS_REDIRECTS_BROKEN: {
39
- why: ({ problems }) => `Docs redirects break links:\n${problems.map((problem) => `- ${problem}`).join("\n")}`,
40
- fix: "Point each redirect route rule that the message lists to a docs page, or remove the rule when the page that it hides still exists."
41
- },
42
- DOCS_SEO_FAILED: {
43
- why: ({ problems }) => `Docs pages fail the search checks:\n${problems.map((problem) => `- ${problem}`).join("\n")}`,
44
- fix: "Fix each page that the message lists, or set `docs: { seoAudit: \"warn\" }` to log the problems without stopping the build."
45
- },
46
- DOCS_SOURCE_MOUNT_INVALID: {
47
- why: ({ mount }) => `Invalid docs source mount: ${mount}`,
48
- fix: "Set the `mount` of the docs source to a URL path such as `/guide`, without `.`, `..`, `?`, `#`, or backslash segments."
49
- }
50
- }
51
- });
52
- //#endregion
53
- export { docsErrorDiagnostics as t };