@inf-monkeys-tech/monkeys 1.1.18 → 1.1.20
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/esm/index.mjs +23 -3
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +23 -3
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/runtime/declarative-control-compiler.d.ts +2 -0
- package/lib/runtime/declarative-control-compiler.d.ts.map +1 -1
- package/lib/runtime/declarative-control-compiler.js +15 -1
- package/lib/runtime/declarative-control-compiler.js.map +1 -1
- package/lib/runtime/declarative-runtime-contract.d.ts.map +1 -1
- package/lib/runtime/declarative-runtime-contract.js +12 -2
- package/lib/runtime/declarative-runtime-contract.js.map +1 -1
- package/package.json +1 -1
package/lib/esm/index.mjs
CHANGED
|
@@ -24041,7 +24041,19 @@ var compilePageRuntimeBundleInternal = (input, legacy) => {
|
|
|
24041
24041
|
release.dependencySnapshot,
|
|
24042
24042
|
pageDependencies(page, compilerRevisionRef)
|
|
24043
24043
|
);
|
|
24044
|
-
|
|
24044
|
+
const verifiedSharedPageReferences = (input.verifiedSharedPageReferences ?? []).map((value, index) => {
|
|
24045
|
+
const reference = RevisionRefSchema.parse(value);
|
|
24046
|
+
const target = (input.targetRegistry ?? []).find(
|
|
24047
|
+
(candidate) => page.entryTransitions.some((entry) => sameStableRef(entry.targetRef, candidate.stableTargetRef)) && [candidate.targetRevisionRef, candidate.releaseRevisionRef].some((ref2) => ref2 && sameRevisionRef(ref2, reference))
|
|
24048
|
+
);
|
|
24049
|
+
if (release.target.surface !== "studio" || reference.visibility !== "tenant" || reference.ownerRepo !== "monkeys-server" || !["page", "page-release"].includes(reference.kind) || reference.tenantScope?.tenantRef.id !== "0" || reference.tenantScope?.teamRef?.id !== "0" || !target || target.surface !== "studio" || target.targetRevisionRef.kind !== "page" || !target.releaseRevisionRef || target.releaseRevisionRef.kind !== "page-release" || scopeKey(target.targetRevisionRef.tenantScope) !== scopeKey(reference.tenantScope) || scopeKey(target.releaseRevisionRef.tenantScope) !== scopeKey(reference.tenantScope)) throw new DeclarativeControlCompilationError(
|
|
24050
|
+
"CROSS_TENANT_REFERENCE",
|
|
24051
|
+
`verifiedSharedPageReferences[${index}]`,
|
|
24052
|
+
"Shared Studio Page references must pin an authenticated catalog target and its Release in the shared scope."
|
|
24053
|
+
);
|
|
24054
|
+
return revisionRefKey(reference);
|
|
24055
|
+
});
|
|
24056
|
+
assertDependencyScopes(release.dependencySnapshot, scope, new Set(verifiedSharedPageReferences));
|
|
24045
24057
|
const queryRegistrations = (input.domainQueryRegistry ?? []).map(
|
|
24046
24058
|
(registration, index) => {
|
|
24047
24059
|
const definitionRevisionRef = RevisionRefSchema.parse(
|
|
@@ -26704,7 +26716,7 @@ var assertCompatibleCapabilityUpgrade = (previous, next) => {
|
|
|
26704
26716
|
const manifestContract = (entry) => ({
|
|
26705
26717
|
kind: entry.manifest.kind,
|
|
26706
26718
|
runtime: { ...entry.manifest.runtime, providerBindings: entry.manifest.runtime.providerBindings.map((binding) => ({ ...binding, providerRef: { ...binding.providerRef, version: void 0 } })) },
|
|
26707
|
-
placement: entry.manifest.placement,
|
|
26719
|
+
placement: entry.manifest.placement && { ...entry.manifest.placement, slots: void 0 },
|
|
26708
26720
|
accessibility: entry.manifest.accessibility
|
|
26709
26721
|
});
|
|
26710
26722
|
if (canonicalContentHash(manifestContract(previous)) !== canonicalContentHash(manifestContract(next))) {
|
|
@@ -26712,6 +26724,14 @@ var assertCompatibleCapabilityUpgrade = (previous, next) => {
|
|
|
26712
26724
|
}
|
|
26713
26725
|
const oldRegistration = previous.declarativeRegistration;
|
|
26714
26726
|
const newRegistration = next.declarativeRegistration;
|
|
26727
|
+
for (const [oldSlots, newSlots] of [
|
|
26728
|
+
[previous.manifest.placement?.slots ?? [], next.manifest.placement?.slots ?? []],
|
|
26729
|
+
[oldRegistration.allowedSlots, newRegistration.allowedSlots]
|
|
26730
|
+
]) {
|
|
26731
|
+
if (oldSlots.some((slot) => !newSlots.includes(slot))) {
|
|
26732
|
+
throw new TypeError("Published runtime slots cannot be removed.");
|
|
26733
|
+
}
|
|
26734
|
+
}
|
|
26715
26735
|
const schema2 = (entry, reference) => {
|
|
26716
26736
|
const document = entry.schemaDocuments.find((candidate) => sameSchemaContract(candidate.schemaRevisionRef, reference));
|
|
26717
26737
|
if (!document || canonicalContentHash(document.document) !== reference.contentHash) throw new TypeError("Runtime contract schema integrity failed.");
|
|
@@ -26756,7 +26776,7 @@ var assertCompatibleCapabilityUpgrade = (previous, next) => {
|
|
|
26756
26776
|
if (canonicalContentHash(oldRegistration.actionRequirements) !== canonicalContentHash(existingActions)) {
|
|
26757
26777
|
throw new TypeError("Published output action and permission requirements changed.");
|
|
26758
26778
|
}
|
|
26759
|
-
for (const key of ["allowedSideEffects", "
|
|
26779
|
+
for (const key of ["allowedSideEffects", "supportedSurfaces", "allowedParentCapabilityRefs", "allowedChildCapabilityRefs"]) {
|
|
26760
26780
|
if (canonicalContentHash(oldRegistration[key]) !== canonicalContentHash(newRegistration[key])) throw new TypeError(`Runtime contract ${key} changed.`);
|
|
26761
26781
|
}
|
|
26762
26782
|
};
|