@inkeep/agents-core 0.27.0 → 0.28.0

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.
@@ -224,7 +224,7 @@ var dataComponents = sqliteCore.sqliteTable(
224
224
  ...projectScoped,
225
225
  ...uiProperties,
226
226
  props: sqliteCore.blob("props", { mode: "json" }).$type(),
227
- preview: sqliteCore.blob("preview", { mode: "json" }).$type(),
227
+ render: sqliteCore.blob("render", { mode: "json" }).$type(),
228
228
  ...timestamps
229
229
  },
230
230
  (table) => [
@@ -1974,115 +1974,6 @@ function generateIdFromName(name) {
1974
1974
  }
1975
1975
  return truncatedId;
1976
1976
  }
1977
-
1978
- // src/validation/preview-validation.ts
1979
- var MAX_CODE_SIZE = 5e4;
1980
- var MAX_DATA_SIZE = 1e4;
1981
- var DANGEROUS_PATTERNS = [
1982
- {
1983
- pattern: /\beval\s*\(/i,
1984
- message: "eval() is not allowed"
1985
- },
1986
- {
1987
- pattern: /\bFunction\s*\(/i,
1988
- message: "Function constructor is not allowed"
1989
- },
1990
- {
1991
- pattern: /dangerouslySetInnerHTML/i,
1992
- message: "dangerouslySetInnerHTML is not allowed"
1993
- },
1994
- {
1995
- pattern: /<script\b/i,
1996
- message: "Script tags are not allowed"
1997
- },
1998
- {
1999
- pattern: /\bon\w+\s*=/i,
2000
- message: "Inline event handlers (onClick=, onLoad=, etc.) are not allowed"
2001
- },
2002
- {
2003
- pattern: /document\.write/i,
2004
- message: "document.write is not allowed"
2005
- },
2006
- {
2007
- pattern: /window\.location/i,
2008
- message: "window.location is not allowed"
2009
- },
2010
- {
2011
- pattern: /\.innerHTML\s*=/i,
2012
- message: "innerHTML manipulation is not allowed"
2013
- }
2014
- ];
2015
- var ALLOWED_IMPORTS = ["lucide-react"];
2016
- function validatePreview(preview) {
2017
- const errors = [];
2018
- if (!preview.code || typeof preview.code !== "string") {
2019
- return {
2020
- isValid: false,
2021
- errors: [{ field: "preview.code", message: "Code must be a non-empty string" }]
2022
- };
2023
- }
2024
- if (!preview.data || typeof preview.data !== "object") {
2025
- return {
2026
- isValid: false,
2027
- errors: [{ field: "preview.data", message: "Data must be an object" }]
2028
- };
2029
- }
2030
- if (preview.code.length > MAX_CODE_SIZE) {
2031
- errors.push({
2032
- field: "preview.code",
2033
- message: `Code size exceeds maximum allowed (${MAX_CODE_SIZE} characters)`
2034
- });
2035
- }
2036
- const dataString = JSON.stringify(preview.data);
2037
- if (dataString.length > MAX_DATA_SIZE) {
2038
- errors.push({
2039
- field: "preview.data",
2040
- message: `Data size exceeds maximum allowed (${MAX_DATA_SIZE} characters)`
2041
- });
2042
- }
2043
- for (const { pattern, message } of DANGEROUS_PATTERNS) {
2044
- if (pattern.test(preview.code)) {
2045
- errors.push({
2046
- field: "preview.code",
2047
- message: `Code contains potentially dangerous pattern: ${message}`
2048
- });
2049
- }
2050
- }
2051
- const importMatches = preview.code.matchAll(/import\s+.*?\s+from\s+['"]([^'"]+)['"]/g);
2052
- for (const match of importMatches) {
2053
- const importPath = match[1];
2054
- if (!ALLOWED_IMPORTS.includes(importPath)) {
2055
- errors.push({
2056
- field: "preview.code",
2057
- message: `Import from "${importPath}" is not allowed. Only imports from ${ALLOWED_IMPORTS.join(", ")} are permitted`
2058
- });
2059
- }
2060
- }
2061
- const hasFunctionDeclaration = /function\s+\w+\s*\(/.test(preview.code);
2062
- if (!hasFunctionDeclaration) {
2063
- errors.push({
2064
- field: "preview.code",
2065
- message: "Code must contain a function declaration"
2066
- });
2067
- }
2068
- const hasReturn = /return\s*\(?\s*</.test(preview.code);
2069
- if (!hasReturn) {
2070
- errors.push({
2071
- field: "preview.code",
2072
- message: "Component function must have a return statement with JSX"
2073
- });
2074
- }
2075
- if (/\bexport\s+(default\s+)?/i.test(preview.code)) {
2076
- errors.push({
2077
- field: "preview.code",
2078
- message: "Code should not contain export statements"
2079
- });
2080
- }
2081
- return {
2082
- isValid: errors.length === 0,
2083
- errors
2084
- };
2085
- }
2086
1977
  function validatePropsAsJsonSchema(props) {
2087
1978
  if (!props || typeof props === "object" && Object.keys(props).length === 0) {
2088
1979
  return {
@@ -2186,6 +2077,109 @@ function validatePropsAsJsonSchema(props) {
2186
2077
  }
2187
2078
  }
2188
2079
 
2080
+ // src/validation/render-validation.ts
2081
+ var MAX_CODE_SIZE = 5e4;
2082
+ var MAX_DATA_SIZE = 1e4;
2083
+ var DANGEROUS_PATTERNS = [
2084
+ {
2085
+ pattern: /\beval\s*\(/i,
2086
+ message: "eval() is not allowed"
2087
+ },
2088
+ {
2089
+ pattern: /\bFunction\s*\(/i,
2090
+ message: "Function constructor is not allowed"
2091
+ },
2092
+ {
2093
+ pattern: /dangerouslySetInnerHTML/i,
2094
+ message: "dangerouslySetInnerHTML is not allowed"
2095
+ },
2096
+ {
2097
+ pattern: /<script\b/i,
2098
+ message: "Script tags are not allowed"
2099
+ },
2100
+ {
2101
+ pattern: /\bon\w+\s*=/i,
2102
+ message: "Inline event handlers (onClick=, onLoad=, etc.) are not allowed"
2103
+ },
2104
+ {
2105
+ pattern: /document\.write/i,
2106
+ message: "document.write is not allowed"
2107
+ },
2108
+ {
2109
+ pattern: /window\.location/i,
2110
+ message: "window.location is not allowed"
2111
+ },
2112
+ {
2113
+ pattern: /\.innerHTML\s*=/i,
2114
+ message: "innerHTML manipulation is not allowed"
2115
+ }
2116
+ ];
2117
+ var ALLOWED_IMPORTS = ["lucide-react"];
2118
+ function validateRender(render) {
2119
+ const errors = [];
2120
+ if (!render.component || typeof render.component !== "string") {
2121
+ return {
2122
+ isValid: false,
2123
+ errors: [{ field: "render.component", message: "Component must be a non-empty string" }]
2124
+ };
2125
+ }
2126
+ if (!render.mockData || typeof render.mockData !== "object") {
2127
+ return {
2128
+ isValid: false,
2129
+ errors: [{ field: "render.mockData", message: "MockData must be an object" }]
2130
+ };
2131
+ }
2132
+ if (render.component.length > MAX_CODE_SIZE) {
2133
+ errors.push({
2134
+ field: "render.component",
2135
+ message: `Component size exceeds maximum allowed (${MAX_CODE_SIZE} characters)`
2136
+ });
2137
+ }
2138
+ const dataString = JSON.stringify(render.mockData);
2139
+ if (dataString.length > MAX_DATA_SIZE) {
2140
+ errors.push({
2141
+ field: "render.mockData",
2142
+ message: `MockData size exceeds maximum allowed (${MAX_DATA_SIZE} characters)`
2143
+ });
2144
+ }
2145
+ for (const { pattern, message } of DANGEROUS_PATTERNS) {
2146
+ if (pattern.test(render.component)) {
2147
+ errors.push({
2148
+ field: "render.component",
2149
+ message: `Component contains potentially dangerous pattern: ${message}`
2150
+ });
2151
+ }
2152
+ }
2153
+ const importMatches = render.component.matchAll(/import\s+.*?\s+from\s+['"]([^'"]+)['"]/g);
2154
+ for (const match of importMatches) {
2155
+ const importPath = match[1];
2156
+ if (!ALLOWED_IMPORTS.includes(importPath) && !importPath.startsWith(".")) {
2157
+ errors.push({
2158
+ field: "render.component",
2159
+ message: `Import from "${importPath}" is not allowed. Only imports from ${ALLOWED_IMPORTS.join(", ")} are permitted`
2160
+ });
2161
+ }
2162
+ }
2163
+ const hasFunctionDeclaration = /function\s+\w+\s*\(/.test(render.component);
2164
+ if (!hasFunctionDeclaration) {
2165
+ errors.push({
2166
+ field: "render.component",
2167
+ message: "Component must contain a function declaration"
2168
+ });
2169
+ }
2170
+ const hasReturn = /return\s*\(?\s*</.test(render.component);
2171
+ if (!hasReturn) {
2172
+ errors.push({
2173
+ field: "render.component",
2174
+ message: "Component function must have a return statement with JSX"
2175
+ });
2176
+ }
2177
+ return {
2178
+ isValid: errors.length === 0,
2179
+ errors
2180
+ };
2181
+ }
2182
+
2189
2183
  exports.A2AMessageMetadataSchema = A2AMessageMetadataSchema;
2190
2184
  exports.AgentApiInsertSchema = AgentApiInsertSchema;
2191
2185
  exports.AgentApiSelectSchema = AgentApiSelectSchema;
@@ -2428,7 +2422,7 @@ exports.validateAgentStructure = validateAgentStructure;
2428
2422
  exports.validateAndTypeAgentData = validateAndTypeAgentData;
2429
2423
  exports.validateArtifactComponentReferences = validateArtifactComponentReferences;
2430
2424
  exports.validateDataComponentReferences = validateDataComponentReferences;
2431
- exports.validatePreview = validatePreview;
2432
2425
  exports.validatePropsAsJsonSchema = validatePropsAsJsonSchema;
2426
+ exports.validateRender = validateRender;
2433
2427
  exports.validateSubAgentExternalAgentRelations = validateSubAgentExternalAgentRelations;
2434
2428
  exports.validateToolReferences = validateToolReferences;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { gc as AgentWithinContextOfProjectSchema, v as FullAgentDefinition } from '../utility-ne-rF1pW.cjs';
3
- export { e6 as AgentApiInsertSchema, e5 as AgentApiSelectSchema, e7 as AgentApiUpdateSchema, e3 as AgentInsertSchema, gI as AgentListResponse, gs as AgentResponse, e2 as AgentSelectSchema, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, fa as AllAgentSchema, ff as ApiKeyApiCreationResponseSchema, fg as ApiKeyApiInsertSchema, fe as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gM as ApiKeyListResponse, gw as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, eY as ArtifactComponentApiInsertSchema, eX as ArtifactComponentApiSelectSchema, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gR as ArtifactComponentListResponse, gB as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, g8 as CanUseItemSchema, eF as ContextCacheApiInsertSchema, eE as ContextCacheApiSelectSchema, eG as ContextCacheApiUpdateSchema, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, eD as ContextCacheUpdateSchema, fI as ContextConfigApiInsertSchema, fH as ContextConfigApiSelectSchema, fJ as ContextConfigApiUpdateSchema, fF as ContextConfigInsertSchema, gL as ContextConfigListResponse, gv as ContextConfigResponse, fE as ContextConfigSelectSchema, fG as ContextConfigUpdateSchema, et as ConversationApiInsertSchema, es as ConversationApiSelectSchema, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, gU as ConversationListResponse, gE as ConversationResponse, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fl as CredentialReferenceApiInsertSchema, fk as CredentialReferenceApiSelectSchema, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gN as CredentialReferenceListResponse, gx as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, eM as DataComponentApiInsertSchema, eL as DataComponentApiSelectSchema, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gQ as DataComponentListResponse, gA as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, gg as ErrorResponseSchema, gh as ExistsResponseSchema, f8 as ExternalAgentApiInsertSchema, f7 as ExternalAgentApiSelectSchema, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gK as ExternalAgentListResponse, gu as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, e1 as ExternalSubAgentRelationApiInsertSchema, e0 as ExternalSubAgentRelationInsertSchema, fC as FetchConfigSchema, fD as FetchDefinitionSchema, a as FullAgentAgentInsertSchema, gp as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, fA as FunctionInsertSchema, gO as FunctionListResponse, gy as FunctionResponse, fz as FunctionSelectSchema, fx as FunctionToolApiInsertSchema, fw as FunctionToolApiSelectSchema, fy as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fu as FunctionToolInsertSchema, gP as FunctionToolListResponse, gz as FunctionToolResponse, ft as FunctionToolSelectSchema, fv as FunctionToolUpdateSchema, fB as FunctionUpdateSchema, g_ as HeadersScopeSchema, g4 as LedgerArtifactApiInsertSchema, g3 as LedgerArtifactApiSelectSchema, g5 as LedgerArtifactApiUpdateSchema, g1 as LedgerArtifactInsertSchema, g0 as LedgerArtifactSelectSchema, g2 as LedgerArtifactUpdateSchema, ge as ListResponseSchema, dI as MAX_ID_LENGTH, fo as MCPToolConfigSchema, dH as MIN_ID_LENGTH, em as McpToolDefinitionSchema, fn as McpToolSchema, ek as McpTransportConfigSchema, ez as MessageApiInsertSchema, ey as MessageApiSelectSchema, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, gV as MessageListResponse, gF as MessageResponse, ev as MessageSelectSchema, ex as MessageUpdateSchema, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, h7 as PaginationQueryParamsSchema, gd as PaginationSchema, gn as ProjectApiInsertSchema, gm as ProjectApiSelectSchema, go as ProjectApiUpdateSchema, gk as ProjectInsertSchema, gG as ProjectListResponse, dM as ProjectModelSchema, gq as ProjectResponse, gj as ProjectSelectSchema, gl as ProjectUpdateSchema, gi as RemovedResponseSchema, gf as SingleResponseSchema, g6 as StatusComponentSchema, g7 as StatusUpdateSchema, d as StopWhen, S as StopWhenSchema, dT as SubAgentApiInsertSchema, dS as SubAgentApiSelectSchema, dU as SubAgentApiUpdateSchema, f2 as SubAgentArtifactComponentApiInsertSchema, f1 as SubAgentArtifactComponentApiSelectSchema, f3 as SubAgentArtifactComponentApiUpdateSchema, e$ as SubAgentArtifactComponentInsertSchema, gZ as SubAgentArtifactComponentListResponse, gX as SubAgentArtifactComponentResponse, e_ as SubAgentArtifactComponentSelectSchema, f0 as SubAgentArtifactComponentUpdateSchema, eS as SubAgentDataComponentApiInsertSchema, eR as SubAgentDataComponentApiSelectSchema, eT as SubAgentDataComponentApiUpdateSchema, eP as SubAgentDataComponentInsertSchema, gY as SubAgentDataComponentListResponse, gW as SubAgentDataComponentResponse, eO as SubAgentDataComponentSelectSchema, eQ as SubAgentDataComponentUpdateSchema, fU as SubAgentExternalAgentRelationApiInsertSchema, fT as SubAgentExternalAgentRelationApiSelectSchema, fV as SubAgentExternalAgentRelationApiUpdateSchema, fR as SubAgentExternalAgentRelationInsertSchema, fQ as SubAgentExternalAgentRelationSelectSchema, fS as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gH as SubAgentListResponse, dZ as SubAgentRelationApiInsertSchema, dY as SubAgentRelationApiSelectSchema, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, gS as SubAgentRelationListResponse, d$ as SubAgentRelationQuerySchema, gC as SubAgentRelationResponse, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gr as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, f_ as SubAgentTeamAgentRelationApiInsertSchema, fZ as SubAgentTeamAgentRelationApiSelectSchema, f$ as SubAgentTeamAgentRelationApiUpdateSchema, fX as SubAgentTeamAgentRelationInsertSchema, fW as SubAgentTeamAgentRelationSelectSchema, fY as SubAgentTeamAgentRelationUpdateSchema, fO as SubAgentToolRelationApiInsertSchema, fN as SubAgentToolRelationApiSelectSchema, fP as SubAgentToolRelationApiUpdateSchema, fL as SubAgentToolRelationInsertSchema, gT as SubAgentToolRelationListResponse, gD as SubAgentToolRelationResponse, fK as SubAgentToolRelationSelectSchema, fM as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, ec as TaskApiInsertSchema, eb as TaskApiSelectSchema, ed as TaskApiUpdateSchema, e9 as TaskInsertSchema, ei as TaskRelationApiInsertSchema, eh as TaskRelationApiSelectSchema, ej as TaskRelationApiUpdateSchema, ef as TaskRelationInsertSchema, ee as TaskRelationSelectSchema, eg as TaskRelationUpdateSchema, e8 as TaskSelectSchema, ea as TaskUpdateSchema, gb as TeamAgentSchema, h0 as TenantIdParamsSchema, g$ as TenantParamsSchema, h4 as TenantProjectAgentIdParamsSchema, h3 as TenantProjectAgentParamsSchema, h6 as TenantProjectAgentSubAgentIdParamsSchema, h5 as TenantProjectAgentSubAgentParamsSchema, h2 as TenantProjectIdParamsSchema, h1 as TenantProjectParamsSchema, fr as ToolApiInsertSchema, fq as ToolApiSelectSchema, fs as ToolApiUpdateSchema, eo as ToolInsertSchema, gJ as ToolListResponse, gt as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fp as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, g9 as canDelegateToExternalAgentSchema, ga as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from '../utility-ne-rF1pW.cjs';
2
+ import { gc as AgentWithinContextOfProjectSchema, v as FullAgentDefinition } from '../utility-aTj9Dhgx.cjs';
3
+ export { e6 as AgentApiInsertSchema, e5 as AgentApiSelectSchema, e7 as AgentApiUpdateSchema, e3 as AgentInsertSchema, gI as AgentListResponse, gs as AgentResponse, e2 as AgentSelectSchema, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, fa as AllAgentSchema, ff as ApiKeyApiCreationResponseSchema, fg as ApiKeyApiInsertSchema, fe as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gM as ApiKeyListResponse, gw as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, eY as ArtifactComponentApiInsertSchema, eX as ArtifactComponentApiSelectSchema, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gR as ArtifactComponentListResponse, gB as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, g8 as CanUseItemSchema, eF as ContextCacheApiInsertSchema, eE as ContextCacheApiSelectSchema, eG as ContextCacheApiUpdateSchema, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, eD as ContextCacheUpdateSchema, fI as ContextConfigApiInsertSchema, fH as ContextConfigApiSelectSchema, fJ as ContextConfigApiUpdateSchema, fF as ContextConfigInsertSchema, gL as ContextConfigListResponse, gv as ContextConfigResponse, fE as ContextConfigSelectSchema, fG as ContextConfigUpdateSchema, et as ConversationApiInsertSchema, es as ConversationApiSelectSchema, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, gU as ConversationListResponse, gE as ConversationResponse, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fl as CredentialReferenceApiInsertSchema, fk as CredentialReferenceApiSelectSchema, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gN as CredentialReferenceListResponse, gx as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, eM as DataComponentApiInsertSchema, eL as DataComponentApiSelectSchema, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gQ as DataComponentListResponse, gA as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, gg as ErrorResponseSchema, gh as ExistsResponseSchema, f8 as ExternalAgentApiInsertSchema, f7 as ExternalAgentApiSelectSchema, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gK as ExternalAgentListResponse, gu as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, e1 as ExternalSubAgentRelationApiInsertSchema, e0 as ExternalSubAgentRelationInsertSchema, fC as FetchConfigSchema, fD as FetchDefinitionSchema, a as FullAgentAgentInsertSchema, gp as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, fA as FunctionInsertSchema, gO as FunctionListResponse, gy as FunctionResponse, fz as FunctionSelectSchema, fx as FunctionToolApiInsertSchema, fw as FunctionToolApiSelectSchema, fy as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fu as FunctionToolInsertSchema, gP as FunctionToolListResponse, gz as FunctionToolResponse, ft as FunctionToolSelectSchema, fv as FunctionToolUpdateSchema, fB as FunctionUpdateSchema, g_ as HeadersScopeSchema, g4 as LedgerArtifactApiInsertSchema, g3 as LedgerArtifactApiSelectSchema, g5 as LedgerArtifactApiUpdateSchema, g1 as LedgerArtifactInsertSchema, g0 as LedgerArtifactSelectSchema, g2 as LedgerArtifactUpdateSchema, ge as ListResponseSchema, dI as MAX_ID_LENGTH, fo as MCPToolConfigSchema, dH as MIN_ID_LENGTH, em as McpToolDefinitionSchema, fn as McpToolSchema, ek as McpTransportConfigSchema, ez as MessageApiInsertSchema, ey as MessageApiSelectSchema, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, gV as MessageListResponse, gF as MessageResponse, ev as MessageSelectSchema, ex as MessageUpdateSchema, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, h7 as PaginationQueryParamsSchema, gd as PaginationSchema, gn as ProjectApiInsertSchema, gm as ProjectApiSelectSchema, go as ProjectApiUpdateSchema, gk as ProjectInsertSchema, gG as ProjectListResponse, dM as ProjectModelSchema, gq as ProjectResponse, gj as ProjectSelectSchema, gl as ProjectUpdateSchema, gi as RemovedResponseSchema, gf as SingleResponseSchema, g6 as StatusComponentSchema, g7 as StatusUpdateSchema, d as StopWhen, S as StopWhenSchema, dT as SubAgentApiInsertSchema, dS as SubAgentApiSelectSchema, dU as SubAgentApiUpdateSchema, f2 as SubAgentArtifactComponentApiInsertSchema, f1 as SubAgentArtifactComponentApiSelectSchema, f3 as SubAgentArtifactComponentApiUpdateSchema, e$ as SubAgentArtifactComponentInsertSchema, gZ as SubAgentArtifactComponentListResponse, gX as SubAgentArtifactComponentResponse, e_ as SubAgentArtifactComponentSelectSchema, f0 as SubAgentArtifactComponentUpdateSchema, eS as SubAgentDataComponentApiInsertSchema, eR as SubAgentDataComponentApiSelectSchema, eT as SubAgentDataComponentApiUpdateSchema, eP as SubAgentDataComponentInsertSchema, gY as SubAgentDataComponentListResponse, gW as SubAgentDataComponentResponse, eO as SubAgentDataComponentSelectSchema, eQ as SubAgentDataComponentUpdateSchema, fU as SubAgentExternalAgentRelationApiInsertSchema, fT as SubAgentExternalAgentRelationApiSelectSchema, fV as SubAgentExternalAgentRelationApiUpdateSchema, fR as SubAgentExternalAgentRelationInsertSchema, fQ as SubAgentExternalAgentRelationSelectSchema, fS as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gH as SubAgentListResponse, dZ as SubAgentRelationApiInsertSchema, dY as SubAgentRelationApiSelectSchema, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, gS as SubAgentRelationListResponse, d$ as SubAgentRelationQuerySchema, gC as SubAgentRelationResponse, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gr as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, f_ as SubAgentTeamAgentRelationApiInsertSchema, fZ as SubAgentTeamAgentRelationApiSelectSchema, f$ as SubAgentTeamAgentRelationApiUpdateSchema, fX as SubAgentTeamAgentRelationInsertSchema, fW as SubAgentTeamAgentRelationSelectSchema, fY as SubAgentTeamAgentRelationUpdateSchema, fO as SubAgentToolRelationApiInsertSchema, fN as SubAgentToolRelationApiSelectSchema, fP as SubAgentToolRelationApiUpdateSchema, fL as SubAgentToolRelationInsertSchema, gT as SubAgentToolRelationListResponse, gD as SubAgentToolRelationResponse, fK as SubAgentToolRelationSelectSchema, fM as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, ec as TaskApiInsertSchema, eb as TaskApiSelectSchema, ed as TaskApiUpdateSchema, e9 as TaskInsertSchema, ei as TaskRelationApiInsertSchema, eh as TaskRelationApiSelectSchema, ej as TaskRelationApiUpdateSchema, ef as TaskRelationInsertSchema, ee as TaskRelationSelectSchema, eg as TaskRelationUpdateSchema, e8 as TaskSelectSchema, ea as TaskUpdateSchema, gb as TeamAgentSchema, h0 as TenantIdParamsSchema, g$ as TenantParamsSchema, h4 as TenantProjectAgentIdParamsSchema, h3 as TenantProjectAgentParamsSchema, h6 as TenantProjectAgentSubAgentIdParamsSchema, h5 as TenantProjectAgentSubAgentParamsSchema, h2 as TenantProjectIdParamsSchema, h1 as TenantProjectParamsSchema, fr as ToolApiInsertSchema, fq as ToolApiSelectSchema, fs as ToolApiUpdateSchema, eo as ToolInsertSchema, gJ as ToolListResponse, gt as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fp as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, g9 as canDelegateToExternalAgentSchema, ga as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from '../utility-aTj9Dhgx.cjs';
4
4
  export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from '../props-validation-BMR1qNiy.cjs';
5
5
  import 'drizzle-zod';
6
6
  import 'drizzle-orm/sqlite-core';
@@ -134,9 +134,9 @@ declare function isValidResourceId(id: string): boolean;
134
134
  declare function generateIdFromName(name: string): string;
135
135
 
136
136
  /**
137
- * Validation utilities for component preview code
137
+ * Validation utilities for component render code
138
138
  */
139
- interface PreviewValidationResult {
139
+ interface RenderValidationResult {
140
140
  isValid: boolean;
141
141
  errors: Array<{
142
142
  field: string;
@@ -144,11 +144,11 @@ interface PreviewValidationResult {
144
144
  }>;
145
145
  }
146
146
  /**
147
- * Validates component preview code and data
147
+ * Validates component render code and data
148
148
  */
149
- declare function validatePreview(preview: {
150
- code: string;
151
- data: Record<string, unknown>;
152
- }): PreviewValidationResult;
149
+ declare function validateRender(render: {
150
+ component: string;
151
+ mockData: Record<string, unknown>;
152
+ }): RenderValidationResult;
153
153
 
154
- export { type A2AMessageMetadata, A2AMessageMetadataSchema, AgentWithinContextOfProjectSchema, type DataOperationDetails, DataOperationDetailsSchema, type DataOperationEvent, DataOperationEventSchema, type DelegationReturnedData, DelegationReturnedDataSchema, type DelegationSentData, DelegationSentDataSchema, type PreviewValidationResult, type TransferData, TransferDataSchema, generateIdFromName, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validatePreview, validateSubAgentExternalAgentRelations, validateToolReferences };
154
+ export { type A2AMessageMetadata, A2AMessageMetadataSchema, AgentWithinContextOfProjectSchema, type DataOperationDetails, DataOperationDetailsSchema, type DataOperationEvent, DataOperationEventSchema, type DelegationReturnedData, DelegationReturnedDataSchema, type DelegationSentData, DelegationSentDataSchema, type RenderValidationResult, type TransferData, TransferDataSchema, generateIdFromName, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateRender, validateSubAgentExternalAgentRelations, validateToolReferences };
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { gc as AgentWithinContextOfProjectSchema, v as FullAgentDefinition } from '../utility-ne-rF1pW.js';
3
- export { e6 as AgentApiInsertSchema, e5 as AgentApiSelectSchema, e7 as AgentApiUpdateSchema, e3 as AgentInsertSchema, gI as AgentListResponse, gs as AgentResponse, e2 as AgentSelectSchema, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, fa as AllAgentSchema, ff as ApiKeyApiCreationResponseSchema, fg as ApiKeyApiInsertSchema, fe as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gM as ApiKeyListResponse, gw as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, eY as ArtifactComponentApiInsertSchema, eX as ArtifactComponentApiSelectSchema, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gR as ArtifactComponentListResponse, gB as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, g8 as CanUseItemSchema, eF as ContextCacheApiInsertSchema, eE as ContextCacheApiSelectSchema, eG as ContextCacheApiUpdateSchema, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, eD as ContextCacheUpdateSchema, fI as ContextConfigApiInsertSchema, fH as ContextConfigApiSelectSchema, fJ as ContextConfigApiUpdateSchema, fF as ContextConfigInsertSchema, gL as ContextConfigListResponse, gv as ContextConfigResponse, fE as ContextConfigSelectSchema, fG as ContextConfigUpdateSchema, et as ConversationApiInsertSchema, es as ConversationApiSelectSchema, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, gU as ConversationListResponse, gE as ConversationResponse, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fl as CredentialReferenceApiInsertSchema, fk as CredentialReferenceApiSelectSchema, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gN as CredentialReferenceListResponse, gx as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, eM as DataComponentApiInsertSchema, eL as DataComponentApiSelectSchema, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gQ as DataComponentListResponse, gA as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, gg as ErrorResponseSchema, gh as ExistsResponseSchema, f8 as ExternalAgentApiInsertSchema, f7 as ExternalAgentApiSelectSchema, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gK as ExternalAgentListResponse, gu as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, e1 as ExternalSubAgentRelationApiInsertSchema, e0 as ExternalSubAgentRelationInsertSchema, fC as FetchConfigSchema, fD as FetchDefinitionSchema, a as FullAgentAgentInsertSchema, gp as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, fA as FunctionInsertSchema, gO as FunctionListResponse, gy as FunctionResponse, fz as FunctionSelectSchema, fx as FunctionToolApiInsertSchema, fw as FunctionToolApiSelectSchema, fy as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fu as FunctionToolInsertSchema, gP as FunctionToolListResponse, gz as FunctionToolResponse, ft as FunctionToolSelectSchema, fv as FunctionToolUpdateSchema, fB as FunctionUpdateSchema, g_ as HeadersScopeSchema, g4 as LedgerArtifactApiInsertSchema, g3 as LedgerArtifactApiSelectSchema, g5 as LedgerArtifactApiUpdateSchema, g1 as LedgerArtifactInsertSchema, g0 as LedgerArtifactSelectSchema, g2 as LedgerArtifactUpdateSchema, ge as ListResponseSchema, dI as MAX_ID_LENGTH, fo as MCPToolConfigSchema, dH as MIN_ID_LENGTH, em as McpToolDefinitionSchema, fn as McpToolSchema, ek as McpTransportConfigSchema, ez as MessageApiInsertSchema, ey as MessageApiSelectSchema, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, gV as MessageListResponse, gF as MessageResponse, ev as MessageSelectSchema, ex as MessageUpdateSchema, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, h7 as PaginationQueryParamsSchema, gd as PaginationSchema, gn as ProjectApiInsertSchema, gm as ProjectApiSelectSchema, go as ProjectApiUpdateSchema, gk as ProjectInsertSchema, gG as ProjectListResponse, dM as ProjectModelSchema, gq as ProjectResponse, gj as ProjectSelectSchema, gl as ProjectUpdateSchema, gi as RemovedResponseSchema, gf as SingleResponseSchema, g6 as StatusComponentSchema, g7 as StatusUpdateSchema, d as StopWhen, S as StopWhenSchema, dT as SubAgentApiInsertSchema, dS as SubAgentApiSelectSchema, dU as SubAgentApiUpdateSchema, f2 as SubAgentArtifactComponentApiInsertSchema, f1 as SubAgentArtifactComponentApiSelectSchema, f3 as SubAgentArtifactComponentApiUpdateSchema, e$ as SubAgentArtifactComponentInsertSchema, gZ as SubAgentArtifactComponentListResponse, gX as SubAgentArtifactComponentResponse, e_ as SubAgentArtifactComponentSelectSchema, f0 as SubAgentArtifactComponentUpdateSchema, eS as SubAgentDataComponentApiInsertSchema, eR as SubAgentDataComponentApiSelectSchema, eT as SubAgentDataComponentApiUpdateSchema, eP as SubAgentDataComponentInsertSchema, gY as SubAgentDataComponentListResponse, gW as SubAgentDataComponentResponse, eO as SubAgentDataComponentSelectSchema, eQ as SubAgentDataComponentUpdateSchema, fU as SubAgentExternalAgentRelationApiInsertSchema, fT as SubAgentExternalAgentRelationApiSelectSchema, fV as SubAgentExternalAgentRelationApiUpdateSchema, fR as SubAgentExternalAgentRelationInsertSchema, fQ as SubAgentExternalAgentRelationSelectSchema, fS as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gH as SubAgentListResponse, dZ as SubAgentRelationApiInsertSchema, dY as SubAgentRelationApiSelectSchema, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, gS as SubAgentRelationListResponse, d$ as SubAgentRelationQuerySchema, gC as SubAgentRelationResponse, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gr as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, f_ as SubAgentTeamAgentRelationApiInsertSchema, fZ as SubAgentTeamAgentRelationApiSelectSchema, f$ as SubAgentTeamAgentRelationApiUpdateSchema, fX as SubAgentTeamAgentRelationInsertSchema, fW as SubAgentTeamAgentRelationSelectSchema, fY as SubAgentTeamAgentRelationUpdateSchema, fO as SubAgentToolRelationApiInsertSchema, fN as SubAgentToolRelationApiSelectSchema, fP as SubAgentToolRelationApiUpdateSchema, fL as SubAgentToolRelationInsertSchema, gT as SubAgentToolRelationListResponse, gD as SubAgentToolRelationResponse, fK as SubAgentToolRelationSelectSchema, fM as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, ec as TaskApiInsertSchema, eb as TaskApiSelectSchema, ed as TaskApiUpdateSchema, e9 as TaskInsertSchema, ei as TaskRelationApiInsertSchema, eh as TaskRelationApiSelectSchema, ej as TaskRelationApiUpdateSchema, ef as TaskRelationInsertSchema, ee as TaskRelationSelectSchema, eg as TaskRelationUpdateSchema, e8 as TaskSelectSchema, ea as TaskUpdateSchema, gb as TeamAgentSchema, h0 as TenantIdParamsSchema, g$ as TenantParamsSchema, h4 as TenantProjectAgentIdParamsSchema, h3 as TenantProjectAgentParamsSchema, h6 as TenantProjectAgentSubAgentIdParamsSchema, h5 as TenantProjectAgentSubAgentParamsSchema, h2 as TenantProjectIdParamsSchema, h1 as TenantProjectParamsSchema, fr as ToolApiInsertSchema, fq as ToolApiSelectSchema, fs as ToolApiUpdateSchema, eo as ToolInsertSchema, gJ as ToolListResponse, gt as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fp as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, g9 as canDelegateToExternalAgentSchema, ga as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from '../utility-ne-rF1pW.js';
2
+ import { gc as AgentWithinContextOfProjectSchema, v as FullAgentDefinition } from '../utility-aTj9Dhgx.js';
3
+ export { e6 as AgentApiInsertSchema, e5 as AgentApiSelectSchema, e7 as AgentApiUpdateSchema, e3 as AgentInsertSchema, gI as AgentListResponse, gs as AgentResponse, e2 as AgentSelectSchema, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, fa as AllAgentSchema, ff as ApiKeyApiCreationResponseSchema, fg as ApiKeyApiInsertSchema, fe as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gM as ApiKeyListResponse, gw as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, eY as ArtifactComponentApiInsertSchema, eX as ArtifactComponentApiSelectSchema, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gR as ArtifactComponentListResponse, gB as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, g8 as CanUseItemSchema, eF as ContextCacheApiInsertSchema, eE as ContextCacheApiSelectSchema, eG as ContextCacheApiUpdateSchema, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, eD as ContextCacheUpdateSchema, fI as ContextConfigApiInsertSchema, fH as ContextConfigApiSelectSchema, fJ as ContextConfigApiUpdateSchema, fF as ContextConfigInsertSchema, gL as ContextConfigListResponse, gv as ContextConfigResponse, fE as ContextConfigSelectSchema, fG as ContextConfigUpdateSchema, et as ConversationApiInsertSchema, es as ConversationApiSelectSchema, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, gU as ConversationListResponse, gE as ConversationResponse, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fl as CredentialReferenceApiInsertSchema, fk as CredentialReferenceApiSelectSchema, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gN as CredentialReferenceListResponse, gx as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, eM as DataComponentApiInsertSchema, eL as DataComponentApiSelectSchema, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gQ as DataComponentListResponse, gA as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, gg as ErrorResponseSchema, gh as ExistsResponseSchema, f8 as ExternalAgentApiInsertSchema, f7 as ExternalAgentApiSelectSchema, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gK as ExternalAgentListResponse, gu as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, e1 as ExternalSubAgentRelationApiInsertSchema, e0 as ExternalSubAgentRelationInsertSchema, fC as FetchConfigSchema, fD as FetchDefinitionSchema, a as FullAgentAgentInsertSchema, gp as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, fA as FunctionInsertSchema, gO as FunctionListResponse, gy as FunctionResponse, fz as FunctionSelectSchema, fx as FunctionToolApiInsertSchema, fw as FunctionToolApiSelectSchema, fy as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fu as FunctionToolInsertSchema, gP as FunctionToolListResponse, gz as FunctionToolResponse, ft as FunctionToolSelectSchema, fv as FunctionToolUpdateSchema, fB as FunctionUpdateSchema, g_ as HeadersScopeSchema, g4 as LedgerArtifactApiInsertSchema, g3 as LedgerArtifactApiSelectSchema, g5 as LedgerArtifactApiUpdateSchema, g1 as LedgerArtifactInsertSchema, g0 as LedgerArtifactSelectSchema, g2 as LedgerArtifactUpdateSchema, ge as ListResponseSchema, dI as MAX_ID_LENGTH, fo as MCPToolConfigSchema, dH as MIN_ID_LENGTH, em as McpToolDefinitionSchema, fn as McpToolSchema, ek as McpTransportConfigSchema, ez as MessageApiInsertSchema, ey as MessageApiSelectSchema, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, gV as MessageListResponse, gF as MessageResponse, ev as MessageSelectSchema, ex as MessageUpdateSchema, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, h7 as PaginationQueryParamsSchema, gd as PaginationSchema, gn as ProjectApiInsertSchema, gm as ProjectApiSelectSchema, go as ProjectApiUpdateSchema, gk as ProjectInsertSchema, gG as ProjectListResponse, dM as ProjectModelSchema, gq as ProjectResponse, gj as ProjectSelectSchema, gl as ProjectUpdateSchema, gi as RemovedResponseSchema, gf as SingleResponseSchema, g6 as StatusComponentSchema, g7 as StatusUpdateSchema, d as StopWhen, S as StopWhenSchema, dT as SubAgentApiInsertSchema, dS as SubAgentApiSelectSchema, dU as SubAgentApiUpdateSchema, f2 as SubAgentArtifactComponentApiInsertSchema, f1 as SubAgentArtifactComponentApiSelectSchema, f3 as SubAgentArtifactComponentApiUpdateSchema, e$ as SubAgentArtifactComponentInsertSchema, gZ as SubAgentArtifactComponentListResponse, gX as SubAgentArtifactComponentResponse, e_ as SubAgentArtifactComponentSelectSchema, f0 as SubAgentArtifactComponentUpdateSchema, eS as SubAgentDataComponentApiInsertSchema, eR as SubAgentDataComponentApiSelectSchema, eT as SubAgentDataComponentApiUpdateSchema, eP as SubAgentDataComponentInsertSchema, gY as SubAgentDataComponentListResponse, gW as SubAgentDataComponentResponse, eO as SubAgentDataComponentSelectSchema, eQ as SubAgentDataComponentUpdateSchema, fU as SubAgentExternalAgentRelationApiInsertSchema, fT as SubAgentExternalAgentRelationApiSelectSchema, fV as SubAgentExternalAgentRelationApiUpdateSchema, fR as SubAgentExternalAgentRelationInsertSchema, fQ as SubAgentExternalAgentRelationSelectSchema, fS as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gH as SubAgentListResponse, dZ as SubAgentRelationApiInsertSchema, dY as SubAgentRelationApiSelectSchema, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, gS as SubAgentRelationListResponse, d$ as SubAgentRelationQuerySchema, gC as SubAgentRelationResponse, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gr as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, f_ as SubAgentTeamAgentRelationApiInsertSchema, fZ as SubAgentTeamAgentRelationApiSelectSchema, f$ as SubAgentTeamAgentRelationApiUpdateSchema, fX as SubAgentTeamAgentRelationInsertSchema, fW as SubAgentTeamAgentRelationSelectSchema, fY as SubAgentTeamAgentRelationUpdateSchema, fO as SubAgentToolRelationApiInsertSchema, fN as SubAgentToolRelationApiSelectSchema, fP as SubAgentToolRelationApiUpdateSchema, fL as SubAgentToolRelationInsertSchema, gT as SubAgentToolRelationListResponse, gD as SubAgentToolRelationResponse, fK as SubAgentToolRelationSelectSchema, fM as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, ec as TaskApiInsertSchema, eb as TaskApiSelectSchema, ed as TaskApiUpdateSchema, e9 as TaskInsertSchema, ei as TaskRelationApiInsertSchema, eh as TaskRelationApiSelectSchema, ej as TaskRelationApiUpdateSchema, ef as TaskRelationInsertSchema, ee as TaskRelationSelectSchema, eg as TaskRelationUpdateSchema, e8 as TaskSelectSchema, ea as TaskUpdateSchema, gb as TeamAgentSchema, h0 as TenantIdParamsSchema, g$ as TenantParamsSchema, h4 as TenantProjectAgentIdParamsSchema, h3 as TenantProjectAgentParamsSchema, h6 as TenantProjectAgentSubAgentIdParamsSchema, h5 as TenantProjectAgentSubAgentParamsSchema, h2 as TenantProjectIdParamsSchema, h1 as TenantProjectParamsSchema, fr as ToolApiInsertSchema, fq as ToolApiSelectSchema, fs as ToolApiUpdateSchema, eo as ToolInsertSchema, gJ as ToolListResponse, gt as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fp as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, g9 as canDelegateToExternalAgentSchema, ga as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from '../utility-aTj9Dhgx.js';
4
4
  export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from '../props-validation-BMR1qNiy.js';
5
5
  import 'drizzle-zod';
6
6
  import 'drizzle-orm/sqlite-core';
@@ -134,9 +134,9 @@ declare function isValidResourceId(id: string): boolean;
134
134
  declare function generateIdFromName(name: string): string;
135
135
 
136
136
  /**
137
- * Validation utilities for component preview code
137
+ * Validation utilities for component render code
138
138
  */
139
- interface PreviewValidationResult {
139
+ interface RenderValidationResult {
140
140
  isValid: boolean;
141
141
  errors: Array<{
142
142
  field: string;
@@ -144,11 +144,11 @@ interface PreviewValidationResult {
144
144
  }>;
145
145
  }
146
146
  /**
147
- * Validates component preview code and data
147
+ * Validates component render code and data
148
148
  */
149
- declare function validatePreview(preview: {
150
- code: string;
151
- data: Record<string, unknown>;
152
- }): PreviewValidationResult;
149
+ declare function validateRender(render: {
150
+ component: string;
151
+ mockData: Record<string, unknown>;
152
+ }): RenderValidationResult;
153
153
 
154
- export { type A2AMessageMetadata, A2AMessageMetadataSchema, AgentWithinContextOfProjectSchema, type DataOperationDetails, DataOperationDetailsSchema, type DataOperationEvent, DataOperationEventSchema, type DelegationReturnedData, DelegationReturnedDataSchema, type DelegationSentData, DelegationSentDataSchema, type PreviewValidationResult, type TransferData, TransferDataSchema, generateIdFromName, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validatePreview, validateSubAgentExternalAgentRelations, validateToolReferences };
154
+ export { type A2AMessageMetadata, A2AMessageMetadataSchema, AgentWithinContextOfProjectSchema, type DataOperationDetails, DataOperationDetailsSchema, type DataOperationEvent, DataOperationEventSchema, type DelegationReturnedData, DelegationReturnedDataSchema, type DelegationSentData, DelegationSentDataSchema, type RenderValidationResult, type TransferData, TransferDataSchema, generateIdFromName, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateRender, validateSubAgentExternalAgentRelations, validateToolReferences };
@@ -1,2 +1,2 @@
1
- export { A2AMessageMetadataSchema, DataOperationDetailsSchema, DataOperationEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, TransferDataSchema, generateIdFromName, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validatePreview, validateSubAgentExternalAgentRelations, validateToolReferences } from '../chunk-TE25X6YU.js';
2
- export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, HeadersScopeSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationSelectSchema, SubAgentTeamAgentRelationUpdateSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TeamAgentSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, canDelegateToExternalAgentSchema, canDelegateToTeamAgentSchema, resourceIdSchema, validatePropsAsJsonSchema } from '../chunk-QPOB7LI5.js';
1
+ export { A2AMessageMetadataSchema, DataOperationDetailsSchema, DataOperationEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, TransferDataSchema, generateIdFromName, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateRender, validateSubAgentExternalAgentRelations, validateToolReferences } from '../chunk-2GL6WAMT.js';
2
+ export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, HeadersScopeSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationSelectSchema, SubAgentTeamAgentRelationUpdateSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TeamAgentSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, canDelegateToExternalAgentSchema, canDelegateToTeamAgentSchema, resourceIdSchema, validatePropsAsJsonSchema } from '../chunk-OYTJILYZ.js';
@@ -0,0 +1,19 @@
1
+ PRAGMA foreign_keys=OFF;--> statement-breakpoint
2
+ CREATE TABLE `__new_data_components` (
3
+ `tenant_id` text NOT NULL,
4
+ `id` text NOT NULL,
5
+ `project_id` text NOT NULL,
6
+ `name` text NOT NULL,
7
+ `description` text NOT NULL,
8
+ `props` blob,
9
+ `render` blob DEFAULT 'null',
10
+ `created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
11
+ `updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
12
+ PRIMARY KEY(`tenant_id`, `project_id`, `id`),
13
+ FOREIGN KEY (`tenant_id`,`project_id`) REFERENCES `projects`(`tenant_id`,`id`) ON UPDATE no action ON DELETE cascade
14
+ );
15
+ --> statement-breakpoint
16
+ INSERT INTO `__new_data_components`("tenant_id", "id", "project_id", "name", "description", "props", "render", "created_at", "updated_at") SELECT "tenant_id", "id", "project_id", "name", "description", "props", NULL, "created_at", "updated_at" FROM `data_components` WHERE EXISTS(SELECT 1 FROM sqlite_master WHERE type='table' AND name='data_components');--> statement-breakpoint
17
+ DROP TABLE IF EXISTS `data_components`;--> statement-breakpoint
18
+ ALTER TABLE `__new_data_components` RENAME TO `data_components`;--> statement-breakpoint
19
+ PRAGMA foreign_keys=ON;