nuxt-extensions-core-vendoring
Installation
SKILL.md
Vendored nuxt-extensions core Knowledge Base
Gotchas
- Upstream tags have NO
vprefix —@lenne.tech/nuxt-extensionspublishes tags like7.19.0, notv7.19.0. Usingv7.19.0in git refs or changelog links produces 404s. This differs from@lenne.tech/nest-serverwhich also drops the prefix but some tooling adds it back automatically. nuxt.config.tsmodule registration is NOT auto-handled on sync — When a new composable or module file is added upstream, the sync agent copies the file but does NOT register it innuxt.config.ts. You must manually add the module reference after a sync, otherwise Nuxt does not expose the new functionality.- Auto-imports work for composables + components but NOT for types — Files in
app/core/are auto-imported by Nuxt for composables and components, but explicitly imported types (e.g.import type { Foo } from '@lenne.tech/nuxt-extensions') need their paths rewritten to relative references after vendoring. This rewrite is not fully automated. - Local patches in
app/core/are invisible to future syncs — Same gotcha as nest-server-core-vendoring: the updater can't infer your intent. Document intentional local deviations inapp/core/LOCAL-PATCHES.md. - 1.7.0 sync brings the AI module — The 1.7.0 baseline adds
src/runtime/composables/use-lt-ai*.ts,src/runtime/lib/ai.ts, andsrc/runtime/types/ai.ts(~700 LoC). After sync, projects must add anltExtensions.ai: { enabled, basePath }section tonuxt.config.ts— auto-imports do not work until the option is registered. Default option in upstream isenabled: true, so projects that never want AI should setenabled: falseafter the sync. - 1.7.0 pre-release-only breaking renames — Only relevant for projects that vendored a 1.7.0 PRE-release into
app/core/. Rename map (apply via project-wide replace after sync):useLtAiSnippets→useLtAiPrompts,LtAiPromptSnippet→LtAiPrompt,LtAiPromptSnippetInput→LtAiPromptInput,LtAiPromptTemplate→LtAiSlot,LtAiPromptTemplateInput→LtAiSlotInput,UseLtAiSnippetsReturn→UseLtAiPromptsReturn. Additionally: the EXECUTION payload type foruseLtAi.prompt()was renamedLtAiPromptInput→LtAiPromptRunInput(CRUD input keeps the conventionalLtAiPromptInputname). Projects that synced a 1.6.x or earlier baseline are unaffected.
This skill provides knowledge and resources for lenne.tech projects that have vendored the @lenne.tech/nuxt-extensions module into their source tree. For automated execution, use the matching agents: