@inf-monkeys-tech/monkeys 1.1.19 → 1.1.21

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.
@@ -19476,7 +19476,19 @@ var compilePageRuntimeBundleInternal = (input, legacy) => {
19476
19476
  release.dependencySnapshot,
19477
19477
  pageDependencies(page, compilerRevisionRef)
19478
19478
  );
19479
- assertDependencyScopes(release.dependencySnapshot, scope);
19479
+ const verifiedSharedPageReferences = (input.verifiedSharedPageReferences ?? []).map((value, index) => {
19480
+ const reference = RevisionRefSchema.parse(value);
19481
+ const target = (input.targetRegistry ?? []).find(
19482
+ (candidate) => page.entryTransitions.some((entry) => sameStableRef(entry.targetRef, candidate.stableTargetRef)) && [candidate.targetRevisionRef, candidate.releaseRevisionRef].some((ref2) => ref2 && sameRevisionRef(ref2, reference))
19483
+ );
19484
+ 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" || scopeKey(target.targetRevisionRef.tenantScope) !== scopeKey(reference.tenantScope) || target.releaseRevisionRef && (target.releaseRevisionRef.kind !== "page-release" || !target.releaseRevisionRef.tenantScope || scopeKey(target.releaseRevisionRef.tenantScope) !== scopeKey(reference.tenantScope))) throw new DeclarativeControlCompilationError(
19485
+ "CROSS_TENANT_REFERENCE",
19486
+ `verifiedSharedPageReferences[${index}]`,
19487
+ "Shared Studio Page references must pin an authenticated catalog route target in the shared scope."
19488
+ );
19489
+ return revisionRefKey(reference);
19490
+ });
19491
+ assertDependencyScopes(release.dependencySnapshot, scope, new Set(verifiedSharedPageReferences));
19480
19492
  const queryRegistrations = (input.domainQueryRegistry ?? []).map(
19481
19493
  (registration, index) => {
19482
19494
  const definitionRevisionRef = RevisionRefSchema.parse(