@camstack/server 1.2.719 → 1.2.720
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/CHANGELOG.md +6 -0
- package/dist/framework-nodepath.js +13 -0
- package/dist/launcher.js +1 -1
- package/package.json +2 -53
- package/system/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.720] - 2026-11-01
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Addons loaded in the hub process resolve the framework again after a server update (1.2.719 left four addons failing with Cannot find module).
|
|
15
|
+
|
|
10
16
|
## [1.2.719] - 2026-11-01
|
|
11
17
|
|
|
12
18
|
### Changed
|
|
@@ -34,6 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.frameworkNodePaths = frameworkNodePaths;
|
|
37
|
+
exports.isActiveFrameworkRoot = isActiveFrameworkRoot;
|
|
37
38
|
const path = __importStar(require("node:path"));
|
|
38
39
|
/**
|
|
39
40
|
* The framework's node_modules path to prepend to NODE_PATH so the CJS hub
|
|
@@ -47,3 +48,15 @@ function frameworkNodePaths(frameworkDir, exists) {
|
|
|
47
48
|
const nm = path.join(frameworkDir, 'node_modules');
|
|
48
49
|
return exists(nm) ? [nm] : [];
|
|
49
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Whether the starter's active single copy carries the framework, i.e. its
|
|
53
|
+
* `@camstack/server` ships `./system` (D989). The launcher points
|
|
54
|
+
* CAMSTACK_FRAMEWORK_DIR (and so NODE_PATH and the runners' resolver) at the
|
|
55
|
+
* active root only when this holds; a check on the retired standalone
|
|
56
|
+
* package left the hub's CJS addon loads with no framework on their path.
|
|
57
|
+
*/
|
|
58
|
+
function isActiveFrameworkRoot(activeRoot, exists) {
|
|
59
|
+
if (!activeRoot)
|
|
60
|
+
return false;
|
|
61
|
+
return exists(path.join(activeRoot, 'node_modules', '@camstack', 'server', 'system', 'package.json'));
|
|
62
|
+
}
|
package/dist/launcher.js
CHANGED
|
@@ -238,7 +238,7 @@ async function launch() {
|
|
|
238
238
|
// and the NODE_PATH extension below reads CAMSTACK_FRAMEWORK_DIR. No-op in
|
|
239
239
|
// baked mode (activeRoot unset → keep the image's /data/framework).
|
|
240
240
|
const activeRoot = process.env['CAMSTACK_SERVER_ACTIVE_ROOT'];
|
|
241
|
-
if (activeRoot &&
|
|
241
|
+
if (activeRoot && (0, framework_nodepath_js_1.isActiveFrameworkRoot)(activeRoot, fs.existsSync)) {
|
|
242
242
|
process.env['CAMSTACK_FRAMEWORK_DIR'] = activeRoot;
|
|
243
243
|
console.log(`[launcher] Single-copy framework dir → ${activeRoot}`);
|
|
244
244
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.720",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -65,58 +65,7 @@
|
|
|
65
65
|
"@camstack/addon-agent-ui"
|
|
66
66
|
],
|
|
67
67
|
"requires": {
|
|
68
|
-
"addons": {
|
|
69
|
-
"@camstack/addon-admin-ui": ">=1.2.542",
|
|
70
|
-
"@camstack/addon-agent-ui": ">=1.2.307",
|
|
71
|
-
"@camstack/addon-ai": ">=0.4.175",
|
|
72
|
-
"@camstack/addon-auth": ">=1.2.175",
|
|
73
|
-
"@camstack/addon-benchmark": ">=1.2.305",
|
|
74
|
-
"@camstack/addon-cloudflare": ">=1.2.151",
|
|
75
|
-
"@camstack/addon-decoder-nodeav": ">=1.2.145",
|
|
76
|
-
"@camstack/addon-export-alexa": ">=1.2.177",
|
|
77
|
-
"@camstack/addon-export-google": ">=0.1.120",
|
|
78
|
-
"@camstack/addon-export-hap": ">=1.2.188",
|
|
79
|
-
"@camstack/addon-google-services": ">=0.2.34",
|
|
80
|
-
"@camstack/addon-import-alexa": ">=0.2.174",
|
|
81
|
-
"@camstack/addon-matter-broker": ">=0.2.153",
|
|
82
|
-
"@camstack/addon-model-studio": ">=1.1.336",
|
|
83
|
-
"@camstack/addon-mqtt-broker": ">=1.2.148",
|
|
84
|
-
"@camstack/addon-notifiers": ">=1.2.626",
|
|
85
|
-
"@camstack/addon-osd-manager": ">=0.1.309",
|
|
86
|
-
"@camstack/addon-pipeline": ">=1.2.637",
|
|
87
|
-
"@camstack/addon-pipeline-orchestrator": ">=1.2.648",
|
|
88
|
-
"@camstack/addon-post-analysis": ">=1.2.657",
|
|
89
|
-
"@camstack/addon-provider-amcrest": ">=0.2.164",
|
|
90
|
-
"@camstack/addon-provider-bosch": ">=0.1.35",
|
|
91
|
-
"@camstack/addon-provider-dreame": ">=0.2.162",
|
|
92
|
-
"@camstack/addon-provider-dreo": ">=0.2.152",
|
|
93
|
-
"@camstack/addon-provider-ecowitt": ">=0.2.153",
|
|
94
|
-
"@camstack/addon-provider-enpal": ">=0.1.6",
|
|
95
|
-
"@camstack/addon-provider-esphome": ">=0.1.7",
|
|
96
|
-
"@camstack/addon-provider-gree": ">=0.2.148",
|
|
97
|
-
"@camstack/addon-provider-hikvision": ">=1.2.180",
|
|
98
|
-
"@camstack/addon-provider-homeassistant": ">=1.2.644",
|
|
99
|
-
"@camstack/addon-provider-homematic": ">=1.2.174",
|
|
100
|
-
"@camstack/addon-provider-mqtt-ha": ">=0.1.32",
|
|
101
|
-
"@camstack/addon-provider-onvif": ">=1.2.152",
|
|
102
|
-
"@camstack/addon-provider-petkit": ">=0.2.157",
|
|
103
|
-
"@camstack/addon-provider-rademacher": ">=0.2.155",
|
|
104
|
-
"@camstack/addon-provider-reolink": ">=1.2.217",
|
|
105
|
-
"@camstack/addon-provider-rtsp": ">=1.2.149",
|
|
106
|
-
"@camstack/addon-provider-tuya": ">=0.2.149",
|
|
107
|
-
"@camstack/addon-provider-unifi": ">=0.2.152",
|
|
108
|
-
"@camstack/addon-provider-unraid": ">=0.2.153",
|
|
109
|
-
"@camstack/addon-provider-velux": ">=0.2.152",
|
|
110
|
-
"@camstack/addon-provider-vesync": ">=0.2.149",
|
|
111
|
-
"@camstack/addon-provider-wyze": ">=0.2.161",
|
|
112
|
-
"@camstack/addon-remote-storage": ">=1.2.144",
|
|
113
|
-
"@camstack/addon-smtp-nodemailer": ">=1.2.144",
|
|
114
|
-
"@camstack/addon-static-turn": ">=1.2.142",
|
|
115
|
-
"@camstack/addon-tailscale": ">=1.2.148",
|
|
116
|
-
"@camstack/addon-terminal": ">=0.1.158",
|
|
117
|
-
"@camstack/addon-training": ">=0.1.122",
|
|
118
|
-
"@camstack/addon-waste-collections": ">=0.1.33"
|
|
119
|
-
},
|
|
68
|
+
"addons": {},
|
|
120
69
|
"wrapper": {
|
|
121
70
|
"desktop": ">=0.0.1",
|
|
122
71
|
"image": ">=0.0.1"
|