@camstack/system 1.1.34 → 1.1.36
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 +87 -35
- package/dist/addon-runner.mjs +87 -35
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +6 -6
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +6 -6
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +12 -12
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +5 -5
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
- package/dist/builtins/console-logging/index.js +3 -3
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/device-manager/device-manager.addon.js +69 -69
- package/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- package/dist/builtins/hub-forwarder/index.js +3 -3
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +7 -7
- package/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
- package/dist/builtins/local-network/local-network.addon.js +7 -7
- package/dist/builtins/local-network/local-network.addon.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +5 -5
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/index.js +13 -13
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +4 -4
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +13 -13
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +4 -4
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +9 -9
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +5 -5
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/dist/builtins/system-config/system-config.addon.js +5 -5
- package/dist/builtins/system-config/system-config.addon.mjs +1 -1
- package/dist/builtins/winston-logging/index.js +3 -3
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/dist-C7oOY4iL.mjs +24559 -0
- package/dist/dist-COIhbSao.js +25032 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +92 -115
- package/dist/index.mjs +52 -52
- package/dist/kernel/moleculer/child-cap-descriptors.d.ts +34 -0
- package/dist/kernel/moleculer/child-cap-dispatch.d.ts +10 -2
- package/dist/kernel/transport/child-cap-protocol.d.ts +20 -0
- package/dist/{manifest-python-deps-u-AQBQY6.mjs → manifest-python-deps-BYIV8-rc.mjs} +31 -29
- package/dist/{manifest-python-deps-CAnO1wPx.js → manifest-python-deps-CZFqI4wp.js} +7 -5
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
|
|
6
|
+
const require_dist = require("../../dist-COIhbSao.js");
|
|
7
7
|
//#region src/builtins/system-config/system-config.addon.ts
|
|
8
8
|
/**
|
|
9
9
|
* Built-in `system-config` addon — Phase 4 of the settings redesign.
|
|
@@ -54,7 +54,7 @@ var KEY_TO_SECTION = {
|
|
|
54
54
|
dataPath: "server",
|
|
55
55
|
tokenExpiry: "auth"
|
|
56
56
|
};
|
|
57
|
-
var SystemConfigAddon = class extends
|
|
57
|
+
var SystemConfigAddon = class extends require_dist.BaseAddon {
|
|
58
58
|
id = "system-config";
|
|
59
59
|
constructor() {
|
|
60
60
|
super({});
|
|
@@ -116,20 +116,20 @@ var SystemConfigAddon = class extends _camstack_types.BaseAddon {
|
|
|
116
116
|
}
|
|
117
117
|
async getGlobalSettings() {
|
|
118
118
|
const schema = this.buildGlobalSchema();
|
|
119
|
-
if (!this.ctx.settings) return
|
|
119
|
+
if (!this.ctx.settings) return require_dist.hydrateSchema(schema, {});
|
|
120
120
|
const sectionNames = Object.keys(SECTION_TITLES);
|
|
121
121
|
const merged = {};
|
|
122
122
|
for (const section of sectionNames) try {
|
|
123
123
|
const values = await this.ctx.settings.getSection(section);
|
|
124
124
|
Object.assign(merged, values);
|
|
125
125
|
} catch (err) {
|
|
126
|
-
const msg =
|
|
126
|
+
const msg = require_dist.errMsg(err);
|
|
127
127
|
this.ctx.logger.debug("Failed to read section", { meta: {
|
|
128
128
|
section,
|
|
129
129
|
error: msg
|
|
130
130
|
} });
|
|
131
131
|
}
|
|
132
|
-
return
|
|
132
|
+
return require_dist.hydrateSchema(schema, merged);
|
|
133
133
|
}
|
|
134
134
|
async updateGlobalSettings(patch) {
|
|
135
135
|
if (!this.ctx.settings) throw new Error("system-config: ctx.settings not available — cannot write sections");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as errMsg, et as BaseAddon, vt as hydrateSchema } from "../../dist-C7oOY4iL.mjs";
|
|
2
2
|
//#region src/builtins/system-config/system-config.addon.ts
|
|
3
3
|
/**
|
|
4
4
|
* Built-in `system-config` addon — Phase 4 of the settings redesign.
|
|
@@ -3,10 +3,10 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
+
const require_dist = require("../../dist-COIhbSao.js");
|
|
6
7
|
const require_formatter = require("../../formatter-DqAKDlvN.js");
|
|
7
8
|
let node_path = require("node:path");
|
|
8
9
|
node_path = require_chunk.__toESM(node_path);
|
|
9
|
-
let _camstack_types = require("@camstack/types");
|
|
10
10
|
let winston = require("winston");
|
|
11
11
|
winston = require_chunk.__toESM(winston);
|
|
12
12
|
let winston_daily_rotate_file = require("winston-daily-rotate-file");
|
|
@@ -74,7 +74,7 @@ var WinstonDestination = class {
|
|
|
74
74
|
* Winston logging addon — rotated log files + console output.
|
|
75
75
|
* Settings appear under Cluster → NodeDetail → Settings.
|
|
76
76
|
*/
|
|
77
|
-
var WinstonLoggingAddon = class extends
|
|
77
|
+
var WinstonLoggingAddon = class extends require_dist.BaseAddon {
|
|
78
78
|
destination = null;
|
|
79
79
|
constructor() {
|
|
80
80
|
super({
|
|
@@ -91,7 +91,7 @@ var WinstonLoggingAddon = class extends _camstack_types.BaseAddon {
|
|
|
91
91
|
});
|
|
92
92
|
this.ctx.logger.info("Winston logging initialized");
|
|
93
93
|
return [{
|
|
94
|
-
capability:
|
|
94
|
+
capability: require_dist.logDestinationCapability,
|
|
95
95
|
provider: this.destination
|
|
96
96
|
}];
|
|
97
97
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { P as logDestinationCapability, et as BaseAddon } from "../../dist-C7oOY4iL.mjs";
|
|
1
2
|
import { t as formatLogLine } from "../../formatter-B7qW8bPJ.mjs";
|
|
2
3
|
import * as path$1 from "node:path";
|
|
3
4
|
import path from "node:path";
|
|
4
|
-
import { BaseAddon, logDestinationCapability } from "@camstack/types";
|
|
5
5
|
import * as winston from "winston";
|
|
6
6
|
import DailyRotateFile from "winston-daily-rotate-file";
|
|
7
7
|
//#region src/builtins/winston-logging/winston-destination.ts
|