@camstack/server 1.2.149 → 1.2.151
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.
|
@@ -735,6 +735,15 @@ class AddonRegistryService {
|
|
|
735
735
|
meta: { addonIds: isolatedInfraIds },
|
|
736
736
|
});
|
|
737
737
|
await spawnRunnerPlan(this.buildAddonGroupPlan(isolatedInfraIds));
|
|
738
|
+
// Spawn returns when the child exists, not when UDS has registered
|
|
739
|
+
// `data-store-provider`. 1.2.150 proxied the handshake (D233) and
|
|
740
|
+
// still skipped every in-process builtin — device-manager included —
|
|
741
|
+
// because this wait was missing (D231 incomplete).
|
|
742
|
+
await (0, system_1.waitUntilReady)(() => this.capabilityRegistry.getCollection('data-store-provider').length > 0, {
|
|
743
|
+
timeoutMs: 30_000,
|
|
744
|
+
intervalMs: 50,
|
|
745
|
+
what: 'isolated data-store-provider engine',
|
|
746
|
+
});
|
|
738
747
|
}
|
|
739
748
|
await spawnRunnerPlan(this.buildAddonGroupPlan(allIds.filter((id) => !isolatedBuiltins.has(id))));
|
|
740
749
|
// In-process boot for `@camstack/system` builtins. Core builtins stay
|
|
@@ -767,17 +767,26 @@ class MoleculerService {
|
|
|
767
767
|
// re-handshaking), so the rule resolves the same key on both sides.
|
|
768
768
|
const registryKeyFor = (addonId) => isLocalChild ? addonId : `${addonId}@${nodeId}`;
|
|
769
769
|
// Collect the `(registryKey, capName)` pairs a manifest would APPLY —
|
|
770
|
-
// applying the SAME
|
|
771
|
-
//
|
|
772
|
-
//
|
|
770
|
+
// applying the SAME infra skip and `capDef` existence check the
|
|
771
|
+
// register block below uses, so the set reflects exactly what is
|
|
772
|
+
// (or would have been) registered. Keyed `${registryKey}::${capName}`.
|
|
773
773
|
// The resolved `capDef` is carried through so the register loop never
|
|
774
774
|
// re-looks it up (and never needs a non-null assertion).
|
|
775
|
+
//
|
|
776
|
+
// Infra caps (`data-store-provider`, `storage-provider`, …) used to be
|
|
777
|
+
// skipped for EVERY handshake. That was right for a remote agent — the
|
|
778
|
+
// hub collection is this node's engine, and a second sqlite would make
|
|
779
|
+
// the door refuse (D44). It is wrong for a hub-local child: sqlite-settings
|
|
780
|
+
// isolate (D231) IS this node's engine, and skipping it leaves
|
|
781
|
+
// `getCollection` empty. Hub-local children are proxied; remote nodes
|
|
782
|
+
// are not (D233).
|
|
783
|
+
const skipInfraFromRemote = (capName) => (0, system_1.isInfraCapability)(capName) && !isLocalChild;
|
|
775
784
|
const appliedKeys = (manifest) => {
|
|
776
785
|
const keys = new Map();
|
|
777
786
|
for (const addon of manifest) {
|
|
778
787
|
const registryKey = registryKeyFor(addon.addonId);
|
|
779
788
|
for (const capName of addon.capabilities) {
|
|
780
|
-
if ((
|
|
789
|
+
if (skipInfraFromRemote(capName))
|
|
781
790
|
continue;
|
|
782
791
|
const capDef = registry.getDefinition(capName);
|
|
783
792
|
if (!capDef)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.151",
|
|
4
4
|
"private": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@camstack/addon-pipeline-orchestrator": "1.2.104",
|
|
43
43
|
"@camstack/addon-post-analysis": "1.2.118",
|
|
44
44
|
"@camstack/sdk": "1.2.30",
|
|
45
|
-
"@camstack/system": "1.2.
|
|
45
|
+
"@camstack/system": "1.2.120",
|
|
46
46
|
"@camstack/types": "1.2.102",
|
|
47
47
|
"@camstack/ui-library": "1.2.70",
|
|
48
48
|
"@fastify/compress": "^9.0.0",
|