/** * `@aotter/mantle-runtime` — public surface. * * Adapter-agnostic runtime engine for mantle. Layered per the * Aotter clean-architecture convention (mirrors `aotter-mantle/mantle/core`): * * domain ← usecase ← infrastructure ← runtime.ts (assembly root) * * Adapters (e.g. `@aotter/mantle-cloudflare`) implement the * storage and optional port interfaces in `domain/port/`, then call * `createMantleRuntime` with a prepared semantic revision. * * MUST NOT import `D1Database` / `KVNamespace` / any Cloudflare- * specific type. */ export { bootMantleRuntime, createMantleRuntime, type BootMantleRuntimeArgs, type CreateMantleRuntimeArgs, type MantleRuntime, type MantleMedia, type MantleRuntimePorts, type InvokeMantleProcedureRequest, type ExecuteMantleViewRequest, type InvokeMantleTriggerRequest, } from "./MantleRuntime.js"; export { RUNTIME_PLAN_VERSION, compileRuntimePlan, sealRuntimePlan, type CompileResult, type RuntimePlan, type RuntimePlanData, type RuntimeSchemaPlan, type RuntimeViewPlan, type RuntimeProcedurePlan, type RuntimeTriggerPlan, type LogicalViewPlan, type LifecycleHookPlan, type HttpRoutePlan, type McpToolPlan, } from "./domain/service/RuntimePlanCompiler.js"; export { projectCallableCapabilities, type RuntimeCallableCapability, type ViewCallableCapability, type ProcedureCallableCapability, } from "./domain/service/CallableCapabilityProjector.js"; export type { DatabaseDriver, PreparedStatement, RunResult, BatchResult, MigrationRunner, Migration, } from "./domain/port/DatabaseDriver.js"; export type { EntryRepository, EntryKey, CreateEntryArgs, UpdateEntryArgs, DeleteEntryArgs, TransitionStatusArgs, ListEntriesArgs, ListEntriesResult, FindEntryByDataFieldArgs, FindEntryByDataFieldsArgs, } from "./domain/port/EntryRepository.js"; export type { EntryReader, CreationStatisticsArgs, CreationStatistics, EntryDataScalar, ReadEntryBySlugArgs, ReadEntryByDataFieldArgs, ReadEntriesByDataFieldInArgs, ReadPublishedEntriesArgs, ReadPublishedPageArgs, PublishedEntryPage, FindManyEntriesByDataFieldArgs, } from "./domain/port/EntryReader.js"; export { joinParentIfTranslation, joinParentForList, } from "./domain/service/io/JoinedEntryReader.js"; export type { ViewQueryExecutor, ViewQueryOptions, ViewQueryRequest, ViewQueryResult, } from "./domain/port/ViewQueryExecutor.js"; export type { MantleStorageAdapter, PreparedMantleStorage, } from "./domain/port/MantleStorageAdapter.js"; export { EntryStatusConflict, EntryUniqueConflict, EntryVersionConflict, liftLocale, materializeNullableFields, projectPublicEntry, type EntryRow, } from "./domain/model/EntryRow.js"; export { clampLimit, clampPage, clampShow, } from "./domain/service/Pagination.js"; export { paginatePublishedEntries, decodeEntrySortCursor, encodeEntrySortCursor, } from "./infrastructure/persistence/Pagination.js"; export type { PreparedMantleRevision } from "./domain/model/PreparedMantleRevision.js"; export { SqliteMigrationRunner, splitSqlStatements } from "./infrastructure/boot/SqliteMigrationRunner.js"; export { MANTLE_VIEW_ROUTE_PREFIX, createMantleRequestHandler, type MantleRequestHandler, type MantleRequestHandlerOptions, } from "./infrastructure/http/createMantleRequestHandler.js"; export type { Clock } from "./domain/port/Clock.js"; export { JsonBodyTooLargeError, MAX_JSON_BODY_BYTES, readJsonBody } from "./infrastructure/http/readJsonBody.js"; export type { SiteConfigRepository, LocalePolicyReader, UpdateEditableSiteConfigArgs, } from "./domain/port/SiteConfigRepository.js"; export { SqliteMantleStorageAdapter, type SqliteMantleStorageAdapterOptions, } from "./infrastructure/storage/SqliteMantleStorageAdapter.js"; export { buildSqliteMigrationArtifact, storageFingerprint, verifySqliteMigrationArtifact, type SqliteMigrationArtifact, } from "./infrastructure/storage/SqliteMigrationArtifact.js"; export { isAdditiveSchemaTableChange, mergeSchemaTableProjections, } from "./infrastructure/storage/SqliteSchemaTables.js"; export { prepareDeployment, type DeploymentPreparationOptions, } from "./usecase/boot/ValidateBootUseCase.js"; export type { MediaStorage, CreateUploadArgs, CreateUploadVariantSpec, CreateUploadResult, UploadCapability, CommitUploadArgs, CommitUploadVariantSpec, GetPublicUrlArgs, DeleteObjectArgs, MediaAsset, MediaVariant, MediaVariantRole, } from "./domain/port/MediaStorage.js"; export { pickPrimaryVariant } from "./domain/port/MediaStorage.js"; export type { MediaAssetRepository, MediaAssetListArgs, MediaAssetListResult, } from "./domain/port/MediaAssetRepository.js"; export type { EmailSender, EmailSendArgs, } from "./domain/port/EmailSender.js"; export { extensionForMime } from "./usecase/media/mediaAllowlist.js"; export type { DeferredHookDispatcher, DeferredHookEnvelope, DeferredLifecycleHook, CtxSnapshot, } from "./domain/port/DeferredHookDispatcher.js"; export { DEFERRED_HOOK_ENVELOPE_VERSION } from "./domain/port/DeferredHookDispatcher.js"; export { type IdGenerator, RandomUuidGenerator } from "./domain/port/IdGenerator.js"; export type { AnyHandler, HandlerFn, HandlerContext, HandlerAuthContext, HandlerLifecycleEvent, } from "./domain/model/HandlerContext.js"; export { readEntryBySlug } from "./infrastructure/persistence/DatabaseEntryRepository.js"; export { inferLocaleFromPath, isKnownLocale, siteConfigFromDefaults, toUrlLocale, } from "./domain/service/LocaleNegotiator.js"; export { compilePathMatcher, matchPath } from "./domain/service/PathMatcher.js"; export { evaluateAuthAll } from "./domain/service/AuthPredicateEvaluator.js"; export { coerceViewParams, ViewParamCoercionError, } from "./domain/service/ViewParamCoercer.js"; export { McpJsonRpcDispatcher, type McpUseCases, } from "./infrastructure/mcp/McpJsonRpcDispatcher.js"; export type { AuditSink, McpToolCallAuditEvent } from "./domain/port/AuditSink.js"; export { CANONICAL_MIGRATIONS } from "./infrastructure/boot/canonicalMigrations.js"; export { readStoreInstanceId } from "./infrastructure/boot/bootState.js"; export { InvokeFailure } from "./usecase/procedure/InvokeProcedureUseCase.js"; export { buildMcpAuditOperationIdResolver, buildMcpToolCatalog, type McpToolDefinition, } from "./infrastructure/mcp/McpToolCatalog.js"; //# sourceMappingURL=index.d.ts.map