@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
package/dist/contracts.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { T as TrustedAgentClientData, S as SignedTrustedAgentClientData } from './identity-
|
|
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-
|
|
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';
|
|
4
4
|
import { UIMessage } from 'ai';
|
|
5
5
|
|
|
6
6
|
/** Maximum number of files accepted on one HeroUI Agent message. */
|
|
@@ -1265,11 +1265,11 @@ type AgentModelOption = {
|
|
|
1265
1265
|
tier: AgentModelTier;
|
|
1266
1266
|
};
|
|
1267
1267
|
/**
|
|
1268
|
-
* Recommended default selected when the optional picker first opens.
|
|
1268
|
+
* Recommended default selected when the optional picker first opens. Luna
|
|
1269
1269
|
* matches the hosted runtime's baked-in default (`DEFAULT_CHAT_MODEL_IDS.herouiAgent`),
|
|
1270
1270
|
* so what users see in the picker is what actually runs by default.
|
|
1271
1271
|
*/
|
|
1272
|
-
declare const DEFAULT_AGENT_PICKER_MODEL_ID = "
|
|
1272
|
+
declare const DEFAULT_AGENT_PICKER_MODEL_ID = "openai/gpt-5.6-luna";
|
|
1273
1273
|
/**
|
|
1274
1274
|
* Small, tool-capable model catalog for HeroUI Agent. These ids are the
|
|
1275
1275
|
* server-side allowlist as well as the browser picker source of truth.
|
|
@@ -1345,7 +1345,7 @@ declare function signTrustedAgentClientData(secret: string, data: TrustedAgentCl
|
|
|
1345
1345
|
declare function verifyTrustedAgentClientData(secret: string, value: unknown): Promise<TrustedAgentClientData | null>;
|
|
1346
1346
|
|
|
1347
1347
|
declare const HEROUI_AGENT_PROTOCOL_VERSION: 5;
|
|
1348
|
-
declare const HEROUI_AGENT_SDK_VERSION: "0.2.0-beta.
|
|
1348
|
+
declare const HEROUI_AGENT_SDK_VERSION: "0.2.0-beta.4";
|
|
1349
1349
|
declare const HEROUI_AGENT_TASK_ID: "heroui-agents-runtime";
|
|
1350
1350
|
declare const TRUSTED_AGENT_CLIENT_DATA_KEY: "__heroUiAgentApi";
|
|
1351
1351
|
|
package/dist/contracts.js
CHANGED
|
@@ -2115,7 +2115,7 @@ var LEGACY_AGENT_MODEL_IDS = {
|
|
|
2115
2115
|
function resolveAgentModelId(value) {
|
|
2116
2116
|
return LEGACY_AGENT_MODEL_IDS[value] ?? value;
|
|
2117
2117
|
}
|
|
2118
|
-
var DEFAULT_AGENT_PICKER_MODEL_ID = "
|
|
2118
|
+
var DEFAULT_AGENT_PICKER_MODEL_ID = "openai/gpt-5.6-luna";
|
|
2119
2119
|
var AGENT_MODEL_OPTIONS = [
|
|
2120
2120
|
{
|
|
2121
2121
|
description: "Flagship model for coding, reasoning, and knowledge work",
|
|
@@ -2184,7 +2184,7 @@ var agentModelIdSchema = z3.preprocess(
|
|
|
2184
2184
|
|
|
2185
2185
|
// src/contracts/version.ts
|
|
2186
2186
|
var HEROUI_AGENT_PROTOCOL_VERSION = 5;
|
|
2187
|
-
var HEROUI_AGENT_SDK_VERSION = "0.2.0-beta.
|
|
2187
|
+
var HEROUI_AGENT_SDK_VERSION = "0.2.0-beta.4";
|
|
2188
2188
|
var HEROUI_AGENT_TASK_ID = "heroui-agents-runtime";
|
|
2189
2189
|
var TRUSTED_AGENT_CLIENT_DATA_KEY = "__heroUiAgentApi";
|
|
2190
2190
|
|
|
@@ -2321,12 +2321,6 @@ var agentProjectConfigSchema = z4.object({
|
|
|
2321
2321
|
*/
|
|
2322
2322
|
presence: z4.object({ appId: z4.uuid() }).optional(),
|
|
2323
2323
|
protocolVersion: z4.literal(HEROUI_AGENT_PROTOCOL_VERSION),
|
|
2324
|
-
/**
|
|
2325
|
-
* Internal streaming infrastructure endpoint, resolved server-side so
|
|
2326
|
-
* customers never configure it. Optional for compatibility with older API
|
|
2327
|
-
* deployments; the SDK falls back to Trigger.dev's public endpoint.
|
|
2328
|
-
*/
|
|
2329
|
-
realtime: z4.object({ url: z4.url() }).optional(),
|
|
2330
2324
|
sdkVersion: z4.string().default(HEROUI_AGENT_SDK_VERSION),
|
|
2331
2325
|
suggestedPrompts: z4.array(z4.string().trim().min(1).max(160)).max(5),
|
|
2332
2326
|
surfaceVariant: agentSurfaceVariantSchema.default("plain"),
|