@camstack/addon-post-analysis 1.2.29 → 1.2.30
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/dist/pipeline-analytics/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-BNpbrkKP.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-BKtsO4q2.mjs} +1 -1
- package/dist/pipeline-analytics/{hostInit-Cn_w2I8X.mjs → hostInit-6LxGQh1-.mjs} +1 -1
- package/dist/pipeline-analytics/index.js +16 -6
- package/dist/pipeline-analytics/index.mjs +16 -6
- package/dist/pipeline-analytics/remoteEntry.js +1 -1
- package/package.json +1 -1
|
@@ -642,12 +642,14 @@ async function ensureAlarmPanel(deps) {
|
|
|
642
642
|
name: deps.integrationName,
|
|
643
643
|
info: { fixed: true }
|
|
644
644
|
});
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
645
|
+
if (await deps.findDeviceByStableId("nc-alarm-panel") !== null) {
|
|
646
|
+
const adopted = await deps.adoptDevice({ stableId: NC_ALARM_STABLE_ID });
|
|
647
|
+
return {
|
|
648
|
+
integrationId: integration.id,
|
|
649
|
+
deviceId: adopted.id,
|
|
650
|
+
created: false
|
|
651
|
+
};
|
|
652
|
+
}
|
|
651
653
|
const device = await deps.createDevice({
|
|
652
654
|
stableId: NC_ALARM_STABLE_ID,
|
|
653
655
|
integrationId: integration.id,
|
|
@@ -22347,6 +22349,11 @@ var PipelineAnalyticsAddon = class extends require_dist.BaseAddon {
|
|
|
22347
22349
|
*/
|
|
22348
22350
|
async ensureAlarmPanel(api) {
|
|
22349
22351
|
const devices = this.ctx.kernel.devices;
|
|
22352
|
+
const nodeId = this.ctx.kernel.localNodeId;
|
|
22353
|
+
if (nodeId !== void 0 && nodeId !== "hub") {
|
|
22354
|
+
this.ctx.logger.debug("alarm panel is hub-owned — skipping on this node", { meta: { nodeId } });
|
|
22355
|
+
return;
|
|
22356
|
+
}
|
|
22350
22357
|
try {
|
|
22351
22358
|
const result = await ensureAlarmPanel({
|
|
22352
22359
|
logger: this.ctx.logger.child("alarm"),
|
|
@@ -22377,6 +22384,9 @@ var PipelineAnalyticsAddon = class extends require_dist.BaseAddon {
|
|
|
22377
22384
|
name,
|
|
22378
22385
|
integrationId
|
|
22379
22386
|
})).id };
|
|
22387
|
+
},
|
|
22388
|
+
adoptDevice: async ({ stableId }) => {
|
|
22389
|
+
return { id: (await devices.create(stableId, NC_ALARM_DEVICE_CLASS, {}, null, void 0)).id };
|
|
22380
22390
|
}
|
|
22381
22391
|
});
|
|
22382
22392
|
if (result.created) this.ctx.logger.info("notification-center alarm panel ready", { tags: { deviceId: result.deviceId } });
|
|
@@ -636,12 +636,14 @@ async function ensureAlarmPanel(deps) {
|
|
|
636
636
|
name: deps.integrationName,
|
|
637
637
|
info: { fixed: true }
|
|
638
638
|
});
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
639
|
+
if (await deps.findDeviceByStableId("nc-alarm-panel") !== null) {
|
|
640
|
+
const adopted = await deps.adoptDevice({ stableId: NC_ALARM_STABLE_ID });
|
|
641
|
+
return {
|
|
642
|
+
integrationId: integration.id,
|
|
643
|
+
deviceId: adopted.id,
|
|
644
|
+
created: false
|
|
645
|
+
};
|
|
646
|
+
}
|
|
645
647
|
const device = await deps.createDevice({
|
|
646
648
|
stableId: NC_ALARM_STABLE_ID,
|
|
647
649
|
integrationId: integration.id,
|
|
@@ -22341,6 +22343,11 @@ var PipelineAnalyticsAddon = class extends BaseAddon {
|
|
|
22341
22343
|
*/
|
|
22342
22344
|
async ensureAlarmPanel(api) {
|
|
22343
22345
|
const devices = this.ctx.kernel.devices;
|
|
22346
|
+
const nodeId = this.ctx.kernel.localNodeId;
|
|
22347
|
+
if (nodeId !== void 0 && nodeId !== "hub") {
|
|
22348
|
+
this.ctx.logger.debug("alarm panel is hub-owned — skipping on this node", { meta: { nodeId } });
|
|
22349
|
+
return;
|
|
22350
|
+
}
|
|
22344
22351
|
try {
|
|
22345
22352
|
const result = await ensureAlarmPanel({
|
|
22346
22353
|
logger: this.ctx.logger.child("alarm"),
|
|
@@ -22371,6 +22378,9 @@ var PipelineAnalyticsAddon = class extends BaseAddon {
|
|
|
22371
22378
|
name,
|
|
22372
22379
|
integrationId
|
|
22373
22380
|
})).id };
|
|
22381
|
+
},
|
|
22382
|
+
adoptDevice: async ({ stableId }) => {
|
|
22383
|
+
return { id: (await devices.create(stableId, NC_ALARM_DEVICE_CLASS, {}, null, void 0)).id };
|
|
22374
22384
|
}
|
|
22375
22385
|
});
|
|
22376
22386
|
if (result.created) this.ctx.logger.info("notification-center alarm panel ready", { tags: { deviceId: result.deviceId } });
|
|
@@ -30,7 +30,7 @@ async function d(e) {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
async function f() {
|
|
33
|
-
return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-
|
|
33
|
+
return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-BKtsO4q2.mjs")).catch((e) => {
|
|
34
34
|
throw l = void 0, e;
|
|
35
35
|
}), l;
|
|
36
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-post-analysis",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.30",
|
|
4
4
|
"description": "Post-Analysis bundle — enrichment, embedding-encoder, pipeline-analytics. Multi-entry npm package shipping addons that consume pipeline output.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|