@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.
- package/README.md +7 -0
- package/lib/contracts/declarative-control-http.d.ts +108182 -67435
- package/lib/contracts/declarative-control-http.d.ts.map +1 -1
- package/lib/contracts/declarative-control-http.js +14 -6
- package/lib/contracts/declarative-control-http.js.map +1 -1
- package/lib/contracts/declarative-control.d.ts +1106 -624
- package/lib/contracts/declarative-control.d.ts.map +1 -1
- package/lib/contracts/declarative-control.js +80 -6
- package/lib/contracts/declarative-control.js.map +1 -1
- package/lib/contracts/semantic.d.ts +68 -0
- package/lib/contracts/semantic.d.ts.map +1 -1
- package/lib/contracts/semantic.js +3 -1
- package/lib/contracts/semantic.js.map +1 -1
- package/lib/esm/contracts/index.mjs +85 -8
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +177 -68
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +171 -68
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +84 -8
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/navigation-release.schema.json +1 -0
- package/lib/json-schema/navigation-runtime-bundle.schema.json +1 -0
- package/lib/json-schema/page-release.schema.json +1 -0
- package/lib/json-schema/page-runtime-bundle.schema.json +1 -0
- package/lib/json-schema/workbench-release.schema.json +1 -0
- package/lib/json-schema/workbench-runtime-bundle.schema.json +1 -0
- package/lib/runtime/declarative-control-compiler.d.ts +6 -1
- package/lib/runtime/declarative-control-compiler.d.ts.map +1 -1
- package/lib/runtime/declarative-control-compiler.js +77 -42
- package/lib/runtime/declarative-control-compiler.js.map +1 -1
- package/lib/schemas/index.d.ts +251 -245
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +10 -5
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type DeclarativeCreateTemplateRegistration, type DeclarativeProductResourceRegistration, type DeclarativeRouteSpaceRegistration, type DeclarativeSchemaDefinitionRegistration, type DesignCapabilityCatalogArtifact, type DesignCapabilityCatalogEntry, type ProductDeclarativeCapabilityRegistration } from "../contracts/declarative-control-http";
|
|
2
|
-
import { type AccessPolicy, type CompiledRouteClaim, type DeclarativeRouteOwnerIndex, type DeclarativeRouteOwnerIndexEntry, type DeclarativeRouteClaim, type DeclarativeWorkbenchCatalog, type DeclarativeWorkbenchCatalogEntry, type DomainQueryDefinition, type LegacyRouteTakeoverAuthorization, type PermissionAlternativePolicy, type Navigation, type NavigationRelease, type NavigationRuntimeBundle, type Page, type ResolvedPage, type PageRelease, type PageRuntimeBundle, type RevisionRef, type RouteClaim, type RouteSpace, type StableRef, type TenantScope, type Workbench, type WorkbenchRelease, type WorkbenchRuntimeBundle } from "../contracts/declarative-control";
|
|
2
|
+
import { type AccessPolicy, type CompiledRouteClaim, type DeclarativeRouteOwnerIndex, type DeclarativeRouteOwnerIndexEntry, type DeclarativeRouteClaim, type DeclarativeWorkbenchCatalog, type DeclarativeWorkbenchCatalogEntry, type DomainQueryDefinition, type LegacyRouteTakeoverAuthorization, type PermissionAlternativePolicy, type Navigation, type NavigationRelease, type NavigationRuntimeBundle, type Page, type ResolvedPage, type PageRelease, type PageRuntimeBundle, type LegacyPageRuntimeBundle, type RevisionRef, type RouteClaim, type RouteSpace, type StableRef, type TenantScope, type Workbench, type WorkbenchRelease, type WorkbenchRuntimeBundle } from "../contracts/declarative-control";
|
|
3
3
|
import type { DomainCommandDefinition } from "../contracts/semantic";
|
|
4
4
|
export type DeclarativeControlCompilationErrorCode = "AUDIENCE_WIDER_THAN_TARGET" | "CAPABILITY_BINDING_MISMATCH" | "CAPABILITY_NOT_EDITOR_ELIGIBLE" | "COMMAND_DEFINITION_MISMATCH" | "CROSS_TENANT_REFERENCE" | "DEPENDENCY_MISSING" | "DESIGN_CATALOG_INVALID" | "HEAD_CONFLICT" | "NAV_DEPTH_EXCEEDED" | "NAV_ACTION_INPUT_INVALID" | "NAV_NODE_LIMIT_EXCEEDED" | "NAV_TARGET_UNRELEASED" | "PAGE_ENTRY_TARGET_UNRELEASED" | "PORT_TYPE_MISMATCH" | "PRODUCT_CAPABILITY_CATALOG_INVALID" | "QUERY_DEFINITION_MISMATCH" | "RENDER_DEPTH_EXCEEDED" | "RENDER_TREE_INVALID" | "RENDER_NODE_LIMIT_EXCEEDED" | "RELEASE_OPERATION_INVALID" | "RELEASE_VALIDATION_FAILED" | "REGISTRY_CONFLICT" | "REVISION_MISMATCH" | "ROUTE_CONFLICT" | "ROUTE_RESERVED" | "ROUTE_TAKEOVER_INVALID" | "SCHEMA_DEFINITION_MISMATCH" | "ROUTE_SPACE_MISSING" | "ROUTE_SPACE_MISMATCH" | "SHELL_CHROME_UNAVAILABLE" | "SHELL_REVISION_MISMATCH" | "SHELL_SURFACE_MISMATCH" | "WORKBENCH_INSTANCE_LIMIT_EXCEEDED" | "WORKBENCH_RELEASE_SET_INVALID" | "WORKBENCH_TEMPLATE_UNRELEASABLE";
|
|
5
5
|
export declare class DeclarativeControlCompilationError extends Error {
|
|
@@ -204,6 +204,11 @@ export declare const matchCompiledRouteClaim: (claimInput: CompiledRouteClaim, p
|
|
|
204
204
|
*/
|
|
205
205
|
export declare const materializeRouteSpacePath: (input: MaterializeRouteSpacePathInput) => string;
|
|
206
206
|
export declare const resolvePage: (input: ResolvePageInput) => ResolvedPage;
|
|
207
|
+
export type LegacyCompilePageRuntimeBundleInput = Omit<CompilePageRuntimeBundleInput, "capabilityRegistry" | "shellRegistration"> & {
|
|
208
|
+
capabilityRegistry: readonly (Omit<DeclarativeCapabilityRegistration, "propertySchemaRevisionRef" | "accessPolicy"> & Partial<Pick<DeclarativeCapabilityRegistration, "propertySchemaRevisionRef" | "accessPolicy">>)[];
|
|
209
|
+
};
|
|
210
|
+
/** Explicit compatibility boundary for previously persisted resolved Page documents. */
|
|
211
|
+
export declare const compileLegacyPageRuntimeBundle: (input: LegacyCompilePageRuntimeBundleInput) => LegacyPageRuntimeBundle;
|
|
207
212
|
export declare const compilePageRuntimeBundle: (input: CompilePageRuntimeBundleInput) => PageRuntimeBundle;
|
|
208
213
|
export declare const compileWorkbenchRuntimeBundle: (input: CompileWorkbenchRuntimeBundleInput) => WorkbenchRuntimeBundle;
|
|
209
214
|
export declare const compileNavigationRuntimeBundle: (input: CompileNavigationRuntimeBundleInput) => NavigationRuntimeBundle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declarative-control-compiler.d.ts","sourceRoot":"","sources":["../../src/runtime/declarative-control-compiler.ts"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAC3C,KAAK,iCAAiC,EACtC,KAAK,uCAAuC,EAC5C,KAAK,+BAA+B,EACpC,KAAK,4BAA4B,EACjC,KAAK,wCAAwC,EAC9C,MAAM,uCAAuC,CAAC;AAG/C,OAAO,
|
|
1
|
+
{"version":3,"file":"declarative-control-compiler.d.ts","sourceRoot":"","sources":["../../src/runtime/declarative-control-compiler.ts"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAC3C,KAAK,iCAAiC,EACtC,KAAK,uCAAuC,EAC5C,KAAK,+BAA+B,EACpC,KAAK,4BAA4B,EACjC,KAAK,wCAAwC,EAC9C,MAAM,uCAAuC,CAAC;AAG/C,OAAO,EA6BL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,gCAAgC,EACrC,KAAK,qBAAqB,EAC1B,KAAK,gCAAgC,EACrC,KAAK,2BAA2B,EAChC,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,IAAI,EACT,KAAK,YAAY,EAC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CACF,CAAC,EAAE,CAAC;CACR,CAAC;AAEF,wFAAwF;AACxF,eAAO,MAAM,8BAA8B,UAClC,mCAAmC,KACzC,uBAKA,CAAC;AAEJ,eAAO,MAAM,wBAAwB,UAC5B,6BAA6B,KACnC,iBAKA,CAAC;AA8zBJ,eAAO,MAAM,6BAA6B,UACjC,kCAAkC,KACxC,sBAuMF,CAAC;AAqEF,eAAO,MAAM,8BAA8B,UAClC,mCAAmC,KACzC,uBAgcF,CAAC;AACF,eAAO,MAAM,2BAA2B,iBACxB,SAAS,sBAAsB,EAAE,KAC9C,SAAS,sBAAsB,EAwDjC,CAAC;AACF,MAAM,MAAM,wBAAwB,GAChC;IACE,MAAM,EAAE,UAAU,CAAC;IACnB,MAAM,EAAE,sBAAsB,CAAC;IAC/B,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,kBAAkB,CAAC;CACrD,GACD;IACE,MAAM,EAAE,WAAW,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB,GACD;IACE,MAAM,EAAE,WAAW,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AACN,eAAO,MAAM,qBAAqB,UAAW;IAC3C,OAAO,EAAE,SAAS,sBAAsB,EAAE,CAAC;IAC3C,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,SAAS,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,OAAO,CAAC;CACxD,KAAG,wBA8BH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveWorkbenchEntry = exports.validateWorkbenchRuntimeSet = exports.compileNavigationRuntimeBundle = exports.compileWorkbenchRuntimeBundle = exports.compilePageRuntimeBundle = exports.resolvePage = exports.materializeRouteSpacePath = exports.matchCompiledRouteClaim = exports.compileRouteClaims = exports.compiledRouteClaimsOverlap = exports.accessPolicyChainImplies = exports.parseExactDesignCapabilityCatalogArtifact = exports.parseExactProductDeclarativeCapabilityRegistration = exports.compileDesignCapabilityCatalogArtifact = exports.designCapabilityCatalogArtifactHash = exports.declarativeProductResourceRevisionHash = exports.declarativeProductResourceSourceHash = exports.declarativeRouteSpaceRevisionHash = exports.declarativeRouteSpaceSourceHash = exports.declarativeCreateTemplateRevisionHash = exports.declarativeCreateTemplateSourceHash = exports.compileDeclarativeWorkbenchCatalog = exports.compileDeclarativeRouteOwnerIndex = exports.permissionAlternativePolicyAllows = exports.parseExactLegacyRouteTakeoverAuthorization = exports.legacyRouteTakeoverAuthorizationHash = exports.compileLegacyRouteTakeoverAuthorization = exports.declarativeWorkbenchCatalogProjectionId = exports.declarativeRouteOwnerIndexProjectionId = exports.declarativeRuntimeProjectionId = exports.canonicalContentHash = exports.sameRevisionRef = exports.sameStableRef = exports.revisionRefKey = exports.stableRefKey = exports.DeclarativeControlCompilationError = void 0;
|
|
3
|
+
exports.resolveWorkbenchEntry = exports.validateWorkbenchRuntimeSet = exports.compileNavigationRuntimeBundle = exports.compileWorkbenchRuntimeBundle = exports.compilePageRuntimeBundle = exports.compileLegacyPageRuntimeBundle = exports.resolvePage = exports.materializeRouteSpacePath = exports.matchCompiledRouteClaim = exports.compileRouteClaims = exports.compiledRouteClaimsOverlap = exports.accessPolicyChainImplies = exports.parseExactDesignCapabilityCatalogArtifact = exports.parseExactProductDeclarativeCapabilityRegistration = exports.compileDesignCapabilityCatalogArtifact = exports.designCapabilityCatalogArtifactHash = exports.declarativeProductResourceRevisionHash = exports.declarativeProductResourceSourceHash = exports.declarativeRouteSpaceRevisionHash = exports.declarativeRouteSpaceSourceHash = exports.declarativeCreateTemplateRevisionHash = exports.declarativeCreateTemplateSourceHash = exports.compileDeclarativeWorkbenchCatalog = exports.compileDeclarativeRouteOwnerIndex = exports.permissionAlternativePolicyAllows = exports.parseExactLegacyRouteTakeoverAuthorization = exports.legacyRouteTakeoverAuthorizationHash = exports.compileLegacyRouteTakeoverAuthorization = exports.declarativeWorkbenchCatalogProjectionId = exports.declarativeRouteOwnerIndexProjectionId = exports.declarativeRuntimeProjectionId = exports.canonicalContentHash = exports.sameRevisionRef = exports.sameStableRef = exports.revisionRefKey = exports.stableRefKey = exports.DeclarativeControlCompilationError = void 0;
|
|
4
4
|
const common_1 = require("../contracts/common");
|
|
5
5
|
const declarative_control_http_1 = require("../contracts/declarative-control-http");
|
|
6
6
|
const render_tree_compiler_1 = require("./render-tree-compiler");
|
|
@@ -793,11 +793,25 @@ const pageDependencies = (page, compilerRevisionRef) => [
|
|
|
793
793
|
role: "ontology-definition",
|
|
794
794
|
revisionRef: binding.ontologyDefinitionRevisionRef,
|
|
795
795
|
},
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
796
|
+
...(binding.viewRevisionRef
|
|
797
|
+
? [{ role: "view", revisionRef: binding.viewRevisionRef }]
|
|
798
|
+
: []),
|
|
799
|
+
...("projectionRevisionRef" in binding && binding.projectionRevisionRef
|
|
800
|
+
? [
|
|
801
|
+
{
|
|
802
|
+
role: "projection-spec",
|
|
803
|
+
revisionRef: binding.projectionRevisionRef,
|
|
804
|
+
},
|
|
805
|
+
]
|
|
806
|
+
: []),
|
|
807
|
+
...(binding.canonicalDataViewRevisionRef
|
|
808
|
+
? [
|
|
809
|
+
{
|
|
810
|
+
role: "view",
|
|
811
|
+
revisionRef: binding.canonicalDataViewRevisionRef,
|
|
812
|
+
},
|
|
813
|
+
]
|
|
814
|
+
: []),
|
|
801
815
|
{
|
|
802
816
|
role: "schema",
|
|
803
817
|
revisionRef: binding.renderModelSchemaRevisionRef,
|
|
@@ -1016,6 +1030,12 @@ const resolvePage = (input) => {
|
|
|
1016
1030
|
const queryBindings = [];
|
|
1017
1031
|
const actionBindings = [];
|
|
1018
1032
|
const interactionBindings = [];
|
|
1033
|
+
const nodesById = new Map();
|
|
1034
|
+
const indexNode = (node) => {
|
|
1035
|
+
nodesById.set(node.id, node);
|
|
1036
|
+
node.children?.forEach(indexNode);
|
|
1037
|
+
};
|
|
1038
|
+
indexNode(page.body);
|
|
1019
1039
|
const visitNode = (node, parentNodeId) => {
|
|
1020
1040
|
const registration = singleByStableIdentity(capabilityRegistrations, "capability", node.component, `page.body.${node.id}.component`);
|
|
1021
1041
|
const children = node.children ?? [];
|
|
@@ -1117,9 +1137,10 @@ const resolvePage = (input) => {
|
|
|
1117
1137
|
...cursorWindow,
|
|
1118
1138
|
pageChangeIntentSchemaRevisionRef: (() => {
|
|
1119
1139
|
const sourceInstanceId = cursorWindow.sourceCapabilityInstanceId ?? node.id;
|
|
1120
|
-
const
|
|
1121
|
-
const sourceCapability =
|
|
1122
|
-
|
|
1140
|
+
const sourceNode = nodesById.get(sourceInstanceId);
|
|
1141
|
+
const sourceCapability = sourceNode
|
|
1142
|
+
? singleByStableIdentity(capabilityRegistrations, "capability", sourceNode.component, `page.body.${sourceNode.id}.component`)
|
|
1143
|
+
: undefined;
|
|
1123
1144
|
const sourcePort = sourceCapability?.outputPorts.find((candidate) => candidate.name === cursorWindow.pageChangePort);
|
|
1124
1145
|
if (!sourcePort) {
|
|
1125
1146
|
throw new DeclarativeControlCompilationError("PORT_TYPE_MISMATCH", `page.body.${node.id}.data[${index}].cursorWindow.pageChangePort`, `No output port ${cursorWindow.pageChangePort} exists on the cursor source component.`);
|
|
@@ -1254,8 +1275,18 @@ const resolvePage = (input) => {
|
|
|
1254
1275
|
return declarative_control_1.ResolvedPageSchema.parse(resolved);
|
|
1255
1276
|
};
|
|
1256
1277
|
exports.resolvePage = resolvePage;
|
|
1257
|
-
|
|
1278
|
+
/** Explicit compatibility boundary for previously persisted resolved Page documents. */
|
|
1279
|
+
const compileLegacyPageRuntimeBundle = (input) => deepFreeze(declarative_control_1.LegacyPageRuntimeBundleSchema.parse(compilePageRuntimeBundleInternal(input, true)));
|
|
1280
|
+
exports.compileLegacyPageRuntimeBundle = compileLegacyPageRuntimeBundle;
|
|
1281
|
+
const compilePageRuntimeBundle = (input) => deepFreeze(declarative_control_1.PageRuntimeBundleSchema.parse(compilePageRuntimeBundleInternal(input, false)));
|
|
1282
|
+
exports.compilePageRuntimeBundle = compilePageRuntimeBundle;
|
|
1283
|
+
const compilePageRuntimeBundleInternal = (input, legacy) => {
|
|
1258
1284
|
const parsedPage = declarative_control_1.ResolvedPageSchema.parse(input.page);
|
|
1285
|
+
parsedPage.ontologyBindings.forEach((binding) => (legacy ? declarative_control_1.LegacyOntologyBindingSchema : declarative_control_1.OntologyBindingSchema).parse(binding));
|
|
1286
|
+
if (legacy &&
|
|
1287
|
+
(parsedPage.queryBindings?.length || input.domainQueryRegistry?.length)) {
|
|
1288
|
+
throw new DeclarativeControlCompilationError("QUERY_DEFINITION_MISMATCH", "queryBindings", "Domain queries require the current compiler and its governed registries.");
|
|
1289
|
+
}
|
|
1259
1290
|
const page = {
|
|
1260
1291
|
...parsedPage,
|
|
1261
1292
|
routeStatePresentations: parsedPage.routeStatePresentations ?? [],
|
|
@@ -1314,27 +1345,31 @@ const compilePageRuntimeBundle = (input) => {
|
|
|
1314
1345
|
}
|
|
1315
1346
|
requireDependencies(release.dependencySnapshot, domainQueryDependencies(definition));
|
|
1316
1347
|
});
|
|
1317
|
-
const
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
shellRegistration.
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1348
|
+
const shellDescriptor = legacy
|
|
1349
|
+
? undefined
|
|
1350
|
+
: (() => {
|
|
1351
|
+
const shellRegistration = declarative_control_http_1.DeclarativeProductResourceRegistrationSchema.parse(input.shellRegistration);
|
|
1352
|
+
if (shellRegistration.resourceKind !== "shell" ||
|
|
1353
|
+
!(0, exports.sameRevisionRef)(shellRegistration.resourceRevisionRef, page.shellRevisionRef) ||
|
|
1354
|
+
(0, exports.declarativeProductResourceRevisionHash)(shellRegistration) !==
|
|
1355
|
+
shellRegistration.resourceRevisionRef.contentHash ||
|
|
1356
|
+
(0, exports.declarativeProductResourceSourceHash)(shellRegistration.document) !==
|
|
1357
|
+
shellRegistration.sourceContentHash) {
|
|
1358
|
+
throw new DeclarativeControlCompilationError("SHELL_REVISION_MISMATCH", "shellRegistration", "The active Shell registration does not match the Page exact Shell revision.");
|
|
1359
|
+
}
|
|
1360
|
+
if (!shellRegistration.supportedSurfaces.includes(release.target.surface)) {
|
|
1361
|
+
throw new DeclarativeControlCompilationError("SHELL_SURFACE_MISMATCH", "shellRegistration.supportedSurfaces", "The active Shell registration does not support the release surface.");
|
|
1362
|
+
}
|
|
1363
|
+
const shellDocument = declarative_control_http_1.DeclarativeShellResourceDocumentSchema.parse(shellRegistration.document);
|
|
1364
|
+
const shellChrome = shellDocument.surfaceChrome.find((entry) => entry.surface === release.target.surface);
|
|
1365
|
+
if (!shellChrome) {
|
|
1366
|
+
throw new DeclarativeControlCompilationError("SHELL_CHROME_UNAVAILABLE", "shellRegistration.document.surfaceChrome", "The active Shell does not declare chrome for the release surface.");
|
|
1367
|
+
}
|
|
1368
|
+
return {
|
|
1369
|
+
shellRevisionRef: page.shellRevisionRef,
|
|
1370
|
+
header: shellChrome.header,
|
|
1371
|
+
};
|
|
1372
|
+
})();
|
|
1338
1373
|
if (page.renderTree.nodes.length > input.limits.maxRenderNodes)
|
|
1339
1374
|
throw new DeclarativeControlCompilationError("RENDER_NODE_LIMIT_EXCEEDED", "page.renderTree.nodes", "RenderTree exceeds the caller-approved node limit.");
|
|
1340
1375
|
if (renderTreeDepth(page.renderTree) > input.limits.maxRenderDepth)
|
|
@@ -1381,13 +1416,17 @@ const compilePageRuntimeBundle = (input) => {
|
|
|
1381
1416
|
if (instance.allowedSideEffects.some((sideEffect) => !registration.allowedSideEffects.includes(sideEffect))) {
|
|
1382
1417
|
throw new DeclarativeControlCompilationError("CAPABILITY_BINDING_MISMATCH", `capabilityInstances[${index}].allowedSideEffects`, "Page requests undeclared provider side effects.");
|
|
1383
1418
|
}
|
|
1384
|
-
if (!
|
|
1419
|
+
if (!legacy &&
|
|
1420
|
+
(!registration.propertySchemaRevisionRef ||
|
|
1421
|
+
!(0, exports.sameRevisionRef)(instance.propertySchemaRevisionRef, registration.propertySchemaRevisionRef))) {
|
|
1385
1422
|
throw new DeclarativeControlCompilationError("CAPABILITY_BINDING_MISMATCH", `capabilityInstances[${index}].propertySchemaRevisionRef`, "Capability properties do not pin the exact schema registered by the active Design catalog.");
|
|
1386
1423
|
}
|
|
1387
|
-
if (!
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1424
|
+
if (!legacy &&
|
|
1425
|
+
(!registration.accessPolicy ||
|
|
1426
|
+
!(0, exports.accessPolicyChainImplies)([
|
|
1427
|
+
page.pageAccessPolicy,
|
|
1428
|
+
...(instance.accessPolicy ? [instance.accessPolicy] : []),
|
|
1429
|
+
], registration.accessPolicy))) {
|
|
1391
1430
|
throw new DeclarativeControlCompilationError("AUDIENCE_WIDER_THAN_TARGET", `capabilityInstances[${index}]`, "Page access is wider than the governed capability audience.");
|
|
1392
1431
|
}
|
|
1393
1432
|
});
|
|
@@ -1589,7 +1628,7 @@ const compilePageRuntimeBundle = (input) => {
|
|
|
1589
1628
|
routeClaims,
|
|
1590
1629
|
routeStatePresentations: page.routeStatePresentations.filter((presentation) => presentation.surface === release.target.surface),
|
|
1591
1630
|
shellRevisionRef: page.shellRevisionRef,
|
|
1592
|
-
shellDescriptor,
|
|
1631
|
+
...(shellDescriptor ? { shellDescriptor } : {}),
|
|
1593
1632
|
renderTree,
|
|
1594
1633
|
capabilityInstances: page.capabilityInstances,
|
|
1595
1634
|
deniedCapabilityInstanceIds: [],
|
|
@@ -1605,12 +1644,8 @@ const compilePageRuntimeBundle = (input) => {
|
|
|
1605
1644
|
observationPolicyRevisionRef: page.observationPolicyRevisionRef,
|
|
1606
1645
|
privacyClassification: page.privacyClassification,
|
|
1607
1646
|
};
|
|
1608
|
-
return
|
|
1609
|
-
...unsigned,
|
|
1610
|
-
contentHash: (0, exports.canonicalContentHash)(unsigned),
|
|
1611
|
-
}));
|
|
1647
|
+
return { ...unsigned, contentHash: (0, exports.canonicalContentHash)(unsigned) };
|
|
1612
1648
|
};
|
|
1613
|
-
exports.compilePageRuntimeBundle = compilePageRuntimeBundle;
|
|
1614
1649
|
const workbenchDependencyRole = (kind) => {
|
|
1615
1650
|
switch (kind) {
|
|
1616
1651
|
case "workflow":
|