@heroui/agent 0.2.0-beta.7 → 0.2.0-beta.8

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.
@@ -17,9 +17,11 @@ import {
17
17
  import {
18
18
  ActionButton,
19
19
  CodeBlock,
20
- ScrollShadow,
20
+ ScrollShadow
21
+ } from "./chunk-G6GFNSG4.js";
22
+ import {
21
23
  renderInlineMarkdown
22
- } from "./chunk-6O3SFXJK.js";
24
+ } from "./chunk-Q7LGTVBL.js";
23
25
  import {
24
26
  Card,
25
27
  CardVariantProvider,
@@ -0,0 +1,20 @@
1
+ import {
2
+ agentComposerDraftStorageKey,
3
+ clearAgentComposerDraft,
4
+ clearAgentComposerDraftsForProject,
5
+ readAgentComposerImageDraft,
6
+ saveAgentComposerImageDraft
7
+ } from "./chunk-DS4X5K2R.js";
8
+ import {
9
+ readAgentComposerPromptDraft,
10
+ saveAgentComposerPromptDraft
11
+ } from "./chunk-UUPU3MYB.js";
12
+ export {
13
+ agentComposerDraftStorageKey,
14
+ clearAgentComposerDraft,
15
+ clearAgentComposerDraftsForProject,
16
+ readAgentComposerImageDraft,
17
+ readAgentComposerPromptDraft,
18
+ saveAgentComposerImageDraft,
19
+ saveAgentComposerPromptDraft
20
+ };
@@ -0,0 +1,174 @@
1
+ import {
2
+ AGENT_COMPOSER_DRAFT_MAX_AGE_MS
3
+ } from "./chunk-UUPU3MYB.js";
4
+
5
+ // src/embed/composer-image-draft.ts
6
+ var AGENT_COMPOSER_DRAFT_DB_NAME = "heroui-agent-embed";
7
+ var AGENT_COMPOSER_DRAFT_DB_VERSION = 1;
8
+ var AGENT_COMPOSER_IMAGE_DRAFT_STORE = "composer-image-drafts";
9
+ var pendingImageDraftMutations = /* @__PURE__ */ new Map();
10
+ async function readAgentComposerImageDraft(key, now = Date.now()) {
11
+ await pendingImageDraftMutations.get(key);
12
+ const stored = await readImageDraftRecord(key);
13
+ if (!stored) return [];
14
+ const isFresh = now - stored.savedAt <= AGENT_COMPOSER_DRAFT_MAX_AGE_MS;
15
+ const files = stored.files;
16
+ if (!isFresh || files.length === 0) {
17
+ await queueImageDraftMutation(key, () => deleteImageDraftRecord(key));
18
+ return [];
19
+ }
20
+ return files;
21
+ }
22
+ function saveAgentComposerImageDraft(key, files, now = Date.now()) {
23
+ const images = files.filter(isPersistableImageFile);
24
+ return queueImageDraftMutation(key, async () => {
25
+ if (images.length === 0) {
26
+ await deleteImageDraftRecord(key);
27
+ return;
28
+ }
29
+ const storedFiles = await Promise.all(images.map(serializeFile));
30
+ await writeImageDraftRecord({ files: storedFiles, key, savedAt: now });
31
+ });
32
+ }
33
+ function clearAgentComposerImageDraft(key) {
34
+ return queueImageDraftMutation(key, () => deleteImageDraftRecord(key));
35
+ }
36
+ async function clearAgentComposerImageDraftsForProject(prefix) {
37
+ const pending = [...pendingImageDraftMutations.entries()].filter(([key]) => key.startsWith(prefix)).map(([, mutation]) => mutation);
38
+ await Promise.all(pending);
39
+ await deleteImageDraftRecordsByPrefix(prefix);
40
+ }
41
+ function isPersistableImageFile(value) {
42
+ return typeof File !== "undefined" && value instanceof File && typeof value.type === "string" && value.type.startsWith("image/");
43
+ }
44
+ async function serializeFile(file) {
45
+ return {
46
+ bytes: await file.arrayBuffer(),
47
+ lastModified: file.lastModified,
48
+ name: file.name,
49
+ type: file.type
50
+ };
51
+ }
52
+ function restoreImageFile(value) {
53
+ if (isPersistableImageFile(value)) return value;
54
+ if (typeof File === "undefined" || !value || typeof value !== "object") return null;
55
+ const file = value;
56
+ if (!isArrayBuffer(file.bytes) || typeof file.lastModified !== "number" || typeof file.name !== "string" || typeof file.type !== "string" || !file.type.startsWith("image/")) {
57
+ return null;
58
+ }
59
+ return new File([file.bytes], file.name, {
60
+ lastModified: file.lastModified,
61
+ type: file.type
62
+ });
63
+ }
64
+ function isArrayBuffer(value) {
65
+ return Object.prototype.toString.call(value) === "[object ArrayBuffer]";
66
+ }
67
+ function queueImageDraftMutation(key, mutation) {
68
+ const previous = pendingImageDraftMutations.get(key) ?? Promise.resolve();
69
+ const next = previous.catch(() => void 0).then(mutation).catch(() => void 0);
70
+ pendingImageDraftMutations.set(key, next);
71
+ void next.finally(() => {
72
+ if (pendingImageDraftMutations.get(key) === next) pendingImageDraftMutations.delete(key);
73
+ });
74
+ return next;
75
+ }
76
+ function openImageDraftDatabase() {
77
+ if (typeof indexedDB === "undefined") return Promise.resolve(null);
78
+ return new Promise((resolve) => {
79
+ const request = indexedDB.open(AGENT_COMPOSER_DRAFT_DB_NAME, AGENT_COMPOSER_DRAFT_DB_VERSION);
80
+ request.onerror = () => resolve(null);
81
+ request.onupgradeneeded = () => {
82
+ const database = request.result;
83
+ if (!database.objectStoreNames.contains(AGENT_COMPOSER_IMAGE_DRAFT_STORE)) {
84
+ database.createObjectStore(AGENT_COMPOSER_IMAGE_DRAFT_STORE, { keyPath: "key" });
85
+ }
86
+ };
87
+ request.onsuccess = () => resolve(request.result);
88
+ });
89
+ }
90
+ async function withImageDraftStore(mode, run) {
91
+ let database;
92
+ try {
93
+ database = await openImageDraftDatabase();
94
+ } catch {
95
+ return null;
96
+ }
97
+ if (!database) return null;
98
+ try {
99
+ const transaction = database.transaction(AGENT_COMPOSER_IMAGE_DRAFT_STORE, mode);
100
+ const completion = waitForTransaction(transaction);
101
+ const [result] = await Promise.all([
102
+ run(transaction.objectStore(AGENT_COMPOSER_IMAGE_DRAFT_STORE)),
103
+ completion
104
+ ]);
105
+ return result;
106
+ } catch {
107
+ return null;
108
+ } finally {
109
+ database.close();
110
+ }
111
+ }
112
+ async function readImageDraftRecord(key) {
113
+ const result = await withImageDraftStore(
114
+ "readonly",
115
+ (store) => waitForRequest(store.get(key))
116
+ );
117
+ if (typeof result !== "object" || result === null) return null;
118
+ const draft = result;
119
+ if (draft.key !== key || typeof draft.savedAt !== "number" || !Array.isArray(draft.files)) {
120
+ return null;
121
+ }
122
+ return {
123
+ files: draft.files.map(restoreImageFile).filter((file) => file !== null),
124
+ key,
125
+ savedAt: draft.savedAt
126
+ };
127
+ }
128
+ async function writeImageDraftRecord(draft) {
129
+ await withImageDraftStore("readwrite", async (store) => {
130
+ await waitForRequest(store.put(draft));
131
+ });
132
+ }
133
+ async function deleteImageDraftRecord(key) {
134
+ await withImageDraftStore("readwrite", async (store) => {
135
+ await waitForRequest(store.delete(key));
136
+ });
137
+ }
138
+ async function deleteImageDraftRecordsByPrefix(prefix) {
139
+ await withImageDraftStore(
140
+ "readwrite",
141
+ (store) => new Promise((resolve, reject) => {
142
+ const request = store.openCursor();
143
+ request.onerror = () => reject(request.error ?? new Error("Unable to clear image drafts"));
144
+ request.onsuccess = () => {
145
+ const cursor = request.result;
146
+ if (!cursor) {
147
+ resolve();
148
+ return;
149
+ }
150
+ if (typeof cursor.key === "string" && cursor.key.startsWith(prefix)) cursor.delete();
151
+ cursor.continue();
152
+ };
153
+ })
154
+ );
155
+ }
156
+ function waitForRequest(request) {
157
+ return new Promise((resolve, reject) => {
158
+ request.onerror = () => reject(request.error ?? new Error("IndexedDB request failed"));
159
+ request.onsuccess = () => resolve(request.result);
160
+ });
161
+ }
162
+ function waitForTransaction(transaction) {
163
+ return new Promise((resolve, reject) => {
164
+ transaction.onabort = () => reject(transaction.error ?? new Error("IndexedDB aborted"));
165
+ transaction.onerror = () => reject(transaction.error ?? new Error("IndexedDB failed"));
166
+ transaction.oncomplete = () => resolve();
167
+ });
168
+ }
169
+ export {
170
+ clearAgentComposerImageDraft,
171
+ clearAgentComposerImageDraftsForProject,
172
+ readAgentComposerImageDraft,
173
+ saveAgentComposerImageDraft
174
+ };
@@ -1,6 +1,5 @@
1
1
  import { z } from 'zod';
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';
2
+ 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 } from './identity-3P8-17km.js';
4
3
  import { UIMessage } from 'ai';
