@inf-monkeys-tech/monkeys 1.1.71 → 1.1.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/contracts/declarative-control-http.d.ts +54 -0
- package/lib/contracts/declarative-control-http.d.ts.map +1 -1
- package/lib/contracts/declarative-control-http.js +9 -0
- package/lib/contracts/declarative-control-http.js.map +1 -1
- package/lib/contracts/declarative-document-import.d.ts +51 -0
- package/lib/contracts/declarative-document-import.d.ts.map +1 -1
- package/lib/contracts/declarative-document-import.js +6 -0
- package/lib/contracts/declarative-document-import.js.map +1 -1
- package/lib/contracts/declarative-page-delivery.d.ts +145 -0
- package/lib/contracts/declarative-page-delivery.d.ts.map +1 -0
- package/lib/contracts/declarative-page-delivery.js +164 -0
- package/lib/contracts/declarative-page-delivery.js.map +1 -0
- package/lib/contracts/declarative-publication-health.d.ts +1061 -0
- package/lib/contracts/declarative-publication-health.d.ts.map +1 -0
- package/lib/contracts/declarative-publication-health.js +148 -0
- package/lib/contracts/declarative-publication-health.js.map +1 -0
- package/lib/contracts/declarative-publication-job.d.ts +51 -0
- package/lib/contracts/declarative-publication-job.d.ts.map +1 -1
- package/lib/contracts/declarative-publication-verification.d.ts +6 -0
- package/lib/contracts/declarative-publication-verification.d.ts.map +1 -1
- package/lib/contracts/declarative-publication-verification.js +5 -0
- package/lib/contracts/declarative-publication-verification.js.map +1 -1
- package/lib/contracts/index.d.ts +2 -0
- package/lib/contracts/index.d.ts.map +1 -1
- package/lib/contracts/index.js +2 -0
- package/lib/contracts/index.js.map +1 -1
- package/lib/esm/{chunk-75IO3EKE.mjs → chunk-DOQFYTAY.mjs} +16 -2
- package/lib/esm/chunk-DOQFYTAY.mjs.map +1 -0
- package/lib/esm/{chunk-DWQNEXK3.mjs → chunk-EMRIN6FD.mjs} +2 -2
- package/lib/esm/{chunk-JEAEX7QG.mjs → chunk-GAAD4RFK.mjs} +324 -3
- package/lib/esm/chunk-GAAD4RFK.mjs.map +1 -0
- package/lib/esm/{chunk-TKVCHO6V.mjs → chunk-HFNPLMKA.mjs} +2013 -1739
- package/lib/esm/chunk-HFNPLMKA.mjs.map +1 -0
- package/lib/esm/contracts/index.mjs +34 -2
- package/lib/esm/index.mjs +42 -4
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +9 -3
- package/lib/esm/schemas/index.mjs +2 -2
- package/lib/json-schema/declarative-page-overlay.schema.json +184 -0
- package/lib/json-schema/declarative-page-package.schema.json +73 -0
- package/lib/json-schema/declarative-page-rendering.schema.json +239 -0
- package/lib/json-schema/declarative-publication-last-known-good-result.schema.json +675 -0
- package/lib/json-schema/declarative-publication-last-known-good.schema.json +651 -0
- package/lib/json-schema/declarative-publication-record-result.schema.json +1138 -0
- package/lib/json-schema/declarative-publication-recovery-result.schema.json +1775 -0
- package/lib/json-schema/declarative-publication-verification.schema.json +11 -0
- package/lib/json-schema/index.json +7 -0
- package/lib/runtime/declarative-page-delivery.d.ts +41 -0
- package/lib/runtime/declarative-page-delivery.d.ts.map +1 -0
- package/lib/runtime/declarative-page-delivery.js +270 -0
- package/lib/runtime/declarative-page-delivery.js.map +1 -0
- package/lib/runtime/index.d.ts +1 -0
- package/lib/runtime/index.d.ts.map +1 -1
- package/lib/runtime/index.js +1 -0
- package/lib/runtime/index.js.map +1 -1
- package/lib/schemas/index.d.ts +227 -0
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +9 -0
- package/lib/schemas/index.js.map +1 -1
- package/package.json +2 -2
- package/lib/esm/chunk-75IO3EKE.mjs.map +0 -1
- package/lib/esm/chunk-JEAEX7QG.mjs.map +0 -1
- package/lib/esm/chunk-TKVCHO6V.mjs.map +0 -1
- /package/lib/esm/{chunk-DWQNEXK3.mjs.map → chunk-EMRIN6FD.mjs.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["import type { ZodTypeAny } from \"zod\";\nimport { DeclarativePublicationVerificationRequestSchema, DeclarativePublicationVerificationSchema } from \"../contracts/declarative-publication-verification\";\nimport {\n DeclarativePublicationLastKnownGoodResultSchema,\n DeclarativePublicationLastKnownGoodSchema,\n DeclarativePublicationRecordResultSchema,\n DeclarativePublicationRecoveryResultSchema,\n} from \"../contracts/declarative-publication-health\";\nimport {\n DeclarativePageOverlaySchema,\n DeclarativePagePackageSchema,\n DeclarativePageRenderingSchema,\n} from \"../contracts/declarative-page-delivery\";\nimport {\n ActionProgramDefinitionSchema,\n ActionProgramArtifactSchema,\n} from \"../contracts/declarative-control\";\nexport {\n AggregateAssetDeleteSchema,\n AggregateAssetRelationObjectSchema,\n AggregateAssetRelationReplaceSchema,\n AggregateAssetSchema,\n AggregateAssetUpsertSchema,\n AggregateCommitRequestSchema,\n AggregateContainerMembershipWriteSchema,\n AggregateFeatureRelationReplaceSchema,\n AggregateFeatureRelationTargetSchema,\n AggregateFeatureValueWriteSchema,\n} from \"../contracts/aggregate-commit\";\nexport {\n PermissionBundleSchema,\n PermissionDefinitionSchema,\n ProductAccessDeclarationSchema,\n SystemGroupDefinitionSchema,\n} from \"../contracts/access\";\nexport {\n ArtifactManifestSchema,\n OutputRecordSchema,\n StorageLocatorSchema,\n} from \"../contracts/artifact\";\nexport {\n ArtifactCollabClientMessageSchema,\n ArtifactCollabRoomKeySchema,\n ArtifactCollabServerMessageSchema,\n ArtifactCrdtCodecSchema,\n ArtifactKindSchema,\n ArtifactPresenceCursorSchema,\n ArtifactPresenceStateSchema,\n ArtifactProfileSchema,\n ArtifactStorageModeSchema,\n ArtifactSubjectSchema,\n ArtifactViewSchema,\n} from \"../contracts/artifact-platform\";\nexport {\n CapabilityRegistryDocumentSchema,\n CapabilityRegistryEntrySchema,\n CapabilityRegistrySourceSchema,\n CapabilitySourceTypeSchema,\n CapabilityManifestSchema,\n ContractPortSchema,\n} from \"../contracts/capability\";\nexport {\n ContractMetadataSchema,\n EntityRefSchema,\n JsonObjectSchema,\n JsonValueSchema,\n SensitiveResultPathSchema,\n SensitiveResultPathsSchema,\n} from \"../contracts/common\";\nexport {\n AgentConfigurationCapabilitySchema,\n StudioAgentModeSchema,\n AgentModeSchema,\n AgentModeCapabilitiesSchema,\n AgentResourceModeSupportSchema,\n AgentSessionCapabilitiesSchema,\n AgentSessionCapabilitySchema,\n AgentSessionPermissionProfileSchema,\n AgentSessionActiveBranchSchema,\n AgentSessionCommandPolicySchema,\n AgentSessionCommandErrorCodeSchema,\n AgentSessionCommandResultSchema,\n AgentSessionCommandSchema,\n AgentSessionContinuationRequestSchema,\n AgentSessionContinuationResultSchema,\n AgentSessionCommandTypeSchema,\n AgentSessionEventSchema,\n AgentSessionContextInheritanceSchema,\n AgentSessionLineageSchema,\n AgentSessionRunEventSchema,\n AgentSessionSnapshotSchema,\n AgentSessionStatusSchema,\n AgentSessionTerminalStatusSchema,\n AgentSessionRunSchema,\n AgentSessionTargetedCommandSchema,\n AgentSessionViewModelSchema,\n AgentWorkbenchAgentItemSchema,\n AgentWorkbenchComposerAttachmentSchema,\n AgentWorkbenchComposerInputActionSchema,\n AgentWorkbenchComposerCapabilitiesSchema,\n AgentWorkbenchComposerModelOptionSchema,\n AgentWorkbenchComposerQueueItemSchema,\n AgentWorkbenchComposerStatusSchema,\n AgentWorkbenchComposerViewModelSchema,\n AgentWorkbenchQuickStartCategorySchema,\n AgentWorkbenchQuickStartIconSchema,\n AgentWorkbenchQuickStartSectionSchema,\n AgentWorkbenchQuickStartTemplateActionSchema,\n AgentWorkbenchQuickStartTemplateSchema,\n AgentWorkbenchQuickStartViewModelSchema,\n AgentWorkbenchSidebarConfigSchema,\n AgentWorkbenchSidebarGroupItemSchema,\n AgentWorkbenchSidebarGroupSchema,\n AgentWorkbenchSidebarNavigationModeSchema,\n AgentWorkbenchSidebarSectionSchema,\n AgentWorkbenchCollectionStatusSchema,\n AgentWorkbenchNavigationCapabilitiesSchema,\n AgentWorkbenchNavigationItemStatusSchema,\n AgentWorkbenchNavigationViewModelSchema,\n AgentWorkbenchSessionItemSchema,\n AgentExecutionModeSchema,\n} from \"../contracts/agent\";\nexport {\n AgentRuntimeEventSchema,\n CompletionEventSchema,\n CompletionHeaderSchema,\n ExecutionLinkSchema,\n RequestScopeSchema,\n} from \"../contracts/context\";\nexport {\n ApplicationRunSchema,\n BodyRelationRecordSchema,\n DataContinuityEnvelopeSchema,\n ExpiringAccessGrantSchema,\n} from \"../contracts/continuity\";\nexport {\n DomainEventSchema,\n LineageRecordSchema,\n OntologyDefinitionSchema,\n ProjectionSpecSchema,\n SourceRecordRefSchema,\n} from \"../contracts/data\";\nexport { LegacyRoutePolicySchema } from \"../contracts/legacy-route\";\nexport {\n AccessPolicySchema,\n ActionProgramDefinitionSchema,\n ActionProgramArtifactSchema,\n ActionBindingSchema,\n ActionResultClipboardEffectSchema,\n ActionResultBindingEffectSchema,\n BindingSourceSchema,\n CapabilityInstanceSchema,\n CursorWindowBindingSchema,\n DomainQueryDataSourceSchema,\n DomainQueryDefinitionSchema,\n GovernedCatalogDomainQueryDataSourceSchema,\n GovernedCatalogResourceKindSchema,\n RegisteredServiceDomainQueryDataSourceSchema,\n InteractionBindingSchema,\n LegacyBrowserPreferenceImportSchema,\n PageStateActivationSchema,\n PageStateConditionSchema,\n PageStateDefinitionSchema,\n QueryBindingSchema,\n CompiledNavigationGroupNodeSchema,\n CompiledNavigationDomainCommandTargetSchema,\n CompiledNavigationNodeSchema,\n CompiledNavigationRegisteredMenuActionTargetSchema,\n CompiledNavigationResolvedTargetSchema,\n CompiledNavigationSeparatorNodeSchema,\n CompiledNavigationTargetNodeSchema,\n CompiledRouteClaimSchema,\n CompiledRouteMatcherSchema,\n DeclarativeControlOntologyDefinitionSchema,\n DeclarativeLifecycleSchema,\n DeclarativeRouteOwnerIndexSchema,\n DeclarativeRuntimeShellDescriptorSchema,\n DeclarativeWorkbenchCatalogSchema,\n DeclarativeShellHeaderChromeSchema,\n DeclarativeShellSurfaceChromeSchema,\n DeclarativeShellWorkspaceModesSchema,\n WorkspaceInteractionModeSchema,\n I18nTextSchema,\n ManagementAccessSchema,\n LegacyRouteTakeoverAuthorizationSchema,\n NavigationGroupNodeSchema,\n NavigationNodeSchema,\n NavigationReleaseSchema,\n NavigationRuntimeBundleSchema,\n NavigationSchema,\n NavigationSeparatorNodeSchema,\n NavigationTargetNodeSchema,\n OntologyBindingSchema,\n LegacyOntologyBindingSchema,\n PersistedOntologyBindingSchema,\n ReadablePageRuntimeBundleSchema,\n PageReleaseSchema,\n PageRuntimeBundleSchema,\n LegacyPageRuntimeBundleSchema,\n PageMigrationEquivalenceDimensionSchema,\n PageMigrationEquivalenceSchema,\n PageSchema,\n ProgramActionTriggerSchema,\n ResolvedPageSchema,\n PermissionAlternativePolicySchema,\n ProductSurfaceSchema,\n PublicationPlanOperationSchema,\n PublicationPlanSchema,\n ReferenceVisibilitySchema,\n ReleaseDependencyRoleSchema,\n ReleaseDependencySchema,\n ReleaseEvidenceSchema,\n ReleaseOperationSchema,\n ReleaseValidationSchema,\n ResolvedNavigationTargetSchema,\n ResolvedWorkbenchAppInstanceSchema,\n RevisionRefSchema,\n RevisionRefInputSchema,\n StableRefInputSchema,\n ReferenceInputSchema,\n RouteClaimSchema,\n RoutePathTemplateSchema,\n RouteSpaceParameterSchema,\n RouteSpaceSchema,\n ScopedIdentityRefSchema,\n StableRefAliasMapSchema,\n StableRefAliasSchema,\n StableRefSchema,\n TenantScopeSchema,\n WorkbenchAppInstanceSchema,\n WorkbenchGroupSchema,\n WorkbenchReleaseSchema,\n WorkbenchRuntimeBundleSchema,\n WorkbenchSchema,\n DeclarativeRouteClaimSchema,\n LegacyRouteClaimSchema,\n} from \"../contracts/declarative-control\";\nexport {\n DeclarativeAuthoringChoicePageQuerySchema,\n LegacyDeclarativeRuntimeActionExecuteIntentSchema,\n DeclarativeAuthoringChoicePageSchema,\n DeclarativeAuthoringPageInfoSchema,\n DeclarativeAuthoringResourcePageQuerySchema,\n DeclarativeAuthoringResourcePageSchema,\n DesignCapabilityCatalogArtifactSchema,\n ProductDeclarativeCapabilityRegistrationSchema,\n} from \"../contracts/declarative-control-http\";\n\nexport {\n CompiledMenuActionBehaviorSchema,\n CompiledMenuBehaviorSchema,\n CompiledMenuDividerNodeSchema,\n CompiledMenuGroupNodeSchema,\n CompiledMenuItemAccessSchema,\n CompiledMenuItemNodeSchema,\n CompiledMenuNodeSchema,\n CompiledMenuProjectionSchema,\n CompiledMenuNavigateBehaviorSchema,\n MenuAccessRequirementSchema,\n MenuActionBehaviorSchema,\n MenuActionRegistrationSchema,\n MenuBehaviorSchema,\n MenuBoundedInputSchema,\n MenuContributionProviderRegistrationSchema,\n MenuContributionResultSchema,\n MenuContributionSchema,\n MenuDefinitionSchema,\n MenuDefinitionSetSchema,\n MenuDividerNodeSchema,\n MenuGroupNodeSchema,\n MenuItemNodeSchema,\n MenuNavigateBehaviorSchema,\n MenuNavigationTargetSchema,\n MenuNodeSchema,\n MenuPageRefSchema,\n MenuPageRegistrationSchema,\n MenuRuntimeBundleSchema,\n MenuRuntimeInputBindingSchema,\n MenuSourceInputBindingSchema,\n} from \"../contracts/menu\";\nexport {\n PageDefinitionSchema,\n PageGuardProjectionSchema,\n PageNavigationProjectionSchema,\n PageRendererProjectionSchema,\n PageRouteProjectionSchema,\n PageRuntimeDescriptorSchema,\n PageRuntimeProjectionSchema,\n PageTypeSchema,\n PageVisibilitySchema,\n} from \"../contracts/page\";\nexport {\n ApplicationHandoffEndpointSchema,\n ApplicationHandoffSchema,\n OverlayNodeSchema,\n OverlayZIndexLaneSchema,\n ProductContextSchema,\n RenderActivationSchema,\n RenderBentoBindingSchema,\n RenderBentoSurfaceSchema,\n RenderDynamicLayoutSchema,\n RenderLifecycleSchema,\n RenderLayoutSchema,\n RenderNodeKindSchema,\n RenderNodeSchema,\n RenderNodeStateSchema,\n RenderResponsiveRuleSchema,\n RenderScrollSchema,\n RenderSkeletonKindSchema,\n RenderSkeletonSchema,\n RenderSurfaceSchema,\n RenderTreeSchema,\n ViewProviderDescriptorSchema,\n} from \"../contracts/render\";\nexport {\n ChangeImpactGraphSchema,\n ConceptDefinitionSchema,\n DomainCommandDefinitionSchema,\n DomainCommandSchema,\n ProductDeclarationSchema,\n} from \"../contracts/semantic\";\nexport {\n CurrentUserMenuActionItemSchema,\n CurrentUserMenuConfigSchema,\n CurrentUserMenuControlItemSchema,\n CurrentUserMenuDisplayTextSchema,\n CurrentUserMenuItemSchema,\n CurrentUserMenuNavigationItemSchema,\n CurrentUserMenuProfileSchema,\n CurrentUserMenuSectionSchema,\n TenantApplicationConfigSchema,\n TenantAgentThemeConfigSchema,\n TenantBehaviorPoliciesSchema,\n TenantDesignReviewConfigSchema,\n TenantHeadbarModuleItemSchema,\n TenantHeadbarModuleTargetSchema,\n TenantListFooterConfigSchema,\n TenantLandingPageConfigSchema,\n TenantOntologyCatalogKindSchema,\n TenantOntologyCatalogSchema,\n TenantProductConfigSchema,\n TenantRuntimeConfigSchema,\n TenantThemeNavigationBrandingSchema,\n TenantTrendRadarCollectionTargetSchema,\n TenantTrendRadarDerivedMetricsSchema,\n TenantTrendRadarEvaluationSchema,\n TenantTrendRadarPresetSourceSchema,\n TenantTrendRadarSourceSchema,\n TenantTrendRadarSourcesSchema,\n TenantTrendRadarWorkflowBindingSchema,\n TenantViewSharingFullPolicySchema,\n TenantViewSharingPolicySchema,\n TenantWorkbenchConfigSchema,\n TenantWorkbenchPageContextSchema,\n TenantWorkbenchPageEnvelopeSchema,\n TenantWorkbenchPageGroupSchema,\n TenantWorkbenchSidebarModeSchema,\n ThemeHeadbarSchema,\n} from \"../contracts/tenant\";\nexport {\n ResolvedThemeTokensSchema,\n ThemeTokenGroupSchema,\n ThemeTokenTypeSchema,\n ThemeTokenSchema,\n ThemeTokensSchema,\n} from \"../contracts/theme\";\nexport {\n BrandGeneticsProfileSchema,\n BrandBodySchema,\n HotwordBodySchema,\n ProductBodySchema,\n RadarActionRecordSchema,\n RadarAnalysisAssetSchema,\n RadarAnalysisDetailSchema,\n RadarAnalysisRunSchema,\n RadarDecisionMetricsSchema,\n RadarOpportunityMatrixSchema,\n RadarOpportunityMatrixPointSchema,\n RadarPanoramaEdgeSchema,\n RadarPanoramaNodeSchema,\n RadarPanoramaSchema,\n RadarQueryBodySchema,\n RadarScoreModelBodySchema,\n RadarScoreProjectionSchema,\n RadarSelectionSchema,\n RadarWritebackRecordSchema,\n SavedRadarQuerySchema,\n TrendRadarCollectionArtifactProjectionSchema,\n TrendRadarCollectionArtifactRefSchema,\n TrendRadarCollectionAssetRefSchema,\n TrendRadarCollectionDecisionAxisSchema,\n TrendRadarCollectionDecisionProjectionSchema,\n TrendRadarCollectionItemSchema,\n TrendRadarCollectionProjectionWritebackSchema,\n TrendRadarCollectionRecipeEntrySchema,\n TrendRadarCollectionRecipeSchema,\n TrendRadarCollectionRunRefSchema,\n TrendRadarCollectionSelectionRefSchema,\n TrendRadarCollectionSubjectRefSchema,\n TrendIngestRunSchema,\n TrendMetricSnapshotSchema,\n TrendSourceSchema,\n TrendSourceRecordSchema,\n} from \"../contracts/trend\";\nexport {\n ConductorTaskDefinitionSchema,\n ConductorTaskTypeSchema,\n ConductorWorkflowDefinitionSchema,\n WorkflowBatchControlSchema,\n WorkflowChoicePresentationSchema,\n WorkflowDefinitionSchema,\n WorkflowEdgeSchema,\n WorkflowFieldGroupSchema,\n WorkflowNodeSchema,\n WorkflowOntologyOptionSourceSchema,\n WorkflowOutputArtifactModalitySchema,\n WorkflowOutputBindingSchema,\n WorkflowOutputFieldBindingSchema,\n WorkflowOutputRelationBindingSchema,\n WorkflowOutputStrategySchema,\n WorkflowParameterSchema,\n WorkflowParameterTypeSchema,\n WorkflowResultViewPresentationSchema,\n WorkflowTriggerSchema,\n WorkflowValidationIssueSchema,\n} from \"../contracts/workflow-definition\";\nexport {\n WorkflowCatalogEntrySchema,\n WorkflowCompletionCommitSchema,\n WorkflowCompletionReceiptSchema,\n WorkflowPublicationSchema,\n} from \"../contracts/workflow-runtime\";\n\nimport { AggregateCommitRequestSchema } from \"../contracts/aggregate-commit\";\nimport {\n ArtifactManifestSchema,\n OutputRecordSchema,\n} from \"../contracts/artifact\";\nimport {\n AgentSessionCommandResultSchema,\n AgentSessionCommandSchema,\n AgentSessionContinuationRequestSchema,\n AgentSessionContinuationResultSchema,\n AgentSessionEventSchema,\n AgentSessionRunEventSchema,\n AgentSessionRunSchema,\n AgentSessionTargetedCommandSchema,\n AgentSessionViewModelSchema,\n AgentWorkbenchComposerViewModelSchema,\n AgentWorkbenchNavigationViewModelSchema,\n AgentWorkbenchQuickStartViewModelSchema,\n} from \"../contracts/agent\";\nimport {\n CapabilityManifestSchema,\n CapabilityRegistryDocumentSchema,\n} from \"../contracts/capability\";\nimport {\n AgentRuntimeEventSchema,\n CompletionEventSchema,\n CompletionHeaderSchema,\n ExecutionLinkSchema,\n RequestScopeSchema,\n} from \"../contracts/context\";\nimport {\n ApplicationRunSchema,\n BodyRelationRecordSchema,\n DataContinuityEnvelopeSchema,\n ExpiringAccessGrantSchema,\n} from \"../contracts/continuity\";\nimport {\n DomainEventSchema,\n LineageRecordSchema,\n OntologyDefinitionSchema,\n ProjectionSpecSchema,\n} from \"../contracts/data\";\nimport {\n DeclarativeControlOntologyDefinitionSchema,\n DeclarativeRouteOwnerIndexSchema,\n DeclarativeWorkbenchCatalogSchema,\n DomainQueryDefinitionSchema,\n LegacyRouteTakeoverAuthorizationSchema,\n NavigationReleaseSchema,\n NavigationRuntimeBundleSchema,\n NavigationSchema,\n PageReleaseSchema,\n PageRuntimeBundleSchema,\n PageMigrationEquivalenceDimensionSchema,\n PageMigrationEquivalenceSchema,\n PageSchema,\n ResolvedPageSchema,\n PermissionAlternativePolicySchema,\n PublicationPlanSchema,\n RouteSpaceSchema,\n StableRefAliasMapSchema,\n WorkbenchReleaseSchema,\n WorkbenchRuntimeBundleSchema,\n WorkbenchSchema,\n} from \"../contracts/declarative-control\";\nimport { DesignCapabilityCatalogArtifactSchema } from \"../contracts/declarative-control-http\";\nimport {\n MenuDefinitionSchema,\n MenuDefinitionSetSchema,\n MenuRuntimeBundleSchema,\n} from \"../contracts/menu\";\nimport {\n PageDefinitionSchema,\n PageRuntimeDescriptorSchema,\n PageRuntimeProjectionSchema,\n} from \"../contracts/page\";\nimport {\n ApplicationHandoffSchema,\n OverlayNodeSchema,\n RenderNodeSchema,\n RenderTreeSchema,\n ViewProviderDescriptorSchema,\n} from \"../contracts/render\";\nimport {\n TenantProductConfigSchema,\n TenantRuntimeConfigSchema,\n} from \"../contracts/tenant\";\nimport {\n ChangeImpactGraphSchema,\n ConceptDefinitionSchema,\n DomainCommandDefinitionSchema,\n DomainCommandSchema,\n ProductDeclarationSchema,\n} from \"../contracts/semantic\";\nimport { ThemeTokensSchema } from \"../contracts/theme\";\nimport {\n BrandGeneticsProfileSchema,\n BrandBodySchema,\n HotwordBodySchema,\n ProductBodySchema,\n RadarActionRecordSchema,\n RadarAnalysisDetailSchema,\n RadarAnalysisRunSchema,\n RadarOpportunityMatrixSchema,\n RadarPanoramaSchema,\n RadarQueryBodySchema,\n RadarScoreModelBodySchema,\n RadarScoreProjectionSchema,\n RadarSelectionSchema,\n RadarWritebackRecordSchema,\n SavedRadarQuerySchema,\n TrendRadarCollectionItemSchema,\n TrendIngestRunSchema,\n TrendMetricSnapshotSchema,\n TrendSourceRecordSchema,\n} from \"../contracts/trend\";\nimport {\n ConductorWorkflowDefinitionSchema,\n WorkflowDefinitionSchema,\n} from \"../contracts/workflow-definition\";\nimport {\n WorkflowCatalogEntrySchema,\n WorkflowCompletionCommitSchema,\n WorkflowCompletionReceiptSchema,\n WorkflowPublicationSchema,\n} from \"../contracts/workflow-runtime\";\n\nexport {\n WorkflowColumnBindingSchema,\n WorkflowColumnInputSchema,\n WorkflowColumnDependencySchema,\n WorkflowColumnOutputSchema,\n WorkflowColumnFieldRefSchema,\n} from \"../contracts/workflow-column\";\nimport { WorkflowColumnBindingSchema } from \"../contracts/workflow-column\";\nimport { DesignBoardDocumentSchema, DesignBoardCommitCommandSchema } from '../contracts/design-board';\nexport { DesignBoardDocumentSchema, DesignBoardCommitCommandSchema } from '../contracts/design-board';\nimport {\n BentoActionResultSchema,\n BentoChromeSchema,\n BentoGridRectSchema,\n BentoNodeSchema,\n BentoPlacementSchema,\n BentoRelationTargetRefSchema,\n BentoSplitPlacementSchema,\n BentoTabPlacementSchema,\n BentoWiringRuleSchema,\n BlockDataSourceSchema,\n BlockSpecSchema,\n BlockTypeSchema,\n RenderBentoOntologyActionBindingSchema,\n RenderBentoOntologyRelationBindingSchema,\n ViewDataDeclarationSchema,\n ViewSqlAggregateHavingSchema,\n ViewSqlAggregateHierarchyScopeSchema,\n ViewSqlAggregateJoinSchema,\n ViewSqlAggregateMetricSchema,\n ViewSqlAggregatePaginationSchema,\n ViewSqlAggregateStatementSchema,\n ViewSqlAggregateTimeBucketSchema,\n ViewSqlAggregateUnwindSchema,\n ViewSqlCachePolicySchema,\n ViewSqlFilterNodeSchema,\n ViewSqlFromSourceSchema,\n ViewSqlGraphSpecSchema,\n ViewSqlOrderBySchema,\n ViewSqlSelectProjectionSchema,\n ViewSqlStatementSchema,\n ViewSqlWhereSchema,\n} from '../contracts/bento-block';\nimport {\n ViewCapabilitySchema,\n ViewOntologyRecordSchema,\n ViewShareLinkPolicySchema,\n ViewShareTargetGrantSchema,\n} from '../contracts/unified-view';\nexport {\n BentoActionResultSchema,\n BentoChromeSchema,\n BentoGridRectSchema,\n BentoNodeSchema,\n BentoPlacementSchema,\n BentoRelationTargetRefSchema,\n BentoSplitPlacementSchema,\n BentoTabPlacementSchema,\n BentoWiringRuleSchema,\n BlockDataSourceSchema,\n BlockSpecSchema,\n BlockTypeSchema,\n RenderBentoOntologyActionBindingSchema,\n RenderBentoOntologyRelationBindingSchema,\n ViewDataDeclarationSchema,\n ViewSqlAggregateHavingSchema,\n ViewSqlAggregateHierarchyScopeSchema,\n ViewSqlAggregateJoinSchema,\n ViewSqlAggregateMetricSchema,\n ViewSqlAggregatePaginationSchema,\n ViewSqlAggregateStatementSchema,\n ViewSqlAggregateTimeBucketSchema,\n ViewSqlAggregateUnwindSchema,\n ViewSqlCachePolicySchema,\n ViewSqlFilterNodeSchema,\n ViewSqlFromSourceSchema,\n ViewSqlGraphSpecSchema,\n ViewSqlOrderBySchema,\n ViewSqlSelectProjectionSchema,\n ViewSqlStatementSchema,\n ViewSqlWhereSchema,\n} from '../contracts/bento-block';\nexport {\n ViewCapabilitySchema,\n ViewOntologyRecordSchema,\n ViewShareLinkPolicySchema,\n ViewShareTargetGrantSchema,\n} from '../contracts/unified-view';\n\nexport const canonicalContractSchemas = {\n 'bento-node': BentoNodeSchema,\n 'view-ontology-record': ViewOntologyRecordSchema,\n \"declarative-publication-verification-request\": DeclarativePublicationVerificationRequestSchema,\n \"declarative-publication-verification\": DeclarativePublicationVerificationSchema,\n \"declarative-publication-last-known-good\": DeclarativePublicationLastKnownGoodSchema,\n \"declarative-publication-last-known-good-result\": DeclarativePublicationLastKnownGoodResultSchema as ZodTypeAny,\n \"declarative-publication-record-result\": DeclarativePublicationRecordResultSchema as ZodTypeAny,\n \"declarative-publication-recovery-result\": DeclarativePublicationRecoveryResultSchema as ZodTypeAny,\n \"declarative-page-package\": DeclarativePagePackageSchema,\n \"declarative-page-overlay\": DeclarativePageOverlaySchema,\n \"declarative-page-rendering\": DeclarativePageRenderingSchema,\n 'design-board-document': DesignBoardDocumentSchema,\n 'design-board-commit-command': DesignBoardCommitCommandSchema,\n \"aggregate-commit-request\": AggregateCommitRequestSchema,\n \"workflow-column-binding\": WorkflowColumnBindingSchema,\n \"agent-session-command\": AgentSessionCommandSchema,\n \"agent-session-targeted-command\": AgentSessionTargetedCommandSchema,\n \"agent-session-command-result\": AgentSessionCommandResultSchema,\n \"agent-session-continuation-request\": AgentSessionContinuationRequestSchema,\n \"agent-session-continuation-result\": AgentSessionContinuationResultSchema,\n \"agent-session-event\": AgentSessionEventSchema,\n \"agent-session-run-event\": AgentSessionRunEventSchema,\n \"agent-session-run\": AgentSessionRunSchema,\n \"agent-session-view-model\": AgentSessionViewModelSchema,\n \"agent-workbench-composer-view-model\": AgentWorkbenchComposerViewModelSchema,\n \"agent-workbench-navigation-view-model\":\n AgentWorkbenchNavigationViewModelSchema,\n \"agent-workbench-quick-start-view-model\":\n AgentWorkbenchQuickStartViewModelSchema,\n \"agent-runtime-event\": AgentRuntimeEventSchema,\n \"application-run\": ApplicationRunSchema,\n \"application-handoff\": ApplicationHandoffSchema,\n \"artifact-manifest\": ArtifactManifestSchema,\n \"brand-body\": BrandBodySchema,\n \"body-relation-record\": BodyRelationRecordSchema,\n \"brand-genetics-profile\": BrandGeneticsProfileSchema,\n \"capability-manifest\": CapabilityManifestSchema,\n \"capability-registry\": CapabilityRegistryDocumentSchema,\n \"change-impact-graph\": ChangeImpactGraphSchema,\n \"concept-definition\": ConceptDefinitionSchema,\n \"completion-event\": CompletionEventSchema,\n \"completion-header\": CompletionHeaderSchema,\n \"conductor-workflow-definition\": ConductorWorkflowDefinitionSchema,\n \"domain-event\": DomainEventSchema,\n \"domain-command\": DomainCommandSchema,\n \"domain-command-definition\": DomainCommandDefinitionSchema,\n \"action-program-definition\": ActionProgramDefinitionSchema,\n \"action-program-artifact\": ActionProgramArtifactSchema,\n \"data-continuity-envelope\": DataContinuityEnvelopeSchema,\n \"domain-query-definition\": DomainQueryDefinitionSchema,\n \"declarative-control-ontology-definition\":\n DeclarativeControlOntologyDefinitionSchema,\n \"declarative-route-owner-index\": DeclarativeRouteOwnerIndexSchema,\n \"declarative-workbench-catalog\": DeclarativeWorkbenchCatalogSchema,\n \"design-capability-catalog-artifact\": DesignCapabilityCatalogArtifactSchema,\n \"execution-link\": ExecutionLinkSchema,\n \"expiring-access-grant\": ExpiringAccessGrantSchema,\n \"hotword-body\": HotwordBodySchema,\n \"lineage-record\": LineageRecordSchema,\n \"legacy-route-takeover-authorization\": LegacyRouteTakeoverAuthorizationSchema,\n \"menu-definition\": MenuDefinitionSchema,\n \"menu-definition-set\": MenuDefinitionSetSchema,\n \"menu-runtime-bundle\": MenuRuntimeBundleSchema,\n navigation: NavigationSchema,\n \"navigation-release\": NavigationReleaseSchema,\n \"navigation-runtime-bundle\": NavigationRuntimeBundleSchema,\n \"ontology-definition\": OntologyDefinitionSchema,\n \"overlay-node\": OverlayNodeSchema as ZodTypeAny,\n \"output-record\": OutputRecordSchema,\n \"page-definition\": PageDefinitionSchema,\n page: PageSchema,\n \"page-release\": PageReleaseSchema,\n \"page-runtime-bundle\": PageRuntimeBundleSchema,\n \"page-runtime-descriptor\": PageRuntimeDescriptorSchema,\n \"page-runtime-projection\": PageRuntimeProjectionSchema,\n \"permission-alternative-policy\": PermissionAlternativePolicySchema,\n \"projection-spec\": ProjectionSpecSchema,\n \"publication-plan\": PublicationPlanSchema,\n \"product-declaration\": ProductDeclarationSchema,\n \"product-body\": ProductBodySchema,\n \"radar-action-record\": RadarActionRecordSchema,\n \"radar-analysis-detail\": RadarAnalysisDetailSchema,\n \"radar-analysis-run\": RadarAnalysisRunSchema,\n \"radar-opportunity-matrix\": RadarOpportunityMatrixSchema,\n \"radar-panorama\": RadarPanoramaSchema,\n \"radar-query-body\": RadarQueryBodySchema,\n \"radar-score-model-body\": RadarScoreModelBodySchema,\n \"radar-score-projection\": RadarScoreProjectionSchema,\n \"radar-selection\": RadarSelectionSchema,\n \"radar-writeback-record\": RadarWritebackRecordSchema,\n \"request-scope\": RequestScopeSchema,\n \"route-space\": RouteSpaceSchema,\n \"render-node\": RenderNodeSchema as ZodTypeAny,\n \"render-tree\": RenderTreeSchema as ZodTypeAny,\n \"saved-radar-query\": SavedRadarQuerySchema,\n \"stable-ref-alias-map\": StableRefAliasMapSchema,\n \"tenant-product-config\": TenantProductConfigSchema,\n \"tenant-runtime-config\": TenantRuntimeConfigSchema,\n \"theme-tokens\": ThemeTokensSchema,\n \"trend-radar-collection-item\": TrendRadarCollectionItemSchema,\n \"trend-ingest-run\": TrendIngestRunSchema,\n \"trend-metric-snapshot\": TrendMetricSnapshotSchema,\n \"trend-source-record\": TrendSourceRecordSchema,\n \"view-provider-descriptor\": ViewProviderDescriptorSchema,\n workbench: WorkbenchSchema,\n \"workbench-release\": WorkbenchReleaseSchema,\n \"workbench-runtime-bundle\": WorkbenchRuntimeBundleSchema,\n \"workflow-definition\": WorkflowDefinitionSchema,\n \"workflow-catalog-entry\": WorkflowCatalogEntrySchema,\n \"workflow-publication\": WorkflowPublicationSchema,\n \"workflow-completion-commit\": WorkflowCompletionCommitSchema,\n \"workflow-completion-receipt\": WorkflowCompletionReceiptSchema,\n} as const;\n\nexport type CanonicalContractSchemaName = keyof typeof canonicalContractSchemas;\n\nexport {\n ComponentAssemblySchema,\n ComponentEventArgumentSchema,\n ComponentEventBindingSchema,\n} from \"../contracts/component-assembly\";\n\nexport {\n PageExpressionSchema,\n PagePropertyBindingSchema,\n} from \"../contracts/page-expression\";\n\nexport * from \"../contracts/record-editor-draft\";\nexport {\n DeclarativeImportDocumentSchema,\n DeclarativeDocumentImportRequestSchema,\n DeclarativeDocumentImportIntentSchema,\n DeclarativeDocumentImportPlanSchema,\n DeclarativeDocumentImportResultSchema,\n} from \"../contracts/declarative-document-import\";\n"],"mappings":"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","names":[]}
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
ManagedFileUriSchema,
|
|
16
16
|
RevisionRefSchema,
|
|
17
17
|
Sha256Schema
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HFNPLMKA.mjs";
|
|
19
19
|
|
|
20
20
|
// src/contracts/agent-data.ts
|
|
21
21
|
import { z } from "zod";
|
|
@@ -688,4 +688,4 @@ export {
|
|
|
688
688
|
PlatformNotificationSnapshotSchema,
|
|
689
689
|
platformNotificationRoutes
|
|
690
690
|
};
|
|
691
|
-
//# sourceMappingURL=chunk-
|
|
691
|
+
//# sourceMappingURL=chunk-EMRIN6FD.mjs.map
|
|
@@ -4,9 +4,10 @@ import {
|
|
|
4
4
|
PAGE_STREAM_MAX_FRAME_BYTES,
|
|
5
5
|
PageStreamDescriptorSchema,
|
|
6
6
|
PageStreamEventSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EMRIN6FD.mjs";
|
|
8
8
|
import {
|
|
9
9
|
AccessPolicySchema,
|
|
10
|
+
ActionProgramArtifactSchema,
|
|
10
11
|
ActionProgramDefinitionSchema,
|
|
11
12
|
AgentSessionEventSchema,
|
|
12
13
|
AgentSessionViewModelSchema,
|
|
@@ -24,6 +25,10 @@ import {
|
|
|
24
25
|
ComponentAssemblySchema,
|
|
25
26
|
ConductorWorkflowDefinitionSchema,
|
|
26
27
|
ContractIdentifierSchema,
|
|
28
|
+
DECLARATIVE_PAGE_BINDING_TOKEN_SOURCE,
|
|
29
|
+
DeclarativePageOverlaySchema,
|
|
30
|
+
DeclarativePagePackageSchema,
|
|
31
|
+
DeclarativePageRenderingSchema,
|
|
27
32
|
DeclarativeProductResourceRegistrationSchema,
|
|
28
33
|
DeclarativeRouteOwnerIndexSchema,
|
|
29
34
|
DeclarativeRuntimeResolveResultSchema,
|
|
@@ -72,6 +77,7 @@ import {
|
|
|
72
77
|
PermissionAlternativePolicySchema,
|
|
73
78
|
ProductAccessDeclarationSchema,
|
|
74
79
|
ProductDeclarationSchema,
|
|
80
|
+
ProductDeclarativeAuthoringCatalogSchema,
|
|
75
81
|
ProductDeclarativeCapabilityRegistrationSchema,
|
|
76
82
|
ProductSurfaceSchema,
|
|
77
83
|
RecordEditorDraftOperationSchema,
|
|
@@ -120,7 +126,7 @@ import {
|
|
|
120
126
|
require_validation,
|
|
121
127
|
require_validation_error,
|
|
122
128
|
resolveThemeTokens
|
|
123
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-HFNPLMKA.mjs";
|
|
124
130
|
import {
|
|
125
131
|
__commonJS,
|
|
126
132
|
__toESM
|
|
@@ -4823,6 +4829,318 @@ function normalizeDeclarativeReferences(document, resolve) {
|
|
|
4823
4829
|
return { document: visit(document), counts };
|
|
4824
4830
|
}
|
|
4825
4831
|
|
|
4832
|
+
// src/runtime/declarative-page-delivery.ts
|
|
4833
|
+
var byText = (left, right) => left < right ? -1 : left > right ? 1 : 0;
|
|
4834
|
+
var DeclarativePageDeliveryError = class extends Error {
|
|
4835
|
+
constructor(code, message, details = []) {
|
|
4836
|
+
super(message);
|
|
4837
|
+
this.code = code;
|
|
4838
|
+
this.details = details;
|
|
4839
|
+
this.name = "DeclarativePageDeliveryError";
|
|
4840
|
+
}
|
|
4841
|
+
};
|
|
4842
|
+
var CATALOG_COLLECTIONS = [
|
|
4843
|
+
"createTemplates",
|
|
4844
|
+
"routeSpaces",
|
|
4845
|
+
"resourceRegistrations",
|
|
4846
|
+
"defaultPolicies",
|
|
4847
|
+
"domainQueryDefinitions",
|
|
4848
|
+
"domainCommandDefinitions",
|
|
4849
|
+
"schemaDefinitions",
|
|
4850
|
+
"capabilityRegistrations"
|
|
4851
|
+
];
|
|
4852
|
+
var DETAIL_LIMIT = 20;
|
|
4853
|
+
var isRecord = (value) => Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
4854
|
+
var bindingText = (binding) => binding.kind === "value" ? binding.value : binding.id;
|
|
4855
|
+
function collectDeclarativePageBindingKeys(document) {
|
|
4856
|
+
const keys = /* @__PURE__ */ new Set();
|
|
4857
|
+
const visit = (value) => {
|
|
4858
|
+
if (typeof value === "string") {
|
|
4859
|
+
for (const match of value.matchAll(
|
|
4860
|
+
new RegExp(DECLARATIVE_PAGE_BINDING_TOKEN_SOURCE, "g")
|
|
4861
|
+
)) {
|
|
4862
|
+
keys.add(match[1]);
|
|
4863
|
+
}
|
|
4864
|
+
} else if (Array.isArray(value)) {
|
|
4865
|
+
value.forEach(visit);
|
|
4866
|
+
} else if (isRecord(value)) {
|
|
4867
|
+
Object.values(value).forEach(visit);
|
|
4868
|
+
}
|
|
4869
|
+
};
|
|
4870
|
+
visit(document);
|
|
4871
|
+
return [...keys];
|
|
4872
|
+
}
|
|
4873
|
+
var substitute = (document, bindings, used, unbound) => {
|
|
4874
|
+
if (typeof document === "string") {
|
|
4875
|
+
return document.replace(
|
|
4876
|
+
new RegExp(DECLARATIVE_PAGE_BINDING_TOKEN_SOURCE, "g"),
|
|
4877
|
+
(token, key) => {
|
|
4878
|
+
const binding = bindings[key];
|
|
4879
|
+
if (!binding) {
|
|
4880
|
+
unbound.add(key);
|
|
4881
|
+
return token;
|
|
4882
|
+
}
|
|
4883
|
+
used.add(key);
|
|
4884
|
+
return bindingText(binding);
|
|
4885
|
+
}
|
|
4886
|
+
);
|
|
4887
|
+
}
|
|
4888
|
+
if (Array.isArray(document)) {
|
|
4889
|
+
return document.map((entry) => substitute(entry, bindings, used, unbound));
|
|
4890
|
+
}
|
|
4891
|
+
if (isRecord(document)) {
|
|
4892
|
+
return Object.fromEntries(
|
|
4893
|
+
Object.entries(document).map(([key, value]) => [
|
|
4894
|
+
key,
|
|
4895
|
+
substitute(value, bindings, used, unbound)
|
|
4896
|
+
])
|
|
4897
|
+
);
|
|
4898
|
+
}
|
|
4899
|
+
return document;
|
|
4900
|
+
};
|
|
4901
|
+
var issueLines = (issues) => issues.slice(0, DETAIL_LIMIT).map((issue) => `${issue.path.map(String).join(".") || "(root)"}: ${issue.message}`);
|
|
4902
|
+
var parsePackages = (sources) => {
|
|
4903
|
+
const packages = /* @__PURE__ */ new Map();
|
|
4904
|
+
sources.forEach((source, index) => {
|
|
4905
|
+
const parsed = DeclarativePagePackageSchema.safeParse(source.manifest);
|
|
4906
|
+
if (!parsed.success) {
|
|
4907
|
+
throw new DeclarativePageDeliveryError(
|
|
4908
|
+
"DELIVERY_PACKAGE_INVALID",
|
|
4909
|
+
`Package manifest ${index} is not a DeclarativePagePackage.`,
|
|
4910
|
+
issueLines(parsed.error.issues)
|
|
4911
|
+
);
|
|
4912
|
+
}
|
|
4913
|
+
if (packages.has(parsed.data.domain)) {
|
|
4914
|
+
throw new DeclarativePageDeliveryError(
|
|
4915
|
+
"DELIVERY_PACKAGE_DUPLICATE",
|
|
4916
|
+
`Package ${parsed.data.domain} is declared more than once.`
|
|
4917
|
+
);
|
|
4918
|
+
}
|
|
4919
|
+
packages.set(parsed.data.domain, { manifest: parsed.data, source });
|
|
4920
|
+
});
|
|
4921
|
+
return packages;
|
|
4922
|
+
};
|
|
4923
|
+
var pageIdOf = (document, owner) => {
|
|
4924
|
+
if (!isRecord(document) || typeof document.pageId !== "string" || !document.pageId) {
|
|
4925
|
+
throw new DeclarativePageDeliveryError(
|
|
4926
|
+
"DELIVERY_DOCUMENT_INVALID",
|
|
4927
|
+
`Package ${owner} contains a Page without a pageId.`
|
|
4928
|
+
);
|
|
4929
|
+
}
|
|
4930
|
+
return document.pageId;
|
|
4931
|
+
};
|
|
4932
|
+
var programIdOf = (document, owner) => {
|
|
4933
|
+
const definition = isRecord(document) ? document.definition : void 0;
|
|
4934
|
+
if (!isRecord(definition) || typeof definition.programId !== "string" || !definition.programId) {
|
|
4935
|
+
throw new DeclarativePageDeliveryError(
|
|
4936
|
+
"DELIVERY_DOCUMENT_INVALID",
|
|
4937
|
+
`Package ${owner} contains an ActionProgram artifact without a programId.`
|
|
4938
|
+
);
|
|
4939
|
+
}
|
|
4940
|
+
return definition.programId;
|
|
4941
|
+
};
|
|
4942
|
+
function renderDeclarativePagePackages(input) {
|
|
4943
|
+
const parsedOverlay = DeclarativePageOverlaySchema.safeParse(input.overlay);
|
|
4944
|
+
if (!parsedOverlay.success) {
|
|
4945
|
+
throw new DeclarativePageDeliveryError(
|
|
4946
|
+
"DELIVERY_OVERLAY_INVALID",
|
|
4947
|
+
"The overlay is not a DeclarativePageOverlay.",
|
|
4948
|
+
issueLines(parsedOverlay.error.issues)
|
|
4949
|
+
);
|
|
4950
|
+
}
|
|
4951
|
+
const overlay = parsedOverlay.data;
|
|
4952
|
+
const packages = parsePackages(input.packages);
|
|
4953
|
+
const selected = new Map(overlay.packages.map((entry) => [entry.package, entry]));
|
|
4954
|
+
const closure = /* @__PURE__ */ new Set();
|
|
4955
|
+
const pending = [...selected.keys()];
|
|
4956
|
+
while (pending.length > 0) {
|
|
4957
|
+
const name = pending.pop();
|
|
4958
|
+
if (closure.has(name)) continue;
|
|
4959
|
+
const entry = packages.get(name);
|
|
4960
|
+
if (!entry) {
|
|
4961
|
+
throw new DeclarativePageDeliveryError(
|
|
4962
|
+
"DELIVERY_PACKAGE_UNKNOWN",
|
|
4963
|
+
`Package ${name} is selected or required but was not provided.`
|
|
4964
|
+
);
|
|
4965
|
+
}
|
|
4966
|
+
closure.add(name);
|
|
4967
|
+
pending.push(...entry.manifest.dependsOn);
|
|
4968
|
+
}
|
|
4969
|
+
const closureNames = [...closure].sort();
|
|
4970
|
+
const applicationIds = new Set(
|
|
4971
|
+
closureNames.map((name) => packages.get(name).manifest.applicationId)
|
|
4972
|
+
);
|
|
4973
|
+
if (applicationIds.size !== 1) {
|
|
4974
|
+
throw new DeclarativePageDeliveryError(
|
|
4975
|
+
"DELIVERY_APPLICATION_MISMATCH",
|
|
4976
|
+
"Selected packages and their dependencies must belong to one application.",
|
|
4977
|
+
closureNames.map((name) => `${name}: ${packages.get(name).manifest.applicationId}`)
|
|
4978
|
+
);
|
|
4979
|
+
}
|
|
4980
|
+
const applicationId = [...applicationIds][0];
|
|
4981
|
+
const foreign = closureNames.filter((name) => {
|
|
4982
|
+
const customer = packages.get(name).manifest.customer;
|
|
4983
|
+
return customer !== void 0 && customer !== overlay.customer;
|
|
4984
|
+
});
|
|
4985
|
+
if (foreign.length > 0) {
|
|
4986
|
+
throw new DeclarativePageDeliveryError(
|
|
4987
|
+
"DELIVERY_CUSTOMER_MISMATCH",
|
|
4988
|
+
`Overlay ${overlay.customer}/${overlay.environment} cannot use another customer's packages.`,
|
|
4989
|
+
foreign
|
|
4990
|
+
);
|
|
4991
|
+
}
|
|
4992
|
+
const unbound = /* @__PURE__ */ new Map();
|
|
4993
|
+
const render = (document, label) => {
|
|
4994
|
+
const documentUsed = /* @__PURE__ */ new Set();
|
|
4995
|
+
const documentUnbound = /* @__PURE__ */ new Set();
|
|
4996
|
+
const value = substitute(document, overlay.bindings, documentUsed, documentUnbound);
|
|
4997
|
+
if (documentUnbound.size > 0) unbound.set(label, documentUnbound);
|
|
4998
|
+
return { value, keys: [...documentUsed].sort() };
|
|
4999
|
+
};
|
|
5000
|
+
const pages = {};
|
|
5001
|
+
const pageEntries = [];
|
|
5002
|
+
for (const name of [...selected.keys()].sort()) {
|
|
5003
|
+
const { source } = packages.get(name);
|
|
5004
|
+
const available = /* @__PURE__ */ new Map();
|
|
5005
|
+
for (const document of source.pages ?? []) {
|
|
5006
|
+
const pageId = pageIdOf(document, name);
|
|
5007
|
+
if (available.has(pageId)) {
|
|
5008
|
+
throw new DeclarativePageDeliveryError(
|
|
5009
|
+
"DELIVERY_PAGE_DUPLICATE",
|
|
5010
|
+
`Package ${name} declares Page ${pageId} more than once.`
|
|
5011
|
+
);
|
|
5012
|
+
}
|
|
5013
|
+
available.set(pageId, document);
|
|
5014
|
+
}
|
|
5015
|
+
const wanted = selected.get(name).pages ?? [...available.keys()];
|
|
5016
|
+
const missing = wanted.filter((pageId) => !available.has(pageId));
|
|
5017
|
+
if (missing.length > 0) {
|
|
5018
|
+
throw new DeclarativePageDeliveryError(
|
|
5019
|
+
"DELIVERY_PAGE_UNKNOWN",
|
|
5020
|
+
`Overlay selects Pages that package ${name} does not contain.`,
|
|
5021
|
+
missing
|
|
5022
|
+
);
|
|
5023
|
+
}
|
|
5024
|
+
for (const pageId of [...wanted].sort()) {
|
|
5025
|
+
if (pages[pageId]) {
|
|
5026
|
+
throw new DeclarativePageDeliveryError(
|
|
5027
|
+
"DELIVERY_PAGE_DUPLICATE",
|
|
5028
|
+
`Page ${pageId} is owned by more than one selected package.`
|
|
5029
|
+
);
|
|
5030
|
+
}
|
|
5031
|
+
const rendered = render(available.get(pageId), `page ${pageId}`);
|
|
5032
|
+
const checked = PageSchema.safeParse(rendered.value);
|
|
5033
|
+
if (!checked.success && !unbound.has(`page ${pageId}`)) {
|
|
5034
|
+
throw new DeclarativePageDeliveryError(
|
|
5035
|
+
"DELIVERY_DOCUMENT_INVALID",
|
|
5036
|
+
`Rendered Page ${pageId} is not a valid Page.`,
|
|
5037
|
+
issueLines(checked.error.issues)
|
|
5038
|
+
);
|
|
5039
|
+
}
|
|
5040
|
+
pages[pageId] = rendered.value;
|
|
5041
|
+
const bindings = [];
|
|
5042
|
+
for (const key of rendered.keys) {
|
|
5043
|
+
const binding = overlay.bindings[key];
|
|
5044
|
+
if (binding.kind !== "value") bindings.push({ key, binding });
|
|
5045
|
+
}
|
|
5046
|
+
pageEntries.push({
|
|
5047
|
+
pageId,
|
|
5048
|
+
package: name,
|
|
5049
|
+
contentHash: canonicalContentHash(rendered.value),
|
|
5050
|
+
bindings
|
|
5051
|
+
});
|
|
5052
|
+
}
|
|
5053
|
+
}
|
|
5054
|
+
const programs = {};
|
|
5055
|
+
const programEntries = [];
|
|
5056
|
+
const merged = Object.fromEntries(
|
|
5057
|
+
CATALOG_COLLECTIONS.map((collection) => [collection, []])
|
|
5058
|
+
);
|
|
5059
|
+
for (const name of closureNames) {
|
|
5060
|
+
const { source } = packages.get(name);
|
|
5061
|
+
for (const document of source.programs ?? []) {
|
|
5062
|
+
const programId = programIdOf(document, name);
|
|
5063
|
+
if (programs[programId]) {
|
|
5064
|
+
throw new DeclarativePageDeliveryError(
|
|
5065
|
+
"DELIVERY_PROGRAM_DUPLICATE",
|
|
5066
|
+
`ActionProgram ${programId} is owned by more than one package.`
|
|
5067
|
+
);
|
|
5068
|
+
}
|
|
5069
|
+
const rendered2 = render(document, `program ${programId}`);
|
|
5070
|
+
const checked = ActionProgramArtifactSchema.safeParse(rendered2.value);
|
|
5071
|
+
if (!checked.success && !unbound.has(`program ${programId}`)) {
|
|
5072
|
+
throw new DeclarativePageDeliveryError(
|
|
5073
|
+
"DELIVERY_DOCUMENT_INVALID",
|
|
5074
|
+
`Rendered ActionProgram ${programId} is not a valid artifact.`,
|
|
5075
|
+
issueLines(checked.error.issues)
|
|
5076
|
+
);
|
|
5077
|
+
}
|
|
5078
|
+
programs[programId] = rendered2.value;
|
|
5079
|
+
programEntries.push({
|
|
5080
|
+
programId,
|
|
5081
|
+
package: name,
|
|
5082
|
+
contentHash: canonicalContentHash(rendered2.value)
|
|
5083
|
+
});
|
|
5084
|
+
}
|
|
5085
|
+
if (source.catalog === void 0) continue;
|
|
5086
|
+
const rendered = render(source.catalog, `catalog ${name}`).value;
|
|
5087
|
+
if (!isRecord(rendered) || rendered.applicationId !== applicationId) {
|
|
5088
|
+
throw new DeclarativePageDeliveryError(
|
|
5089
|
+
"DELIVERY_CATALOG_INVALID",
|
|
5090
|
+
`The catalog of package ${name} does not belong to application ${applicationId}.`
|
|
5091
|
+
);
|
|
5092
|
+
}
|
|
5093
|
+
for (const collection of CATALOG_COLLECTIONS) {
|
|
5094
|
+
const entries = rendered[collection];
|
|
5095
|
+
if (entries === void 0) continue;
|
|
5096
|
+
if (!Array.isArray(entries)) {
|
|
5097
|
+
throw new DeclarativePageDeliveryError(
|
|
5098
|
+
"DELIVERY_CATALOG_INVALID",
|
|
5099
|
+
`The catalog of package ${name} has a non-array ${collection}.`
|
|
5100
|
+
);
|
|
5101
|
+
}
|
|
5102
|
+
merged[collection].push(...entries);
|
|
5103
|
+
}
|
|
5104
|
+
}
|
|
5105
|
+
if (unbound.size > 0) {
|
|
5106
|
+
throw new DeclarativePageDeliveryError(
|
|
5107
|
+
"DELIVERY_BINDING_UNBOUND",
|
|
5108
|
+
`Overlay ${overlay.customer}/${overlay.environment} leaves binding keys unbound.`,
|
|
5109
|
+
[...unbound.entries()].slice(0, DETAIL_LIMIT).map(([label, keys]) => `${label}: ${[...keys].sort().join(", ")}`)
|
|
5110
|
+
);
|
|
5111
|
+
}
|
|
5112
|
+
const catalogCandidate = {
|
|
5113
|
+
contract: "ProductDeclarativeAuthoringCatalog",
|
|
5114
|
+
schemaVersion: 1,
|
|
5115
|
+
applicationId,
|
|
5116
|
+
...merged
|
|
5117
|
+
};
|
|
5118
|
+
const catalog = ProductDeclarativeAuthoringCatalogSchema.safeParse(catalogCandidate);
|
|
5119
|
+
if (!catalog.success) {
|
|
5120
|
+
throw new DeclarativePageDeliveryError(
|
|
5121
|
+
"DELIVERY_CATALOG_INVALID",
|
|
5122
|
+
"The merged package catalogs are not a valid ProductDeclarativeAuthoringCatalog.",
|
|
5123
|
+
issueLines(catalog.error.issues)
|
|
5124
|
+
);
|
|
5125
|
+
}
|
|
5126
|
+
const unsigned = {
|
|
5127
|
+
contract: "DeclarativePageRendering",
|
|
5128
|
+
schemaVersion: 1,
|
|
5129
|
+
customer: overlay.customer,
|
|
5130
|
+
environment: overlay.environment,
|
|
5131
|
+
applicationId,
|
|
5132
|
+
packages: closureNames,
|
|
5133
|
+
pages: pageEntries.sort((left, right) => byText(left.pageId, right.pageId)),
|
|
5134
|
+
programs: programEntries.sort((left, right) => byText(left.programId, right.programId)),
|
|
5135
|
+
catalogContentHash: canonicalContentHash(catalogCandidate)
|
|
5136
|
+
};
|
|
5137
|
+
const rendering = DeclarativePageRenderingSchema.parse({
|
|
5138
|
+
...unsigned,
|
|
5139
|
+
contentHash: canonicalContentHash(unsigned)
|
|
5140
|
+
});
|
|
5141
|
+
return { rendering, pages, programs, catalog: catalogCandidate };
|
|
5142
|
+
}
|
|
5143
|
+
|
|
4826
5144
|
// src/runtime/menu-compiler.ts
|
|
4827
5145
|
var MenuCompilationError = class extends Error {
|
|
4828
5146
|
constructor(code, path, message) {
|
|
@@ -8226,6 +8544,9 @@ export {
|
|
|
8226
8544
|
assertProgramRegistration,
|
|
8227
8545
|
projectCurrentNavigationPages,
|
|
8228
8546
|
normalizeDeclarativeReferences,
|
|
8547
|
+
DeclarativePageDeliveryError,
|
|
8548
|
+
collectDeclarativePageBindingKeys,
|
|
8549
|
+
renderDeclarativePagePackages,
|
|
8229
8550
|
MenuCompilationError,
|
|
8230
8551
|
resolveMenuActivationId,
|
|
8231
8552
|
readMenuActivationFromSearch,
|
|
@@ -8318,4 +8639,4 @@ export {
|
|
|
8318
8639
|
compileBentoNodeToRenderTree,
|
|
8319
8640
|
compileViewRecordToRenderTree
|
|
8320
8641
|
};
|
|
8321
|
-
//# sourceMappingURL=chunk-
|
|
8642
|
+
//# sourceMappingURL=chunk-GAAD4RFK.mjs.map
|