@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.
- package/CHANGELOG.md +18 -0
- package/README.md +7 -2
- package/dist/{chart-content-7PZT4YWI.js → chart-content-E4NPTUPR.js} +1 -1
- package/dist/{chunk-XBYPU7PM.js → chunk-OQGXZY5L.js} +10 -4
- package/dist/{chunk-UUHEF6LC.js → chunk-V5S5FRGV.js} +3 -2
- package/dist/{component-renderer-PTMCOJHE.js → component-renderer-46EJDPTB.js} +2103 -1619
- package/dist/contracts.d.ts +4 -3
- package/dist/contracts.js +8 -2
- package/dist/css/index.css +1 -1
- package/dist/{embed-runtime-36S6KLDB.js → embed-runtime-UF7XJIFA.js} +535 -315
- package/dist/{identity-CuhZgpvp.d.ts → identity-Z6i6pL0F.d.ts} +2 -0
- package/dist/index.d.ts +7 -1
- package/dist/index.js +2 -2
- package/dist/next.js +2 -2
- package/dist/server.d.ts +1 -1
- package/dist/server.js +7 -2
- package/package.json +2 -2
|
@@ -78,6 +78,7 @@ declare const trustedAgentClientDataSchema: z.ZodObject<{
|
|
|
78
78
|
"anthropic/claude-sonnet-5": "anthropic/claude-sonnet-5";
|
|
79
79
|
"anthropic/claude-opus-4.8": "anthropic/claude-opus-4.8";
|
|
80
80
|
}>>>;
|
|
81
|
+
newsSearch: z.ZodOptional<z.ZodBoolean>;
|
|
81
82
|
pageContext: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
82
83
|
preview: z.ZodOptional<z.ZodBoolean>;
|
|
83
84
|
protocolVersion: z.ZodLiteral<5>;
|
|
@@ -109,6 +110,7 @@ declare const signedTrustedAgentClientDataSchema: z.ZodObject<{
|
|
|
109
110
|
"anthropic/claude-sonnet-5": "anthropic/claude-sonnet-5";
|
|
110
111
|
"anthropic/claude-opus-4.8": "anthropic/claude-opus-4.8";
|
|
111
112
|
}>>>;
|
|
113
|
+
newsSearch: z.ZodOptional<z.ZodBoolean>;
|
|
112
114
|
pageContext: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
113
115
|
preview: z.ZodOptional<z.ZodBoolean>;
|
|
114
116
|
protocolVersion: z.ZodLiteral<5>;
|
package/dist/index.d.ts
CHANGED
|
@@ -345,6 +345,12 @@ type AgentCapabilities = {
|
|
|
345
345
|
* @default true
|
|
346
346
|
*/
|
|
347
347
|
imageSearch?: boolean;
|
|
348
|
+
/**
|
|
349
|
+
* Allow the hosted agent to include recent news results in web searches.
|
|
350
|
+
* Only applies when {@link webSearch} is enabled and is off by default.
|
|
351
|
+
* @default false
|
|
352
|
+
*/
|
|
353
|
+
newsSearch?: boolean;
|
|
348
354
|
/**
|
|
349
355
|
* Allow the hosted agent to search the public web for current information
|
|
350
356
|
* and images. Results are untrusted external content; keep this off when the
|
|
@@ -594,7 +600,7 @@ declare function useAgent(agentId?: string): AgentController;
|
|
|
594
600
|
* ```tsx
|
|
595
601
|
* <body>
|
|
596
602
|
* {children}
|
|
597
|
-
* <HeroUIAgent getAuthToken={getAuthToken} agentId=
|
|
603
|
+
* <HeroUIAgent getAuthToken={getAuthToken} agentId={process.env.NEXT_PUBLIC_HEROUI_AGENT_ID!} />
|
|
598
604
|
* </body>
|
|
599
605
|
* ```
|
|
600
606
|
*
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HeroUIAgent,
|
|
3
3
|
useAgent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-V5S5FRGV.js";
|
|
5
5
|
import {
|
|
6
6
|
AGENT_DESIGN_THEMES,
|
|
7
7
|
AGENT_MODEL_IDS,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
getAgentModelTier,
|
|
13
13
|
isAgentModelId,
|
|
14
14
|
resolveAgentModelId
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OQGXZY5L.js";
|
|
16
16
|
export {
|
|
17
17
|
AGENT_DESIGN_THEMES,
|
|
18
18
|
AGENT_MODEL_IDS,
|
package/dist/next.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HeroUIAgent,
|
|
3
3
|
useAgent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-V5S5FRGV.js";
|
|
5
5
|
import {
|
|
6
6
|
AGENT_MODEL_IDS,
|
|
7
7
|
AGENT_MODEL_OPTIONS,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
createToolHelper,
|
|
10
10
|
getAgentModelTier,
|
|
11
11
|
isAgentModelId
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OQGXZY5L.js";
|
|
13
13
|
export {
|
|
14
14
|
AGENT_MODEL_IDS,
|
|
15
15
|
AGENT_MODEL_OPTIONS,
|
package/dist/server.d.ts
CHANGED
package/dist/server.js
CHANGED
|
@@ -66,7 +66,7 @@ var agentModelIdSchema = z2.preprocess(
|
|
|
66
66
|
|
|
67
67
|
// src/contracts/version.ts
|
|
68
68
|
var HEROUI_AGENT_PROTOCOL_VERSION = 5;
|
|
69
|
-
var HEROUI_AGENT_SDK_VERSION = "0.2.0-beta.
|
|
69
|
+
var HEROUI_AGENT_SDK_VERSION = "0.2.0-beta.7";
|
|
70
70
|
|
|
71
71
|
// src/contracts/identity.ts
|
|
72
72
|
var agentThemeSchema = z3.enum(["light", "dark", "system"]);
|
|
@@ -163,6 +163,11 @@ var trustedAgentClientDataSchema = z3.object({
|
|
|
163
163
|
* fixed agent allowlist and signs the value before the runtime sees it.
|
|
164
164
|
*/
|
|
165
165
|
modelId: agentModelIdSchema.optional(),
|
|
166
|
+
/**
|
|
167
|
+
* When web search is enabled, allow recent news results via `includeNews`.
|
|
168
|
+
* Optional and disabled when omitted so older signed payloads remain valid.
|
|
169
|
+
*/
|
|
170
|
+
newsSearch: z3.boolean().optional(),
|
|
166
171
|
pageContext: pageContextSchema.default({}),
|
|
167
172
|
/**
|
|
168
173
|
* Set by the API when the session was authorized by a dashboard preview
|
|
@@ -179,7 +184,7 @@ var trustedAgentClientDataSchema = z3.object({
|
|
|
179
184
|
/**
|
|
180
185
|
* Host-enabled public web search. When true the runtime registers the
|
|
181
186
|
* `searchWeb` tool (if the search backend is configured) so the agent can
|
|
182
|
-
* look up public information and
|
|
187
|
+
* look up public information, images, and optionally news. Optional (not defaulted) so schema
|
|
183
188
|
* parsing never injects a field into an already-signed payload.
|
|
184
189
|
*/
|
|
185
190
|
webSearch: z3.boolean().optional()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heroui/agent",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.7",
|
|
4
4
|
"description": "Embed a hosted HeroUI Agent that turns application data into interactive UI.",
|
|
5
5
|
"homepage": "https://www.heroui.com/agents",
|
|
6
6
|
"bugs": {
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"typescript": "5.9.3",
|
|
111
111
|
"vitest": "4.1.0",
|
|
112
112
|
"@heroui-pro/config": "0.0.0",
|
|
113
|
-
"@heroui-pro/react": "1.0.0-beta.
|
|
113
|
+
"@heroui-pro/react": "1.0.0-beta.8",
|
|
114
114
|
"@heroui/agent-client": "0.0.0",
|
|
115
115
|
"@heroui/agent-ui": "0.0.0"
|
|
116
116
|
},
|