@camstack/server 1.2.819 → 1.2.821
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 +28 -0
- package/dist/api/core/cap-providers.js +32 -40
- package/dist/api/trpc/cap-route-error-formatter.js +19 -1
- package/dist/api/trpc/cap-router-runtime.js +23 -0
- package/dist/api/trpc/device-config-secret-redaction.js +1 -2
- package/dist/api/trpc/generated-cap-mounts.js +3 -1
- package/dist/api/trpc/generated-cap-routers.js +1855 -1723
- package/dist/api/trpc/localized-schema-paths.js +1 -1
- package/dist/api/trpc/trpc.router.js +1 -1
- package/dist/core/addon/addon-registry.service.js +2 -2
- package/dist/core/addon/addon-settings-provider.js +0 -23
- package/dist/core/addon/instance-lifecycle.js +44 -7
- package/package.json +13 -12
- package/system/dist/addon-runner.js +0 -1
- package/system/dist/addon-runner.mjs +0 -1
- package/system/dist/{agent-https-ChriyNA8.js → agent-https-Bp5yzi8b.js} +1 -1
- package/system/dist/{agent-https-rhOY61af.mjs → agent-https-N6Or6UAu.mjs} +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +3 -3
- package/system/dist/builtins/composer/composer.addon.mjs +3 -3
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/blocks-instances.d.ts +2 -2
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +14 -7
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +12 -5
- package/system/dist/builtins/core-blocks/hero-layout-service.d.ts +2 -0
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +2 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +284 -284
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-Cgt1r0h5.js → capture-engine-4lB0sLCf.js} +1 -1
- package/system/dist/{capture-engine-CoK1n1F1.mjs → capture-engine-Cz7z5d36.mjs} +1 -1
- package/system/dist/{composition-sources-DSU28FFP.mjs → composition-sources-C0e2g_VP.mjs} +1 -1
- package/system/dist/{composition-sources-TkHq8DdF.js → composition-sources-C9gEj25e.js} +1 -1
- package/system/dist/{constants-CCezBXPq.mjs → constants-CZMy7dor.mjs} +1 -1
- package/system/dist/{constants-D3mNibfv.js → constants-Cq3B9yzj.js} +1 -1
- package/system/dist/{device-ca-CEzeY_zI.js → device-ca-BenyQXJV.js} +1 -1
- package/system/dist/{device-ca-CjX1tQP7.mjs → device-ca-BmQ6N-A-.mjs} +1 -1
- package/system/dist/{dist-BNBgsEk0.mjs → dist-DuKMbGBM.mjs} +1534 -268
- package/system/dist/{dist-DX1gyM8o.js → dist-M5VX8Hqf.js} +1534 -268
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-BCfG7mv3.mjs → hub-mdns-ciao-CXBfBwAy.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-DBHvpWvv.js → hub-mdns-ciao-k3pOKWyZ.js} +2 -2
- package/system/dist/index.js +40 -11
- package/system/dist/index.mjs +40 -11
- package/system/dist/kernel/cap-router-builder.d.ts +9 -0
- package/system/dist/kernel/transport/child-cap-protocol.d.ts +1 -1
- package/system/dist/{legacy-integration-rows-door-C0X4Ijcr.mjs → legacy-integration-rows-door-C13OeuW9.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-7K4_MoAP.js → legacy-integration-rows-door-mIpR3e6X.js} +1 -1
- package/system/dist/{restore-archive-DXlN0NYx.js → restore-archive-CCgt7SZ8.js} +1 -1
- package/system/dist/{restore-archive-WBDJlios.mjs → restore-archive-DDeQFJN5.mjs} +82 -82
- package/system/dist/{wal-maintenance-BJ0vDek1.mjs → wal-maintenance-Cj7xe4wN.mjs} +0 -0
- package/system/dist/{wal-maintenance-BPmo2JzY.js → wal-maintenance-D5M6hl53.js} +0 -0
- package/system/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,17 +7,45 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.821] - 2026-11-09
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- A heat-pump device type exposes its status and typed setters through the generated cap routers
|
|
15
|
+
|
|
16
|
+
## [1.2.820] - 2026-11-09
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- A viewer user manages only their own notification targets through integration-instances
|
|
21
|
+
- A fixed builtin whose addon is down reads as an unknown switch; the enabled / disabled event follows the instance record, not the registry flag
|
|
22
|
+
- A fixed builtin can be switched back on while its addon is down, and every switch emits the enabled / disabled event again
|
|
23
|
+
- Integrations: integrations.update refuses enabled for every row; the integration list reports an unanswered switch as unknown
|
|
24
|
+
- integrations.delete is back for an addon that is installed but not running; a fixed builtin can be switched while its addon is down.
|
|
25
|
+
- A provider's refusal of a caller answers FORBIDDEN (403) instead of a server error.
|
|
26
|
+
|
|
27
|
+
### Removed
|
|
28
|
+
|
|
29
|
+
- addonSettings.getIntegrationFormSchema is removed; the create form is integrationInstances.instanceFormSchema with no id
|
|
30
|
+
|
|
10
31
|
## [1.2.819] - 2026-11-09
|
|
11
32
|
|
|
12
33
|
### Changed
|
|
13
34
|
|
|
14
35
|
- Rebuilt against updated dependencies.
|
|
36
|
+
### Changed
|
|
37
|
+
|
|
15
38
|
|
|
16
39
|
## [1.2.818] - 2026-11-09
|
|
17
40
|
|
|
18
41
|
### Changed
|
|
19
42
|
|
|
20
43
|
- Rebuilt against updated dependencies.
|
|
44
|
+
### Changed
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Removed
|
|
48
|
+
|
|
21
49
|
|
|
22
50
|
## [1.2.817] - 2026-11-08
|
|
23
51
|
|
|
@@ -79,7 +79,6 @@ const system_1 = require("@camstack/server/system");
|
|
|
79
79
|
const types_1 = require("@camstack/types");
|
|
80
80
|
const server_1 = require("@trpc/server");
|
|
81
81
|
const instance_lifecycle_1 = require("../../core/addon/instance-lifecycle");
|
|
82
|
-
const instance_links_service_1 = require("../../core/addon/instance-links.service");
|
|
83
82
|
const addon_package_service_js_1 = require("../../core/addon/addon-package.service.js");
|
|
84
83
|
const addon_uninstall_js_1 = require("../../core/addon/addon-uninstall.js");
|
|
85
84
|
const agent_desired_set_1 = require("../../core/agent/agent-desired-set");
|
|
@@ -827,13 +826,16 @@ function getInstancesProvider(ar, addonId) {
|
|
|
827
826
|
/**
|
|
828
827
|
* An integration's `enabled` is a projection of its instance body (epic #440, step 3): the one
|
|
829
828
|
* switch is `setInstanceEnabled`, stored in the addon's record. One `listInstances` call per
|
|
830
|
-
* addon answers every row of it.
|
|
831
|
-
* row,
|
|
832
|
-
*
|
|
829
|
+
* addon answers every row of it. A row the addon cannot speak for (its provider is not up, it
|
|
830
|
+
* keeps no instance for the row, it fails to answer) keeps the registry's stored flag but is
|
|
831
|
+
* marked `switchUnknown`: that flag is stale, not the state, and a reader must not draw it as on or
|
|
832
|
+
* off (D315). A failure is logged: a listing never fails because one addon did not answer.
|
|
833
833
|
*
|
|
834
|
-
* A FIXED builtin is the exception: its switch is the registry flag, the
|
|
835
|
-
* (`
|
|
836
|
-
*
|
|
834
|
+
* A FIXED builtin is the exception: its switch is the registry flag, the hub's own, written by
|
|
835
|
+
* `setFixedBuiltinEnabled` (`instance-lifecycle.ts`) from `setInstanceEnabled` or from
|
|
836
|
+
* `integrations.update({ enabled })`, and the name-only record it is seeded with carries no flag,
|
|
837
|
+
* which a body reads as "on". Its row is never projected and the flag is the answer, whether or
|
|
838
|
+
* not its addon is up.
|
|
837
839
|
*/
|
|
838
840
|
async function projectSwitches(ar, logger, integrations) {
|
|
839
841
|
const byAddon = new Map();
|
|
@@ -853,23 +855,15 @@ async function projectSwitches(ar, logger, integrations) {
|
|
|
853
855
|
}
|
|
854
856
|
}
|
|
855
857
|
return integrations.map((i) => {
|
|
858
|
+
// A fixed builtin's switch is the registry flag: the hub owns it, the addon does not answer for it.
|
|
856
859
|
if ((0, instance_lifecycle_1.isFixedBuiltin)(i))
|
|
857
860
|
return i;
|
|
858
861
|
const enabled = byAddon.get(i.addonId)?.get(i.id);
|
|
859
|
-
return enabled === undefined ? i : { ...i, enabled };
|
|
862
|
+
return enabled === undefined ? { ...i, switchUnknown: true } : { ...i, enabled };
|
|
860
863
|
});
|
|
861
864
|
}
|
|
862
|
-
function buildIntegrationsProvider(ar,
|
|
865
|
+
function buildIntegrationsProvider(ar, loggingService) {
|
|
863
866
|
const logger = loggingService.createLogger('integrations');
|
|
864
|
-
const lifecycleDeps = {
|
|
865
|
-
logger,
|
|
866
|
-
integrations: () => requireIntegrationRegistry(ar),
|
|
867
|
-
deviceManager: () => capabilityRegistry?.getSingleton('device-manager') ?? null,
|
|
868
|
-
eventBus: eb,
|
|
869
|
-
providerFor: (addonId) => getInstancesProvider(ar, addonId),
|
|
870
|
-
holders: () => (0, instance_links_service_1.holdersOf)(ar.getCapabilityRegistry()),
|
|
871
|
-
manifestRole: () => undefined,
|
|
872
|
-
};
|
|
873
867
|
const withProcessState = (i) => ({
|
|
874
868
|
...i,
|
|
875
869
|
processState: ar.listAddons().find((a) => a.manifest.id === i.addonId)?.process?.state ?? 'unknown',
|
|
@@ -908,10 +902,21 @@ function buildIntegrationsProvider(ar, eb, loggingService, capabilityRegistry) {
|
|
|
908
902
|
});
|
|
909
903
|
throw new Error(`Integration "${input.id}" not found`);
|
|
910
904
|
}
|
|
911
|
-
if (input.enabled !== undefined &&
|
|
912
|
-
|
|
905
|
+
if (input.enabled !== undefined && (0, instance_lifecycle_1.isFixedBuiltin)(previous)) {
|
|
906
|
+
// The hub owns a fixed builtin's switch (the registry flag): it works while the addon is down.
|
|
907
|
+
await (0, instance_lifecycle_1.setFixedBuiltinEnabled)(ar.instanceLifecycleDeps(), previous, input.enabled);
|
|
913
908
|
}
|
|
914
|
-
|
|
909
|
+
else if (input.enabled !== undefined) {
|
|
910
|
+
logger.warn('refused: integrations.update does not switch', {
|
|
911
|
+
tags: { integrationId: input.id, addonId: previous.addonId },
|
|
912
|
+
meta: { phase: 'update', reason: 'switch-through-set-instance-enabled' },
|
|
913
|
+
});
|
|
914
|
+
throw new server_1.TRPCError({
|
|
915
|
+
code: 'BAD_REQUEST',
|
|
916
|
+
message: `Integration "${input.id}" is switched through integration-instances.setInstanceEnabled, not integrations.update`,
|
|
917
|
+
});
|
|
918
|
+
}
|
|
919
|
+
const { id, enabled: _switched, ...updates } = input;
|
|
915
920
|
const changedFields = Object.keys(updates).filter((k) => updates[k] !== undefined);
|
|
916
921
|
logger.info('request', {
|
|
917
922
|
tags: { integrationId: input.id, addonId: previous.addonId },
|
|
@@ -920,21 +925,6 @@ function buildIntegrationsProvider(ar, eb, loggingService, capabilityRegistry) {
|
|
|
920
925
|
const result = await reg.updateIntegration(id, updates);
|
|
921
926
|
if (!result)
|
|
922
927
|
throw new Error(`Integration "${id}" not found`);
|
|
923
|
-
const enabledChanged = input.enabled !== undefined && input.enabled !== previous.enabled;
|
|
924
|
-
if (enabledChanged) {
|
|
925
|
-
const category = input.enabled ? 'integration.enabled' : 'integration.disabled';
|
|
926
|
-
logger.info('enabled state changed', {
|
|
927
|
-
tags: { integrationId: result.id, addonId: result.addonId },
|
|
928
|
-
meta: { phase: 'update', enabled: input.enabled },
|
|
929
|
-
});
|
|
930
|
-
eb.emit({
|
|
931
|
-
id: `integration-${category}-${Date.now()}`,
|
|
932
|
-
timestamp: new Date(),
|
|
933
|
-
source: { type: 'integration', id: result.id },
|
|
934
|
-
category,
|
|
935
|
-
data: { integrationId: result.id, addonId: result.addonId },
|
|
936
|
-
});
|
|
937
|
-
}
|
|
938
928
|
if (input.name !== undefined && input.name !== previous.name) {
|
|
939
929
|
logger.info('renamed', {
|
|
940
930
|
tags: { integrationId: result.id },
|
|
@@ -978,11 +968,13 @@ function buildIntegrationsProvider(ar, eb, loggingService, capabilityRegistry) {
|
|
|
978
968
|
});
|
|
979
969
|
throw new Error(`Integration "${input.id}" not found`);
|
|
980
970
|
}
|
|
981
|
-
// The hub half
|
|
982
|
-
// (`instance-lifecycle.ts`)
|
|
983
|
-
//
|
|
971
|
+
// The hub half shared with the registered `integration-instances` provider
|
|
972
|
+
// (`instance-lifecycle.ts`), reachable WITHOUT that provider: an addon that is installed but
|
|
973
|
+
// crashed keeps its integration deletable. A fixed builtin and a linked instance are refused
|
|
974
|
+
// BEFORE the first mutation, then the devices, the record (when the provider is up), the row
|
|
975
|
+
// and the event.
|
|
984
976
|
const instances = getInstancesProvider(ar, integration.addonId);
|
|
985
|
-
await (0, instance_lifecycle_1.deleteRegisteredInstance)(
|
|
977
|
+
await (0, instance_lifecycle_1.deleteRegisteredInstance)(ar.instanceLifecycleDeps(), instances === null ? null : (0, instance_lifecycle_1.rawInstancesProvider)(instances), integration);
|
|
986
978
|
return { success: true, deletedId: input.id };
|
|
987
979
|
},
|
|
988
980
|
getAvailableTypes: async () => {
|
|
@@ -111,7 +111,25 @@ function extractCapRouteError(err) {
|
|
|
111
111
|
* Returns the shape unchanged for all other errors.
|
|
112
112
|
*/
|
|
113
113
|
function formatTrpcError(opts) {
|
|
114
|
-
return withErrorI18n(opts, withCapRouteData(opts));
|
|
114
|
+
return withErrorI18n(opts, withProviderRefusal(opts, withCapRouteData(opts)));
|
|
115
|
+
}
|
|
116
|
+
/** JSON-RPC code tRPC uses for FORBIDDEN. */
|
|
117
|
+
const FORBIDDEN_RPC_CODE = -32003;
|
|
118
|
+
/**
|
|
119
|
+
* A provider's refusal of a caller (`forbiddenError`) reaches the hub as a plain Error, often
|
|
120
|
+
* through the UDS hop to a forked addon, so tRPC calls it a 500. The message prefix survives
|
|
121
|
+
* the hop: answer FORBIDDEN for it.
|
|
122
|
+
*/
|
|
123
|
+
function withProviderRefusal(opts, shape) {
|
|
124
|
+
if (opts.error.code !== 'INTERNAL_SERVER_ERROR')
|
|
125
|
+
return shape;
|
|
126
|
+
if (!opts.error.message.startsWith(types_1.FORBIDDEN_MESSAGE_PREFIX))
|
|
127
|
+
return shape;
|
|
128
|
+
return {
|
|
129
|
+
...shape,
|
|
130
|
+
code: FORBIDDEN_RPC_CODE,
|
|
131
|
+
data: { ...shape.data, code: 'FORBIDDEN', httpStatus: 403 },
|
|
132
|
+
};
|
|
115
133
|
}
|
|
116
134
|
/**
|
|
117
135
|
* A coded error (`userError(...)`, D863) gets its response `message` in the
|
|
@@ -402,6 +402,23 @@ async function inferDeviceAdoptionCollectionAddonPin(methodName, input, deps) {
|
|
|
402
402
|
message: `deviceAdoption.${methodName} requires addonId (top-level pin) or integrationId to resolve the owning provider.`,
|
|
403
403
|
});
|
|
404
404
|
}
|
|
405
|
+
/**
|
|
406
|
+
* May a NON-admin session call a `caller: 'scoped'` method on this provider? Only an
|
|
407
|
+
* `integration-instances` provider that declares `describe().userScoped`: the provider is asked,
|
|
408
|
+
* through the same call the Integrations page uses, so a forked addon answers like a resident one.
|
|
409
|
+
*/
|
|
410
|
+
async function userScopedAdmission(capName, provider) {
|
|
411
|
+
if (capName !== 'integration-instances')
|
|
412
|
+
return false;
|
|
413
|
+
const describe = provider['describe'];
|
|
414
|
+
if (typeof describe !== 'function')
|
|
415
|
+
return false;
|
|
416
|
+
const description = await describe.call(provider);
|
|
417
|
+
return (description !== null &&
|
|
418
|
+
typeof description === 'object' &&
|
|
419
|
+
'userScoped' in description &&
|
|
420
|
+
description.userScoped === true);
|
|
421
|
+
}
|
|
405
422
|
/** Build the `services` half of `buildCapRouters(primitives, services)`. */
|
|
406
423
|
function createCapRouterServices(deps) {
|
|
407
424
|
const reg = deps.capabilityRegistry;
|
|
@@ -513,6 +530,12 @@ function createCapRouterServices(deps) {
|
|
|
513
530
|
unauthorized: (message) => {
|
|
514
531
|
throw new server_1.TRPCError({ code: 'UNAUTHORIZED', message });
|
|
515
532
|
},
|
|
533
|
+
forbidden: (message) => {
|
|
534
|
+
throw new server_1.TRPCError({ code: 'FORBIDDEN', message });
|
|
535
|
+
},
|
|
536
|
+
// `caller: 'scoped'` default-deny (epic #440): a non-admin session reaches an
|
|
537
|
+
// `integration-instances` provider only when that provider says its rows belong to users.
|
|
538
|
+
admitsUserCaller: userScopedAdmission,
|
|
516
539
|
// Task 7.5d: a resolved provider that does not implement `method` must
|
|
517
540
|
// fail, not answer `undefined` (200). NOT_IMPLEMENTED mirrors what
|
|
518
541
|
// `child-cap-dispatch.ts` does on the identical condition on the UDS
|
|
@@ -323,7 +323,7 @@ function redactFormField(field) {
|
|
|
323
323
|
}
|
|
324
324
|
/**
|
|
325
325
|
* Project an ADDON settings form (`addonSettings.getScopedSettings` /
|
|
326
|
-
* `
|
|
326
|
+
* `getDeviceSettings`, a `SettingsSchemaWithValues`).
|
|
327
327
|
*
|
|
328
328
|
* Unlike {@link redactSettingsSections} (device forms, whose secrets are named
|
|
329
329
|
* by key convention) this decides by the FIELD: an addon's credential is often
|
|
@@ -495,7 +495,6 @@ exports.NON_ADMIN_SECRET_FREE_BY_CONTRACT = new Set([
|
|
|
495
495
|
exports.NON_ADMIN_CONFIG_REDACTED_METHODS = new Map([
|
|
496
496
|
// ── Addon settings forms (D634) — hydrated with the STORED secret ──
|
|
497
497
|
['addonSettings.getScopedSettings', redactSettingsForm],
|
|
498
|
-
['addonSettings.getIntegrationFormSchema', redactSettingsForm],
|
|
499
498
|
['addonSettings.getDeviceSettings', redactSettingsForm],
|
|
500
499
|
['deviceExport.getStatus', redactExportSetup],
|
|
501
500
|
// ── Round-3 sweep: the per-device device-ops twins and the listings ──
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// AUTO-GENERATED by scripts/generate-cap-mounts.ts — DO NOT EDIT
|
|
3
3
|
// Re-run: npx tsx scripts/generate-cap-mounts.ts
|
|
4
4
|
//
|
|
5
|
-
// Mounted:
|
|
5
|
+
// Mounted: 202 Skipped (legacy): 3
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.LEGACY_SHAPE_SKIP = void 0;
|
|
8
8
|
exports.mountAllCaps = mountAllCaps;
|
|
@@ -321,6 +321,8 @@ function mountAllCaps(services) {
|
|
|
321
321
|
groupActive: (0, generated_cap_routers_js_1.createCapRouter_groupActive)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'group-active'), remoteCapProxy),
|
|
322
322
|
groupCommands: (0, generated_cap_routers_js_1.createCapRouter_groupCommands)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'group-commands'), remoteCapProxy),
|
|
323
323
|
groupStatus: (0, generated_cap_routers_js_1.createCapRouter_groupStatus)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'group-status'), remoteCapProxy),
|
|
324
|
+
heatPumpControl: (0, generated_cap_routers_js_1.createCapRouter_heatPumpControl)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'heat-pump-control'), remoteCapProxy),
|
|
325
|
+
heatPumpStatus: (0, generated_cap_routers_js_1.createCapRouter_heatPumpStatus)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'heat-pump-status'), remoteCapProxy),
|
|
324
326
|
heatingValve: (0, generated_cap_routers_js_1.createCapRouter_heatingValve)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'heating-valve'), remoteCapProxy),
|
|
325
327
|
heroLayout: (0, generated_cap_routers_js_1.createCapRouter_heroLayout)((_ctx) => reg?.getSingleton('hero-layout') ?? null, remoteCapProxy),
|
|
326
328
|
humidifier: (0, generated_cap_routers_js_1.createCapRouter_humidifier)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'humidifier'), remoteCapProxy),
|