@heroui/agent 0.2.0-beta.5 → 0.2.0-beta.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.
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { T as TrustedAgentClientData, S as SignedTrustedAgentClientData } from './identity-CuhZgpvp.js';
3
- export { A as AGENT_CONVERSATION_SOURCE, a as AgentAuthIdentity, b as AgentAuthProfile, c as AgentAuthToken, d as AgentConversationSource, e as AgentProjectConfig, f as AgentSurfaceVariant, g as AgentTheme, h as AgentTokenClaims, C as CreateAgentAuthTokenRequest, i as agentAuthIdentitySchema, j as agentAuthProfileSchema, k as agentAuthTokenSchema, l as agentIdentityIdSchema, m as agentProjectConfigSchema, n as agentSurfaceVariantSchema, o as agentThemeSchema, p as agentTokenClaimsSchema, q as createAgentAuthTokenRequestSchema, r as pageContextSchema, s as signedTrustedAgentClientDataSchema, t as trustedAgentClientDataSchema } from './identity-CuhZgpvp.js';
2
+ import { T as TrustedAgentClientData, S as SignedTrustedAgentClientData } from './identity-Z6i6pL0F.js';
3
+ export { A as AGENT_CONVERSATION_SOURCE, a as AgentAuthIdentity, b as AgentAuthProfile, c as AgentAuthToken, d as AgentConversationSource, e as AgentProjectConfig, f as AgentSurfaceVariant, g as AgentTheme, h as AgentTokenClaims, C as CreateAgentAuthTokenRequest, i as agentAuthIdentitySchema, j as agentAuthProfileSchema, k as agentAuthTokenSchema, l as agentIdentityIdSchema, m as agentProjectConfigSchema, n as agentSurfaceVariantSchema, o as agentThemeSchema, p as agentTokenClaimsSchema, q as createAgentAuthTokenRequestSchema, r as pageContextSchema, s as signedTrustedAgentClientDataSchema, t as trustedAgentClientDataSchema } from './identity-Z6i6pL0F.js';
4
4
  import { UIMessage } from 'ai';
5
5
 
6
6
  /** Maximum number of files accepted on one HeroUI Agent message. */
@@ -88,6 +88,7 @@ type AgentRemoteConfig = {
88
88
  };
89
89
  capabilities?: {
90
90
  imageSearch?: boolean;
91
+ newsSearch?: boolean;
91
92
  webSearch?: boolean;
92
93
  };
93
94
  composer?: {
@@ -1345,7 +1346,7 @@ declare function signTrustedAgentClientData(secret: string, data: TrustedAgentCl
1345
1346
  declare function verifyTrustedAgentClientData(secret: string, value: unknown): Promise<TrustedAgentClientData | null>;
1346
1347
 
1347
1348
  declare const HEROUI_AGENT_PROTOCOL_VERSION: 5;
1348
- declare const HEROUI_AGENT_SDK_VERSION: "0.2.0-beta.5";
1349
+ declare const HEROUI_AGENT_SDK_VERSION: "0.2.0-beta.7";
1349
1350
  declare const HEROUI_AGENT_TASK_ID: "heroui-agents-runtime";
1350
1351
  declare const TRUSTED_AGENT_CLIENT_DATA_KEY: "__heroUiAgentApi";
1351
1352
 
package/dist/contracts.js CHANGED
@@ -180,6 +180,7 @@ function parseAgentRemoteConfig(value) {
180
180
  const capabilities = group(
181
181
  shape(value["capabilities"], {
182
182
  imageSearch: optionalBoolean,
183
+ newsSearch: optionalBoolean,
183
184
  webSearch: optionalBoolean
184
185
  })
185
186
  );
@@ -2184,7 +2185,7 @@ var agentModelIdSchema = z3.preprocess(
2184
2185
 
2185
2186
  // src/contracts/version.ts
2186
2187
  var HEROUI_AGENT_PROTOCOL_VERSION = 5;
2187
- var HEROUI_AGENT_SDK_VERSION = "0.2.0-beta.5";
2188
+ var HEROUI_AGENT_SDK_VERSION = "0.2.0-beta.7";
2188
2189
  var HEROUI_AGENT_TASK_ID = "heroui-agents-runtime";
2189
2190
  var TRUSTED_AGENT_CLIENT_DATA_KEY = "__heroUiAgentApi";
2190
2191
 
@@ -2283,6 +2284,11 @@ var trustedAgentClientDataSchema = z4.object({
2283
2284
  * fixed agent allowlist and signs the value before the runtime sees it.
2284
2285
  */
2285
2286
  modelId: agentModelIdSchema.optional(),
2287
+ /**
2288
+ * When web search is enabled, allow recent news results via `includeNews`.
2289
+ * Optional and disabled when omitted so older signed payloads remain valid.
2290
+ */
2291
+ newsSearch: z4.boolean().optional(),
2286
2292
  pageContext: pageContextSchema.default({}),
2287
2293
  /**
2288
2294
  * Set by the API when the session was authorized by a dashboard preview
@@ -2299,7 +2305,7 @@ var trustedAgentClientDataSchema = z4.object({
2299
2305
  /**
2300
2306
  * Host-enabled public web search. When true the runtime registers the
2301
2307
  * `searchWeb` tool (if the search backend is configured) so the agent can
2302
- * look up public information and images. Optional (not defaulted) so schema
2308
+ * look up public information, images, and optionally news. Optional (not defaulted) so schema
2303
2309
  * parsing never injects a field into an already-signed payload.
2304
2310
  */
2305
2311
  webSearch: z4.boolean().optional()