5
4
 
6
5
  /** Maximum number of files accepted on one HeroUI Agent message. */
@@ -1153,12 +1152,8 @@ declare const AGENT_UI_KIND_NAMES: readonly AgentUIRenderableKind[];
1153
1152
  */
1154
1153
  declare function renderAgentUICatalogPrompt(): string;
1155
1154
 
1156
- /**
1157
- * Names owned by the hosted runtime; client tools may not shadow them.
1158
- * `loadUIRenderers` is a retired runtime tool, still reserved so a client tool
1159
- * cannot take over a name that appears in stored conversations.
1160
- */
1161
- declare const RESERVED_AGENT_TOOL_NAMES: readonly ["composeUI", "executeSandbox", "getComponentSchema", "loadUIRenderers", "renderComponent", "searchKnowledge", "searchWeb"];
1155
+ /** Names owned by the hosted runtime; client tools may not shadow them. */
1156
+ declare const RESERVED_AGENT_TOOL_NAMES: readonly ["callMcpTool", "composeUI", "executeSandbox", "getComponentSchema", "renderComponent", "searchKnowledge", "searchMcpTools", "searchWeb"];
1162
1157
  /**
1163
1158
  * Namespace the runtime uses for tools borrowed from a project's MCP servers
1164
1159
  * (`mcp_<serverSlug>_<toolName>`). Reserved wholesale so a client tool can
@@ -1185,6 +1180,45 @@ declare const clientToolsSchema: z.ZodArray<z.ZodObject<{
1185
1180
  }, z.core.$strip>>;
1186
1181
  type ClientToolManifestEntry = z.infer<typeof clientToolManifestEntrySchema>;
1187
1182
 
1183
+ declare const HEROUI_AGENT_PROTOCOL_VERSION: 6;
1184
+ declare const HEROUI_AGENT_SDK_VERSION: "0.2.0-beta.8";
1185
+
1186
+ /** Browser event emitted when protocol-v6 runtime latency checkpoints arrive. */
1187
+ declare const HEROUI_AGENT_RUNTIME_TIMING_EVENT: "heroui-agent:runtime-timing";
1188
+ declare const HEROUI_AGENT_TURN_ADMITTED_FRAME_TYPE: "heroui_agent_turn_admitted";
1189
+ declare const HEROUI_AGENT_TURN_ADMISSION_STATUS_METHOD: "getTurnAdmissionStatuses";
1190
+ declare const HEROUI_AGENT_TURN_ADMISSION_STATUS_MAX_IDS = 50;
1191
+ type AgentTurnAdmittedFrame = {
1192
+ protocolVersion: typeof HEROUI_AGENT_PROTOCOL_VERSION;
1193
+ turnId: string;
1194
+ type: typeof HEROUI_AGENT_TURN_ADMITTED_FRAME_TYPE;
1195
+ };
1196
+ type AgentTurnAdmissionStatusRequest = {
1197
+ protocolVersion: typeof HEROUI_AGENT_PROTOCOL_VERSION;
1198
+ turnIds: string[];
1199
+ };
1200
+ type AgentTurnAdmissionStatus = {
1201
+ status: "admitted" | "unknown";
1202
+ turnId: string;
1203
+ };
1204
+ type AgentTurnAdmissionStatusResponse = {
1205
+ protocolVersion: typeof HEROUI_AGENT_PROTOCOL_VERSION;
1206
+ turns: AgentTurnAdmissionStatus[];
1207
+ };
1208
+ type AgentActivityPhase = "accepted" | "preparing" | "generating" | "waiting-client-tool" | "running-server-tool" | "recovering";
1209
+ type AgentRuntimeTiming = {
1210
+ completedAt?: number;
1211
+ firstSemanticTextAt?: number;
1212
+ providerFirstEventAt?: number;
1213
+ providerRequestedAt?: number;
1214
+ runtimeAdmittedAt?: number;
1215
+ turnId?: string;
1216
+ };
1217
+ type AgentRuntimeTimingEventDetail = AgentRuntimeTiming & {
1218
+ agentId: string;
1219
+ conversationId: string;
1220
+ };
1221
+
1188
1222
  declare const agentSourceSchema: z.ZodUnion<readonly [z.ZodObject<{
1189
1223
  excerpt: z.ZodOptional<z.ZodString>;
1190
1224
  locator: z.ZodOptional<z.ZodString>;
@@ -1224,7 +1258,10 @@ type AgentDataTypes = {
1224
1258
  sources?: Array<{
1225
1259
  label: string;
1226
1260
  }>;
1227
- stage: "preparing" | "querying" | "composing";
1261
+ /** Protocol-v6 lifecycle phase. */
1262
+ stage: AgentActivityPhase;
1263
+ /** Model-generated workstream title; unlike `label`, this does not describe one step. */
1264
+ title?: string;
1228
1265
  };
1229
1266
  component: AgentUIRenderable;
1230
1267
  /** Server-generated conversation title, streamed on the first turn so the session picker updates live. */
@@ -1233,8 +1270,10 @@ type AgentDataTypes = {
1233
1270
  };
1234
1271
  progress: {
1235
1272
  label: string;
1236
- stage: "preparing" | "querying" | "composing";
1273
+ stage: AgentActivityPhase;
1237
1274
  };
1275
+ /** Transient latency checkpoints; observed through HEROUI_AGENT_RUNTIME_TIMING_EVENT. */
1276
+ "runtime-timing": AgentRuntimeTiming;
1238
1277
  sources: z.infer<typeof agentSourcesSchema>;
1239
1278
  };
1240
1279
  type AgentMessage = UIMessage<unknown, AgentDataTypes>;
@@ -1342,12 +1381,4 @@ declare const agentModelIdSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.
1342
1381
  "anthropic/claude-opus-4.8": "anthropic/claude-opus-4.8";
1343
1382
  }>>;
