@camstack/system 1.2.416 → 1.2.417
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/addon-runner.js +9969 -27
- package/dist/addon-runner.mjs +9930 -9
- package/dist/addon-utils.js +19 -20
- package/dist/addon-utils.mjs +1 -2
- package/dist/auth/auth-audit-log.d.ts +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/autotrack/index.js +1 -1
- package/dist/builtins/autotrack/index.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/dist/builtins/calendars/calendars.addon.js +1 -1
- package/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/dist/builtins/camera-grid/index.js +1 -1
- package/dist/builtins/camera-grid/index.mjs +1 -1
- package/dist/builtins/composer/composer.addon.js +2 -2
- package/dist/builtins/composer/composer.addon.mjs +2 -2
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
- package/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/keychain/index.js +3 -3
- package/dist/builtins/keychain/index.mjs +3 -3
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +5 -3
- package/dist/builtins/local-auth/local-auth.addon.mjs +5 -3
- package/dist/builtins/local-network/local-network.addon.js +1 -1
- package/dist/builtins/local-network/local-network.addon.mjs +1 -1
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +102 -10
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +92 -4
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
- package/dist/builtins/storage-orchestrator/index.mjs +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +83 -3
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +79 -3
- package/dist/builtins/system-config/system-config.addon.js +2 -2
- package/dist/builtins/system-config/system-config.addon.mjs +2 -2
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{composition-sources-DBcOVpGn.js → composition-sources-ChAX2Kdo.js} +1 -1
- package/dist/{composition-sources-DEZqZLPT.mjs → composition-sources-CndJVssc.mjs} +1 -1
- package/dist/{constants-BSBtmzm3.mjs → constants-BzxwnfDc.mjs} +1 -1
- package/dist/{constants-C4jZO_qO.js → constants-VXvZkGgw.js} +1 -1
- package/dist/{event-loop-stall-monitor-E2hFvhDg.js → custom-action-registry-Bb28ibZV.js} +63 -1
- package/dist/{event-loop-stall-monitor-LBZskC1S.mjs → custom-action-registry-DHv0kYcT.mjs} +58 -2
- package/dist/{dist-DxiDI8hZ.js → dist-BMOD9OyH.js} +1 -111
- package/dist/{dist-DwE9yHdk.mjs → dist-H_RapIeM.mjs} +2 -100
- package/dist/index.js +22785 -10066
- package/dist/index.mjs +22601 -9882
- package/dist/{jwt-signing-key-CsC-FxSm.js → jwt-signing-key-BiKHENST.js} +1 -1
- package/dist/{jwt-signing-key-DLbjTIuA.mjs → jwt-signing-key-xQxqpwMC.mjs} +1 -1
- package/dist/kernel/moleculer/broker-factory.d.ts +2 -4
- package/dist/kernel/transport/local-child-registry.d.ts +1 -1
- package/dist/logging/log-redactor.d.ts +1 -1
- package/dist/{resource-monitor-B2WZ8_q9.mjs → resource-monitor-Di9daRwI.mjs} +1 -1
- package/dist/{resource-monitor-BgWGRxN5.js → resource-monitor-mio9dSCT.js} +5 -5
- package/dist/{restore-archive-BtKjaVua.js → restore-archive-BobsETEp.js} +1 -1
- package/dist/{restore-archive-CImzbuRo.mjs → restore-archive-CCAQicV-.mjs} +1 -1
- package/dist/{retired-settings-keys-Cl1tnkmq.js → retired-settings-keys-BMq2u4Wv.js} +1 -1
- package/dist/{retired-settings-keys-D1WsCdUY.mjs → retired-settings-keys-CwL4zHLg.mjs} +1 -1
- package/package.json +2 -2
- package/dist/child-cap-dispatch-B87B0FrC.js +0 -13986
- package/dist/child-cap-dispatch-CmfT-OR2.mjs +0 -12916
- package/dist/custom-action-registry-B4Cf4O_X.mjs +0 -57
- package/dist/custom-action-registry-acBY3mHA.js +0 -62
- package/dist/hub-cap-forward-CDiN1p98.mjs +0 -78
- package/dist/hub-cap-forward-W8oEm4ME.js +0 -101
- package/dist/proc-stat-CbC55Kqi.mjs +0 -92
- package/dist/proc-stat-DL-WUOhl.js +0 -127
|
@@ -7,8 +7,8 @@ interface BrokerConfig {
|
|
|
7
7
|
readonly logLevel?: string;
|
|
8
8
|
/**
|
|
9
9
|
* TCP port the hub listens on for cluster traffic.
|
|
10
|
-
* Agents
|
|
11
|
-
*
|
|
10
|
+
* Agents connect to it via `urls: 'hub@host:port'` — there is no UDP
|
|
11
|
+
* discovery (D826, D843).
|
|
12
12
|
*/
|
|
13
13
|
readonly tcpPort?: number;
|
|
14
14
|
/**
|
|
@@ -16,8 +16,6 @@ interface BrokerConfig {
|
|
|
16
16
|
* Clear traffic stays on {@link tcpPort}; enrolled agents dial this.
|
|
17
17
|
*/
|
|
18
18
|
readonly tlsPort?: number;
|
|
19
|
-
/** UDP port for cluster discovery (default: 4445). */
|
|
20
|
-
readonly udpPort?: number;
|
|
21
19
|
/**
|
|
22
20
|
* Explicit TCP port for the agent's own Moleculer reader to bind.
|
|
23
21
|
* When omitted, the port is derived deterministically from `nodeID`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IReadinessRegistryRecord, SystemEvent } from "@camstack/types";
|
|
2
2
|
import type { CapUsageCallRecord } from "../moleculer/cap-usage-registry.js";
|
|
3
3
|
import { type CapActionReading } from "./cap-action-census.js";
|
|
4
4
|
import { type CapRoutingHints } from "./cap-routing-hints.js";
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* Hot path: a line with no meta, no `://`, no `--` and no registered values
|
|
20
20
|
* costs a few `includes` checks.
|
|
21
21
|
*/
|
|
22
|
-
import {
|
|
22
|
+
import type { LogEntry } from "@camstack/types";
|
|
23
23
|
/** True when a meta key names a credential. */
|
|
24
24
|
export declare function isCredentialKeyName(key: string): boolean;
|
|
25
25
|
/** Redact one free-form string. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as __exportAll } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { i as parseProcStatusRss, n as nodeProcReader, r as parseProcStat, t as lifetimeCpuPercent } from "./builtins/native-metrics/native-metrics.addon.mjs";
|
|
3
3
|
import { platform } from "node:os";
|
|
4
4
|
import { execFile } from "node:child_process";
|
|
5
5
|
//#region src/process/resource-monitor.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const
|
|
2
|
+
const require_builtins_native_metrics_native_metrics_addon = require("./builtins/native-metrics/native-metrics.addon.js");
|
|
3
3
|
let node_os = require("node:os");
|
|
4
4
|
let node_child_process = require("node:child_process");
|
|
5
5
|
//#region src/process/resource-monitor.ts
|
|
@@ -22,7 +22,7 @@ function execPsForPids(pids) {
|
|
|
22
22
|
}
|
|
23
23
|
var defaultDeps = {
|
|
24
24
|
platform: (0, node_os.platform)(),
|
|
25
|
-
reader:
|
|
25
|
+
reader: require_builtins_native_metrics_native_metrics_addon.nodeProcReader,
|
|
26
26
|
spawnPs: execPsForPids
|
|
27
27
|
};
|
|
28
28
|
function parsePsOutput(stdout) {
|
|
@@ -52,12 +52,12 @@ async function readProcPidStats(pid, uptimeSec, reader) {
|
|
|
52
52
|
} catch {
|
|
53
53
|
return null;
|
|
54
54
|
}
|
|
55
|
-
const parsed =
|
|
55
|
+
const parsed = require_builtins_native_metrics_native_metrics_addon.parseProcStat(stat);
|
|
56
56
|
if (parsed === null) return null;
|
|
57
|
-
const rss =
|
|
57
|
+
const rss = require_builtins_native_metrics_native_metrics_addon.parseProcStatusRss(status);
|
|
58
58
|
if (rss.rssBytes === void 0) return null;
|
|
59
59
|
return {
|
|
60
|
-
cpu:
|
|
60
|
+
cpu: require_builtins_native_metrics_native_metrics_addon.lifetimeCpuPercent({
|
|
61
61
|
ticks: parsed.ticks,
|
|
62
62
|
startTicks: parsed.startTicks,
|
|
63
63
|
uptimeSec
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-BMOD9OyH.js");
|
|
3
3
|
let node_crypto = require("node:crypto");
|
|
4
4
|
let buffer = require("buffer");
|
|
5
5
|
let node_fs_promises = require("node:fs/promises");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as DATABASE_SNAPSHOT_SUFFIX } from "./dist-
|
|
1
|
+
import { g as DATABASE_SNAPSHOT_SUFFIX } from "./dist-H_RapIeM.mjs";
|
|
2
2
|
import { createCipheriv, createDecipheriv, createHash, createPrivateKey, createPublicKey, diffieHellman, generateKeyPairSync, hkdfSync, randomBytes } from "node:crypto";
|
|
3
3
|
import { Buffer as Buffer$1 } from "buffer";
|
|
4
4
|
import * as fsp from "node:fs/promises";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/system",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.417",
|
|
4
4
|
"description": "Core addon for CamStack — builtins, pipeline, process management, auth, logging, events",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -475,7 +475,7 @@
|
|
|
475
475
|
],
|
|
476
476
|
"scripts": {
|
|
477
477
|
"copy:hook": "node -e \"const fs=require('fs'),p=require('path');const dst=p.join('dist');fs.mkdirSync(dst,{recursive:true});fs.copyFileSync(p.join('src','kernel','moleculer','framework-resolver-hook.mjs'),p.join(dst,'framework-resolver-hook.mjs'));console.log('copied framework-resolver-hook.mjs ->',dst)\"",
|
|
478
|
-
"build": "vite build && npx tsx ../../scripts/emit-isolated-dts.ts --root . --src src --out dist && npm run copy:hook",
|
|
478
|
+
"build": "vite build && vite build -c vite.runner.config.ts && npx tsx ../../scripts/emit-isolated-dts.ts --root . --src src --out dist && npm run copy:hook",
|
|
479
479
|
"dev": "tsup --watch",
|
|
480
480
|
"typecheck": "tsc --noEmit -p tsconfig.spec.json",
|
|
481
481
|
"test": "vitest run",
|