nuxt-ai-ready 3.6.0 → 3.6.2

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 (161) hide show
  1. package/dist/agent-skills-config-CmZq9uWW.mjs +18 -0
  2. package/dist/agent-skills-zGLgFB6H.mjs +468 -0
  3. package/dist/cli.d.mts +1 -0
  4. package/dist/cli.mjs +656 -570
  5. package/dist/devtools/pages/ai-ready/debug.vue +9 -3
  6. package/dist/devtools/pages/ai-ready/index.vue +3 -1
  7. package/dist/devtools/pages/ai-ready/llms-txt.vue +15 -4
  8. package/dist/devtools/pages/ai-ready.vue +28 -4
  9. package/dist/module.d.mts +106 -112
  10. package/dist/module.json +3 -3
  11. package/dist/module.mjs +2732 -26
  12. package/dist/package-metadata-B1darl8W.mjs +28 -0
  13. package/dist/prerender-QMv07W4h.mjs +650 -0
  14. package/dist/runtime/app/composables/webmcp.js +90 -97
  15. package/dist/runtime/app/plugins/md-alternate.server.js +29 -26
  16. package/dist/runtime/app/plugins/md-hints.prerender.js +13 -15
  17. package/dist/runtime/app/plugins/webmcp.client.js +49 -53
  18. package/dist/runtime/app/webmcp-config.js +2 -2
  19. package/dist/runtime/cache-control.js +16 -10
  20. package/dist/runtime/i18n-url.js +6 -6
  21. package/dist/runtime/index.js +4 -12
  22. package/dist/runtime/llms-txt-directive.js +20 -13
  23. package/dist/runtime/llms-txt-files.js +188 -187
  24. package/dist/runtime/llms-txt-format.js +54 -55
  25. package/dist/runtime/llms-txt-i18n.js +22 -19
  26. package/dist/runtime/llms-txt-utils.js +140 -95
  27. package/dist/runtime/markdown-links.js +45 -39
  28. package/dist/runtime/markdown-path.js +29 -9
  29. package/dist/runtime/markdown-text.js +2 -1
  30. package/dist/runtime/mcp.js +5 -1
  31. package/dist/runtime/route-path.js +14 -8
  32. package/dist/runtime/server/db/drizzle/client.js +71 -75
  33. package/dist/runtime/server/db/drizzle/index.js +16 -28
  34. package/dist/runtime/server/db/drizzle/providers/bun.d.ts +2 -1
  35. package/dist/runtime/server/db/drizzle/providers/bun.js +10 -7
  36. package/dist/runtime/server/db/drizzle/providers/d1.js +16 -13
  37. package/dist/runtime/server/db/drizzle/providers/dbPath.js +60 -37
  38. package/dist/runtime/server/db/drizzle/providers/libsql.js +23 -11
  39. package/dist/runtime/server/db/drizzle/providers/neon.js +13 -10
  40. package/dist/runtime/server/db/drizzle/providers/node-sqlite.js +10 -7
  41. package/dist/runtime/server/db/drizzle/providers/postgres.js +13 -10
  42. package/dist/runtime/server/db/drizzle/queries.js +633 -532
  43. package/dist/runtime/server/db/drizzle/raw.js +200 -176
  44. package/dist/runtime/server/db/index.js +3 -0
  45. package/dist/runtime/server/db/queries.js +816 -607
  46. package/dist/runtime/server/db/schema/postgres.js +56 -50
  47. package/dist/runtime/server/db/schema/sqlite.js +56 -50
  48. package/dist/runtime/server/db/schema-sql.js +35 -38
  49. package/dist/runtime/server/db/seed.js +60 -45
  50. package/dist/runtime/server/db/shared.js +300 -213
  51. package/dist/runtime/server/index.js +1 -17
  52. package/dist/runtime/server/mcp/cache-key.js +5 -1
  53. package/dist/runtime/server/mcp/resources/pages.js +32 -33
  54. package/dist/runtime/server/mcp/tools/get-page-markdown.js +41 -27
  55. package/dist/runtime/server/mcp/tools/list-pages.js +40 -34
  56. package/dist/runtime/server/mcp/tools/search-pages.js +24 -16
  57. package/dist/runtime/server/middleware/markdown.d.ts +1 -1
  58. package/dist/runtime/server/middleware/markdown.js +15 -13
  59. package/dist/runtime/server/middleware/markdown.prerender.d.ts +1 -1
  60. package/dist/runtime/server/middleware/markdown.prerender.js +135 -119
  61. package/dist/runtime/server/middleware/render-markdown.d.ts +1 -1
  62. package/dist/runtime/server/middleware/render-markdown.js +164 -144
  63. package/dist/runtime/server/plugins/ai-terms.d.ts +1 -1
  64. package/dist/runtime/server/plugins/ai-terms.js +4 -8
  65. package/dist/runtime/server/plugins/content-signal-capture-nitro3.prerender.d.ts +1 -1
  66. package/dist/runtime/server/plugins/content-signal-capture-nitro3.prerender.js +7 -8
  67. package/dist/runtime/server/plugins/content-signal-capture.prerender.d.ts +1 -1
  68. package/dist/runtime/server/plugins/content-signal-capture.prerender.js +7 -7
  69. package/dist/runtime/server/plugins/db-lifecycle-nitro3.d.ts +1 -1
  70. package/dist/runtime/server/plugins/db-lifecycle-nitro3.js +13 -14
  71. package/dist/runtime/server/plugins/db-lifecycle.js +13 -11
  72. package/dist/runtime/server/plugins/html-capture.prerender.js +6 -6
  73. package/dist/runtime/server/plugins/link-header-nitro3.d.ts +1 -1
  74. package/dist/runtime/server/plugins/link-header-nitro3.js +23 -13
  75. package/dist/runtime/server/plugins/link-header.d.ts +1 -1
  76. package/dist/runtime/server/plugins/link-header.js +30 -30
  77. package/dist/runtime/server/plugins/llms-txt-directive-html.d.ts +1 -1
  78. package/dist/runtime/server/plugins/llms-txt-directive-html.js +4 -3
  79. package/dist/runtime/server/plugins/markdown-negotiation.d.ts +1 -1
  80. package/dist/runtime/server/plugins/markdown-negotiation.js +64 -45
  81. package/dist/runtime/server/plugins/sitemap-seeder.js +144 -112
  82. package/dist/runtime/server/routes/__ai-ready/cron.get.d.ts +1 -1
  83. package/dist/runtime/server/routes/__ai-ready/cron.get.js +17 -11
  84. package/dist/runtime/server/routes/__ai-ready/devtools.get.d.ts +1 -1
  85. package/dist/runtime/server/routes/__ai-ready/devtools.get.js +60 -45
  86. package/dist/runtime/server/routes/__ai-ready/pages.get.d.ts +36 -1
  87. package/dist/runtime/server/routes/__ai-ready/pages.get.js +44 -40
  88. package/dist/runtime/server/routes/__ai-ready/poll.post.d.ts +15 -1
  89. package/dist/runtime/server/routes/__ai-ready/poll.post.js +30 -30
  90. package/dist/runtime/server/routes/__ai-ready/prune.post.d.ts +13 -1
  91. package/dist/runtime/server/routes/__ai-ready/prune.post.js +29 -15
  92. package/dist/runtime/server/routes/__ai-ready/reindex.post.d.ts +22 -1
  93. package/dist/runtime/server/routes/__ai-ready/reindex.post.js +31 -21
  94. package/dist/runtime/server/routes/__ai-ready/restore.post.d.ts +4 -1
  95. package/dist/runtime/server/routes/__ai-ready/restore.post.js +28 -22
  96. package/dist/runtime/server/routes/__ai-ready/status.get.d.ts +1 -1
  97. package/dist/runtime/server/routes/__ai-ready/status.get.js +52 -53
  98. package/dist/runtime/server/routes/__ai-ready-debug.get.d.ts +83 -1
  99. package/dist/runtime/server/routes/__ai-ready-debug.get.js +209 -189
  100. package/dist/runtime/server/routes/agent-skills-artifact.d.ts +1 -1
  101. package/dist/runtime/server/routes/agent-skills-artifact.js +16 -14
  102. package/dist/runtime/server/routes/agent-skills-index.d.ts +1 -1
  103. package/dist/runtime/server/routes/agent-skills-index.js +8 -6
  104. package/dist/runtime/server/routes/ai-catalog.js +19 -19
  105. package/dist/runtime/server/routes/ai-terms.js +23 -19
  106. package/dist/runtime/server/routes/api-catalog.js +23 -23
  107. package/dist/runtime/server/routes/llms-full.txt.get.d.ts +1 -1
  108. package/dist/runtime/server/routes/llms-full.txt.get.js +42 -41
  109. package/dist/runtime/server/routes/llms.txt.get.d.ts +1 -1
  110. package/dist/runtime/server/routes/llms.txt.get.js +38 -33
  111. package/dist/runtime/server/routes/mcp-server-card.js +19 -19
  112. package/dist/runtime/server/routes/sitemap.md.get.d.ts +1 -1
  113. package/dist/runtime/server/routes/sitemap.md.get.js +38 -39
  114. package/dist/runtime/server/tasks/ai-ready-cron.d.ts +1 -1
  115. package/dist/runtime/server/tasks/ai-ready-cron.js +17 -14
  116. package/dist/runtime/server/utils/auth.js +76 -53
  117. package/dist/runtime/server/utils/batchIndex.js +72 -60
  118. package/dist/runtime/server/utils/checkStale.js +181 -134
  119. package/dist/runtime/server/utils/cloudflare-prerendered.js +23 -20
  120. package/dist/runtime/server/utils/cloudflare.js +69 -51
  121. package/dist/runtime/server/utils/content-negotiation.js +30 -18
  122. package/dist/runtime/server/utils/content.js +4 -1
  123. package/dist/runtime/server/utils/context.js +30 -19
  124. package/dist/runtime/server/utils/cron-plan.js +6 -6
  125. package/dist/runtime/server/utils/discovery-response.js +5 -6
  126. package/dist/runtime/server/utils/fetch.js +2 -1
  127. package/dist/runtime/server/utils/frontmatter.js +44 -57
  128. package/dist/runtime/server/utils/i18n.js +3 -8
  129. package/dist/runtime/server/utils/indexPage.js +152 -113
  130. package/dist/runtime/server/utils/keywords.js +278 -277
  131. package/dist/runtime/server/utils/link-header.js +67 -56
  132. package/dist/runtime/server/utils/llms-full.js +39 -49
  133. package/dist/runtime/server/utils/markdown-redirect.js +26 -14
  134. package/dist/runtime/server/utils/markdown-request.js +62 -47
  135. package/dist/runtime/server/utils/negotiation-decision.d.ts +8 -0
  136. package/dist/runtime/server/utils/negotiation-decision.js +106 -34
  137. package/dist/runtime/server/utils/negotiation-response.d.ts +1 -1
  138. package/dist/runtime/server/utils/negotiation-response.js +195 -144
  139. package/dist/runtime/server/utils/page-updated-at.js +23 -15
  140. package/dist/runtime/server/utils/prerender-html.js +31 -17
  141. package/dist/runtime/server/utils/runCron.js +263 -192
  142. package/dist/runtime/server/utils/sitemap-crawl-state.js +57 -39
  143. package/dist/runtime/server/utils/sitemap-lastmod.js +16 -14
  144. package/dist/runtime/server/utils/sitemap-md.js +39 -50
  145. package/dist/runtime/server/utils/sitemap-routes.js +7 -7
  146. package/dist/runtime/server/utils/sitemap.js +459 -414
  147. package/dist/runtime/server/utils.js +141 -122
  148. package/dist/runtime/site-tool-catalog.js +39 -43
  149. package/dist/runtime/site-tool-config.js +1 -0
  150. package/dist/runtime/sync-secret.js +11 -11
  151. package/dist/runtime/types.js +1 -0
  152. package/dist/runtime/webmcp-site-tools.js +278 -250
  153. package/dist/runtime/webmcp.js +53 -42
  154. package/dist/static-headers-G7hFL3wE.mjs +328 -0
  155. package/dist/types.d.mts +1 -9
  156. package/package.json +20 -24
  157. package/skills/nuxt-ai-ready/SKILL.md +8 -2
  158. package/dist/chunks/agent-skills.mjs +0 -383
  159. package/dist/chunks/prerender.mjs +0 -683
  160. package/dist/shared/nuxt-ai-ready.Bzx0dNWj.mjs +0 -3034
  161. package/dist/shared/nuxt-ai-ready.DCd-1s1G.mjs +0 -29
