@astrale-os/kernel-protocol 0.5.0-beta.46 → 0.5.0-beta.47

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.
@@ -119,9 +119,11 @@ export function validateRequirements(root, closure, requirements) {
119
119
  fail('PUBLICATION_INVALID', 'Core capability subject must name one local Core Identity.');
120
120
  }
121
121
  for (const callable of requirement.functions ?? []) {
122
- const dependency = capabilityOwner(root, dependencies, callable, 'Function');
123
- if (!hasCallable(dependency, callable)) {
124
- fail('PUBLICATION_INVALID', 'Core capability Function requirement names an unknown dependency callable.');
122
+ const owner = Key.origin(callable) === root.origin
123
+ ? root
124
+ : capabilityOwner(root, dependencies, callable, 'Function');
125
+ if (!hasCallable(owner, callable)) {
126
+ fail('PUBLICATION_INVALID', 'Core capability Function requirement names an unknown or non-executable callable.');
125
127
  }
126
128
  }
127
129
  for (const classRequirement of requirement.classes ?? []) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/kernel-protocol",
3
- "version": "0.5.0-beta.46",
3
+ "version": "0.5.0-beta.47",
4
4
  "description": "Portable Astrale invocation, publication, installation, routing, and issuer protocols",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -137,8 +137,8 @@
137
137
  "access": "public"
138
138
  },
139
139
  "dependencies": {
140
- "@astrale-os/kernel-core": "0.9.0-beta.42",
141
- "@astrale-os/kernel-dsl": "0.2.0-beta.30",
140
+ "@astrale-os/kernel-core": "0.9.0-beta.43",
141
+ "@astrale-os/kernel-dsl": "0.2.0-beta.31",
142
142
  "@noble/hashes": "2.3.0"
143
143
  },
144
144
  "devDependencies": {