@inf-monkeys-tech/monkeys 1.1.3 → 1.1.5

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.
Files changed (36) hide show
  1. package/README.md +7 -0
  2. package/lib/contracts/declarative-control-http.d.ts +108182 -67435
  3. package/lib/contracts/declarative-control-http.d.ts.map +1 -1
  4. package/lib/contracts/declarative-control-http.js +14 -6
  5. package/lib/contracts/declarative-control-http.js.map +1 -1
  6. package/lib/contracts/declarative-control.d.ts +1106 -624
  7. package/lib/contracts/declarative-control.d.ts.map +1 -1
  8. package/lib/contracts/declarative-control.js +80 -6
  9. package/lib/contracts/declarative-control.js.map +1 -1
  10. package/lib/contracts/semantic.d.ts +68 -0
  11. package/lib/contracts/semantic.d.ts.map +1 -1
  12. package/lib/contracts/semantic.js +3 -1
  13. package/lib/contracts/semantic.js.map +1 -1
  14. package/lib/esm/contracts/index.mjs +85 -8
  15. package/lib/esm/contracts/index.mjs.map +1 -1
  16. package/lib/esm/index.mjs +177 -68
  17. package/lib/esm/index.mjs.map +1 -1
  18. package/lib/esm/runtime/index.mjs +171 -68
  19. package/lib/esm/runtime/index.mjs.map +1 -1
  20. package/lib/esm/schemas/index.mjs +84 -8
  21. package/lib/esm/schemas/index.mjs.map +1 -1
  22. package/lib/json-schema/navigation-release.schema.json +1 -0
  23. package/lib/json-schema/navigation-runtime-bundle.schema.json +1 -0
  24. package/lib/json-schema/page-release.schema.json +1 -0
  25. package/lib/json-schema/page-runtime-bundle.schema.json +1 -0
  26. package/lib/json-schema/workbench-release.schema.json +1 -0
  27. package/lib/json-schema/workbench-runtime-bundle.schema.json +1 -0
  28. package/lib/runtime/declarative-control-compiler.d.ts +6 -1
  29. package/lib/runtime/declarative-control-compiler.d.ts.map +1 -1
  30. package/lib/runtime/declarative-control-compiler.js +77 -42
  31. package/lib/runtime/declarative-control-compiler.js.map +1 -1
  32. package/lib/schemas/index.d.ts +251 -245
  33. package/lib/schemas/index.d.ts.map +1 -1
  34. package/lib/schemas/index.js +10 -5
  35. package/lib/schemas/index.js.map +1 -1
  36. package/package.json +1 -1
package/lib/esm/index.mjs CHANGED
@@ -10410,6 +10410,7 @@ var ReleaseDependencyRoleSchema = z14.enum([
10410
10410
  "capability",
10411
10411
  "provider",
10412
10412
  "ontology-definition",
10413
+ "projection-spec",
10413
10414
  "query-definition",
10414
10415
  "view",
10415
10416
  "projection",
@@ -10439,6 +10440,7 @@ var DependencyKindByRole = {
10439
10440
  capability: "capability",
10440
10441
  provider: "view-provider",
10441
10442
  "ontology-definition": "ontology-definition",
10443
+ "projection-spec": "projection-spec",
10442
10444
  "query-definition": "domain-query-definition",
10443
10445
  view: "view",
10444
10446
  projection: "projection",
@@ -11623,6 +11625,58 @@ var OntologyBindingSchema = z14.object({
11623
11625
  });
11624
11626
  }
11625
11627
  });