@@ -5,9 +5,15 @@ import { data } from '../../lib/ai-ready/state'
5
5
  const config = computed(() => data.value?.config)
6
6
  const llmsTxt = computed(() => data.value?.llmsTxt)
7
7
 
8
- const configJson = computed(() => config.value ? JSON.stringify(config.value, null, 2) : '')
9
- const llmsTxtJson = computed(() => llmsTxt.value ? JSON.stringify(llmsTxt.value, null, 2) : '')
10
- const fullJson = computed(() => data.value ? JSON.stringify(data.value, null, 2) : '')
8
+ const configJson = computed(() => config.value
9
+ ? JSON.stringify(config.value, null, 2)
10
+ : '')
11
+ const llmsTxtJson = computed(() => llmsTxt.value
12
+ ? JSON.stringify(llmsTxt.value, null, 2)
13
+ : '')
14
+ const fullJson = computed(() => data.value
15
+ ? JSON.stringify(data.value, null, 2)
16
+ : '')
11
17
  </script>
12
18
 
13
19
  <template>
@@ -28,7 +28,9 @@ const { data: markdownContent, status: mdStatus } = useAsyncData('page-markdown'
28
28
  if (!appFetch.value || !selectedRoute.value)
29
29
  return null
30
30
  try {
31
- const mdRoute = selectedRoute.value === '/' ? '/index.md' : `${selectedRoute.value}.md`
31
+ const mdRoute = selectedRoute.value === '/'
32
+ ? '/index.md'
33
+ : `${selectedRoute.value}.md`
32
34
  return await appFetch.value(mdRoute, { responseType: 'text' }) as string
33
35
  }
34
36
  catch {
@@ -49,24 +49,35 @@ const templatePreview = computed(() => {
49
49
  if (!config)
50
50
  return ''
51
51
 
52
- const lines: string[] = ['# {Site Name}', '', '> {Site Description}', '']
52
+ const lines: string[] = [
53
+ '# {Site Name}',
54
+ '',
55
+ '> {Site Description}',
56
+ '',
57
+ ]
53
58
 
54
59
  for (const section of config.sections || []) {
55
60
  lines.push(`## ${section.title}`)
56
61
  if (section.description) {
57
- const descs = Array.isArray(section.description) ? section.description : [section.description]
62
+ const descs = Array.isArray(section.description)
63
+ ? section.description
64
+ : [section.description]
58
65
  for (const d of descs)
59
66
  lines.push('', d)
60
67
  }
61
68
  for (const link of section.links || []) {
62
- const desc = link.description ? `: ${link.description}` : ''
69
+ const desc = link.description
70
+ ? `: ${link.description}`
71
+ : ''
63
72
  lines.push(`- [${link.title}](${link.href})${desc}`)
64
73
  }
65
74
  lines.push('')
66
75
  }
67
76
 
68
77
  if (config.notes) {
69
- const notes = Array.isArray(config.notes) ? config.notes : [config.notes]
78
+ const notes = Array.isArray(config.notes)
79
+ ? config.notes
80
+ : [config.notes]
70
81
  for (const note of notes)
71
82
  lines.push(note)
72
83
  }
@@ -18,10 +18,34 @@ const currentTab = computed(() => {
18
18
  })
19
19
 
20
20
  const navItems = [
21
- { value: 'pages', to: '/ai-ready', icon: 'carbon:list', label: 'Pages', devOnly: false },
22
- { value: 'llms-txt', to: '/ai-ready/llms-txt', icon: 'carbon:document', label: 'llms.txt', devOnly: false },
23
- { value: 'debug', to: '/ai-ready/debug', icon: 'carbon:debug', label: 'Debug', devOnly: true },
24
- { value: 'docs', to: '/ai-ready/docs', icon: 'carbon:book', label: 'Docs', devOnly: false },
21
+ {
22
+ value: 'pages',
23
+ to: '/ai-ready',
24
+ icon: 'carbon:list',
25
+ label: 'Pages',
26
+ devOnly: false,
27
+ },
28
+ {
29
+ value: 'llms-txt',
30
+ to: '/ai-ready/llms-txt',
31
+ icon: 'carbon:document',
32
+ label: 'llms.txt',
33
+ devOnly: false,
34
+ },
35
+ {
36
+ value: 'debug',
37
+ to: '/ai-ready/debug',
38
+ icon: 'carbon:debug',
39
+ label: 'Debug',
40
+ devOnly: true,
41
+ },
42
+ {
43
+ value: 'docs',
44
+ to: '/ai-ready/docs',
45
+ icon: 'carbon:book',
46
+ label: 'Docs',
47
+ devOnly: false,
48
+ },
25
49
  ]
26
50
 
27
51
  const runtimeVersion = computed(() => data.value?.version || 'unknown')
package/dist/module.d.mts CHANGED
@@ -1,137 +1,131 @@
1
- import * as _nuxt_schema from '@nuxt/schema';
2
- import { ResolvedAiTermsConfig } from '../dist/runtime/ai-terms.js';
3
- export { AiTermsAccess, AiTermsConfig, AiTermsDocument, AiTermsFreeAllowance, AiTermsPath, AiTermsPayment, AiTermsPrice, AiTermsPurpose, AiTermsUse } from '../dist/runtime/ai-terms.js';
4
- import { LlmsTxtConfig, AgentSkillConfig, ContentNegotiationPolicy, ModuleOptions } from '../dist/runtime/types.js';
5
- export { AgentSkillConfig, AgentSkillsConfig, AgentSkillsIndex, AgentSkillsIndexEntry, ApiCatalogConfig, ApiCatalogEntry, ApiCatalogLinkTarget, ApiCatalogLinks, ExternalAgentSkillConfig, LocalAgentSkillConfig, McpServerCardConfig, ModuleOptions } from '../dist/runtime/types.js';
6
- import { RuntimeI18nConfig } from 'nuxtseo-shared/i18n-runtime';
7
- import { ResolvedWebMcpToolsConfig } from '../dist/runtime/site-tool-config.js';
8
- export { GetPageMarkdownToolOptions, ListPagesToolOptions, McpSiteToolAttachmentOptions, SearchPagesToolOptions, SiteToolOptions, SiteToolsConfig, WebMcpSiteToolAttachmentOptions } from '../dist/runtime/site-tool-config.js';
9
- import { AiCatalog } from '../dist/runtime/server/utils/discovery-response.js';
10
-
1
+ import "@nuxt/schema";
2
+ import "nitropack/types";
3
+ import { RuntimeI18nConfig } from "nuxtseo-shared/i18n-runtime";
4
+ import "./runtime/server/db/shared.js";
5
+ import "./runtime/server/utils/llms-full.js";
6
+ import { AgentSkillConfig, AgentSkillConfig as AgentSkillConfig$1, AgentSkillsConfig, AgentSkillsIndex, AgentSkillsIndexEntry, ApiCatalogConfig, ApiCatalogEntry, ApiCatalogLinkTarget, ApiCatalogLinks, ContentNegotiationPolicy, ExternalAgentSkillConfig, LlmsTxtConfig, LocalAgentSkillConfig, McpServerCardConfig, ModuleOptions, ModuleOptions as ModuleOptions$1 } from "./runtime/types.js";
7
+ import "nuxtseo-shared/prerender";
8
+ import { AiTermsAccess, AiTermsConfig, AiTermsDocument, AiTermsFreeAllowance, AiTermsPath, AiTermsPayment, AiTermsPrice, AiTermsPurpose, AiTermsUse, ResolvedAiTermsConfig } from "./runtime/ai-terms.js";
9
+ import "nuxtseo-shared/i18n";
10
+ import { GetPageMarkdownToolOptions, ListPagesToolOptions, McpSiteToolAttachmentOptions, ResolvedWebMcpToolsConfig, SearchPagesToolOptions, SiteToolOptions, SiteToolsConfig, WebMcpSiteToolAttachmentOptions } from "./runtime/site-tool-config.js";
11
+ import { AiCatalog } from "./runtime/server/utils/discovery-response.js";
11
12
  type DatabaseType = 'sqlite' | 'bun' | 'd1' | 'libsql' | 'neon' | 'postgres';
12
13
  /**
13
14
  * Database state after parsing. Every consumer reads `_tag` first, so a
14
15
  * disabled database can never carry a driver, a path, or credentials.
15
16
  */
16
17
  type ResolvedDatabase = {
17
- _tag: 'Disabled';
18
+ _tag: 'Disabled';
18
19
  } | {
19
- _tag: 'Enabled';
20
- type: DatabaseType;
21
- filename?: string;
22
- bindingName?: string;
23
- url?: string;
24
- authToken?: string;
20
+ _tag: 'Enabled';
21
+ type: DatabaseType;
22
+ filename?: string;
23
+ bindingName?: string;
24
+ url?: string;
25
+ authToken?: string;
25
26
  };
26
-
27
27
  interface ParsedMarkdownResult {
28
- markdown: string;
29
- title: string;
30
- description: string;
31
- headings: Array<Record<string, string>>;
32
- keywords?: string[];
33
- updatedAt?: string;
34
- contentSignal?: string;
28
+ markdown: string;
29
+ title: string;
30
+ description: string;
31
+ headings: Array<Record<string, string>>;
32
+ keywords?: string[];
33
+ updatedAt?: string;
34
+ contentSignal?: string;
35
35
  }
36
-
37
36
  interface ResolvedApiCatalogLinkTarget {
38
- href: string;
39
- type?: string;
40
- title?: string;
41
- hreflang?: string[];
42
- media?: string;
37
+ href: string;
38
+ type?: string;
39
+ title?: string;
40
+ hreflang?: string[];
41
+ media?: string;
43
42
  }
44
43
  type ResolvedApiCatalogLinksetEntry = Record<string, string | ResolvedApiCatalogLinkTarget[]>;
45
44
  interface ResolvedApiCatalogConfig {
46
- href: string;
47
- mediaType: string;
48
- document: {
49
- linkset: ResolvedApiCatalogLinksetEntry[];
50
- };
45
+ href: string;
46
+ mediaType: string;
47
+ document: {
48
+ linkset: ResolvedApiCatalogLinksetEntry[];
49
+ };
51
50
  }
52
-
53
51
  interface ResolvedWebMcpConfig {
54
- tools: ResolvedWebMcpToolsConfig;
55
- exposedTo?: string[];
52
+ tools: ResolvedWebMcpToolsConfig;
53
+ exposedTo?: string[];
56
54
  }
57
-
58
55
  declare function resolveAiCatalog(input: {
59
- siteUrl: string;
60
- serverCardName: string;
61
- serverCardTitle?: string;
62
- serverCardDescription?: string;
63
- serverCardUrl: string;
56
+ siteUrl: string;
57
+ serverCardName: string;
58
+ serverCardTitle?: string;
59
+ serverCardDescription?: string;
60
+ serverCardUrl: string;
64
61
  }): AiCatalog;
65
-
66
- interface ModuleHooks {
67
- /**
68
- * Hook called when page markdown is generated during prerendering.
69
- * Called with route and markdown content when content has changed.
70
- */
71
- 'ai-ready:page:markdown': (context: ParsedMarkdownResult & {
72
- route: string;
73
- }) => void | Promise<void>;
74
- /**
75
- * Hook to modify llms.txt configuration before it is finalized
76
- */
77
- 'ai-ready:llms-txt': (payload: {
78
- sections: LlmsTxtConfig['sections'];
79
- notes: string[];
80
- }) => void | Promise<void>;
81
- /**
82
- * Hook called with every agent skill about to be published: the ones
83
- * discovered under `agentSkills.dir` merged with `agentSkills.skills`.
84
- * Mutate the array to add external entries, drop a skill, or change its
85
- * aliases. The root alias is applied after this hook.
86
- */
87
- 'ai-ready:agent-skills': (payload: {
88
- skills: AgentSkillConfig[];
89
- }) => void | Promise<void>;
62
+ export interface ModuleHooks {
63
+ /**
64
+ * Hook called when page markdown is generated during prerendering.
65
+ * Called with route and markdown content when content has changed.
66
+ */
67
+ 'ai-ready:page:markdown': (context: ParsedMarkdownResult & {
68
+ route: string;
69
+ }) => void | Promise<void>;
70
+ /**
71
+ * Hook to modify llms.txt configuration before it is finalized
72
+ */
73
+ 'ai-ready:llms-txt': (payload: {
74
+ sections: LlmsTxtConfig['sections'];
75
+ notes: string[];
76
+ }) => void | Promise<void>;
77
+ /**
78
+ * Hook called with every agent skill about to be published: the ones
79
+ * discovered under `agentSkills.dir` merged with `agentSkills.skills`.
80
+ * Mutate the array to add external entries, drop a skill, or change its
81
+ * aliases. The root alias is applied after this hook.
82
+ */
83
+ 'ai-ready:agent-skills': (payload: {
84
+ skills: AgentSkillConfig$1[];
85
+ }) => void | Promise<void>;
90
86
  }
91
87
  declare module '@nuxt/schema' {
92
- interface NuxtHooks {
93
- 'ai-ready:page:markdown': ModuleHooks['ai-ready:page:markdown'];
94
- 'ai-ready:llms-txt': ModuleHooks['ai-ready:llms-txt'];
95
- 'ai-ready:agent-skills': ModuleHooks['ai-ready:agent-skills'];
96
- }
88
+ interface NuxtHooks {
89
+ 'ai-ready:page:markdown': ModuleHooks['ai-ready:page:markdown'];
90
+ 'ai-ready:llms-txt': ModuleHooks['ai-ready:llms-txt'];
91
+ 'ai-ready:agent-skills': ModuleHooks['ai-ready:agent-skills'];
92
+ }
97
93
  }
98
- interface ModulePublicRuntimeConfig {
99
- /** @deprecated The generated fallback paths are bundled with the Worker. */
100
- cloudflarePrerenderedPages?: string[];
101
- debug: boolean;
102
- debugCron: boolean;
103
- contentNegotiation: ContentNegotiationPolicy;
104
- botNegotiation: boolean;
105
- version: string;
106
- sitemapMd: boolean;
107
- describedby: boolean;
108
- llmsFullTxt?: boolean;
109
- mdreamOptions: ModuleOptions['mdreamOptions'];
110
- markdownCacheHeaders: Required<NonNullable<ModuleOptions['markdownCacheHeaders']>>;
111
- database: ResolvedDatabase;
112
- runtimeSync: {
113
- enabled: boolean;
114
- ttl: number;
115
- batchSize: number;
116
- pruneTtl: number;
117
- };
118
- runtimeSyncSecret?: string;
119
- sitemapPrerendered: boolean;
120
- i18n?: RuntimeI18nConfig | null;
121
- ftsTokenizer?: string;
122
- aiCatalog?: {
123
- cacheMaxAge: number;
124
- document: ReturnType<typeof resolveAiCatalog>;
125
- etag: string;
126
- };
127
- apiCatalog?: ResolvedApiCatalogConfig;
128
- aiTerms?: ResolvedAiTermsConfig;
94
+ export interface ModulePublicRuntimeConfig {
95
+ /** @deprecated The generated fallback paths are bundled with the Worker. */
96
+ cloudflarePrerenderedPages?: string[];
97
+ debug: boolean;
98
+ debugCron: boolean;
99
+ contentNegotiation: ContentNegotiationPolicy;
100
+ botNegotiation: boolean;
101
+ version: string;
102
+ sitemapMd: boolean;
103
+ describedby: boolean;
104
+ llmsFullTxt?: boolean;
105
+ mdreamOptions: ModuleOptions$1['mdreamOptions'];
106
+ markdownCacheHeaders: Required<NonNullable<ModuleOptions$1['markdownCacheHeaders']>>;
107
+ database: ResolvedDatabase;
108
+ runtimeSync: {
109
+ enabled: boolean;
110
+ ttl: number;
111
+ batchSize: number;
112
+ pruneTtl: number;
113
+ };
114
+ runtimeSyncSecret?: string;
115
+ sitemapPrerendered: boolean;
116
+ i18n?: RuntimeI18nConfig | null;
117
+ ftsTokenizer?: string;
118
+ aiCatalog?: {
119
+ cacheMaxAge: number;
120
+ document: ReturnType<typeof resolveAiCatalog>;
121
+ etag: string;
122
+ };
123
+ apiCatalog?: ResolvedApiCatalogConfig;
124
+ aiTerms?: ResolvedAiTermsConfig;
129
125
  }
130
126
  /** Runtime config exposed to the browser, only set when WebMCP is enabled. */
131
- interface ModuleAppRuntimeConfig {
132
- webmcp: ResolvedWebMcpConfig;
127
+ export interface ModuleAppRuntimeConfig {
128
+ webmcp: ResolvedWebMcpConfig;
133
129
  }
134
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
135
-
136
- export { _default as default };
137
- export type { ModuleAppRuntimeConfig, ModuleHooks, ModulePublicRuntimeConfig };
130
+ declare const _default: import("@nuxt/schema").NuxtModule<ModuleOptions$1, ModuleOptions$1, false>;
131
+ export { type AgentSkillConfig, type AgentSkillsConfig, type AgentSkillsIndex, type AgentSkillsIndexEntry, type AiTermsAccess, type AiTermsConfig, type AiTermsDocument, type AiTermsFreeAllowance, type AiTermsPath, type AiTermsPayment, type AiTermsPrice, type AiTermsPurpose, type AiTermsUse, type ApiCatalogConfig, type ApiCatalogEntry, type ApiCatalogLinkTarget, type ApiCatalogLinks, type ExternalAgentSkillConfig, type GetPageMarkdownToolOptions, type ListPagesToolOptions, type LocalAgentSkillConfig, type McpServerCardConfig, type McpSiteToolAttachmentOptions, type ModuleOptions, type SearchPagesToolOptions, type SiteToolOptions, type SiteToolsConfig, type WebMcpSiteToolAttachmentOptions, _default as default };
package/dist/module.json CHANGED
@@ -4,9 +4,9 @@
4
4
  "nuxt": "^4.6.0 || ^5.0.0-0"
5
5
  },
6
6
  "configKey": "aiReady",
7
- "version": "3.6.0",
7
+ "version": "3.6.2",
8
8
  "builder": {
9
- "@nuxt/module-builder": "1.0.4",
10
- "unbuild": "3.6.1"
9
+ "@nuxt/module-builder": "2.0.0-alpha.1",
10
+ "tsdown": "0.23.7"
11
11
  }
12
12
  }