@camstack/server 1.1.3 → 1.1.4
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.
|
@@ -2396,6 +2396,10 @@ class AddonRegistryService {
|
|
|
2396
2396
|
// relative `camstack-data` made the settings DB escape the mounted
|
|
2397
2397
|
// data dir in container deployments.
|
|
2398
2398
|
path.join(process.env.CAMSTACK_DATA ?? 'camstack-data', 'addons-data', addonId);
|
|
2399
|
+
// Node-local data ROOT — the centralized anchor for internal per-node dirs
|
|
2400
|
+
// (models, logs). `CAMSTACK_DATA` ?? the hub's default data dir. Mirrors the
|
|
2401
|
+
// kernel addon-context-factory; never the hub-singleton `storage` cap.
|
|
2402
|
+
const nodeDataDir = path.resolve(process.env.CAMSTACK_DATA ?? 'camstack-data');
|
|
2399
2403
|
const registerProvider = (capabilityName, provider) => {
|
|
2400
2404
|
this.capabilityRegistry.registerProvider(capabilityName, addonId, provider);
|
|
2401
2405
|
logger.info('Registered provider via context.registerProvider()', {
|
|
@@ -2453,6 +2457,7 @@ class AddonRegistryService {
|
|
|
2453
2457
|
eventBus: this.eventBusService,
|
|
2454
2458
|
addonConfig: bootstrapConfig,
|
|
2455
2459
|
dataDir,
|
|
2460
|
+
nodeDataDir,
|
|
2456
2461
|
get api() {
|
|
2457
2462
|
return registry.getBrokerApi();
|
|
2458
2463
|
},
|