| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- // Types
- export type {
- DynamicValue,
- DynamicString,
- DynamicNumber,
- DynamicBoolean,
- UIElement,
- FlatElement,
- Spec,
- VisibilityCondition,
- LogicExpression,
- AuthState,
- StateModel,
- ComponentSchema,
- ValidationMode,
- PatchOp,
- JsonPatch,
- // SpecStream types
- SpecStreamLine,
- SpecStreamCompiler,
- } from "./types";
- export {
- DynamicValueSchema,
- DynamicStringSchema,
- DynamicNumberSchema,
- DynamicBooleanSchema,
- resolveDynamicValue,
- getByPath,
- setByPath,
- addByPath,
- removeByPath,
- findFormValue,
- // SpecStream - streaming format for building specs (RFC 6902)
- parseSpecStreamLine,
- applySpecStreamPatch,
- compileSpecStream,
- createSpecStreamCompiler,
- } from "./types";
- // Visibility
- export type { VisibilityContext } from "./visibility";
- export {
- VisibilityConditionSchema,
- LogicExpressionSchema,
- evaluateVisibility,
- evaluateLogicExpression,
- visibility,
- } from "./visibility";
- // Prop Expressions
- export type { PropExpression } from "./props";
- export { resolvePropValue, resolveElementProps } from "./props";
- // Actions
- export type {
- ActionBinding,
- /** @deprecated Use ActionBinding instead */
- Action,
- ActionConfirm,
- ActionOnSuccess,
- ActionOnError,
- ActionHandler,
- ActionDefinition,
- ResolvedAction,
- ActionExecutionContext,
- } from "./actions";
- export {
- ActionBindingSchema,
- /** @deprecated Use ActionBindingSchema instead */
- ActionSchema,
- ActionConfirmSchema,
- ActionOnSuccessSchema,
- ActionOnErrorSchema,
- resolveAction,
- executeAction,
- interpolateString,
- actionBinding,
- /** @deprecated Use actionBinding instead */
- action,
- } from "./actions";
- // Validation
- export type {
- ValidationCheck,
- ValidationConfig,
- ValidationFunction,
- ValidationFunctionDefinition,
- ValidationCheckResult,
- ValidationResult,
- ValidationContext,
- } from "./validation";
- export {
- ValidationCheckSchema,
- ValidationConfigSchema,
- builtInValidationFunctions,
- runValidationCheck,
- runValidation,
- check,
- } from "./validation";
- // Spec Structural Validation
- export type {
- SpecIssueSeverity,
- SpecIssue,
- SpecValidationIssues,
- ValidateSpecOptions,
- } from "./spec-validator";
- export { validateSpec, autoFixSpec, formatSpecIssues } from "./spec-validator";
- // Schema (new API)
- export type {
- SchemaBuilder,
- SchemaType,
- SchemaDefinition,
- Schema,
- Catalog,
- PromptOptions,
- PromptContext,
- PromptTemplate,
- SchemaOptions,
- SpecValidationResult,
- InferCatalogInput,
- InferSpec,
- // Catalog type inference
- InferCatalogComponents,
- InferCatalogActions,
- InferComponentProps,
- InferActionParams,
- } from "./schema";
- export { defineSchema, defineCatalog } from "./schema";
- // User Prompt Builder
- export type { UserPromptOptions } from "./prompt";
- export { buildUserPrompt } from "./prompt";
- // Legacy Catalog (for backwards compatibility during migration)
- export type {
- ComponentDefinition,
- CatalogConfig,
- Catalog as LegacyCatalog,
- InferCatalogComponentProps,
- SystemPromptOptions,
- } from "./catalog";
- export {
- createCatalog,
- generateCatalogPrompt,
- generateSystemPrompt,
- } from "./catalog";
|