diff --git a/layer/modules/assistant/runtime/server/utils/assistant.ts b/layer/modules/assistant/runtime/server/utils/assistant.ts index 208352f71..514c61591 100644 --- a/layer/modules/assistant/runtime/server/utils/assistant.ts +++ b/layer/modules/assistant/runtime/server/utils/assistant.ts @@ -1,8 +1,7 @@ import { toUIMessageStream, createUIMessageStreamResponse, isStepCount, smoothStream } from 'ai' import type { streamText, ToolSet } from 'ai' import { createMCPClient } from '@ai-sdk/mcp' - -type H3Event = Parameters[0] +import type { H3Event } from 'h3' type StreamTextOptions = Parameters[0] diff --git a/layer/package.json b/layer/package.json index b7e27d880..6ff7d7704 100644 --- a/layer/package.json +++ b/layer/package.json @@ -52,6 +52,7 @@ "defu": "^6.1.7", "exsolve": "^1.1.1", "git-url-parse": "^16.1.0", + "h3": "^1.15.11", "motion-v": "^2.5.1", "nuxt-agent-discovery": "^0.7.0", "nuxt-llms": "^0.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 75ba74573..9fb58b281 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -351,6 +351,9 @@ importers: git-url-parse: specifier: ^16.1.0 version: 16.1.0 + h3: + specifier: 1.15.11 + version: 1.15.11 motion-v: specifier: ^2.5.1 version: 2.5.1(@vueuse/core@15.0.0(vue@3.5.43(typescript@6.0.3)))(vue@3.5.43(typescript@6.0.3))