Skip to content

Commit 13c9f03

Browse files
Merge pull request #93 from cloudflare/update-deps
update deps
2 parents 8832e10 + a0d93c2 commit 13c9f03

File tree

9 files changed

+720
-867
lines changed

9 files changed

+720
-867
lines changed

biome.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.0.4/schema.json",
33
"vcs": {
44
"enabled": false,
55
"clientKind": "git",
66
"useIgnoreFile": false
77
},
88
"files": {
99
"ignoreUnknown": false,
10-
"ignore": ["node_modules", "dist", "./worker-configuration.d.ts"]
10+
"includes": [
11+
"!node_modules",
12+
"!dist",
13+
"!./worker-configuration.d.ts",
14+
"src/**"
15+
]
1116
},
1217
"formatter": {
1318
"enabled": false,
1419
"indentStyle": "tab"
1520
},
16-
"organizeImports": {
21+
"assist": {
22+
"actions": {
23+
"source": {
24+
"useSortedKeys": "on"
25+
}
26+
},
1727
"enabled": true
1828
},
1929
"linter": {

package-lock.json

Lines changed: 672 additions & 836 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,42 +20,42 @@
2020
"author": "",
2121
"license": "MIT",
2222
"devDependencies": {
23-
"@biomejs/biome": "^1.9.4",
24-
"@cloudflare/vite-plugin": "1.1.1",
25-
"@cloudflare/vitest-pool-workers": "^0.8.27",
26-
"@cloudflare/workers-types": "^4.20250513.0",
27-
"@tailwindcss/vite": "^4.1.6",
28-
"@types/node": "^22.15.17",
29-
"@types/react": "^19.1.4",
30-
"@types/react-dom": "^19.1.5",
31-
"@vitejs/plugin-react": "^4.4.1",
23+
"@biomejs/biome": "^2.0.4",
24+
"@cloudflare/vite-plugin": "1.7.4",
25+
"@cloudflare/vitest-pool-workers": "^0.8.43",
26+
"@cloudflare/workers-types": "^4.20250620.0",
27+
"@tailwindcss/vite": "^4.1.10",
28+
"@types/node": "^24.0.3",
29+
"@types/react": "^19.1.8",
30+
"@types/react-dom": "^19.1.6",
31+
"@vitejs/plugin-react": "^4.5.2",
3232
"prettier": "^3.5.3",
33-
"tailwindcss": "^4.1.6",
33+
"tailwindcss": "^4.1.10",
3434
"typescript": "^5.8.3",
3535
"vite": "^6.3.5",
36-
"vitest": "3.1.3",
37-
"wrangler": "^4.14.4"
36+
"vitest": "3.2.4",
37+
"wrangler": "^4.20.5"
3838
},
3939
"dependencies": {
4040
"@ai-sdk/openai": "^1.3.22",
4141
"@ai-sdk/react": "^1.2.12",
4242
"@ai-sdk/ui-utils": "^1.2.11",
43-
"@phosphor-icons/react": "^2.1.7",
44-
"@radix-ui/react-avatar": "^1.1.9",
45-
"@radix-ui/react-dropdown-menu": "^2.1.14",
46-
"@radix-ui/react-slot": "^1.2.2",
47-
"@radix-ui/react-switch": "^1.2.4",
43+
"@phosphor-icons/react": "^2.1.10",
44+
"@radix-ui/react-avatar": "^1.1.10",
45+
"@radix-ui/react-dropdown-menu": "^2.1.15",
46+
"@radix-ui/react-slot": "^1.2.3",
47+
"@radix-ui/react-switch": "^1.2.5",
4848
"@types/marked": "^6.0.0",
49-
"agents": "^0.0.86",
50-
"ai": "^4.3.15",
49+
"agents": "^0.0.97",
50+
"ai": "^4.3.16",
5151
"class-variance-authority": "^0.7.1",
5252
"clsx": "^2.1.1",
53-
"marked": "^15.0.11",
53+
"marked": "^15.0.12",
5454
"react": "^19.1.0",
5555
"react-dom": "^19.1.0",
5656
"react-markdown": "^10.1.0",
5757
"remark-gfm": "^4.0.1",
58-
"tailwind-merge": "^3.3.0",
59-
"zod": "^3.24.4"
58+
"tailwind-merge": "^3.3.1",
59+
"zod": "^3.25.67"
6060
}
6161
}

src/app.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export default function Chat() {
119119
data-icon="agents"
120120
>
121121
<title>Cloudflare Agents</title>
122+
{/** biome-ignore lint/nursery/useUniqueElementIds: it's fine */}
122123
<symbol id="ai:local:agents" viewBox="0 0 80 79">
123124
<path
124125
fill="currentColor"
@@ -322,7 +323,7 @@ export default function Chat() {
322323
? "Please respond to the tool confirmation above..."
323324
: "Send a message..."
324325
}
325-
className="flex w-full border border-neutral-200 dark:border-neutral-700 px-3 py-2 text-base ring-offset-background placeholder:text-neutral-500 dark:placeholder:text-neutral-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-300 dark:focus-visible:ring-neutral-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-neutral-900 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm min-h-[24px] max-h-[calc(75dvh)] overflow-hidden resize-none rounded-2xl !text-base pb-10 dark:bg-neutral-900"
326+
className="flex w-full border border-neutral-200 dark:border-neutral-700 px-3 py-2 ring-offset-background placeholder:text-neutral-500 dark:placeholder:text-neutral-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-300 dark:focus-visible:ring-neutral-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-neutral-900 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm min-h-[24px] max-h-[calc(75dvh)] overflow-hidden resize-none rounded-2xl !text-base pb-10 dark:bg-neutral-900"
326327
value={agentInput}
327328
onChange={(e) => {
328329
handleAgentInputChange(e);
@@ -399,6 +400,7 @@ function HasOpenAIKey() {
399400
strokeLinejoin="round"
400401
aria-labelledby="warningIcon"
401402
>
403+
{/** biome-ignore lint/nursery/useUniqueElementIds: it's fine */}
402404
<title id="warningIcon">Warning Icon</title>
403405
<circle cx="12" cy="12" r="10" />
404406
<line x1="12" y1="8" x2="12" y2="12" />

src/components/dropdown/DropdownMenu.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** biome-ignore-all lint/a11y/noStaticElementInteractions: todo */
12
import { DotsThree, IconContext } from "@phosphor-icons/react";
23
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
34

src/components/input/Input.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export const Input = ({
6060

6161
return preText ? (
6262
// biome-ignore lint/a11y/useKeyWithClickEvents: todo
63+
// biome-ignore lint/a11y/noStaticElementInteractions: todo
6364
<div
6465
className={cn(
6566
"has-[:disabled]:ob-disable has-[:enabled]:active:border-ob-border-active has-[:focus]:border-ob-border-active flex cursor-text",

src/components/modal/Modal.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ export const Modal = ({
2222
onClose,
2323
}: ModalProps) => {
2424
const modalRef = clickOutsideToClose
25-
? useClickOutside(onClose)
26-
: useRef<HTMLDivElement>(null);
25+
? // biome-ignore lint/correctness/useHookAtTopLevel: todo
26+
useClickOutside(onClose)
27+
: // biome-ignore lint/correctness/useHookAtTopLevel: todo
28+
useRef<HTMLDivElement>(null);
2729

2830
// Stop site overflow when modal is open
2931
useEffect(() => {

src/components/tooltip/Tooltip.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export const Tooltip = ({ children, className, content, id }: TooltipProps) => {
5656
}, [isVisible]);
5757

5858
return (
59+
// biome-ignore lint/a11y/noStaticElementInteractions: it's fine, but todo fix
5960
<div
6061
aria-describedby={isVisible ? tooltipId : undefined}
6162
className={cn("relative inline-block", className)}

src/server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class Chat extends AIChatAgent<Env> {
3333

3434
async onChatMessage(
3535
onFinish: StreamTextOnFinishCallback<ToolSet>,
36-
options?: { abortSignal?: AbortSignal }
36+
_options?: { abortSignal?: AbortSignal }
3737
) {
3838
// const mcpConnection = await this.mcp.connect(
3939
// "https://path-to-mcp-server/sse"
@@ -87,7 +87,7 @@ If the user asks to schedule a task, use the schedule tool to schedule the task.
8787

8888
return dataStreamResponse;
8989
}
90-
async executeTask(description: string, task: Schedule<string>) {
90+
async executeTask(description: string, _task: Schedule<string>) {
9191
await this.saveMessages([
9292
...this.messages,
9393
{
@@ -104,7 +104,7 @@ If the user asks to schedule a task, use the schedule tool to schedule the task.
104104
* Worker entry point that routes incoming requests to the appropriate handler
105105
*/
106106
export default {
107-
async fetch(request: Request, env: Env, ctx: ExecutionContext) {
107+
async fetch(request: Request, env: Env, _ctx: ExecutionContext) {
108108
const url = new URL(request.url);
109109

110110
if (url.pathname === "/check-open-ai-key") {

0 commit comments

Comments
 (0)