@economic/agents 2.3.6 → 2.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as JwtAuthConfig, t as routeAgentRequest } from "./route-agent-request-CbjgNl2B.mjs";
1
+ import { n as JwtAuthConfig, t as routeAgentRequest } from "./route-agent-request-D2ll--nF.mjs";
2
2
  import { Agent as Agent$1, Connection, ConnectionContext, SubAgentClass } from "agents";
3
3
  import { ChatResponseResult, PrepareStepContext, Session, Think, ToolCallContext, ToolCallDecision, TurnConfig, TurnContext, skills } from "@cloudflare/think";
4
4
  import { JSONValue, LanguageModel, Tool as Tool$1, UIMessage } from "ai";
@@ -1,5 +1,4 @@
1
1
  import { AgentOptions } from "agents";
2
- import { JWTPayload } from "jose";
3
2
 
4
3
  //#region src/server/features/auth/index.d.ts
5
4
  interface JwtAuthConfig<TClaims extends Record<string, unknown> = Record<string, unknown>> {
@@ -13,7 +12,7 @@ interface JwtAuthConfig<TClaims extends Record<string, unknown> = Record<string,
13
12
  * Extract the claims you need from the verified JWT payload.
14
13
  * These will be stored and made available in the agent's tool context.
15
14
  */
16
- getClaims: (payload: JWTPayload) => TClaims;
15
+ getClaims: (payload: Record<string, unknown>) => TClaims;
17
16
  }
18
17
  //#endregion
19
18
  //#region src/server/route-agent-request.d.ts
package/dist/v1.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as JwtAuthConfig, t as routeAgentRequest } from "./route-agent-request-CbjgNl2B.mjs";
1
+ import { n as JwtAuthConfig, t as routeAgentRequest } from "./route-agent-request-D2ll--nF.mjs";
2
2
  import { Agent as Agent$1, Connection, ConnectionContext } from "agents";
3
3
  import { LanguageModel, StreamTextOnFinishCallback, ToolSet, UIMessage, generateText, streamText } from "ai";
4
4
  import { AIChatAgent, ChatResponseResult, OnChatMessageOptions } from "@cloudflare/ai-chat";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@economic/agents",
3
- "version": "2.3.6",
3
+ "version": "2.3.7",
4
4
  "description": "A starter for creating a TypeScript package.",
5
5
  "license": "MIT",
6
6
  "files": [