Skip to content

Commit 8aa7ac3

Browse files
Merge pull request #150 from sam-huckaby/task-cleanup-imports
TASK: Tidy up app/server imports
2 parents 87ec477 + 241bbbb commit 8aa7ac3

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/app.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
import { Suspense, useCallback, useState, useEffect, useRef } from "react";
22
import { useAgent } from "agents/react";
33
import { useAgentChat } from "@cloudflare/ai-chat/react";
4-
import { isToolUIPart, getToolName } from "ai";
5-
import type { UIMessage } from "ai";
4+
import { getToolName, isToolUIPart, type UIMessage } from "ai";
65
import type { MCPServersState } from "agents";
76
import type { ChatAgent } from "./server";
87
import {
9-
Button,
108
Badge,
11-
InputArea,
9+
Button,
1210
Empty,
11+
InputArea,
1312
Surface,
13+
Switch,
1414
Text
1515
} from "@cloudflare/kumo";
1616
import { Toasty, useKumoToastManager } from "@cloudflare/kumo/components/toast";
1717
import { Streamdown } from "streamdown";
1818
import { code } from "@streamdown/code";
19-
import { Switch } from "@cloudflare/kumo";
2019
import {
2120
PaperPlaneRightIcon,
2221
StopIcon,

src/server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { createWorkersAI } from "workers-ai-provider";
2-
import { routeAgentRequest, callable, type Schedule } from "agents";
2+
import { callable, routeAgentRequest, type Schedule } from "agents";
33
import { getSchedulePrompt, scheduleSchema } from "agents/schedule";
44
import { AIChatAgent, type OnChatMessageOptions } from "@cloudflare/ai-chat";
55
import {
6-
streamText,
76
convertToModelMessages,
87
pruneMessages,
9-
tool,
108
stepCountIs,
9+
streamText,
10+
tool,
1111
type ModelMessage
1212
} from "ai";
1313
import { z } from "zod";

0 commit comments

Comments
 (0)