-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypescript_errors.txt
More file actions
85 lines (85 loc) · 36.8 KB
/
typescript_errors.txt
File metadata and controls
85 lines (85 loc) · 36.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
.next/dev/types/validator.ts(206,39): error TS2307: Cannot find module '../../../app/cli-auth/page.js' or its corresponding type declarations.
.next/dev/types/validator.ts(530,39): error TS2307: Cannot find module '../../../app/api/cli-auth/route.js' or its corresponding type declarations.
.next/dev/types/validator.ts(557,39): error TS2307: Cannot find module '../../../app/api/health/route.js' or its corresponding type declarations.
app/(chat)/api/subagents/chat/route.ts(3,3): error TS2724: '"ai"' has no exported member named 'createDataStreamResponse'. Did you mean 'createTextStreamResponse'?
app/(chat)/api/subagents/chat/route.ts(92,23): error TS7006: Parameter 'dataStream' implicitly has an 'any' type.
app/(chat)/api/subagents/chat/route.ts(121,36): error TS7031: Binding element 'finishedMessages' implicitly has an 'any' type.
app/(chat)/api/subagents/chat/route.ts(138,94): error TS2339: Property 'text' does not exist on type 'UIMessagePart<CustomUIDataTypes, ChatTools>'.
Property 'text' does not exist on type '{ type: "dynamic-tool"; toolName: string; toolCallId: string; title?: string | undefined; providerExecuted?: boolean | undefined; } & { state: "input-streaming"; input: unknown; output?: undefined; errorText?: undefined; approval?: undefined; }'.
app/(chat)/api/subagents/chat/route.ts(161,17): error TS7006: Parameter 'error' implicitly has an 'any' type.
components/subagent-chat.tsx(22,21): error TS2339: Property 'input' does not exist on type 'UseChatHelpers<UIMessage<unknown, UIDataTypes, UITools>>'.
components/subagent-chat.tsx(22,28): error TS2339: Property 'handleInputChange' does not exist on type 'UseChatHelpers<UIMessage<unknown, UIDataTypes, UITools>>'.
components/subagent-chat.tsx(22,47): error TS2339: Property 'handleSubmit' does not exist on type 'UseChatHelpers<UIMessage<unknown, UIDataTypes, UITools>>'.
components/subagent-chat.tsx(22,61): error TS2339: Property 'isLoading' does not exist on type 'UseChatHelpers<UIMessage<unknown, UIDataTypes, UITools>>'.
components/subagent-chat.tsx(22,85): error TS2339: Property 'append' does not exist on type 'UseChatHelpers<UIMessage<unknown, UIDataTypes, UITools>>'.
components/subagent-chat.tsx(23,5): error TS2353: Object literal may only specify known properties, and 'api' does not exist in type 'UseChatOptions<UIMessage<unknown, UIDataTypes, UITools>>'.
components/subagent-chat.tsx(122,41): error TS2322: Type '{ size: number; className: string; }' is not assignable to type 'IntrinsicAttributes & { size?: number | undefined; }'.
Property 'className' does not exist on type 'IntrinsicAttributes & { size?: number | undefined; }'.
components/subagent-chat.tsx(171,23): error TS2304: Cannot find name 'type'.
components/subagent-chat.tsx(188,41): error TS2322: Type '"result" | "call"' is not assignable to type '"input-streaming" | "input-available" | "approval-requested" | "approval-responded" | "output-available" | "output-error" | "output-denied"'.
Type '"result"' is not assignable to type '"input-streaming" | "input-available" | "approval-requested" | "approval-responded" | "output-available" | "output-error" | "output-denied"'.
components/subagent-chat.tsx(224,78): error TS2339: Property 'content' does not exist on type 'UIMessage<unknown, UIDataTypes, UITools>'.
components/subagent-chat.tsx(234,74): error TS2339: Property 'content' does not exist on type 'UIMessage<unknown, UIDataTypes, UITools>'.
components/subagent-chat.tsx(236,46): error TS2339: Property 'content' does not exist on type 'UIMessage<unknown, UIDataTypes, UITools>'.
components/subagent-chat.tsx(242,28): error TS2339: Property 'toolInvocations' does not exist on type 'UIMessage<unknown, UIDataTypes, UITools>'.
components/subagent-chat.tsx(242,55): error TS2339: Property 'toolInvocations' does not exist on type 'UIMessage<unknown, UIDataTypes, UITools>'.
components/subagent-chat.tsx(242,76): error TS7006: Parameter 'invocation' implicitly has an 'any' type.
components/subagent-chat.tsx(247,41): error TS2322: Type '"result" | "call"' is not assignable to type '"input-streaming" | "input-available" | "approval-requested" | "approval-responded" | "output-available" | "output-error" | "output-denied"'.
Type '"result"' is not assignable to type '"input-streaming" | "input-available" | "approval-requested" | "approval-responded" | "output-available" | "output-error" | "output-denied"'.
components/subagent-hub.tsx(111,18): error TS2304: Cannot find name 'Button'.
components/subagent-hub.tsx(118,19): error TS2304: Cannot find name 'Button'.
lib/ai/models.test.ts(11,3): error TS2322: Type '() => Promise<{ finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; content: { ...; }[]; warnings: never[]; }>' is not assignable to type '((options: LanguageModelV3CallOptions) => PromiseLike<LanguageModelV3GenerateResult>) | LanguageModelV3GenerateResult | LanguageModelV3GenerateResult[] | undefined'.
Type '() => Promise<{ finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; content: { ...; }[]; warnings: never[]; }>' is not assignable to type '(options: LanguageModelV3CallOptions) => PromiseLike<LanguageModelV3GenerateResult>'.
Call signature return types 'Promise<{ finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; content: { ...; }[]; warnings: never[]; }>' and 'PromiseLike<LanguageModelV3GenerateResult>' are incompatible.
The types of 'then' are incompatible between these types.
Type '<TResult1 = { finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; content: { ...; }[]; warnings: never[]; }, TResult2 = never>(onfulfilled?: ((value: { ...; }) => TResult1 | Promi...' is not assignable to type '<TResult1 = LanguageModelV3GenerateResult, TResult2 = never>(onfulfilled?: ((value: LanguageModelV3GenerateResult) => TResult1 | PromiseLike<...>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<...>) | ... 1 more ... | undefined) => PromiseLike<...>'.
Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible.
Types of parameters 'value' and 'value' are incompatible.
Type '{ finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; content: { ...; }[]; warnings: never[]; }' is not assignable to type 'LanguageModelV3GenerateResult'.
Types of property 'finishReason' are incompatible.
Type 'string' is not assignable to type 'LanguageModelV3FinishReason'.
lib/ai/models.test.ts(27,3): error TS2322: Type '() => Promise<{ finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; content: { ...; }[]; warnings: never[]; }>' is not assignable to type '((options: LanguageModelV3CallOptions) => PromiseLike<LanguageModelV3GenerateResult>) | LanguageModelV3GenerateResult | LanguageModelV3GenerateResult[] | undefined'.
Type '() => Promise<{ finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; content: { ...; }[]; warnings: never[]; }>' is not assignable to type '(options: LanguageModelV3CallOptions) => PromiseLike<LanguageModelV3GenerateResult>'.
Call signature return types 'Promise<{ finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; content: { ...; }[]; warnings: never[]; }>' and 'PromiseLike<LanguageModelV3GenerateResult>' are incompatible.
The types of 'then' are incompatible between these types.
Type '<TResult1 = { finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; content: { ...; }[]; warnings: never[]; }, TResult2 = never>(onfulfilled?: ((value: { ...; }) => TResult1 | Promi...' is not assignable to type '<TResult1 = LanguageModelV3GenerateResult, TResult2 = never>(onfulfilled?: ((value: LanguageModelV3GenerateResult) => TResult1 | PromiseLike<...>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<...>) | ... 1 more ... | undefined) => PromiseLike<...>'.
Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible.
Types of parameters 'value' and 'value' are incompatible.
Type '{ finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; content: { ...; }[]; warnings: never[]; }' is not assignable to type 'LanguageModelV3GenerateResult'.
Types of property 'finishReason' are incompatible.
Type 'string' is not assignable to type 'LanguageModelV3FinishReason'.
lib/ai/models.test.ts(43,3): error TS2322: Type '() => Promise<{ finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; content: { ...; }[]; warnings: never[]; }>' is not assignable to type '((options: LanguageModelV3CallOptions) => PromiseLike<LanguageModelV3GenerateResult>) | LanguageModelV3GenerateResult | LanguageModelV3GenerateResult[] | undefined'.
Type '() => Promise<{ finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; content: { ...; }[]; warnings: never[]; }>' is not assignable to type '(options: LanguageModelV3CallOptions) => PromiseLike<LanguageModelV3GenerateResult>'.
Call signature return types 'Promise<{ finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; content: { ...; }[]; warnings: never[]; }>' and 'PromiseLike<LanguageModelV3GenerateResult>' are incompatible.
The types of 'then' are incompatible between these types.
Type '<TResult1 = { finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; content: { ...; }[]; warnings: never[]; }, TResult2 = never>(onfulfilled?: ((value: { ...; }) => TResult1 | Promi...' is not assignable to type '<TResult1 = LanguageModelV3GenerateResult, TResult2 = never>(onfulfilled?: ((value: LanguageModelV3GenerateResult) => TResult1 | PromiseLike<...>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<...>) | ... 1 more ... | undefined) => PromiseLike<...>'.
Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible.
Types of parameters 'value' and 'value' are incompatible.
Type '{ finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; content: { ...; }[]; warnings: never[]; }' is not assignable to type 'LanguageModelV3GenerateResult'.
Types of property 'finishReason' are incompatible.
Type 'string' is not assignable to type 'LanguageModelV3FinishReason'.
lib/ai/models.test.ts(49,3): error TS2322: Type '() => Promise<{ stream: ReadableStream<{ id: string; type: "text-start"; delta?: undefined; finishReason?: undefined; usage?: undefined; } | { id: string; type: "text-delta"; delta: string; finishReason?: undefined; usage?: undefined; } | { ...; } | { ...; }>; }>' is not assignable to type '((options: LanguageModelV3CallOptions) => PromiseLike<LanguageModelV3StreamResult>) | LanguageModelV3StreamResult | LanguageModelV3StreamResult[] | undefined'.
Type '() => Promise<{ stream: ReadableStream<{ id: string; type: "text-start"; delta?: undefined; finishReason?: undefined; usage?: undefined; } | { id: string; type: "text-delta"; delta: string; finishReason?: undefined; usage?: undefined; } | { ...; } | { ...; }>; }>' is not assignable to type '(options: LanguageModelV3CallOptions) => PromiseLike<LanguageModelV3StreamResult>'.
Call signature return types 'Promise<{ stream: ReadableStream<{ id: string; type: "text-start"; delta?: undefined; finishReason?: undefined; usage?: undefined; } | { id: string; type: "text-delta"; delta: string; finishReason?: undefined; usage?: undefined; } | { ...; } | { ...; }>; }>' and 'PromiseLike<LanguageModelV3StreamResult>' are incompatible.
The types of 'then' are incompatible between these types.
Type '<TResult1 = { stream: ReadableStream<{ id: string; type: "text-start"; delta?: undefined; finishReason?: undefined; usage?: undefined; } | { id: string; type: "text-delta"; delta: string; finishReason?: undefined; usage?: undefined; } | { ...; } | { ...; }>; }, TResult2 = never>(onfulfilled?: ((value: { ...; }) => T...' is not assignable to type '<TResult1 = LanguageModelV3StreamResult, TResult2 = never>(onfulfilled?: ((value: LanguageModelV3StreamResult) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<...>) | ... 1 more ... | undefined) => PromiseLike<...>'.
Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible.
Types of parameters 'value' and 'value' are incompatible.
Type '{ stream: ReadableStream<{ id: string; type: "text-start"; delta?: undefined; finishReason?: undefined; usage?: undefined; } | { id: string; type: "text-delta"; delta: string; finishReason?: undefined; usage?: undefined; } | { ...; } | { ...; }>; }' is not assignable to type 'LanguageModelV3StreamResult'.
Types of property 'stream' are incompatible.
Type 'ReadableStream<{ id: string; type: "text-start"; delta?: undefined; finishReason?: undefined; usage?: undefined; } | { id: string; type: "text-delta"; delta: string; finishReason?: undefined; usage?: undefined; } | { ...; } | { ...; }>' is not assignable to type 'ReadableStream<LanguageModelV3StreamPart>'.
Type '{ id: string; type: "text-start"; delta?: undefined; finishReason?: undefined; usage?: undefined; } | { id: string; type: "text-delta"; delta: string; finishReason?: undefined; usage?: undefined; } | { ...; } | { ...; }' is not assignable to type 'LanguageModelV3StreamPart'.
Type '{ type: "finish"; finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; id?: undefined; delta?: undefined; }' is not assignable to type 'LanguageModelV3StreamPart'.
Type '{ type: "finish"; finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; id?: undefined; delta?: undefined; }' is not assignable to type '{ type: "finish"; usage: LanguageModelV3Usage; finishReason: LanguageModelV3FinishReason; providerMetadata?: SharedV3ProviderMetadata | undefined; }'.
Types of property 'finishReason' are incompatible.
Type 'string' is not assignable to type 'LanguageModelV3FinishReason'.
lib/ai/models.test.ts(68,3): error TS2322: Type '() => Promise<{ finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; content: { ...; }[]; warnings: never[]; }>' is not assignable to type '((options: LanguageModelV3CallOptions) => PromiseLike<LanguageModelV3GenerateResult>) | LanguageModelV3GenerateResult | LanguageModelV3GenerateResult[] | undefined'.
Type '() => Promise<{ finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; content: { ...; }[]; warnings: never[]; }>' is not assignable to type '(options: LanguageModelV3CallOptions) => PromiseLike<LanguageModelV3GenerateResult>'.
Call signature return types 'Promise<{ finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; content: { ...; }[]; warnings: never[]; }>' and 'PromiseLike<LanguageModelV3GenerateResult>' are incompatible.
The types of 'then' are incompatible between these types.
Type '<TResult1 = { finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; content: { ...; }[]; warnings: never[]; }, TResult2 = never>(onfulfilled?: ((value: { ...; }) => TResult1 | Promi...' is not assignable to type '<TResult1 = LanguageModelV3GenerateResult, TResult2 = never>(onfulfilled?: ((value: LanguageModelV3GenerateResult) => TResult1 | PromiseLike<...>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<...>) | ... 1 more ... | undefined) => PromiseLike<...>'.
Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible.
Types of parameters 'value' and 'value' are incompatible.
Type '{ finishReason: string; usage: { inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number; }; outputTokens: { total: number; text: number; reasoning: number; }; }; content: { ...; }[]; warnings: never[]; }' is not assignable to type 'LanguageModelV3GenerateResult'.
Types of property 'finishReason' are incompatible.
Type 'string' is not assignable to type 'LanguageModelV3FinishReason'.