@pythoughts/vue-skills-mcp 0.3.0 → 0.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pythoughts/vue-skills-mcp",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "description": "MCP server exposing the Vue 3 best-practice skills so any MCP coding agent can fetch them automatically on Vue work.",
6
6
  "author": "Mohamed Elkholy (elkaix)",
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: vue-ai-apps
3
3
  description: "Building AI/LLM and agent apps with Vue 3 and Nuxt: streaming chat UIs, the Vercel AI SDK (`ai` + `@ai-sdk/vue`), `useChat`, tool calling, structured output, and abort/error handling. Load for AI chatbots, assistant UIs, LLM streaming, or agent frontends in Vue or Nuxt."
4
- version: "1.1.0"
4
+ version: "1.1.1"
5
5
  license: MIT
6
6
  author: github.com/Pythoughts-labs
7
7
  ---
@@ -48,7 +48,7 @@ export default defineEventHandler(async (event) => {
48
48
 
49
49
  const result = streamText({
50
50
  model: openai('gpt-4o'),
51
- messages: convertToModelMessages(messages),
51
+ messages: await convertToModelMessages(messages),
52
52
  })
53
53
 
54
54
  // Standard v5 streaming response. (The Nuxt template also shows a
@@ -94,6 +94,7 @@ function send() {
94
94
  - `useChat` returns Vue refs (`messages.value`, `status.value`); templates unwrap them automatically.
95
95
  - `status` values: `'submitted'` (sent, awaiting first token) → `'streaming'` (receiving) → `'ready'` (done) → `'error'`. Treat `submitted` + `streaming` as busy.
96
96
  - `sendMessage` also accepts files/attachments and per-call options; `text` is the common case.
97
+ - `convertToModelMessages` is **async in `ai@7`** (returns `Promise<ModelMessage[]>`); `await` it. It was synchronous in early v5 — copying old code drops the `await` and passes a Promise to `streamText`.
97
98
  - The core `streamText` signature can change between AI SDK minors — verify against the installed version rather than copying blindly.
98
99
 
99
100
  ## Reference
@@ -42,7 +42,7 @@ export default defineEventHandler(async (event) => {
42
42
 
43
43
  const result = streamText({
44
44
  model: openai('gpt-4o'),
45
- messages: convertToModelMessages(messages),
45
+ messages: await convertToModelMessages(messages),
46
46
  stopWhen: stepCountIs(5), // let the model use a tool then answer
47
47
  tools: {
48
48
  getWeather: tool({