Skip to content

Commit 0035951

Browse files
Update deps (#681)
* update dependencies * explicit anys are now errors * remove more anys
1 parent f5ccde3 commit 0035951

File tree

25 files changed

+424
-340
lines changed

25 files changed

+424
-340
lines changed

.changeset/shy-coins-watch.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"hono-agents": patch
3+
"agents": patch
4+
---
5+
6+
update dependencies

biome.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
"noImportantStyles": "off"
4848
},
4949
"suspicious": {
50-
"noExplicitAny": "warn"
50+
"noExplicitAny": "error",
51+
"noEmptyInterface": "off"
5152
},
5253
"recommended": true,
5354
"style": {

examples/a2a/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"author": "Matt Carey <[email protected]>",
55
"dependencies": {
66
"@a2a-js/sdk": "^0.2.2",
7-
"hono": "^4.10.6"
7+
"hono": "^4.10.7"
88
},
99
"keywords": [],
1010
"scripts": {

examples/email-agent/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"test-email": "tsx test-mail.ts"
1111
},
1212
"dependencies": {
13-
"postal-mime": "^2.6.0"
13+
"postal-mime": "^2.6.1"
1414
},
1515
"keywords": [],
1616
"license": "ISC",

examples/mcp-worker-authenticated/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"deploy": "wrangler deploy"
1111
},
1212
"dependencies": {
13-
"hono": "^4.10.6"
13+
"hono": "^4.10.7"
1414
}
1515
}

examples/mcp/env.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* eslint-disable */
2+
// Generated by Wrangler by running `wrangler types env.d.ts --include-runtime false` (hash: 3b0868993189c509ce2a638b2579e43e)
3+
declare namespace Cloudflare {
4+
interface GlobalProps {
5+
mainModule: typeof import("./src/server");
6+
durableNamespaces: "MyMCP";
7+
}
8+
interface Env {}
9+
}
10+
interface Env extends Cloudflare.Env {}

examples/mcp/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"name": "@cloudflare/agents-mcp-example",
88
"private": true,
99
"scripts": {
10-
"start": "concurrently \"npx @modelcontextprotocol/inspector\" \"vite dev\" --kill-others"
10+
"start": "concurrently \"npx @modelcontextprotocol/inspector\" \"vite dev\" --kill-others",
11+
"types": "wrangler types env.d.ts --include-runtime false"
1112
},
1213
"type": "module"
1314
}

examples/mcp/src/server.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ import { McpAgent } from "agents/mcp";
33
import { z } from "zod";
44
import icon from "./mcp-icon.svg";
55

6-
type Env = {
7-
MyMCP: DurableObjectNamespace<MyMCP>;
8-
};
9-
106
type State = { counter: number };
117

128
export class MyMCP extends McpAgent<Env, State, {}> {

examples/playground/env.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ type StringifyValues<EnvType extends Record<string, unknown>> = {
2121
: string;
2222
};
2323
declare namespace NodeJS {
24-
interface ProcessEnv
25-
extends StringifyValues<Pick<Cloudflare.Env, "OPENAI_API_KEY">> {}
24+
interface ProcessEnv extends StringifyValues<
25+
Pick<Cloudflare.Env, "OPENAI_API_KEY">
26+
> {}
2627
}

examples/x402-mcp/worker-configuration.d.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ type StringifyValues<EnvType extends Record<string, unknown>> = {
1616
: string;
1717
};
1818
declare namespace NodeJS {
19-
interface ProcessEnv
20-
extends StringifyValues<
21-
Pick<Cloudflare.Env, "SERVER_ADDRESS" | "MCP_ADDRESS" | "CLIENT_TEST_PK">
22-
> {}
19+
interface ProcessEnv extends StringifyValues<
20+
Pick<Cloudflare.Env, "SERVER_ADDRESS" | "MCP_ADDRESS" | "CLIENT_TEST_PK">
21+
> {}
2322
}

0 commit comments

Comments
 (0)