@heroui/agent 0.2.0-beta.2 → 0.2.0-beta.4
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 +20 -0
- package/README.md +10 -10
- package/dist/{chart-content-USUK4ZM5.js → chart-content-7PZT4YWI.js} +1 -1
- package/dist/{chunk-Y6Y6ILXP.js → chunk-5X2OXK4I.js} +39 -10
- package/dist/{chunk-CU6MPKAJ.js → chunk-6O3SFXJK.js} +25 -59
- package/dist/{chunk-AEUPMIPT.js → chunk-FNGGMHVR.js} +51 -3
- package/dist/{chunk-EXFDD3K3.js → chunk-XBYPU7PM.js} +5 -4
- package/dist/{component-renderer-EOOT6ONY.js → component-renderer-PTMCOJHE.js} +805 -767
- package/dist/contracts.d.ts +5 -5
- package/dist/contracts.js +2 -8
- package/dist/css/index.css +1 -1
- package/dist/{embed-runtime-QOATFAS7.js → embed-runtime-WVXLM2KL.js} +513 -412
- package/dist/{identity-hIGFpObN.d.ts → identity-CuhZgpvp.d.ts} +0 -3
- package/dist/index.d.ts +15 -3
- package/dist/index.js +2 -2
- package/dist/next.js +2 -2
- package/dist/server.d.ts +1 -1
- package/dist/server.js +1 -7
- package/package.json +3 -3
|
@@ -136,9 +136,6 @@ declare const agentProjectConfigSchema: z.ZodObject<{
|
|
|
136
136
|
appId: z.ZodUUID;
|
|
137
137
|
}, z.core.$strip>>;
|
|
138
138
|
protocolVersion: z.ZodLiteral<5>;
|
|
139
|
-
realtime: z.ZodOptional<z.ZodObject<{
|
|
140
|
-
url: z.ZodURL;
|
|
141
|
-
}, z.core.$strip>>;
|
|
142
139
|
sdkVersion: z.ZodDefault<z.ZodString>;
|
|
143
140
|
suggestedPrompts: z.ZodArray<z.ZodString>;
|
|
144
141
|
surfaceVariant: z.ZodDefault<z.ZodEnum<{
|
package/dist/index.d.ts
CHANGED
|
@@ -125,11 +125,11 @@ type AgentModelOption = {
|
|
|
125
125
|
tier: AgentModelTier;
|
|
126
126
|
};
|
|
127
127
|
/**
|
|
128
|
-
* Recommended default selected when the optional picker first opens.
|
|
128
|
+
* Recommended default selected when the optional picker first opens. Luna
|
|
129
129
|
* matches the hosted runtime's baked-in default (`DEFAULT_CHAT_MODEL_IDS.herouiAgent`),
|
|
130
130
|
* so what users see in the picker is what actually runs by default.
|
|
131
131
|
*/
|
|
132
|
-
declare const DEFAULT_AGENT_PICKER_MODEL_ID = "
|
|
132
|
+
declare const DEFAULT_AGENT_PICKER_MODEL_ID = "openai/gpt-5.6-luna";
|
|
133
133
|
/**
|
|
134
134
|
* Small, tool-capable model catalog for HeroUI Agent. These ids are the
|
|
135
135
|
* server-side allowlist as well as the browser picker source of truth.
|
|
@@ -461,7 +461,6 @@ type AgentStartScreenOptions = {
|
|
|
461
461
|
/** Internal — for HeroUI platform development only. */
|
|
462
462
|
type AgentApiOverrides = {
|
|
463
463
|
baseUrl?: string;
|
|
464
|
-
realtimeUrl?: string;
|
|
465
464
|
};
|
|
466
465
|
/**
|
|
467
466
|
* Short-lived browser credential returned by the customer's server.
|
|
@@ -523,6 +522,19 @@ type HeroUIAgentProps = {
|
|
|
523
522
|
*/
|
|
524
523
|
preload?: boolean;
|
|
525
524
|
agentId: string;
|
|
525
|
+
/**
|
|
526
|
+
* Reopen the panel after a page refresh when it was open before the refresh.
|
|
527
|
+
* The restored panel always starts a new chat instead of resuming the
|
|
528
|
+
* previously active conversation.
|
|
529
|
+
* @default false
|
|
530
|
+
*/
|
|
531
|
+
reopenOnRefresh?: boolean;
|
|
532
|
+
/**
|
|
533
|
+
* Open the panel on the start screen instead of restoring the most recently
|
|
534
|
+
* active conversation. Conversation history remains available in the picker.
|
|
535
|
+
* @default false
|
|
536
|
+
*/
|
|
537
|
+
startNewConversationOnOpen?: boolean;
|
|
526
538
|
/**
|
|
527
539
|
* Apply the appearance saved for this project in the HeroUI dashboard —
|
|
528
540
|
* launcher icon, colors, typography, greeting, and suggested prompts —
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HeroUIAgent,
|
|
3
3
|
useAgent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5X2OXK4I.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-XBYPU7PM.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-5X2OXK4I.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-XBYPU7PM.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.4";
|
|
70
70
|
|
|
71
71
|
// src/contracts/identity.ts
|
|
72
72
|
var agentThemeSchema = z3.enum(["light", "dark", "system"]);
|
|
@@ -197,12 +197,6 @@ var agentProjectConfigSchema = z3.object({
|
|
|
197
197
|
*/
|
|
198
198
|
presence: z3.object({ appId: z3.uuid() }).optional(),
|
|
199
199
|
protocolVersion: z3.literal(HEROUI_AGENT_PROTOCOL_VERSION),
|
|
200
|
-
/**
|
|
201
|
-
* Internal streaming infrastructure endpoint, resolved server-side so
|
|
202
|
-
* customers never configure it. Optional for compatibility with older API
|
|
203
|
-
* deployments; the SDK falls back to Trigger.dev's public endpoint.
|
|
204
|
-
*/
|
|
205
|
-
realtime: z3.object({ url: z3.url() }).optional(),
|
|
206
200
|
sdkVersion: z3.string().default(HEROUI_AGENT_SDK_VERSION),
|
|
207
201
|
suggestedPrompts: z3.array(z3.string().trim().min(1).max(160)).max(5),
|
|
208
202
|
surfaceVariant: agentSurfaceVariantSchema.default("plain"),
|
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.4",
|
|
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": {
|
|
@@ -109,9 +109,9 @@
|
|
|
109
109
|
"tsup": "8.5.0",
|
|
110
110
|
"typescript": "5.9.3",
|
|
111
111
|
"vitest": "4.1.0",
|
|
112
|
-
"@heroui-pro/config": "0.0.0",
|
|
113
|
-
"@heroui-pro/react": "1.0.0-beta.7",
|
|
114
112
|
"@heroui/agent-client": "0.0.0",
|
|
113
|
+
"@heroui-pro/react": "1.0.0-beta.7",
|
|
114
|
+
"@heroui-pro/config": "0.0.0",
|
|
115
115
|
"@heroui/agent-ui": "0.0.0"
|
|
116
116
|
},
|
|
117
117
|
"scripts": {
|