1344
1383
 
1345
- declare function signTrustedAgentClientData(secret: string, data: TrustedAgentClientData): Promise<SignedTrustedAgentClientData>;
1346
- declare function verifyTrustedAgentClientData(secret: string, value: unknown): Promise<TrustedAgentClientData | null>;
1347
-
1348
- declare const HEROUI_AGENT_PROTOCOL_VERSION: 5;
1349
- declare const HEROUI_AGENT_SDK_VERSION: "0.2.0-beta.7";
1350
- declare const HEROUI_AGENT_TASK_ID: "heroui-agents-runtime";
1351
- declare const TRUSTED_AGENT_CLIENT_DATA_KEY: "__heroUiAgentApi";
1352
-
1353
- export { AGENT_MODEL_IDS, AGENT_MODEL_OPTIONS, AGENT_UI_CATALOG, AGENT_UI_CONTAINER_KINDS, AGENT_UI_KIND_NAMES, AGENT_UI_KIND_SCHEMAS, AGENT_UI_LAYOUT_LEAF_KINDS, AGENT_UI_PRIMITIVE_KINDS, type AccordionComponent, type ActionGroupComponent, type ActionToolCall, type ActionVariant, type AgentDataTypes, type AgentIconName, type AgentMessage, type AgentModelId, type AgentModelOption, type AgentModelTier, type AgentRemoteConfig, type AgentRemoteThemeColor, type AgentSource, type AgentUIAmount, type AgentUICatalogEntry, type AgentUICatalogGroup, type AgentUIComponent, type AgentUIContainerComponent, type AgentUIImage, type AgentUILayoutLeafComponent, type AgentUILeafComponent, type AgentUINode, type AgentUIPrimitiveComponent, type AgentUIRenderable, type AgentUIRenderableKind, type AnalyticalLeafComponent, type AreaChartComponent, type BadgeComponent, type BarChartComponent, type ButtonComponent, COMPOSED_UI_MAX_DEPTH, COMPOSED_UI_MAX_NODES, type CalloutComponent, type CandlestickChartComponent, type CardComponent, type CardComponentVariant, type CartesianComponent, type CartesianRange, type CartesianSeries, type ChannelMessageComponent, type ChartColor, type ClientToolManifestEntry, type CodeBlockComponent, type ColComponent, type ComparisonListComponent, type ComponentActionSpec, type ComponentBase, type ComposedChartComponent, type ComposedChartSeries, type CreateEventComponent, DEFAULT_AGENT_PICKER_MODEL_ID, type DashboardComponent, type DataTableComponent, type Datum, type DiagramComponent, type DividerComponent, type DonutChartComponent, type EnableNotificationComponent, type EventSessionComponent, type FlightTrackerComponent, type FollowupComponent, type FormComponent, type FormDateRange, type FormField, type FunnelChartComponent, type GaugeChartComponent, type GridComponent, HEROUI_AGENT_ATTACHMENT_ACCEPT, HEROUI_AGENT_ATTACHMENT_CONTENT_TYPES, HEROUI_AGENT_ATTACHMENT_EXTENSION_BY_CONTENT_TYPE, HEROUI_AGENT_ATTACHMENT_MAX_BYTES, HEROUI_AGENT_MAX_ATTACHMENTS, HEROUI_AGENT_PROTOCOL_VERSION, HEROUI_AGENT_REMOTE_CONFIG_VERSION, HEROUI_AGENT_SDK_VERSION, HEROUI_AGENT_TASK_ID, HEROUI_AGENT_TEXT_ATTACHMENT_CONTENT_TYPES, type HeadingComponent, type HeatmapComponent, type HeroUIAgentAttachmentContentType, type IconComponent, type ImageComponent, type ItemCardComponent, type ItemCardGroupComponent, type ItemCardVariant, type KpiGridComponent, LEGACY_AGENT_MODEL_IDS, type LayoutAlign, type LayoutGap, type LayoutJustify, type LineChartComponent, type ListBlockComponent, type ListComponent, MAX_CLIENT_TOOLS, MAX_CLIENT_TOOLS_BYTES, type MapComponent, type MapCoordinate, type MapLocation, type MapLocationAction, type MeterListComponent, type MeterTone, type MetricGridComponent, type NumberFormat, type PieChartComponent, type PlayerCardComponent, type PlaylistComponent, type ProductCardComponent, type ProductCardItem, type ProductCardPrice, type ProductCardRating, type ProductSignalsComponent, type ProgressComponent, type PurchaseCompleteComponent, type PurchaseItemsComponent, RESERVED_AGENT_TOOL_NAMES, RESERVED_AGENT_TOOL_PREFIX, type RadarChartComponent, type RadialChartComponent, type RatingComponent, type RecordCardComponent, type RecordCardLayout, type RecordCardTone, type RideStatusComponent, type RowComponent, type SankeyChartComponent, type ScatterChartComponent, SignedTrustedAgentClientData, type SpacerComponent, type StepStatus, type StepsComponent, type SunburstChartComponent, type SunburstNode, type SwitchGroupComponent, TRUSTED_AGENT_CLIENT_DATA_KEY, type TabsComponent, type TagListComponent, type TextComponent, type ToggleGroupComponent, TrustedAgentClientData, type ViewEventComponent, type WeatherCondition, type WeatherCurrentComponent, type WeatherForecastComponent, type WeatherUnit, accordionComponentSchema, actionGroupComponentSchema, agentIconNames, agentIconSchema, agentModelIdSchema, agentSourceSchema, agentSourcesSchema, agentUIComponentSchema, agentUILeafComponentSchema, agentUINodeSchema, agentUIRenderableSchema, analyticalLeafComponentSchema, areaChartComponentSchema, badgeComponentSchema, barChartComponentSchema, buttonComponentSchema, calloutComponentSchema, candlestickChartComponentSchema, cardComponentSchema, cardComponentVariantSchema, channelMessageComponentSchema, chartColorSchema, clientToolManifestEntrySchema, clientToolsSchema, codeBlockComponentSchema, colComponentSchema, comparisonListComponentSchema, composeUIInputSchema, composedChartComponentSchema, composedUIComponentSchema, createEventComponentSchema, dashboardComponentSchema, dataTableComponentSchema, diagramComponentSchema, dividerComponentSchema, donutChartComponentSchema, enableNotificationComponentSchema, eventSessionComponentSchema, flightTrackerComponentSchema, followupComponentSchema, formComponentSchema, funnelChartComponentSchema, gaugeChartComponentSchema, getAgentModelTier, getAgentUIContainerChildren, gridComponentSchema, headingComponentSchema, heatmapComponentSchema, iconComponentSchema, imageComponentSchema, isAgentModelId, isAgentUIContainerComponent, isAgentUILayoutLeafComponent, isAgentUIPrimitiveComponent, isHeroUIAgentAttachmentContentType, itemCardComponentSchema, itemCardGroupComponentSchema, kpiGridComponentSchema, lineChartComponentSchema, listBlockComponentSchema, listComponentSchema, mapComponentSchema, meterListComponentSchema, metricGridComponentSchema, numberFormatSchema, parseAgentRemoteConfig, pieChartComponentSchema, playerCardComponentSchema, playlistComponentSchema, productCardComponentSchema, productSignalsComponentSchema, progressComponentSchema, purchaseCompleteComponentSchema, purchaseItemsComponentSchema, radarChartComponentSchema, radialChartComponentSchema, ratingComponentSchema, recordCardComponentSchema, recordCardLayoutSchema, renderAgentUICatalogPrompt, renderComponentInputSchema, resolveAgentModelId, rideStatusComponentSchema, rowComponentSchema, sankeyChartComponentSchema, scatterChartComponentSchema, signTrustedAgentClientData, spacerComponentSchema, stepsComponentSchema, sunburstChartComponentSchema, switchGroupComponentSchema, tabsComponentSchema, tagListComponentSchema, textComponentSchema, toggleGroupComponentSchema, verifyTrustedAgentClientData, viewEventComponentSchema, weatherConditionSchema, weatherConditions, weatherCurrentComponentSchema, weatherForecastComponentSchema };
1384
+ export { AGENT_MODEL_IDS, AGENT_MODEL_OPTIONS, AGENT_UI_CATALOG, AGENT_UI_CONTAINER_KINDS, AGENT_UI_KIND_NAMES, AGENT_UI_KIND_SCHEMAS, AGENT_UI_LAYOUT_LEAF_KINDS, AGENT_UI_PRIMITIVE_KINDS, type AccordionComponent, type ActionGroupComponent, type ActionToolCall, type ActionVariant, type AgentActivityPhase, type AgentDataTypes, type AgentIconName, type AgentMessage, type AgentModelId, type AgentModelOption, type AgentModelTier, type AgentRemoteConfig, type AgentRemoteThemeColor, type AgentRuntimeTiming, type AgentRuntimeTimingEventDetail, type AgentSource, type AgentTurnAdmissionStatus, type AgentTurnAdmissionStatusRequest, type AgentTurnAdmissionStatusResponse, type AgentTurnAdmittedFrame, type AgentUIAmount, type AgentUICatalogEntry, type AgentUICatalogGroup, type AgentUIComponent, type AgentUIContainerComponent, type AgentUIImage, type AgentUILayoutLeafComponent, type AgentUILeafComponent, type AgentUINode, type AgentUIPrimitiveComponent, type AgentUIRenderable, type AgentUIRenderableKind, type AnalyticalLeafComponent, type AreaChartComponent, type BadgeComponent, type BarChartComponent, type ButtonComponent, COMPOSED_UI_MAX_DEPTH, COMPOSED_UI_MAX_NODES, type CalloutComponent, type CandlestickChartComponent, type CardComponent, type CardComponentVariant, type CartesianComponent, type CartesianRange, type CartesianSeries, type ChannelMessageComponent, type ChartColor, type ClientToolManifestEntry, type CodeBlockComponent, type ColComponent, type ComparisonListComponent, type ComponentActionSpec, type ComponentBase, type ComposedChartComponent, type ComposedChartSeries, type CreateEventComponent, DEFAULT_AGENT_PICKER_MODEL_ID, type DashboardComponent, type DataTableComponent, type Datum, type DiagramComponent, type DividerComponent, type DonutChartComponent, type EnableNotificationComponent, type EventSessionComponent, type FlightTrackerComponent, type FollowupComponent, type FormComponent, type FormDateRange, type FormField, type FunnelChartComponent, type GaugeChartComponent, type GridComponent, HEROUI_AGENT_ATTACHMENT_ACCEPT, HEROUI_AGENT_ATTACHMENT_CONTENT_TYPES, HEROUI_AGENT_ATTACHMENT_EXTENSION_BY_CONTENT_TYPE, HEROUI_AGENT_ATTACHMENT_MAX_BYTES, HEROUI_AGENT_MAX_ATTACHMENTS, HEROUI_AGENT_PROTOCOL_VERSION, HEROUI_AGENT_REMOTE_CONFIG_VERSION, HEROUI_AGENT_RUNTIME_TIMING_EVENT, HEROUI_AGENT_SDK_VERSION, HEROUI_AGENT_TEXT_ATTACHMENT_CONTENT_TYPES, HEROUI_AGENT_TURN_ADMISSION_STATUS_MAX_IDS, HEROUI_AGENT_TURN_ADMISSION_STATUS_METHOD, HEROUI_AGENT_TURN_ADMITTED_FRAME_TYPE, type HeadingComponent, type HeatmapComponent, type HeroUIAgentAttachmentContentType, type IconComponent, type ImageComponent, type ItemCardComponent, type ItemCardGroupComponent, type ItemCardVariant, type KpiGridComponent, LEGACY_AGENT_MODEL_IDS, type LayoutAlign, type LayoutGap, type LayoutJustify, type LineChartComponent, type ListBlockComponent, type ListComponent, MAX_CLIENT_TOOLS, MAX_CLIENT_TOOLS_BYTES, type MapComponent, type MapCoordinate, type MapLocation, type MapLocationAction, type MeterListComponent, type MeterTone, type MetricGridComponent, type NumberFormat, type PieChartComponent, type PlayerCardComponent, type PlaylistComponent, type ProductCardComponent, type ProductCardItem, type ProductCardPrice, type ProductCardRating, type ProductSignalsComponent, type ProgressComponent, type PurchaseCompleteComponent, type PurchaseItemsComponent, RESERVED_AGENT_TOOL_NAMES, RESERVED_AGENT_TOOL_PREFIX, type RadarChartComponent, type RadialChartComponent, type RatingComponent, type RecordCardComponent, type RecordCardLayout, type RecordCardTone, type RideStatusComponent, type RowComponent, type SankeyChartComponent, type ScatterChartComponent, type SpacerComponent, type StepStatus, type StepsComponent, type SunburstChartComponent, type SunburstNode, type SwitchGroupComponent, type TabsComponent, type TagListComponent, type TextComponent, type ToggleGroupComponent, type ViewEventComponent, type WeatherCondition, type WeatherCurrentComponent, type WeatherForecastComponent, type WeatherUnit, accordionComponentSchema, actionGroupComponentSchema, agentIconNames, agentIconSchema, agentModelIdSchema, agentSourceSchema, agentSourcesSchema, agentUIComponentSchema, agentUILeafComponentSchema, agentUINodeSchema, agentUIRenderableSchema, analyticalLeafComponentSchema, areaChartComponentSchema, badgeComponentSchema, barChartComponentSchema, buttonComponentSchema, calloutComponentSchema, candlestickChartComponentSchema, cardComponentSchema, cardComponentVariantSchema, channelMessageComponentSchema, chartColorSchema, clientToolManifestEntrySchema, clientToolsSchema, codeBlockComponentSchema, colComponentSchema, comparisonListComponentSchema, composeUIInputSchema, composedChartComponentSchema, composedUIComponentSchema, createEventComponentSchema, dashboardComponentSchema, dataTableComponentSchema, diagramComponentSchema, dividerComponentSchema, donutChartComponentSchema, enableNotificationComponentSchema, eventSessionComponentSchema, flightTrackerComponentSchema, followupComponentSchema, formComponentSchema, funnelChartComponentSchema, gaugeChartComponentSchema, getAgentModelTier, getAgentUIContainerChildren, gridComponentSchema, headingComponentSchema, heatmapComponentSchema, iconComponentSchema, imageComponentSchema, isAgentModelId, isAgentUIContainerComponent, isAgentUILayoutLeafComponent, isAgentUIPrimitiveComponent, isHeroUIAgentAttachmentContentType, itemCardComponentSchema, itemCardGroupComponentSchema, kpiGridComponentSchema, lineChartComponentSchema, listBlockComponentSchema, listComponentSchema, mapComponentSchema, meterListComponentSchema, metricGridComponentSchema, numberFormatSchema, parseAgentRemoteConfig, pieChartComponentSchema, playerCardComponentSchema, playlistComponentSchema, productCardComponentSchema, productSignalsComponentSchema, progressComponentSchema, purchaseCompleteComponentSchema, purchaseItemsComponentSchema, radarChartComponentSchema, radialChartComponentSchema, ratingComponentSchema, recordCardComponentSchema, recordCardLayoutSchema, renderAgentUICatalogPrompt, renderComponentInputSchema, resolveAgentModelId, rideStatusComponentSchema, rowComponentSchema, sankeyChartComponentSchema, scatterChartComponentSchema, spacerComponentSchema, stepsComponentSchema, sunburstChartComponentSchema, switchGroupComponentSchema, tabsComponentSchema, tagListComponentSchema, textComponentSchema, toggleGroupComponentSchema, viewEventComponentSchema, weatherConditionSchema, weatherConditions, weatherCurrentComponentSchema, weatherForecastComponentSchema };