@yarkivaev/scada 2.17.0 → 2.19.0
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/index.js +14 -2
- package/package.json +5 -2
- package/src/application/cycleTimelineFetch.js +56 -0
- package/src/application/deploy/collectorSourcePlan.js +97 -0
- package/src/application/deploy/compileCollectorTasks.js +31 -0
- package/src/application/deploy/compileControlCatalog.js +66 -0
- package/src/application/deploy/controlPlan.js +16 -0
- package/src/application/deploy/controlPlaneConfiguration.js +62 -0
- package/src/application/deploy/controlReaderSpecs.js +37 -0
- package/src/application/deploy/edgeDescriptors.js +31 -0
- package/src/application/deploy/fieldbusSourcePlan.js +79 -0
- package/src/application/deploy/liveReleaseOverlay.js +17 -0
- package/src/application/deploy/plantBindingProfile.js +24 -0
- package/src/application/deploy/projectControlPlane.js +48 -0
- package/src/application/deploy/projectTopology.js +41 -0
- package/src/application/deploy/topologyGraph.js +81 -0
- package/src/application/edgeOperatorCatalog.js +9 -7
- package/src/application/mcp/analyticsMcpPort.js +20 -0
- package/src/application/mcp/analyticsNamespaceNodes.js +29 -0
- package/src/application/mcp/analyticsTextContent.js +13 -0
- package/src/application/mcp/plantReadPorts.js +168 -0
- package/src/application/mcp/textContentCatalog.js +7 -0
- package/src/application/operationPrefixes.js +67 -0
- package/src/application/operatorCatalogView.js +8 -0
- package/src/application/projectPlantShops.js +17 -0
- package/src/application/runtime/collectorDslManifest.js +44 -0
- package/src/application/runtime/collectorLaunch.js +34 -0
- package/src/application/runtime/collectorOptions.js +21 -0
- package/src/application/runtime/controlDeliveryEnvironment.js +19 -0
- package/src/application/runtime/embeddedCollectors.js +6 -0
- package/src/application/runtime/index.js +7 -1
- package/src/application/runtime/pagedDelivery.js +87 -0
- package/src/application/runtime/resolveSecrets.js +9 -0
- package/src/application/siteOperatorCatalog.js +8 -7
- package/src/application/siteRuntime/checkpointedOperationPoll.js +77 -0
- package/src/application/siteRuntime/cutoverOperations.js +25 -0
- package/src/application/siteRuntime/databaseMigrations.js +27 -0
- package/src/application/siteRuntime/edgeMetricsStore.js +35 -0
- package/src/application/siteRuntime/history.js +29 -0
- package/src/application/siteRuntime/index.js +16 -0
- package/src/application/siteRuntime/measurementTopic.js +9 -0
- package/src/application/siteRuntime/operationFederation.js +15 -0
- package/src/application/siteRuntime/operationSnapshot.js +18 -0
- package/src/application/siteRuntime/operatorField.js +49 -0
- package/src/application/siteRuntime/operatorUpdates.js +37 -0
- package/src/application/siteRuntime/telemetry.js +31 -0
- package/src/application/siteRuntime/telemetryBackfillCommand.js +64 -0
- package/src/application/timelineMetrics.js +36 -0
- package/src/domain/timeline/cyclePhases.js +191 -0
- package/src/infrastructure/deploy/brokerFleetPolicy.js +91 -0
- package/src/infrastructure/deploy/brokerReplicaTopology.js +34 -12
- package/src/infrastructure/deploy/brokerSecurity.js +89 -0
- package/src/infrastructure/deploy/brokerSecurityInput.js +85 -0
- package/src/infrastructure/deploy/brokerTopology.js +125 -0
- package/src/infrastructure/deploy/centralTelemetry.js +51 -0
- package/src/infrastructure/deploy/clickhouseTelemetryPolicy.js +64 -0
- package/src/infrastructure/deploy/collectorChartPlan.js +68 -0
- package/src/infrastructure/deploy/configuredArchivePlan.js +25 -0
- package/src/infrastructure/deploy/configuredBrokerRoutes.js +34 -0
- package/src/infrastructure/deploy/configuredClassification.js +74 -0
- package/src/infrastructure/deploy/configuredControlPlane.js +116 -0
- package/src/infrastructure/deploy/configuredDeploymentCredentials.js +45 -0
- package/src/infrastructure/deploy/configuredEtcdInventory.js +30 -0
- package/src/infrastructure/deploy/configuredHistorySeed.js +54 -0
- package/src/infrastructure/deploy/configuredPostgresMaintenance.js +23 -0
- package/src/infrastructure/deploy/configuredRuntimeCapabilities.js +14 -0
- package/src/infrastructure/deploy/configuredSiteAssets.js +50 -0
- package/src/infrastructure/deploy/configuredStagedDeployment.js +48 -0
- package/src/infrastructure/deploy/databaseSecurity.js +39 -0
- package/src/infrastructure/deploy/deploymentRecovery.js +49 -0
- package/src/infrastructure/deploy/deploymentTemplate.js +67 -0
- package/src/infrastructure/deploy/executeConfiguredChartDeployment.js +65 -0
- package/src/infrastructure/deploy/executeManagedDeployment.js +46 -0
- package/src/infrastructure/deploy/highAvailability/brokerOwnership.js +19 -0
- package/src/infrastructure/deploy/highAvailability/catalogReconciler.js +61 -0
- package/src/infrastructure/deploy/highAvailability/classifyFederation.js +57 -0
- package/src/infrastructure/deploy/highAvailability/classifyGate.js +114 -0
- package/src/infrastructure/deploy/highAvailability/classifyLoop.js +139 -0
- package/src/infrastructure/deploy/highAvailability/classifyShovels.js +70 -0
- package/src/infrastructure/deploy/highAvailability/classifyWatermark.js +45 -0
- package/src/infrastructure/deploy/highAvailability/compileClassifierRules.js +21 -0
- package/src/infrastructure/deploy/highAvailability/configuredBrokerReconciliation.js +21 -0
- package/src/infrastructure/deploy/highAvailability/controllerReconcile.js +14 -0
- package/src/infrastructure/deploy/highAvailability/historyReceiver.js +49 -0
- package/src/infrastructure/deploy/highAvailability/historyWatermark.js +42 -0
- package/src/infrastructure/deploy/highAvailability/index.js +15 -0
- package/src/infrastructure/deploy/highAvailability/reconcileBrokerThroughController.js +18 -0
- package/src/infrastructure/deploy/highAvailability/reconciliationBundle.js +28 -0
- package/src/infrastructure/deploy/highAvailability/segmentAdmit.js +24 -0
- package/src/infrastructure/deploy/highAvailability/segmentPublish.js +27 -0
- package/src/infrastructure/deploy/highAvailability/supervisorReplica.js +36 -0
- package/src/infrastructure/deploy/index.js +46 -2
- package/src/infrastructure/deploy/mixedStoreHistory.js +27 -0
- package/src/infrastructure/deploy/projectClassification.js +42 -0
- package/src/infrastructure/deploy/publicBrokerPlan.js +15 -0
- package/src/infrastructure/deploy/securityPolicy.js +16 -0
- package/src/infrastructure/deploy/siteBrokerDefinitions.js +97 -0
- package/src/infrastructure/deploy/stagedSitePlan.js +132 -0
- package/src/infrastructure/deploy/supervisedServicePlan.js +82 -0
- package/src/infrastructure/http/edge/attachClassify.js +30 -0
- package/src/infrastructure/http/edge/classifyProxy.js +72 -0
- package/src/infrastructure/http/edge/classifyRecord.js +32 -0
- package/src/infrastructure/http/edge/classifyRouting.js +14 -0
- package/src/infrastructure/http/edge/siteAccess.js +7 -0
- package/src/infrastructure/http/edge/writeGuard.js +84 -0
- package/src/infrastructure/http/plant/routes/machineOperationList.js +18 -0
- package/src/infrastructure/http/plant/routes/operationRoute.js +2 -11
- package/src/infrastructure/http/plant/routes/operatorRoute.js +25 -0
- package/src/infrastructure/http/plant/streams/operationStream.js +25 -37
- package/src/infrastructure/ingest/mqtt/modbusDeviceSpec.js +5 -28
- package/src/infrastructure/ingest/mqtt/registerPoint.js +2 -2
- package/src/infrastructure/ingest/telemetry/centralPolicy.js +29 -8
- package/src/infrastructure/management/kiosk/kioskDeployment.js +60 -0
- package/src/infrastructure/mdmesh/adminReconciliation.js +19 -0
- package/src/infrastructure/mdmesh/bootstrapMdmeshCredentials.js +47 -0
- package/src/infrastructure/mdmesh/controllerOperation.js +17 -0
- package/src/infrastructure/mdmesh/index.js +5 -0
- package/src/infrastructure/mdmesh/mdmeshServerRelease.js +58 -0
- package/src/infrastructure/mdmesh/publishApk.js +30 -0
- package/src/infrastructure/messaging/rabbitmq/definitions.js +12 -6
- package/src/infrastructure/opcua/projectSources.js +36 -0
- package/src/infrastructure/persistence/clickhouse/metricBursts.js +73 -0
- package/src/infrastructure/persistence/pg/cyclePhaseQuery.js +168 -0
- package/src/infrastructure/persistence/pg/cyclePrior.js +96 -0
- package/src/infrastructure/persistence/pg/operatorFieldStore.js +50 -0
- package/src/infrastructure/streams/boundedTextFrames.js +27 -0
- package/src/infrastructure/streams/framedSerialSource.js +25 -0
- package/src/infrastructure/streams/index.js +5 -0
- package/src/infrastructure/streams/namedSerialDevices.js +26 -0
- package/src/infrastructure/streams/serialLine.js +26 -0
- package/src/infrastructure/streams/watchCurrentReading.js +31 -0
- package/src/infrastructure/streams/windowPublication.js +73 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import freezeDeploymentDocument from './frozen.js';
|
|
2
|
+
|
|
3
|
+
function node(kind, parent, id, title, { silence, binding }) {
|
|
4
|
+
return Object.freeze({ ...(binding && { binding }), kind, parent, path: parent ? `${parent}/${id}` : id, silence, title });
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function metricNodes(machine, parent, topics, silence) {
|
|
8
|
+
return Object.entries(topics).flatMap(([source, template]) => {
|
|
9
|
+
return (machine.sensors?.[source] ?? []).map((sensor) => {
|
|
10
|
+
const values = { ...machine, ...sensor };
|
|
11
|
+
const topic = template.replace(/\{(?<field>\w+)\}/gu, (token, key) => {
|
|
12
|
+
if (!Object.hasOwn(values, key)) { throw new TypeError(`Unknown topology binding field ${key}`); }
|
|
13
|
+
return String(values[key]);
|
|
14
|
+
});
|
|
15
|
+
return node('metric', parent, sensor.key, sensor.label,
|
|
16
|
+
{ silence, binding: Object.freeze({ topic, unit: sensor.unit }) });
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** Project a plant topology and a flat namespace using declared sensor binding templates. */
|
|
22
|
+
export default function projectTopology(document, topics = {}) {
|
|
23
|
+
const { sensorProfiles, silenceSeconds, ...layout } = freezeDeploymentDocument(document);
|
|
24
|
+
const machines = layout.machines.map(({ sensorProfile, ...machine }) => {
|
|
25
|
+
return Object.freeze({ ...machine, ...(sensorProfile && { sensors: sensorProfiles?.[sensorProfile] }) });
|
|
26
|
+
});
|
|
27
|
+
const projected = Object.freeze({ ...layout, machines: Object.freeze(machines) });
|
|
28
|
+
return {
|
|
29
|
+
topology() { return projected; },
|
|
30
|
+
namespace() {
|
|
31
|
+
return Object.freeze([
|
|
32
|
+
node('plant', '', layout.plant, layout.title, { silence: silenceSeconds }),
|
|
33
|
+
...layout.shops.map(({ id, label }) => { return node('shop', layout.plant, id, label, { silence: silenceSeconds }); }),
|
|
34
|
+
...machines.flatMap((machine) => {
|
|
35
|
+
const equipment = node(machine.kind, `${layout.plant}/${machine.shop}`, machine.id, machine.label, { silence: silenceSeconds });
|
|
36
|
+
return [equipment, ...metricNodes(machine, equipment.path, topics, silenceSeconds)];
|
|
37
|
+
})
|
|
38
|
+
]);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Project the configured topology onto the SCADA graph contract.
|
|
3
|
+
*
|
|
4
|
+
* @param {object} layout - layout
|
|
5
|
+
* @param {string} [version] - optional package or env version
|
|
6
|
+
* @returns {object} { plant, nodes, links }
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* topologyGraph(layout);
|
|
10
|
+
*/
|
|
11
|
+
function shopNodes(layout) {
|
|
12
|
+
return layout.shops.map((area) => {
|
|
13
|
+
return { id: area.id, kind: 'shop', title: area.label, status: 'unknown' };
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function machineNode(entry) {
|
|
18
|
+
const node = {
|
|
19
|
+
id: entry.id,
|
|
20
|
+
kind: 'machine',
|
|
21
|
+
title: entry.label,
|
|
22
|
+
parent: entry.shop,
|
|
23
|
+
status: 'unknown'
|
|
24
|
+
};
|
|
25
|
+
if (entry.inspect) {
|
|
26
|
+
node.inspect = entry.inspect;
|
|
27
|
+
}
|
|
28
|
+
return node;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function sensorNodes(entry) {
|
|
32
|
+
if (!entry.sensors) {
|
|
33
|
+
return { nodes: [], links: [] };
|
|
34
|
+
}
|
|
35
|
+
const nodes = [];
|
|
36
|
+
const links = [];
|
|
37
|
+
Object.keys(entry.sensors).forEach((key) => {
|
|
38
|
+
const id = `${entry.id}-${key}`;
|
|
39
|
+
nodes.push({ id, kind: 'collector', title: key, parent: entry.id, status: 'unknown' });
|
|
40
|
+
links.push({ from: entry.id, to: id, kind: 'contains' });
|
|
41
|
+
});
|
|
42
|
+
return { nodes, links };
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function collectorNodes(layout) {
|
|
46
|
+
const nodes = [];
|
|
47
|
+
const links = [];
|
|
48
|
+
(layout.collectors || []).forEach((item) => {
|
|
49
|
+
nodes.push({
|
|
50
|
+
id: item.id,
|
|
51
|
+
kind: 'collector',
|
|
52
|
+
title: item.title,
|
|
53
|
+
parent: item.shop,
|
|
54
|
+
status: 'unknown'
|
|
55
|
+
});
|
|
56
|
+
item.feeds.forEach((machineId) => {
|
|
57
|
+
links.push({ from: item.id, to: machineId, kind: 'feeds' });
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
return { nodes, links };
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export default function topologyGraph(layout, version) {
|
|
64
|
+
const plant = { id: layout.plant, title: layout.title };
|
|
65
|
+
if (version) {
|
|
66
|
+
plant.version = version;
|
|
67
|
+
}
|
|
68
|
+
const nodes = [...shopNodes(layout)];
|
|
69
|
+
const links = [];
|
|
70
|
+
layout.machines.forEach((entry) => {
|
|
71
|
+
nodes.push(machineNode(entry));
|
|
72
|
+
links.push({ from: entry.shop, to: entry.id, kind: 'contains' });
|
|
73
|
+
const nested = sensorNodes(entry);
|
|
74
|
+
nodes.push(...nested.nodes);
|
|
75
|
+
links.push(...nested.links);
|
|
76
|
+
});
|
|
77
|
+
const extra = collectorNodes(layout);
|
|
78
|
+
nodes.push(...extra.nodes);
|
|
79
|
+
links.push(...extra.links);
|
|
80
|
+
return { plant, nodes, links };
|
|
81
|
+
}
|
|
@@ -3,7 +3,8 @@ import centralOperators from '../infrastructure/operators/centralOperators.js';
|
|
|
3
3
|
import operatorsSync from '../infrastructure/operators/operatorsSync.js';
|
|
4
4
|
import edgeOperators from '../infrastructure/operators/edgeOperators.js';
|
|
5
5
|
import stateHttpClient from '../infrastructure/http/edge/stateHttpClient.js';
|
|
6
|
-
import
|
|
6
|
+
import operatorCatalogView from './operatorCatalogView.js';
|
|
7
|
+
import { centralOperatorsUpdate, edgeOperatorsUpdate } from './siteRuntime/operatorUpdates.js';
|
|
7
8
|
|
|
8
9
|
const DEFAULT_SYNC_INTERVAL_SEC = 30;
|
|
9
10
|
|
|
@@ -27,19 +28,20 @@ function syncIntervalMs(env) {
|
|
|
27
28
|
* @example
|
|
28
29
|
* edgeOperatorCatalog('/api/v1', process.env);
|
|
29
30
|
*/
|
|
30
|
-
export default function edgeOperatorCatalog(basePath, env) {
|
|
31
|
+
export default function edgeOperatorCatalog(basePath, env, { update = false, ...extensions } = {}) {
|
|
31
32
|
const cache = operators();
|
|
33
|
+
const createProvider = update ? edgeOperatorsUpdate : edgeOperators;
|
|
34
|
+
const createSource = update ? centralOperatorsUpdate : centralOperators;
|
|
32
35
|
const centralUrl = env.CENTRAL_PLANT_URL;
|
|
33
36
|
if (!centralUrl) {
|
|
34
|
-
|
|
35
|
-
return { routes: operatorRoute(basePath, provider), sync: undefined, provider };
|
|
37
|
+
return { ...operatorCatalogView(basePath, createProvider(cache), extensions), sync: undefined };
|
|
36
38
|
}
|
|
37
39
|
const client = stateHttpClient({
|
|
38
40
|
baseUrl: centralUrl,
|
|
39
41
|
token: env.CENTRAL_PLANT_TOKEN
|
|
40
42
|
});
|
|
41
|
-
const source =
|
|
42
|
-
const provider =
|
|
43
|
+
const source = createSource(client, basePath);
|
|
44
|
+
const provider = createProvider(cache, source);
|
|
43
45
|
const sync = operatorsSync(source, cache, { intervalMs: syncIntervalMs(env) });
|
|
44
|
-
return {
|
|
46
|
+
return { ...operatorCatalogView(basePath, provider, extensions), sync };
|
|
45
47
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picks the HTTP port for the analytics MCP process.
|
|
3
|
+
*
|
|
4
|
+
* ANALYTICS_MCP_PORT wins. PORT is the infra fallback. Default is 3100.
|
|
5
|
+
*
|
|
6
|
+
* @param {NodeJS.ProcessEnv} env - process environment
|
|
7
|
+
* @returns {number} listen port
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* analyticsMcpPort({ ANALYTICS_MCP_PORT: '3100' });
|
|
11
|
+
*/
|
|
12
|
+
export default function analyticsMcpPort(env) {
|
|
13
|
+
if (env.ANALYTICS_MCP_PORT) {
|
|
14
|
+
return Number(env.ANALYTICS_MCP_PORT);
|
|
15
|
+
}
|
|
16
|
+
if (env.PORT) {
|
|
17
|
+
return Number(env.PORT);
|
|
18
|
+
}
|
|
19
|
+
return 3100;
|
|
20
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Maps a deployment namespace projection to the analytics namespace tree.
|
|
3
|
+
*
|
|
4
|
+
* Plant data uses `silence` and `binding.topic`. The library wants
|
|
5
|
+
* `silenceSeconds` and `source`.
|
|
6
|
+
*
|
|
7
|
+
* @param {ReadonlyArray<object>} nodes - namespace() result
|
|
8
|
+
* @returns {Array<object>} nodes for namespaceTree
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* analyticsNamespaceNodes(namespace())[0].silenceSeconds;
|
|
12
|
+
*/
|
|
13
|
+
export default function analyticsNamespaceNodes(nodes) {
|
|
14
|
+
return nodes.map((node) => {
|
|
15
|
+
const mapped = {
|
|
16
|
+
kind: node.kind,
|
|
17
|
+
path: node.path,
|
|
18
|
+
silenceSeconds: node.silence,
|
|
19
|
+
title: node.title
|
|
20
|
+
};
|
|
21
|
+
if (node.binding && typeof node.binding.topic === 'string') {
|
|
22
|
+
mapped.source = node.binding.topic;
|
|
23
|
+
}
|
|
24
|
+
if (node.binding && typeof node.binding.unit === 'string') {
|
|
25
|
+
mapped.unit = node.binding.unit;
|
|
26
|
+
}
|
|
27
|
+
return mapped;
|
|
28
|
+
});
|
|
29
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Register configured text resources and prompts with the analytics server. */
|
|
2
|
+
export default function analyticsTextContent(server, { resources = [], prompts = [] }) {
|
|
3
|
+
resources.forEach(({ name, uri, description, text }) => {
|
|
4
|
+
server.registerResource(name, uri, { description, mimeType: 'text/plain' }, () => {
|
|
5
|
+
return { contents: [{ mimeType: 'text/plain', text, uri }] };
|
|
6
|
+
});
|
|
7
|
+
});
|
|
8
|
+
prompts.forEach(({ name, text }) => {
|
|
9
|
+
server.registerPrompt(name, { description: text }, () => {
|
|
10
|
+
return { messages: [{ content: { text, type: 'text' }, role: 'user' }] };
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import loadSeries from './loadMetricSeries.js';
|
|
2
|
+
import locate from './locateMachineMetric.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Reads measurements for every requested path.
|
|
6
|
+
*
|
|
7
|
+
* @param {object} plant - plant hierarchy
|
|
8
|
+
* @param {object} args - paths, from, to, step, mode
|
|
9
|
+
* @returns {Promise<object>} points payload
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* readMeasurements(plant, { paths: ['site/unit/power'], from, to, step: 60 });
|
|
13
|
+
*/
|
|
14
|
+
function readMeasurements(plant, args) {
|
|
15
|
+
const jobs = args.paths.map((path) => {
|
|
16
|
+
return loadSeries(plant, path, args);
|
|
17
|
+
});
|
|
18
|
+
return Promise.all(jobs).then((lists) => {
|
|
19
|
+
return { points: lists.flat() };
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Reads timeline segments for the machine on a path.
|
|
25
|
+
*
|
|
26
|
+
* @param {object} plant - plant hierarchy
|
|
27
|
+
* @param {object} args - path, from, to, kinds
|
|
28
|
+
* @returns {Promise<Array>} segment rows
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* readSegments(plant, { path: 'site/unit', from, to });
|
|
32
|
+
*/
|
|
33
|
+
async function readSegments(plant, args) {
|
|
34
|
+
const { machine } = locate(plant, args.path);
|
|
35
|
+
if (!machine.timeline || typeof machine.timeline.list !== 'function') {
|
|
36
|
+
return [];
|
|
37
|
+
}
|
|
38
|
+
const rows = await machine.timeline.list({ from: args.from, to: args.to });
|
|
39
|
+
if (!args.kinds) {
|
|
40
|
+
return rows;
|
|
41
|
+
}
|
|
42
|
+
return rows.filter((row) => {
|
|
43
|
+
return args.kinds.includes(row.kind || row.name);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Reads operations for the machine on a path.
|
|
49
|
+
*
|
|
50
|
+
* @param {object} plant - plant hierarchy
|
|
51
|
+
* @param {object} args - path, kind, from, to
|
|
52
|
+
* @returns {Promise<Array>} operation rows
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* readOperations(plant, { path: 'site/unit', kind: 'bath', from, to });
|
|
56
|
+
*/
|
|
57
|
+
function readOperations(plant, args) {
|
|
58
|
+
const { machine } = locate(plant, args.path);
|
|
59
|
+
if (!plant.operations || typeof plant.operations.listForMachine !== 'function') {
|
|
60
|
+
return Promise.resolve([]);
|
|
61
|
+
}
|
|
62
|
+
return plant.operations.listForMachine(machine.name(), args.kind, {
|
|
63
|
+
from: args.from,
|
|
64
|
+
to: args.to
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Reads alerts for the machine on a path.
|
|
70
|
+
*
|
|
71
|
+
* @param {object} plant - plant hierarchy
|
|
72
|
+
* @param {object} args - path, from, to
|
|
73
|
+
* @returns {Promise<Array>|Array} alert rows
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* readAlerts(plant, { path: 'site/unit', from, to });
|
|
77
|
+
*/
|
|
78
|
+
function readAlerts(plant, args) {
|
|
79
|
+
const { machine } = locate(plant, args.path);
|
|
80
|
+
if (plant.alerts && typeof plant.alerts.list === 'function') {
|
|
81
|
+
return plant.alerts.list({
|
|
82
|
+
from: args.from,
|
|
83
|
+
machine: machine.name(),
|
|
84
|
+
to: args.to
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
const start = Date.parse(args.from);
|
|
88
|
+
const stop = Date.parse(args.to);
|
|
89
|
+
return machine.alerts().filter((item) => {
|
|
90
|
+
const at = item.timestamp instanceof Date ? item.timestamp.getTime() : Date.parse(item.timestamp);
|
|
91
|
+
return at >= start && at <= stop;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Reads latest values under a path.
|
|
97
|
+
*
|
|
98
|
+
* @param {object} plant - plant hierarchy
|
|
99
|
+
* @param {object} args - path
|
|
100
|
+
* @returns {Promise<object>} state payload
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* readState(plant, { path: 'site/unit/power' });
|
|
104
|
+
*/
|
|
105
|
+
async function readState(plant, args) {
|
|
106
|
+
const found = locate(plant, args.path);
|
|
107
|
+
if (found.metric && found.machine.sensors[found.metric]) {
|
|
108
|
+
const row = await found.machine.sensors[found.metric].current();
|
|
109
|
+
if (!row.found) {
|
|
110
|
+
return { found: false };
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
found: true,
|
|
114
|
+
time: row.timestamp.toISOString(),
|
|
115
|
+
unit: row.unit,
|
|
116
|
+
value: row.value
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
const keys = Object.keys(found.machine.sensors || {});
|
|
120
|
+
const items = await Promise.all(keys.map(async (key) => {
|
|
121
|
+
const row = await found.machine.sensors[key].current();
|
|
122
|
+
return { found: row.found === true, key, time: row.timestamp && row.timestamp.toISOString(), value: row.value };
|
|
123
|
+
}));
|
|
124
|
+
return { items };
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Builds named-tool ports over a plant and optional SQL extras.
|
|
129
|
+
*
|
|
130
|
+
* @param {object} plant - plant hierarchy
|
|
131
|
+
* @param {object} extras - cursor, queryClickhouse, optional queryPostgres
|
|
132
|
+
* @returns {object} analyticsMcp ports
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* plantReadPorts(plant, { cursor, queryClickhouse });
|
|
136
|
+
*/
|
|
137
|
+
export default function plantReadPorts(plant, extras) {
|
|
138
|
+
const ports = {
|
|
139
|
+
alerts(args) {
|
|
140
|
+
return readAlerts(plant, args);
|
|
141
|
+
},
|
|
142
|
+
cursor(args) {
|
|
143
|
+
return extras.cursor(args);
|
|
144
|
+
},
|
|
145
|
+
measurements(args) {
|
|
146
|
+
return readMeasurements(plant, args);
|
|
147
|
+
},
|
|
148
|
+
operations(args) {
|
|
149
|
+
return readOperations(plant, args);
|
|
150
|
+
},
|
|
151
|
+
queryClickhouse(sql) {
|
|
152
|
+
return extras.queryClickhouse(sql);
|
|
153
|
+
},
|
|
154
|
+
samples(args) {
|
|
155
|
+
return loadSeries(plant, args.path, { from: args.from, mode: 'samples', to: args.to });
|
|
156
|
+
},
|
|
157
|
+
segments(args) {
|
|
158
|
+
return readSegments(plant, args);
|
|
159
|
+
},
|
|
160
|
+
state(args) {
|
|
161
|
+
return readState(plant, args);
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
if (typeof extras.queryPostgres === 'function') {
|
|
165
|
+
ports.queryPostgres = extras.queryPostgres;
|
|
166
|
+
}
|
|
167
|
+
return ports;
|
|
168
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Build immutable text and prompt declarations for an analytics adapter. */
|
|
2
|
+
export default function textContentCatalog(policy, payload) {
|
|
3
|
+
return Object.freeze({
|
|
4
|
+
prompts: Object.freeze(policy.prompts.map((prompt) => { return Object.freeze({ ...prompt }); })),
|
|
5
|
+
[policy.resource.key]: Object.freeze({ uri: policy.resource.uri, text: `${policy.resource.heading} ${JSON.stringify(payload)}` })
|
|
6
|
+
});
|
|
7
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
function changedRows(rows, { fold, field, initial }) {
|
|
2
|
+
let prefix = initial;
|
|
3
|
+
const updates = [];
|
|
4
|
+
for (const row of rows) {
|
|
5
|
+
prefix = fold(prefix, row);
|
|
6
|
+
if (row.payload?.[field] !== prefix) {
|
|
7
|
+
const { machine, occurred_at: occurredAt, kind, key } = row;
|
|
8
|
+
updates.push({ machine, occurred_at: occurredAt, kind, key, payload: { ...row.payload, [field]: prefix } });
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return updates;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function forEachInOrder(items, apply) {
|
|
15
|
+
return items.reduce((chain, item) => { return chain.then(() => { return apply(item); }); }, Promise.resolve());
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function port(store, kind, recompute, ensure) {
|
|
19
|
+
if (!store || typeof store.upsert !== 'function') { throw new Error('Operations port must have an upsert() method'); }
|
|
20
|
+
return {
|
|
21
|
+
listForMachine(...args) { return store.listForMachine(...args); },
|
|
22
|
+
latestForMachine(...args) {
|
|
23
|
+
if (typeof store.latestForMachine !== 'function') { throw new Error('Operations port must have a latestForMachine() method'); }
|
|
24
|
+
return store.latestForMachine(...args);
|
|
25
|
+
},
|
|
26
|
+
stream: store.stream,
|
|
27
|
+
get(...args) { return store.get(...args); },
|
|
28
|
+
ensure(machineIds) { return ensure(store, machineIds); },
|
|
29
|
+
async upsert(item) {
|
|
30
|
+
await store.upsert(item);
|
|
31
|
+
if (item.kind === kind) { await recompute(store, item.machine); }
|
|
32
|
+
},
|
|
33
|
+
async upsertMany(items) {
|
|
34
|
+
if (typeof store.upsertMany !== 'function') { throw new Error('Operations port must have an upsertMany() method'); }
|
|
35
|
+
await store.upsertMany(items);
|
|
36
|
+
const machines = [...new Set(items.filter((item) => { return item.kind === kind; }).map((item) => { return item.machine; }))];
|
|
37
|
+
await forEachInOrder(machines, (id) => { return recompute(store, id); });
|
|
38
|
+
},
|
|
39
|
+
async remove(machineId, key) {
|
|
40
|
+
const removed = await store.remove(machineId, key);
|
|
41
|
+
if (removed.kind === kind) { await recompute(store, machineId); }
|
|
42
|
+
return removed;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** Persist a running prefix over one operation kind, using the application's fold. */
|
|
48
|
+
export default function operationPrefixes({ kind, field, fold, initial = 0, present = (value) => { return typeof value === 'number'; } }) {
|
|
49
|
+
async function recompute(store, machine) {
|
|
50
|
+
const rows = await store.listForMachine(machine, kind, {});
|
|
51
|
+
const updates = changedRows(rows, { fold, field, initial });
|
|
52
|
+
await forEachInOrder(updates, (item) => { return store.upsert(item); });
|
|
53
|
+
return updates.length;
|
|
54
|
+
}
|
|
55
|
+
async function ensure(store, machineIds) {
|
|
56
|
+
let recomputed = 0;
|
|
57
|
+
await forEachInOrder(machineIds || [], async (id) => {
|
|
58
|
+
const latest = await store.latestForMachine(id, kind, { to: new Date() });
|
|
59
|
+
if (latest && !present(latest.payload?.[field])) {
|
|
60
|
+
await recompute(store, id);
|
|
61
|
+
recomputed += 1;
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
return recomputed;
|
|
65
|
+
}
|
|
66
|
+
return { recompute, ensure, wrap(store) { return port(store, kind, recompute, ensure); } };
|
|
67
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import operatorRoute from '../infrastructure/http/plant/routes/operatorRoute.js';
|
|
2
|
+
|
|
3
|
+
/** Compose shared operator endpoints with optional installation fields and routes. */
|
|
4
|
+
export default function operatorCatalogView(basePath, provider, { decorate, extraRoutes } = {}) {
|
|
5
|
+
const selected = decorate ? decorate(provider) : provider;
|
|
6
|
+
const routes = [...operatorRoute(basePath, selected), ...(extraRoutes?.(basePath, selected) ?? [])];
|
|
7
|
+
return { provider: selected, routes };
|
|
8
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import initialized from '../domain/shared/initialized.js';
|
|
2
|
+
import plant from '../domain/plant/plant.js';
|
|
3
|
+
|
|
4
|
+
/** Group machine descriptors and assemble shops with application-provided sensors and site options. */
|
|
5
|
+
export default function projectPlantShops(machines, { defaultShop, sensors, shop, extras }) {
|
|
6
|
+
const groups = new Map();
|
|
7
|
+
for (const entry of machines) {
|
|
8
|
+
const name = entry.shop || defaultShop;
|
|
9
|
+
if (!groups.has(name)) { groups.set(name, []); }
|
|
10
|
+
groups.get(name).push(entry);
|
|
11
|
+
}
|
|
12
|
+
const shops = Object.fromEntries([...groups].map(([name, entries]) => {
|
|
13
|
+
const items = entries.map((entry) => { return { name: entry.machine, kind: entry.kind, sensors: sensors(entry) }; });
|
|
14
|
+
return [name, shop(items, name)];
|
|
15
|
+
}));
|
|
16
|
+
return plant(initialized(shops, Object.values), extras());
|
|
17
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
import compileCollectorTasks from '../deploy/compileCollectorTasks.js';
|
|
3
|
+
import readDeploymentDocument from '../deploy/readDeploymentDocument.js';
|
|
4
|
+
|
|
5
|
+
function jobs(document, options) {
|
|
6
|
+
if (!options.tasks.length) { throw new TypeError('Named collector DSL requires explicit --task selection'); }
|
|
7
|
+
if (options.cluster || options.stream || options.adapter) { throw new TypeError('Named tasks cannot combine device selectors'); }
|
|
8
|
+
const available = new Set(document.collectorTasks.map((task) => { return task.taskId; }));
|
|
9
|
+
options.tasks.forEach((id) => { if (!available.has(id) && !options.previousIds.has(id)) { throw new TypeError(`Unknown collector task ${id}`); } });
|
|
10
|
+
const collectorTasks = document.collectorTasks.filter((task) => { return options.tasks.includes(task.taskId); });
|
|
11
|
+
return compileCollectorTasks({ collectorTasks }, {}, options.generation).map((task) => {
|
|
12
|
+
if (task.spec.delivery !== 'durable' || task.spec.compatibilityKey) { return task; }
|
|
13
|
+
const compatibilityKey = createHash('sha256').update(JSON.stringify({ adapter: task.spec.adapter, source: task.spec.source, transform: task.spec.transform, stateVersion: task.spec.stateVersion })).digest('hex');
|
|
14
|
+
return { ...task, spec: { ...task.spec, compatibilityKey } };
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function execution(document, options) {
|
|
18
|
+
const selected = (document.collectorTasks ?? []).filter((task) => { return options.tasks.includes(task.taskId); });
|
|
19
|
+
const finite = selected.filter((task) => { return task.execution?.mode === 'once'; });
|
|
20
|
+
if (!finite.length) { return undefined; }
|
|
21
|
+
if (selected.length !== 1) { throw new TypeError('Run one-shot tasks separately from other assignments'); }
|
|
22
|
+
const { startTimeoutMs } = finite[0].execution;
|
|
23
|
+
if (!Number.isSafeInteger(startTimeoutMs) || startTimeoutMs < 1) { throw new TypeError('One-shot task requires a bounded startTimeoutMs'); }
|
|
24
|
+
return { mode: 'once', startTimeoutMs };
|
|
25
|
+
}
|
|
26
|
+
function retirements(assignments, status, generation) {
|
|
27
|
+
const desired = new Set(assignments.map((task) => { return task.taskId; }));
|
|
28
|
+
const retired = status.tasks.filter((task) => { return task.state !== 'stopped' && !desired.has(task.taskId); });
|
|
29
|
+
if (retired.some((task) => { return generation <= task.generation; })) { throw new TypeError('Increment DSL generation before retiring assignments'); }
|
|
30
|
+
return retired.map((task) => { return { taskId: task.taskId, generation }; });
|
|
31
|
+
}
|
|
32
|
+
/** Read declarations on every reconcile and project assignments through the configured deployment ports. */
|
|
33
|
+
export default function collectorDslManifest({ read = readDeploymentDocument, devices, amend = (tasks) => { return tasks; } } = {}) {
|
|
34
|
+
return (options, status = { tasks: [] }) => {
|
|
35
|
+
const document = read(options.file);
|
|
36
|
+
const generation = options.generation ?? document.generation ?? 1;
|
|
37
|
+
if (!Number.isSafeInteger(generation) || generation < 0) { throw new TypeError('Invalid generation'); }
|
|
38
|
+
const selection = { ...options, generation, previousIds: new Set(status.tasks.map((task) => { return task.taskId; })) };
|
|
39
|
+
if (!document.collectorTasks && options.tasks.length) { throw new TypeError('--task requires named collector declarations'); }
|
|
40
|
+
const assignments = amend(document.collectorTasks ? jobs(document, selection) : devices(document, selection), document);
|
|
41
|
+
if (!assignments.length && !status.tasks.length) { throw new TypeError('DSL selection has no collector assignments'); }
|
|
42
|
+
return { assignments, removals: retirements(assignments, status, generation), execution: execution(document, selection) };
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import runCollector from './runCollector.js';
|
|
2
|
+
import collectorOptions from './collectorOptions.js';
|
|
3
|
+
import controlDeliveryEnvironment from './controlDeliveryEnvironment.js';
|
|
4
|
+
|
|
5
|
+
/** Run a live or bounded manifest while preserving the same reload path. */
|
|
6
|
+
export async function collectorLaunch(options, registry, manifest, { run = runCollector, env = process.env } = {}) {
|
|
7
|
+
if (env.COLLECTOR_MANIFEST || env.COLLECTOR_MANIFEST_PATH) { throw new TypeError('Choose DSL or compiled manifest, not both'); }
|
|
8
|
+
const initial = manifest(options);
|
|
9
|
+
if (options.render) {
|
|
10
|
+
for (const { spec } of initial.assignments) {
|
|
11
|
+
// Match runtime validation order and stop on the first invalid assignment.
|
|
12
|
+
// eslint-disable-next-line no-await-in-loop
|
|
13
|
+
await registry.get(spec.adapter).validate(spec);
|
|
14
|
+
}
|
|
15
|
+
return initial;
|
|
16
|
+
}
|
|
17
|
+
const collector = await run({ registry, env, startTimeoutMs: initial.execution?.startTimeoutMs,
|
|
18
|
+
manifestReader(_env, _argv, status) { return manifest(options, status); } });
|
|
19
|
+
if (initial.execution?.mode === 'once') { await collector.stop(); }
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** Run the collector command with the application's registry and manifest bindings. */
|
|
24
|
+
export async function launchCollectorCommand(argv, {
|
|
25
|
+
registry, manifest, delivery, env = process.env, run = runCollector,
|
|
26
|
+
write = (body) => { process.stdout.write(body); }
|
|
27
|
+
}) {
|
|
28
|
+
controlDeliveryEnvironment(env, delivery);
|
|
29
|
+
const adapters = registry();
|
|
30
|
+
if (argv.some((arg) => { return arg.startsWith('--'); })) {
|
|
31
|
+
const result = await collectorLaunch(collectorOptions(argv), adapters, manifest, { run, env });
|
|
32
|
+
if (result) { write(`${JSON.stringify(result, null, 2)}\n`); }
|
|
33
|
+
} else { await run({ registry: adapters, env, argv }); }
|
|
34
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const flags = new Map([['--dsl', 'file'], ['--cluster', 'cluster'], ['--adapter', 'adapter'], ['--stream', 'stream'], ['--generation', 'generation']]);
|
|
2
|
+
function argument(options, argv, index) {
|
|
3
|
+
const flag = argv[index];
|
|
4
|
+
if (flag === '--render') { options.render = true; return 0; }
|
|
5
|
+
const key = flags.get(flag);
|
|
6
|
+
if (!key && flag !== '--task') { throw new TypeError(`Unknown collector option ${flag}`); }
|
|
7
|
+
const value = argv[index + 1];
|
|
8
|
+
if (!value || value.startsWith('--')) { throw new TypeError(`Missing value for ${flag}`); }
|
|
9
|
+
if (flag === '--task') { options.tasks.push(value); }
|
|
10
|
+
else { options[key] = key === 'generation' ? Number(value) : value; }
|
|
11
|
+
return 1;
|
|
12
|
+
}
|
|
13
|
+
/** Explicit DSL selection; no protocol-specific environment translation. */
|
|
14
|
+
export default function collectorOptions(argv) {
|
|
15
|
+
const options = { tasks: [], render: false };
|
|
16
|
+
for (let index = 0; index < argv.length; index += 1) { index += argument(options, argv, index); }
|
|
17
|
+
if (!options.file) { throw new TypeError('--dsl is required for DSL options'); }
|
|
18
|
+
if (options.generation !== undefined && (!Number.isSafeInteger(options.generation) || options.generation < 0)) { throw new TypeError('Invalid generation'); }
|
|
19
|
+
if (new Set(options.tasks).size !== options.tasks.length) { throw new TypeError('Duplicate task selection'); }
|
|
20
|
+
return options;
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function peerUrl(endpoint, secret) {
|
|
2
|
+
const target = new URL(endpoint);
|
|
3
|
+
const credentials = new URL(secret);
|
|
4
|
+
if (target.protocol !== 'amqp:' || !['amqp:', 'amqps:'].includes(credentials.protocol)) { throw new TypeError('Invalid control broker endpoint'); }
|
|
5
|
+
if (!credentials.username || decodeURIComponent(credentials.username) === 'guest') { throw new TypeError('Non-guest peer broker credentials required'); }
|
|
6
|
+
if (!target.pathname) { target.pathname = credentials.pathname; }
|
|
7
|
+
target.username = credentials.username;
|
|
8
|
+
target.password = credentials.password;
|
|
9
|
+
return target.toString();
|
|
10
|
+
}
|
|
11
|
+
/** DSL owns broker endpoints; deployment Secrets supply credentials. */
|
|
12
|
+
export default function controlDeliveryEnvironment(env, { secretPrefix = 'AMQP_URL_' } = {}) {
|
|
13
|
+
if (!env.COLLECTOR_BROKER_ENDPOINTS) { return; }
|
|
14
|
+
const endpoints = JSON.parse(env.COLLECTOR_BROKER_ENDPOINTS);
|
|
15
|
+
for (const [name, endpoint] of Object.entries(endpoints)) {
|
|
16
|
+
if (!name.startsWith(secretPrefix) || !/^[A-Z0-9_]+$/u.test(name.slice(secretPrefix.length)) || !Object.hasOwn(env, name) || !env[name]) { throw new TypeError('Missing control delivery credential Secret'); }
|
|
17
|
+
env[name] = peerUrl(endpoint, env[name]);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Plant API retains its request-scoped federation; autonomous readers have one owner. */
|
|
2
|
+
export default async function embeddedCollectors(mode, starters) {
|
|
3
|
+
if (mode === 'external') { return; }
|
|
4
|
+
if (mode !== undefined && mode !== 'embedded') { throw new TypeError('Unknown collector mode'); }
|
|
5
|
+
await starters.reduce(async (previous, start) => { await previous; await start(); }, Promise.resolve());
|
|
6
|
+
}
|
|
@@ -6,6 +6,12 @@ export { default as compositeLifecycle } from './compositeLifecycle.js';
|
|
|
6
6
|
export { default as runCollector } from './runCollector.js';
|
|
7
7
|
export { default as taskQueue } from './taskQueue.js';
|
|
8
8
|
export { default as createRegistry } from './createRegistry.js';
|
|
9
|
-
export { default as resolveSecrets } from './resolveSecrets.js';
|
|
9
|
+
export { default as resolveSecrets, withCollectorSecrets } from './resolveSecrets.js';
|
|
10
10
|
export { default as taskStatePg } from '../../infrastructure/persistence/runtime/taskStatePg.js';
|
|
11
11
|
export { default as spooledOutput, amqpDestinations } from './spooledOutput.js';
|
|
12
|
+
export { default as collectorOptions } from './collectorOptions.js';
|
|
13
|
+
export { default as collectorDslManifest } from './collectorDslManifest.js';
|
|
14
|
+
export { default as controlDeliveryEnvironment } from './controlDeliveryEnvironment.js';
|
|
15
|
+
export { default as embeddedCollectors } from './embeddedCollectors.js';
|
|
16
|
+
export { collectorLaunch, launchCollectorCommand } from './collectorLaunch.js';
|
|
17
|
+
export { default as pagedDelivery } from './pagedDelivery.js';
|