11628
+ var LegacyOntologyBindingSchema = z14.object({
11629
+ ...OntologyBindingSchema.shape,
11630
+ viewRevisionRef: RevisionRefSchema.optional(),
11631
+ canonicalDataViewRevisionRef: z14.never().optional(),
11632
+ projectionRevisionRef: RevisionRefSchema.optional()
11633
+ }).strict().superRefine((value, context) => {
11634
+ if (Boolean(value.viewRevisionRef) === Boolean(value.projectionRevisionRef)) {
11635
+ context.addIssue({
11636
+ code: "custom",
11637
+ path: ["viewRevisionRef"],
11638
+ message: "Legacy bindings require exactly one View or projection revision."
11639
+ });
11640
+ }
11641
+ for (const [key, reference, kind] of [
11642
+ [
11643
+ "ontologyDefinitionRevisionRef",
11644
+ value.ontologyDefinitionRevisionRef,
11645
+ "ontology-definition"
11646
+ ],
11647
+ ["viewRevisionRef", value.viewRevisionRef, "view"],
11648
+ ["projectionRevisionRef", value.projectionRevisionRef, "projection-spec"]
11649
+ ]) {
11650
+ if (reference && reference.kind !== kind)
11651
+ context.addIssue({
11652
+ code: "custom",
11653
+ path: [key, "kind"],
11654
+ message: `Expected a ${kind} revision.`
11655
+ });
11656
+ }
11657
+ if (value.cursorWindow && value.pagination !== "cursor")
11658
+ context.addIssue({
11659
+ code: "custom",
11660
+ path: ["cursorWindow"],
11661
+ message: "Cursor-window navigation requires cursor pagination."
11662
+ });
11663
+ });
11664
+ var PersistedOntologyBindingSchema = z14.object({
11665
+ ...OntologyBindingSchema.shape,
11666
+ viewRevisionRef: RevisionRefSchema.optional(),
11667
+ canonicalDataViewRevisionRef: RevisionRefSchema.optional(),
11668
+ projectionRevisionRef: RevisionRefSchema.optional()
11669
+ }).strict().superRefine((value, context) => {
11670
+ const schema2 = value.canonicalDataViewRevisionRef ? OntologyBindingSchema : LegacyOntologyBindingSchema;
11671
+ const parsed = schema2.safeParse(value);
11672
+ if (!parsed.success)
11673
+ for (const issue of parsed.error.issues)
11674
+ context.addIssue({
11675
+ code: "custom",
11676
+ path: issue.path,
11677
+ message: issue.message
11678
+ });
11679
+ });
11626
11680
  var ActionResultBindingEffectSourceSchema = z14.discriminatedUnion(
11627
11681
  "kind",
11628
11682
  [
@@ -12165,7 +12219,7 @@ var ResolvedPageSchema = z14.object({
12165
12219
  stateDefinitions: z14.array(PageStateDefinitionSchema).optional(),
12166
12220
  entryTransitions: z14.array(PageEntryTransitionSchema).optional(),
12167
12221
  interactionBindings: z14.array(InteractionBindingSchema).optional(),
12168
- ontologyBindings: z14.array(OntologyBindingSchema),
12222
+ ontologyBindings: z14.array(PersistedOntologyBindingSchema),
12169
12223
  queryBindings: z14.array(QueryBindingSchema).optional(),
12170
12224
  actionBindings: z14.array(ActionBindingSchema),
12171
12225
  pageAccessPolicy: AccessPolicySchema,
@@ -13949,7 +14003,7 @@ var DeclarativeWorkbenchCatalogSchema = z14.object({
13949
14003
  });
13950
14004
  }
13951
14005
  });
13952
- var PageRuntimeBundleSchema = z14.object({
14006
+ var CompatiblePageRuntimeBundleSchema = z14.object({
13953
14007
  contract: z14.literal("PageRuntimeBundle"),
13954
14008
  ...RuntimeBundleBaseShape,
13955
14009
  pageId: ContractIdentifierSchema,
@@ -13958,7 +14012,7 @@ var PageRuntimeBundleSchema = z14.object({
13958
14012
  routeClaims: z14.array(CompiledRouteClaimSchema),
13959
14013
  routeStatePresentations: z14.array(PageRouteStatePresentationSchema).default([]),
13960
14014
  shellRevisionRef: RevisionRefSchema,
13961
- shellDescriptor: DeclarativeRuntimeShellDescriptorSchema,
14015
+ shellDescriptor: DeclarativeRuntimeShellDescriptorSchema.optional(),
13962
14016
  renderTree: RenderTreeSchema,
13963
14017
  capabilityInstances: z14.array(CapabilityInstanceSchema),
13964
14018
  deniedCapabilityInstanceIds: z14.array(ContractIdentifierSchema).default([]),
@@ -13966,7 +14020,7 @@ var PageRuntimeBundleSchema = z14.object({
13966
14020
  stateDefinitions: z14.array(PageStateDefinitionSchema).default([]),
13967
14021
  entryTransitions: z14.array(ResolvedPageEntryTransitionSchema).default([]),
13968
14022
  interactionBindings: z14.array(InteractionBindingSchema).default([]),
13969
- ontologyBindings: z14.array(OntologyBindingSchema),
14023
+ ontologyBindings: z14.array(PersistedOntologyBindingSchema),
13970
14024
  queryBindings: z14.array(QueryBindingSchema).default([]),
13971
14025
  actionBindings: z14.array(ActionBindingSchema),
13972
14026
  pageAccessPolicy: AccessPolicySchema,
@@ -14021,6 +14075,15 @@ var PageRuntimeBundleSchema = z14.object({
14021
14075
  var ResolvedWorkbenchAppInstanceSchema = WorkbenchAppInstanceSchema.extend({
14022
14076
  targetAccessPolicy: AccessPolicySchema
14023
14077
  }).strict();
14078
+ var PageRuntimeBundleSchema = CompatiblePageRuntimeBundleSchema.safeExtend({
14079
+ shellDescriptor: DeclarativeRuntimeShellDescriptorSchema,
14080
+ ontologyBindings: z14.array(OntologyBindingSchema)
14081
+ });
14082
+ var LegacyPageRuntimeBundleSchema = CompatiblePageRuntimeBundleSchema.safeExtend({
14083
+ shellDescriptor: z14.never().optional(),
14084
+ ontologyBindings: z14.array(LegacyOntologyBindingSchema)
14085
+ });
14086
+ var ReadablePageRuntimeBundleSchema = z14.union([PageRuntimeBundleSchema, LegacyPageRuntimeBundleSchema]);
14024
14087
  var WorkbenchRuntimeIdentitySchema = z14.object({
14025
14088
  name: I18nTextSchema,
14026
14089
  description: I18nTextSchema.optional()
@@ -14833,6 +14896,7 @@ var OntologyViewDefinitionSchema = z17.object({
14833
14896
  renderModelSchemaRevisionRef: ExactRefKindSchema("schema"),
14834
14897
  requiredPermissionCodes: z17.array(ContractIdentifierSchema).default([])
14835
14898
  }).strict();
14899
+ var LegacyOntologyViewDefinitionSchema = OntologyViewDefinitionSchema.omit({ canonicalDataViewRevisionRef: true });
14836
14900
  var ConceptRelationshipSchema = z17.object({
14837
14901
  kind: ContractIdentifierSchema,
14838
14902
  targetConceptId: ContractIdentifierSchema,
@@ -15150,6 +15214,7 @@ var DeclarativeRuntimeActionExecuteIntentSchema = DeclarativeRuntimePageTargetSc
15150
15214
  routePath: DeclarativeRuntimeActionRoutePathSchema.optional(),
15151
15215
  idempotencyKey: z18.string().trim().min(1).max(256)
15152
15216
  }).strict();
15217
+ var LegacyDeclarativeRuntimeActionExecuteIntentSchema = DeclarativeRuntimeActionExecuteIntentSchema.safeExtend({ pageState: DeclarativeRuntimeParametersSchema.default({}) });
15153
15218
  var DeclarativeNativeDownloadSchema = z18.object({
15154
15219
  url: z18.string().min(1).max(32768).refine((value) => {
15155
15220
  try {
@@ -15537,7 +15602,12 @@ var DeclarativeCreateTemplateRegistrationSchema = z18.object({
15537
15602
  description: I18nTextSchema,
15538
15603
  supportedSurfaces: z18.array(ProductSurfaceSchema).min(1),
15539
15604
  legacyMigrationSourcePageIds: z18.array(ContractIdentifierSchema).min(1).max(256).optional(),
15540
- document: z18.union([PageSchema, NavigationSchema, WorkbenchSchema]),
15605
+ document: z18.union([
15606
+ PageSchema,
15607
+ ResolvedPageSchema,
15608
+ NavigationSchema,
15609
+ WorkbenchSchema
15610
+ ]),
15541
15611
  sourceContentHash: Sha256Schema
15542
15612
  }).strict().superRefine((value, context) => {
15543
15613
  const expected = value.document.contract === "Page" ? "page" : value.document.contract === "Navigation" ? "navigation" : "workbench";
@@ -16033,6 +16103,7 @@ var DeclarativeCreateIntentSchema = z18.object({
16033
16103
  });
16034
16104
  var DeclarativeDocumentSchema = z18.union([
16035
16105
  PageSchema,
16106
+ ResolvedPageSchema,
16036
16107
  NavigationSchema,
16037
16108
  WorkbenchSchema
16038
16109
  ]);
@@ -16339,7 +16410,7 @@ var DeclarativePreviewResultSchema = z18.object({
16339
16410
  revision: z18.number().int().positive(),
16340
16411
  contentHash: Sha256Schema,
16341
16412
  bundle: z18.union([
16342
- PageRuntimeBundleSchema,
16413
+ ReadablePageRuntimeBundleSchema,
16343
16414
  NavigationRuntimeBundleSchema,
16344
16415
  WorkbenchRuntimeBundleSchema
16345
16416
  ]),
@@ -16356,7 +16427,7 @@ var DeclarativePublicationItemResultSchema = z18.object({
16356
16427
  WorkbenchReleaseSchema
16357
16428
  ]),
16358
16429
  bundle: z18.union([
16359
- PageRuntimeBundleSchema,
16430
+ ReadablePageRuntimeBundleSchema,
16360
16431
  NavigationRuntimeBundleSchema,
16361
16432
  WorkbenchRuntimeBundleSchema
16362
16433
  ]).optional()
@@ -16628,7 +16699,7 @@ var DeclarativeRuntimeResolvedSchema = z18.object({
16628
16699
  surface: ProductSurfaceSchema,
16629
16700
  normalizedPath: z18.string().trim().min(1),
16630
16701
  routeParameters: z18.record(ContractIdentifierSchema, z18.string()),
16631
- page: PageRuntimeBundleSchema.optional(),
16702
+ page: ReadablePageRuntimeBundleSchema.optional(),
16632
16703
  workbench: WorkbenchRuntimeBundleSchema.optional(),
16633
16704
  redirect: DeclarativeRuntimeRedirectSchema.optional(),
16634
16705
  navigation: NavigationRuntimeBundleSchema.optional(),
@@ -22734,11 +22805,19 @@ var pageDependencies = (page, compilerRevisionRef) => [
22734
22805
  role: "ontology-definition",
22735
22806
  revisionRef: binding.ontologyDefinitionRevisionRef
22736
22807
  },
22737
- { role: "view", revisionRef: binding.viewRevisionRef },
22738
- {
22739
- role: "view",
22740
- revisionRef: binding.canonicalDataViewRevisionRef
22741
- },
22808
+ ...binding.viewRevisionRef ? [{ role: "view", revisionRef: binding.viewRevisionRef }] : [],
22809
+ ..."projectionRevisionRef" in binding && binding.projectionRevisionRef ? [
22810
+ {
22811
+ role: "projection-spec",
22812
+ revisionRef: binding.projectionRevisionRef
22813
+ }
22814
+ ] : [],
22815
+ ...binding.canonicalDataViewRevisionRef ? [
22816
+ {
22817
+ role: "view",
22818
+ revisionRef: binding.canonicalDataViewRevisionRef
22819
+ }
22820
+ ] : [],
22742
22821
  {
22743
22822
  role: "schema",
22744
22823
  revisionRef: binding.renderModelSchemaRevisionRef
@@ -23010,6 +23089,12 @@ var resolvePage = (input) => {
23010
23089
  const queryBindings = [];
23011
23090
  const actionBindings = [];
23012
23091
  const interactionBindings = [];
23092
+ const nodesById = /* @__PURE__ */ new Map();
23093
+ const indexNode = (node) => {
23094
+ nodesById.set(node.id, node);
23095
+ node.children?.forEach(indexNode);
23096
+ };
23097
+ indexNode(page.body);
23013
23098
  const visitNode = (node, parentNodeId) => {
23014
23099
  const registration = singleByStableIdentity(
23015
23100
  capabilityRegistrations,
@@ -23130,15 +23215,13 @@ var resolvePage = (input) => {
23130
23215
  ...cursorWindow,
23131
23216
  pageChangeIntentSchemaRevisionRef: (() => {
23132
23217
  const sourceInstanceId = cursorWindow.sourceCapabilityInstanceId ?? node.id;
23133
- const sourceRegistration = capabilityInstances.find(
23134
- (instance) => instance.instanceId === sourceInstanceId
23135
- );
23136
- const sourceCapability = sourceRegistration && capabilityRegistrations.find(
23137
- (candidate) => sameRevisionRef(
23138
- candidate.revisionRef,
23139
- sourceRegistration.capabilityRevisionRef
23140
- )
23141
- );
23218
+ const sourceNode = nodesById.get(sourceInstanceId);
23219
+ const sourceCapability = sourceNode ? singleByStableIdentity(
23220
+ capabilityRegistrations,
23221
+ "capability",
23222
+ sourceNode.component,
23223
+ `page.body.${sourceNode.id}.component`
23224
+ ) : void 0;
23142
23225
  const sourcePort = sourceCapability?.outputPorts.find(
23143
23226
  (candidate) => candidate.name === cursorWindow.pageChangePort
23144
23227
  );
@@ -23308,8 +23391,30 @@ var resolvePage = (input) => {
23308
23391
  };
23309
23392
  return ResolvedPageSchema.parse(resolved);
23310
23393
  };
23311
- var compilePageRuntimeBundle = (input) => {
23394
+ var compileLegacyPageRuntimeBundle = (input) => deepFreeze(
23395
+ LegacyPageRuntimeBundleSchema.parse(
23396
+ compilePageRuntimeBundleInternal(input, true)
23397
+ )
23398
+ );
23399
+ var compilePageRuntimeBundle = (input) => deepFreeze(
23400
+ PageRuntimeBundleSchema.parse(
23401
+ compilePageRuntimeBundleInternal(input, false)
23402
+ )
23403
+ );
23404
+ var compilePageRuntimeBundleInternal = (input, legacy) => {
23312
23405
  const parsedPage = ResolvedPageSchema.parse(input.page);
23406
+ parsedPage.ontologyBindings.forEach(
23407
+ (binding) => (legacy ? LegacyOntologyBindingSchema : OntologyBindingSchema).parse(
23408
+ binding
23409
+ )
23410
+ );
23411
+ if (legacy && (parsedPage.queryBindings?.length || input.domainQueryRegistry?.length)) {
23412
+ throw new DeclarativeControlCompilationError(
23413
+ "QUERY_DEFINITION_MISMATCH",
23414
+ "queryBindings",
23415
+ "Domain queries require the current compiler and its governed registries."
23416
+ );
23417
+ }
23313
23418
  const page = {
23314
23419
  ...parsedPage,
23315
23420
  routeStatePresentations: parsedPage.routeStatePresentations ?? [],
@@ -23452,43 +23557,45 @@ var compilePageRuntimeBundle = (input) => {
23452
23557
  domainQueryDependencies(definition)
23453
23558
  );
23454
23559
  });
23455
- const shellRegistration = DeclarativeProductResourceRegistrationSchema.parse(
23456
- input.shellRegistration
23457
- );
23458
- if (shellRegistration.resourceKind !== "shell" || !sameRevisionRef(
23459
- shellRegistration.resourceRevisionRef,
23460
- page.shellRevisionRef
23461
- ) || declarativeProductResourceRevisionHash(shellRegistration) !== shellRegistration.resourceRevisionRef.contentHash || declarativeProductResourceSourceHash(shellRegistration.document) !== shellRegistration.sourceContentHash) {
23462
- throw new DeclarativeControlCompilationError(
23463
- "SHELL_REVISION_MISMATCH",
23464
- "shellRegistration",
23465
- "The active Shell registration does not match the Page exact Shell revision."
23560
+ const shellDescriptor = legacy ? void 0 : (() => {
23561
+ const shellRegistration = DeclarativeProductResourceRegistrationSchema.parse(
23562
+ input.shellRegistration
23466
23563
  );
23467
- }
23468
- if (!shellRegistration.supportedSurfaces.includes(release.target.surface)) {
23469
- throw new DeclarativeControlCompilationError(
23470
- "SHELL_SURFACE_MISMATCH",
23471
- "shellRegistration.supportedSurfaces",
23472
- "The active Shell registration does not support the release surface."
23564
+ if (shellRegistration.resourceKind !== "shell" || !sameRevisionRef(
23565
+ shellRegistration.resourceRevisionRef,
23566
+ page.shellRevisionRef
23567
+ ) || declarativeProductResourceRevisionHash(shellRegistration) !== shellRegistration.resourceRevisionRef.contentHash || declarativeProductResourceSourceHash(shellRegistration.document) !== shellRegistration.sourceContentHash) {
23568
+ throw new DeclarativeControlCompilationError(
23569
+ "SHELL_REVISION_MISMATCH",
23570
+ "shellRegistration",
23571
+ "The active Shell registration does not match the Page exact Shell revision."
23572
+ );
23573
+ }
23574
+ if (!shellRegistration.supportedSurfaces.includes(release.target.surface)) {
23575
+ throw new DeclarativeControlCompilationError(
23576
+ "SHELL_SURFACE_MISMATCH",
23577
+ "shellRegistration.supportedSurfaces",
23578
+ "The active Shell registration does not support the release surface."
23579
+ );
23580
+ }
23581
+ const shellDocument = DeclarativeShellResourceDocumentSchema.parse(
23582
+ shellRegistration.document
23473
23583
  );
23474
- }
23475
- const shellDocument = DeclarativeShellResourceDocumentSchema.parse(
23476
- shellRegistration.document
23477
- );
23478
- const shellChrome = shellDocument.surfaceChrome.find(
23479
- (entry) => entry.surface === release.target.surface
23480
- );
23481
- if (!shellChrome) {
23482
- throw new DeclarativeControlCompilationError(
23483
- "SHELL_CHROME_UNAVAILABLE",
23484
- "shellRegistration.document.surfaceChrome",
23485
- "The active Shell does not declare chrome for the release surface."
23584
+ const shellChrome = shellDocument.surfaceChrome.find(
23585
+ (entry) => entry.surface === release.target.surface
23486
23586
  );
23487
- }
23488
- const shellDescriptor = {
23489
- shellRevisionRef: page.shellRevisionRef,
23490
- header: shellChrome.header
23491
- };
23587
+ if (!shellChrome) {
23588
+ throw new DeclarativeControlCompilationError(
23589
+ "SHELL_CHROME_UNAVAILABLE",
23590
+ "shellRegistration.document.surfaceChrome",
23591
+ "The active Shell does not declare chrome for the release surface."
23592
+ );
23593
+ }
23594
+ return {
23595
+ shellRevisionRef: page.shellRevisionRef,
23596
+ header: shellChrome.header
23597
+ };
23598
+ })();
23492
23599
  if (page.renderTree.nodes.length > input.limits.maxRenderNodes)
23493
23600
  throw new DeclarativeControlCompilationError(
23494
23601
  "RENDER_NODE_LIMIT_EXCEEDED",
@@ -23587,23 +23694,23 @@ var compilePageRuntimeBundle = (input) => {
23587
23694
  "Page requests undeclared provider side effects."
23588
23695
  );
23589
23696
  }
23590
- if (!sameRevisionRef(
23697
+ if (!legacy && (!registration.propertySchemaRevisionRef || !sameRevisionRef(
23591
23698
  instance.propertySchemaRevisionRef,
23592
23699
  registration.propertySchemaRevisionRef
23593
- )) {
23700
+ ))) {
23594
23701
  throw new DeclarativeControlCompilationError(
23595
23702
  "CAPABILITY_BINDING_MISMATCH",
23596
23703
  `capabilityInstances[${index}].propertySchemaRevisionRef`,
23597
23704
  "Capability properties do not pin the exact schema registered by the active Design catalog."
23598
23705
  );
23599
23706
  }
23600
- if (!accessPolicyChainImplies(
23707
+ if (!legacy && (!registration.accessPolicy || !accessPolicyChainImplies(
23601
23708
  [
23602
23709
  page.pageAccessPolicy,
23603
23710
  ...instance.accessPolicy ? [instance.accessPolicy] : []
23604
23711
  ],
23605
23712
  registration.accessPolicy
23606
- )) {
23713
+ ))) {
23607
23714
  throw new DeclarativeControlCompilationError(
23608
23715
  "AUDIENCE_WIDER_THAN_TARGET",
23609
23716
  `capabilityInstances[${index}]`,
@@ -23933,7 +24040,7 @@ var compilePageRuntimeBundle = (input) => {
23933
24040
  (presentation) => presentation.surface === release.target.surface
23934
24041
  ),
23935
24042
  shellRevisionRef: page.shellRevisionRef,
23936
- shellDescriptor,
24043
+ ...shellDescriptor ? { shellDescriptor } : {},
23937
24044
  renderTree,
23938
24045
  capabilityInstances: page.capabilityInstances,
23939
24046
  deniedCapabilityInstanceIds: [],
@@ -23949,12 +24056,7 @@ var compilePageRuntimeBundle = (input) => {
23949
24056
  observationPolicyRevisionRef: page.observationPolicyRevisionRef,
23950
24057
  privacyClassification: page.privacyClassification
23951
24058
  };
23952
- return deepFreeze(
23953
- PageRuntimeBundleSchema.parse({
23954
- ...unsigned,
23955
- contentHash: canonicalContentHash(unsigned)
23956
- })
23957
- );
24059
+ return { ...unsigned, contentHash: canonicalContentHash(unsigned) };
23958
24060
  };
23959
24061
  var workbenchDependencyRole = (kind) => {
23960
24062
  switch (kind) {
@@ -26835,6 +26937,10 @@ export {
26835
26937
  JsonValueSchema,
26836
26938
  LEGACY_CURRENT_USER_MENU_ITEM_IDS,
26837
26939
  LegacyBrowserPreferenceImportSchema,
26940
+ LegacyDeclarativeRuntimeActionExecuteIntentSchema,
26941
+ LegacyOntologyBindingSchema,
26942
+ LegacyOntologyViewDefinitionSchema,
26943
+ LegacyPageRuntimeBundleSchema,
26838
26944
  LegacyRouteClaimSchema,
26839
26945
  LegacyRoutePolicySchema,
26840
26946
  LegacyRouteTakeoverAuthorizationSchema,
@@ -26941,6 +27047,7 @@ export {
26941
27047
  PermissionAlternativePolicySchema,
26942
27048
  PermissionBundleSchema,
26943
27049
  PermissionDefinitionSchema,
27050
+ PersistedOntologyBindingSchema,
26944
27051
  ProductAccessDeclarationSchema,
26945
27052
  ProductBodySchema,
26946
27053
  ProductContextSchema,
@@ -26968,6 +27075,7 @@ export {
26968
27075
  RadarScoreProjectionSchema,
26969
27076
  RadarSelectionSchema,
26970
27077
  RadarWritebackRecordSchema,
27078
+ ReadablePageRuntimeBundleSchema,
26971
27079
  RecordEditorDraftOperationSchema,
26972
27080
  RecordEditorDraftSchema,
26973
27081
  RecordEditorFieldErrorSchema,
@@ -27117,6 +27225,7 @@ export {
27117
27225
  compileDeclarativeRouteOwnerIndex,
27118
27226
  compileDeclarativeWorkbenchCatalog,
27119
27227
  compileDesignCapabilityCatalogArtifact,
27228
+ compileLegacyPageRuntimeBundle,
27120
27229
  compileLegacyRouteTakeoverAuthorization,
27121
27230
  compileMenuRuntimeBundle,
27122
27231
  compileNavigationRuntimeBundle,