@inf-monkeys-tech/monkeys 1.1.18 → 1.1.19
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 +10 -2
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +10 -2
- package/lib/esm/runtime/index.mjs.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
|
@@ -26704,7 +26704,7 @@ var assertCompatibleCapabilityUpgrade = (previous, next) => {
|
|
|
26704
26704
|
const manifestContract = (entry) => ({
|
|
26705
26705
|
kind: entry.manifest.kind,
|
|
26706
26706
|
runtime: { ...entry.manifest.runtime, providerBindings: entry.manifest.runtime.providerBindings.map((binding) => ({ ...binding, providerRef: { ...binding.providerRef, version: void 0 } })) },
|
|
26707
|
-
placement: entry.manifest.placement,
|
|
26707
|
+
placement: entry.manifest.placement && { ...entry.manifest.placement, slots: void 0 },
|
|
26708
26708
|
accessibility: entry.manifest.accessibility
|
|
26709
26709
|
});
|
|
26710
26710
|
if (canonicalContentHash(manifestContract(previous)) !== canonicalContentHash(manifestContract(next))) {
|
|
@@ -26712,6 +26712,14 @@ var assertCompatibleCapabilityUpgrade = (previous, next) => {
|
|
|
26712
26712
|
}
|
|
26713
26713
|
const oldRegistration = previous.declarativeRegistration;
|
|
26714
26714
|
const newRegistration = next.declarativeRegistration;
|
|
26715
|
+
for (const [oldSlots, newSlots] of [
|
|
26716
|
+
[previous.manifest.placement?.slots ?? [], next.manifest.placement?.slots ?? []],
|
|
26717
|
+
[oldRegistration.allowedSlots, newRegistration.allowedSlots]
|
|
26718
|
+
]) {
|
|
26719
|
+
if (oldSlots.some((slot) => !newSlots.includes(slot))) {
|
|
26720
|
+
throw new TypeError("Published runtime slots cannot be removed.");
|
|
26721
|
+
}
|
|
26722
|
+
}
|
|
26715
26723
|
const schema2 = (entry, reference) => {
|
|
26716
26724
|
const document = entry.schemaDocuments.find((candidate) => sameSchemaContract(candidate.schemaRevisionRef, reference));
|
|
26717
26725
|
if (!document || canonicalContentHash(document.document) !== reference.contentHash) throw new TypeError("Runtime contract schema integrity failed.");
|
|
@@ -26756,7 +26764,7 @@ var assertCompatibleCapabilityUpgrade = (previous, next) => {
|
|
|
26756
26764
|
if (canonicalContentHash(oldRegistration.actionRequirements) !== canonicalContentHash(existingActions)) {
|
|
26757
26765
|
throw new TypeError("Published output action and permission requirements changed.");
|
|
26758
26766
|
}
|
|
26759
|
-
for (const key of ["allowedSideEffects", "
|
|
26767
|
+
for (const key of ["allowedSideEffects", "supportedSurfaces", "allowedParentCapabilityRefs", "allowedChildCapabilityRefs"]) {
|
|
26760
26768
|
if (canonicalContentHash(oldRegistration[key]) !== canonicalContentHash(newRegistration[key])) throw new TypeError(`Runtime contract ${key} changed.`);
|
|
26761
26769
|
}
|
|
26762
26770
|
};
|