@camstack/server 1.2.827 → 1.2.828

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 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.828] - 2026-11-10
11
+
12
+ ### Changed
13
+
14
+ - A power-source link added through Customize no longer shadows the power-source status for device-scoped callers, so the Velux gateway power recovery sees the link
15
+
10
16
  ## [1.2.827] - 2026-11-10
11
17
 
12
18
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/server",
3
- "version": "1.2.827",
3
+ "version": "1.2.828",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -66,38 +66,7 @@
66
66
  ],
67
67
  "requires": {
68
68
  "addons": {
69
- "@camstack/addon-admin-ui": ">=1.2.634",
70
- "@camstack/addon-agent-ui": ">=1.2.358",
71
- "@camstack/addon-auth": ">=1.2.181",
72
- "@camstack/addon-benchmark": ">=1.2.313",
73
- "@camstack/addon-cloudflare": ">=1.2.161",
74
- "@camstack/addon-google-services": ">=0.2.47",
75
- "@camstack/addon-import-alexa": ">=0.2.201",
76
- "@camstack/addon-matter-broker": ">=0.2.166",
77
- "@camstack/addon-osd-manager": ">=0.1.317",
78
- "@camstack/addon-pipeline": ">=1.2.649",
79
- "@camstack/addon-post-analysis": ">=1.2.692",
80
- "@camstack/addon-provider-bosch": ">=0.1.48",
81
- "@camstack/addon-provider-dreame": ">=0.2.174",
82
- "@camstack/addon-provider-dreo": ">=0.2.164",
83
- "@camstack/addon-provider-ecowitt": ">=0.2.162",
84
- "@camstack/addon-provider-enpal": ">=0.1.15",
85
- "@camstack/addon-provider-esphome": ">=0.1.18",
86
- "@camstack/addon-provider-gree": ">=0.2.157",
87
- "@camstack/addon-provider-homematic": ">=1.2.188",
88
- "@camstack/addon-provider-mqtt-ha": ">=0.1.44",
89
- "@camstack/addon-provider-petkit": ">=0.2.169",
90
- "@camstack/addon-provider-rademacher": ">=0.2.165",
91
- "@camstack/addon-provider-reolink": ">=1.2.236",
92
- "@camstack/addon-provider-rtsp": ">=1.2.157",
93
- "@camstack/addon-provider-tuya": ">=0.2.159",
94
- "@camstack/addon-provider-unifi": ">=0.2.162",
95
- "@camstack/addon-provider-unraid": ">=0.2.163",
96
- "@camstack/addon-provider-velux": ">=0.2.165",
97
- "@camstack/addon-provider-vesync": ">=0.2.156",
98
- "@camstack/addon-provider-wyze": ">=0.2.173",
99
- "@camstack/addon-training": ">=0.1.137",
100
- "@camstack/addon-waste-collections": ">=0.1.43"
69
+ "@camstack/addon-provider-velux": ">=0.2.166"
101
70
  },
102
71
  "wrapper": {
103
72
  "desktop": ">=0.0.1",
@@ -5206,9 +5206,20 @@ var GraftHost = class {
5206
5206
  if (def === null) return this.refuse(deviceId, capName, `unknown capability \`${capName}\``);
5207
5207
  const missing = unanswered(def);
5208
5208
  if (missing.length > 0) return this.refuse(deviceId, capName, `\`${capName}\` has ${missing.map((m) => `\`${m}\``).join(", ")} with no composed answer — a graft cannot serve it until commands arrive (slice 3)`);
5209
+ const provider = this.providerFor(deviceId, def);
5210
+ if (Object.keys(provider).length === 0) {
5211
+ this.ports.logger.info("graft skipped — the cap has no method a graft can answer", {
5212
+ tags: { deviceId },
5213
+ meta: {
5214
+ cap: capName,
5215
+ stableId
5216
+ }
5217
+ });
5218
+ return { kind: "nothing-to-serve" };
5219
+ }
5209
5220
  const ctx = this.contextFor(deviceId, stableId);
5210
5221
  try {
5211
- ctx.registerNativeCap(def, this.providerFor(deviceId, def));
5222
+ ctx.registerNativeCap(def, provider);
5212
5223
  } catch (err) {
5213
5224
  return this.refuse(deviceId, capName, `registerNativeCap threw — ${require_dist.errMsg(err)}`);
5214
5225
  }
@@ -5304,7 +5315,7 @@ var GraftHost = class {
5304
5315
  return isSliceRecord(slice) ? slice : null;
5305
5316
  };
5306
5317
  const answers = Object.entries(def.composedMethods ?? {}).map(([name, answer]) => [name, composedMethod(answer, readSlice)]);
5307
- const withStatus = def.status === void 0 && def.runtimeState === void 0 ? [] : [["getStatus", async () => this.readMerged(deviceId, def.name)]];
5318
+ const withStatus = def.status === void 0 ? [] : [["getStatus", async () => this.readMerged(deviceId, def.name)]];
5308
5319
  return Object.fromEntries([...answers, ...withStatus]);
5309
5320
  }
5310
5321
  refuse(deviceId, capName, reason) {
@@ -5201,9 +5201,20 @@ var GraftHost = class {
5201
5201
  if (def === null) return this.refuse(deviceId, capName, `unknown capability \`${capName}\``);
5202
5202
  const missing = unanswered(def);
5203
5203
  if (missing.length > 0) return this.refuse(deviceId, capName, `\`${capName}\` has ${missing.map((m) => `\`${m}\``).join(", ")} with no composed answer — a graft cannot serve it until commands arrive (slice 3)`);
5204
+ const provider = this.providerFor(deviceId, def);
5205
+ if (Object.keys(provider).length === 0) {
5206
+ this.ports.logger.info("graft skipped — the cap has no method a graft can answer", {
5207
+ tags: { deviceId },
5208
+ meta: {
5209
+ cap: capName,
5210
+ stableId
5211
+ }
5212
+ });
5213
+ return { kind: "nothing-to-serve" };
5214
+ }
5204
5215
  const ctx = this.contextFor(deviceId, stableId);
5205
5216
  try {
5206
- ctx.registerNativeCap(def, this.providerFor(deviceId, def));
5217
+ ctx.registerNativeCap(def, provider);
5207
5218
  } catch (err) {
5208
5219
  return this.refuse(deviceId, capName, `registerNativeCap threw — ${errMsg(err)}`);
5209
5220
  }
@@ -5299,7 +5310,7 @@ var GraftHost = class {
5299
5310
  return isSliceRecord(slice) ? slice : null;
5300
5311
  };
5301
5312
  const answers = Object.entries(def.composedMethods ?? {}).map(([name, answer]) => [name, composedMethod(answer, readSlice)]);
5302
- const withStatus = def.status === void 0 && def.runtimeState === void 0 ? [] : [["getStatus", async () => this.readMerged(deviceId, def.name)]];
5313
+ const withStatus = def.status === void 0 ? [] : [["getStatus", async () => this.readMerged(deviceId, def.name)]];
5303
5314
  return Object.fromEntries([...answers, ...withStatus]);
5304
5315
  }
5305
5316
  refuse(deviceId, capName, reason) {
@@ -32,6 +32,8 @@ export type GraftOutcome = {
32
32
  readonly kind: "grafted";
33
33
  } | {
34
34
  readonly kind: "already";
35
+ } | {
36
+ readonly kind: "nothing-to-serve";
35
37
  } | {
36
38
  readonly kind: "refused";
37
39
  readonly reason: string;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/server",
3
- "version": "1.2.827",
3
+ "version": "1.2.828",
4
4
  "description": "CamStack builtins — shipped inside @camstack/server (generated, do not edit)",
5
5
  "license": "MIT",
6
6
  "camstack": {