@inf-monkeys-tech/monkeys 1.1.4 → 1.1.6
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 +109122 -68294
- 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 +2237 -1743
- package/lib/contracts/declarative-control.d.ts.map +1 -1
- package/lib/contracts/declarative-control.js +89 -6
- package/lib/contracts/declarative-control.js.map +1 -1
- package/lib/contracts/page-expression.d.ts +1 -0
- package/lib/contracts/page-expression.d.ts.map +1 -1
- package/lib/contracts/page-expression.js +1 -1
- package/lib/contracts/page-expression.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 +96 -9
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +184 -61
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +178 -61
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +95 -9
- 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/overlay-node.schema.json +2 -1
- package/lib/json-schema/page-release.schema.json +1 -0
- package/lib/json-schema/page-runtime-bundle.schema.json +22 -1
- package/lib/json-schema/page.schema.json +21 -1
- package/lib/json-schema/render-node.schema.json +2 -1
- package/lib/json-schema/render-tree.schema.json +2 -1
- 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 +67 -39
- package/lib/runtime/declarative-control-compiler.js.map +1 -1
- package/lib/runtime/page-expression.d.ts.map +1 -1
- package/lib/runtime/page-expression.js +11 -1
- package/lib/runtime/page-expression.js.map +1 -1
- package/lib/schemas/index.d.ts +254 -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
|
@@ -404,6 +404,7 @@
|
|
|
404
404
|
"capability",
|
|
405
405
|
"provider",
|
|
406
406
|
"ontology-definition",
|
|
407
|
+
"projection-spec",
|
|
407
408
|
"query-definition",
|
|
408
409
|
"view",
|
|
409
410
|
"projection",
|
|
@@ -8623,6 +8624,25 @@
|
|
|
8623
8624
|
"type": "string",
|
|
8624
8625
|
"const": "render-forbidden"
|
|
8625
8626
|
},
|
|
8627
|
+
"draftRetention": {
|
|
8628
|
+
"type": "object",
|
|
8629
|
+
"properties": {
|
|
8630
|
+
"identityParameters": {
|
|
8631
|
+
"minItems": 1,
|
|
8632
|
+
"maxItems": 32,
|
|
8633
|
+
"type": "array",
|
|
8634
|
+
"items": {
|
|
8635
|
+
"type": "string",
|
|
8636
|
+
"minLength": 1,
|
|
8637
|
+
"maxLength": 256
|
|
8638
|
+
}
|
|
8639
|
+
}
|
|
8640
|
+
},
|
|
8641
|
+
"required": [
|
|
8642
|
+
"identityParameters"
|
|
8643
|
+
],
|
|
8644
|
+
"additionalProperties": false
|
|
8645
|
+
},
|
|
8626
8646
|
"resultStateBindings": {
|
|
8627
8647
|
"maxItems": 32,
|
|
8628
8648
|
"type": "array",
|
|
@@ -12212,7 +12232,8 @@
|
|
|
12212
12232
|
"slice",
|
|
12213
12233
|
"trim",
|
|
12214
12234
|
"fixed",
|
|
12215
|
-
"number-format"
|
|
12235
|
+
"number-format",
|
|
12236
|
+
"encode-uri-component"
|
|
12216
12237
|
]
|
|
12217
12238
|
},
|
|
12218
12239
|
"arguments": {
|
|
@@ -6035,6 +6035,25 @@
|
|
|
6035
6035
|
"type": "string",
|
|
6036
6036
|
"const": "render-forbidden"
|
|
6037
6037
|
},
|
|
6038
|
+
"draftRetention": {
|
|
6039
|
+
"type": "object",
|
|
6040
|
+
"properties": {
|
|
6041
|
+
"identityParameters": {
|
|
6042
|
+
"minItems": 1,
|
|
6043
|
+
"maxItems": 32,
|
|
6044
|
+
"type": "array",
|
|
6045
|
+
"items": {
|
|
6046
|
+
"type": "string",
|
|
6047
|
+
"minLength": 1,
|
|
6048
|
+
"maxLength": 256
|
|
6049
|
+
}
|
|
6050
|
+
}
|
|
6051
|
+
},
|
|
6052
|
+
"required": [
|
|
6053
|
+
"identityParameters"
|
|
6054
|
+
],
|
|
6055
|
+
"additionalProperties": false
|
|
6056
|
+
},
|
|
6038
6057
|
"execution": {
|
|
6039
6058
|
"default": "server",
|
|
6040
6059
|
"type": "string",
|
|
@@ -7989,7 +8008,8 @@
|
|
|
7989
8008
|
"slice",
|
|
7990
8009
|
"trim",
|
|
7991
8010
|
"fixed",
|
|
7992
|
-
"number-format"
|
|
8011
|
+
"number-format",
|
|
8012
|
+
"encode-uri-component"
|
|
7993
8013
|
]
|
|
7994
8014
|
},
|
|
7995
8015
|
"arguments": {
|
|
@@ -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,EACjB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAE5B,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AACrE,MAAM,MAAM,sCAAsC,GAC9C,4BAA4B,GAC5B,6BAA6B,GAC7B,gCAAgC,GAChC,6BAA6B,GAC7B,wBAAwB,GACxB,oBAAoB,GACpB,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AChC;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,
|
|
@@ -1261,8 +1275,18 @@ const resolvePage = (input) => {
|
|
|
1261
1275
|
return declarative_control_1.ResolvedPageSchema.parse(resolved);
|
|
1262
1276
|
};
|
|
1263
1277
|
exports.resolvePage = resolvePage;
|
|
1264
|
-
|
|
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) => {
|
|
1265
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
|
+
}
|
|
1266
1290
|
const page = {
|
|
1267
1291
|
...parsedPage,
|
|
1268
1292
|
routeStatePresentations: parsedPage.routeStatePresentations ?? [],
|
|
@@ -1321,27 +1345,31 @@ const compilePageRuntimeBundle = (input) => {
|
|
|
1321
1345
|
}
|
|
1322
1346
|
requireDependencies(release.dependencySnapshot, domainQueryDependencies(definition));
|
|
1323
1347
|
});
|
|
1324
|
-
const
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
shellRegistration.
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
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
|
+
})();
|
|
1345
1373
|
if (page.renderTree.nodes.length > input.limits.maxRenderNodes)
|
|
1346
1374
|
throw new DeclarativeControlCompilationError("RENDER_NODE_LIMIT_EXCEEDED", "page.renderTree.nodes", "RenderTree exceeds the caller-approved node limit.");
|
|
1347
1375
|
if (renderTreeDepth(page.renderTree) > input.limits.maxRenderDepth)
|
|
@@ -1388,13 +1416,17 @@ const compilePageRuntimeBundle = (input) => {
|
|
|
1388
1416
|
if (instance.allowedSideEffects.some((sideEffect) => !registration.allowedSideEffects.includes(sideEffect))) {
|
|
1389
1417
|
throw new DeclarativeControlCompilationError("CAPABILITY_BINDING_MISMATCH", `capabilityInstances[${index}].allowedSideEffects`, "Page requests undeclared provider side effects.");
|
|
1390
1418
|
}
|
|
1391
|
-
if (!
|
|
1419
|
+
if (!legacy &&
|
|
1420
|
+
(!registration.propertySchemaRevisionRef ||
|
|
1421
|
+
!(0, exports.sameRevisionRef)(instance.propertySchemaRevisionRef, registration.propertySchemaRevisionRef))) {
|
|
1392
1422
|
throw new DeclarativeControlCompilationError("CAPABILITY_BINDING_MISMATCH", `capabilityInstances[${index}].propertySchemaRevisionRef`, "Capability properties do not pin the exact schema registered by the active Design catalog.");
|
|
1393
1423
|
}
|
|
1394
|
-
if (!
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1424
|
+
if (!legacy &&
|
|
1425
|
+
(!registration.accessPolicy ||
|
|
1426
|
+
!(0, exports.accessPolicyChainImplies)([
|
|
1427
|
+
page.pageAccessPolicy,
|
|
1428
|
+
...(instance.accessPolicy ? [instance.accessPolicy] : []),
|
|
1429
|
+
], registration.accessPolicy))) {
|
|
1398
1430
|
throw new DeclarativeControlCompilationError("AUDIENCE_WIDER_THAN_TARGET", `capabilityInstances[${index}]`, "Page access is wider than the governed capability audience.");
|
|
1399
1431
|
}
|
|
1400
1432
|
});
|
|
@@ -1596,7 +1628,7 @@ const compilePageRuntimeBundle = (input) => {
|
|
|
1596
1628
|
routeClaims,
|
|
1597
1629
|
routeStatePresentations: page.routeStatePresentations.filter((presentation) => presentation.surface === release.target.surface),
|
|
1598
1630
|
shellRevisionRef: page.shellRevisionRef,
|
|
1599
|
-
shellDescriptor,
|
|
1631
|
+
...(shellDescriptor ? { shellDescriptor } : {}),
|
|
1600
1632
|
renderTree,
|
|
1601
1633
|
capabilityInstances: page.capabilityInstances,
|
|
1602
1634
|
deniedCapabilityInstanceIds: [],
|
|
@@ -1612,12 +1644,8 @@ const compilePageRuntimeBundle = (input) => {
|
|
|
1612
1644
|
observationPolicyRevisionRef: page.observationPolicyRevisionRef,
|
|
1613
1645
|
privacyClassification: page.privacyClassification,
|
|
1614
1646
|
};
|
|
1615
|
-
return
|
|
1616
|
-
...unsigned,
|
|
1617
|
-
contentHash: (0, exports.canonicalContentHash)(unsigned),
|
|
1618
|
-
}));
|
|
1647
|
+
return { ...unsigned, contentHash: (0, exports.canonicalContentHash)(unsigned) };
|
|
1619
1648
|
};
|
|
1620
|
-
exports.compilePageRuntimeBundle = compilePageRuntimeBundle;
|
|
1621
1649
|
const workbenchDependencyRole = (kind) => {
|
|
1622
1650
|
switch (kind) {
|
|
1623
1651
|
case "workflow":
|