@camstack/server 1.2.931 → 1.2.933
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 +18 -0
- package/dist/api/trpc/generated-cap-routers.js +20 -0
- package/package.json +7 -51
- package/system/dist/{base-device-IuM1AwXZ.mjs → base-device-Bwiblqmn.mjs} +1 -1
- package/system/dist/{base-device-2sL1DMm1.js → base-device-C1z4zYGR.js} +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +2 -2
- package/system/dist/builtins/alerts/alerts.addon.mjs +2 -2
- package/system/dist/builtins/camera-grid/index.js +2 -2
- package/system/dist/builtins/camera-grid/index.mjs +2 -2
- package/system/dist/builtins/composer/composer.addon.js +5 -5
- package/system/dist/builtins/composer/composer.addon.mjs +5 -5
- package/system/dist/builtins/core-blocks/cap-links.d.ts +34 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.d.ts +4 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +282 -8
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +282 -8
- package/system/dist/builtins/device-manager/device-manager.addon.js +18 -4
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +18 -4
- package/system/dist/{composition-sources-BEUWn2s_.mjs → composition-sources-B0QW4g86.mjs} +2 -2
- package/system/dist/{composition-sources-acfR4hDq.js → composition-sources-BtUx1MfU.js} +2 -2
- package/system/dist/{core-blocks.cap-BRPsLAij.mjs → core-blocks.cap-CnwBuf7E.mjs} +1524 -1267
- package/system/dist/{core-blocks.cap-BMeMCBrx.js → core-blocks.cap-DlEuHq-S.js} +1555 -1268
- package/system/dist/{error.cap-CSM_SRfR.mjs → error.cap-5zNPAgU2.mjs} +19 -2
- package/system/dist/{error.cap-DBhgPeWK.js → error.cap-BCqzFlo2.js} +24 -1
- package/system/dist/index.js +2 -2
- package/system/dist/index.mjs +2 -2
- package/system/dist/{prefix-walk-ifwg_ukx.mjs → prefix-walk-CRnbYJcC.mjs} +2 -2
- package/system/dist/{prefix-walk-BkMxoXpL.js → prefix-walk-DD1BM923.js} +2 -2
- package/system/dist/{rename-composition-block-BJsL58Ih.js → rename-composition-block-BRgyBO25.js} +20 -2
- package/system/dist/{rename-composition-block-OAtErZgq.mjs → rename-composition-block-BYRBlx-V.mjs} +20 -2
- package/system/package.json +1 -1
|
@@ -2192,7 +2192,24 @@ var CompositionPassthroughFeatureSchema = /* @__PURE__ */ z.object({
|
|
|
2192
2192
|
enabled: /* @__PURE__ */ z.boolean().optional(),
|
|
2193
2193
|
source: CompositionSourceRefSchema
|
|
2194
2194
|
});
|
|
2195
|
-
|
|
2195
|
+
/**
|
|
2196
|
+
* `capLink` (D1076): a whole capability, or a slot of it, served by ONE source
|
|
2197
|
+
* device. `linkId` names the link the cap declares in `customize.links`;
|
|
2198
|
+
* nothing is stored per field. A `project` link is expanded into claims at plan
|
|
2199
|
+
* time; a `reference` link writes nothing.
|
|
2200
|
+
*/
|
|
2201
|
+
var CompositionCapLinkFeatureSchema = /* @__PURE__ */ z.object({
|
|
2202
|
+
kind: /* @__PURE__ */ z.literal("capLink"),
|
|
2203
|
+
cap: /* @__PURE__ */ z.string().min(1),
|
|
2204
|
+
linkId: /* @__PURE__ */ z.string().min(1),
|
|
2205
|
+
enabled: /* @__PURE__ */ z.boolean().optional(),
|
|
2206
|
+
source: CompositionSourceRefSchema
|
|
2207
|
+
});
|
|
2208
|
+
var CompositionFeatureSchema = /* @__PURE__ */ z.discriminatedUnion("kind", [
|
|
2209
|
+
CompositionFieldsFeatureSchema,
|
|
2210
|
+
CompositionPassthroughFeatureSchema,
|
|
2211
|
+
CompositionCapLinkFeatureSchema
|
|
2212
|
+
]);
|
|
2196
2213
|
/** Only an explicit `false` disables a feature; omitted preserves the existing wire default. */
|
|
2197
2214
|
function compositionFeatureEnabled(feature) {
|
|
2198
2215
|
return feature.enabled !== false;
|
|
@@ -3420,4 +3437,4 @@ listFaultTypes: /* @__PURE__ */ method(ListFaultTypesInputSchema, FaultTypesSche
|
|
|
3420
3437
|
}
|
|
3421
3438
|
};
|
|
3422
3439
|
//#endregion
|
|
3423
|
-
export {
|
|
3440
|
+
export { openStatistic as $, compositionItemFieldPath as A, helperMembers as B, CompositionFieldReadSchema as C, composedDeviceRef as D, canonicalStoredBlockTarget as E, featureSources as F, DEFAULT_HISTORY_RETENTION as G, isHistoryHelper as H, fieldReads as I, HOUR_MS as J, HISTORY_FAST_MS as K, isForwardInputRef as L, compositionSliceKey as M, compositionSourceKey as N, composedDeviceStableId as O, featureFieldEntries as P, openReset as Q, COMPOSED_DEVICE_STABLE_ID_PREFIX as R, COMPOSITION_ITEM_ARRAY_PATH as S, CompositionSchema as T, CompositionSourceRefSchema as U, isEngineHostedHelper as V, DAY_MS as W, historyRetentionFromSettings as X, MINUTE_MS as Y, nextLocalMidnight as Z, groupTemplate as _, evaluateCount as _t, sameHelperBody as a, integrateReading as at, refused as b, isIdentifier as c, evaluateExpressionSource as ct, signedToken as d, validateExpressionSource as dt, planResetTier as et, unsignedToken as f, compileExpressionSafe as ft, sharedColorModes as g, disarmRoseMemory as gt, runFanOut as h, EXPRESSION_BUILTINS as ht, compileHelper as i, evaluateStatistic as it, compositionReadKey as j, compositionFeatureEnabled as k, linearExpr as l, evaluateStatefulExpressionCall as lt, fanOutTargets as m, MAX_EXPRESSION_SOURCE_LENGTH as mt, ERROR_STATUS_COLD as n, statisticCadenceMs as nt, constantExpr as o, cloneStatefulExpressionMemory as ot, declaredSeriesKind as p, EXPRESSION_IDENTIFIER_RE as pt, HISTORY_SLOW_MS as q, errorCapability as r, evaluateDerivative as rt, dwellExpr as s, createStatefulExpressionMemory as st, DeviceFaultSchema as t, planStatisticTier as tt, overrideExpr as u, toExpressionValue as ut, compositionFieldAt as v, evaluateDwell as vt, CompositionFieldSourceSchema as w, COMPOSER_ADDON_ID as x, problem as y, HelperMemberSchema as z };
|
|
@@ -2192,7 +2192,24 @@ var CompositionPassthroughFeatureSchema = /* @__PURE__ */ zod.z.object({
|
|
|
2192
2192
|
enabled: /* @__PURE__ */ zod.z.boolean().optional(),
|
|
2193
2193
|
source: CompositionSourceRefSchema
|
|
2194
2194
|
});
|
|
2195
|
-
|
|
2195
|
+
/**
|
|
2196
|
+
* `capLink` (D1076): a whole capability, or a slot of it, served by ONE source
|
|
2197
|
+
* device. `linkId` names the link the cap declares in `customize.links`;
|
|
2198
|
+
* nothing is stored per field. A `project` link is expanded into claims at plan
|
|
2199
|
+
* time; a `reference` link writes nothing.
|
|
2200
|
+
*/
|
|
2201
|
+
var CompositionCapLinkFeatureSchema = /* @__PURE__ */ zod.z.object({
|
|
2202
|
+
kind: /* @__PURE__ */ zod.z.literal("capLink"),
|
|
2203
|
+
cap: /* @__PURE__ */ zod.z.string().min(1),
|
|
2204
|
+
linkId: /* @__PURE__ */ zod.z.string().min(1),
|
|
2205
|
+
enabled: /* @__PURE__ */ zod.z.boolean().optional(),
|
|
2206
|
+
source: CompositionSourceRefSchema
|
|
2207
|
+
});
|
|
2208
|
+
var CompositionFeatureSchema = /* @__PURE__ */ zod.z.discriminatedUnion("kind", [
|
|
2209
|
+
CompositionFieldsFeatureSchema,
|
|
2210
|
+
CompositionPassthroughFeatureSchema,
|
|
2211
|
+
CompositionCapLinkFeatureSchema
|
|
2212
|
+
]);
|
|
2196
2213
|
/** Only an explicit `false` disables a feature; omitted preserves the existing wire default. */
|
|
2197
2214
|
function compositionFeatureEnabled(feature) {
|
|
2198
2215
|
return feature.enabled !== false;
|
|
@@ -3456,6 +3473,12 @@ Object.defineProperty(exports, "CompositionSchema", {
|
|
|
3456
3473
|
return CompositionSchema;
|
|
3457
3474
|
}
|
|
3458
3475
|
});
|
|
3476
|
+
Object.defineProperty(exports, "CompositionSourceRefSchema", {
|
|
3477
|
+
enumerable: true,
|
|
3478
|
+
get: function() {
|
|
3479
|
+
return CompositionSourceRefSchema;
|
|
3480
|
+
}
|
|
3481
|
+
});
|
|
3459
3482
|
Object.defineProperty(exports, "DAY_MS", {
|
|
3460
3483
|
enumerable: true,
|
|
3461
3484
|
get: function() {
|
package/system/dist/index.js
CHANGED
|
@@ -2,14 +2,14 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
3
3
|
const require_base_addon = require("./base-addon-DD5dIfcZ.js");
|
|
4
4
|
const require_scoped_settings = require("./scoped-settings-CylSSq_8.js");
|
|
5
|
-
const require_rename_composition_block = require("./rename-composition-block-
|
|
5
|
+
const require_rename_composition_block = require("./rename-composition-block-BRgyBO25.js");
|
|
6
6
|
const require_camstack_error = require("./camstack-error-DJ-TUAi1.js");
|
|
7
7
|
const require_capability_definition = require("./capability-definition-HCmTem8c.js");
|
|
8
8
|
const require_record_kind = require("./record-kind-DoBfYHCs.js");
|
|
9
9
|
const require_wal_maintenance = require("./wal-maintenance-DyrebYKF.js");
|
|
10
10
|
const require_device_certificate = require("./device-certificate-CguVACQO.js");
|
|
11
11
|
const require_addon_settings_cap = require("./addon-settings.cap-DAiE0Nb0.js");
|
|
12
|
-
const require_prefix_walk = require("./prefix-walk-
|
|
12
|
+
const require_prefix_walk = require("./prefix-walk-DD1BM923.js");
|
|
13
13
|
const require_network_access_cap = require("./network-access.cap-B5TWLDCC.js");
|
|
14
14
|
const require_constants = require("./constants-C860Y6U4.js");
|
|
15
15
|
const require_addon_id = require("./addon-id-Di0lNJ89.js");
|
package/system/dist/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { i as __require } from "./chunk-CNf5ZN-e.mjs";
|
|
2
2
|
import { b as EventCategory$1, i as collectSecretMarkerRefs, p as createEvent$1 } from "./base-addon-Md14i7pe.mjs";
|
|
3
3
|
import { Z as errMsg$1 } from "./scoped-settings-DVWUIP7Z.mjs";
|
|
4
|
-
import { Un as lifecycleJobSchema, a as isCollectionArrayMethod, c as kebabToCamel$1, d as objectInputDeclaresRequiredDeviceId, dr as compareVersions, f as procedureAuthKey, fr as describeUnmet, i as isArrayOutputSchema, l as looseSchema, m as ALL_CAPABILITY_DEFINITIONS, o as isObjectInput, p as resolveMethodAuth, pr as unmetRequirements, r as extractNestedAddonId, s as isVoidInput, u as objectInputDeclaresAddonId, ur as PackageRequiresSchema } from "./rename-composition-block-
|
|
4
|
+
import { Un as lifecycleJobSchema, a as isCollectionArrayMethod, c as kebabToCamel$1, d as objectInputDeclaresRequiredDeviceId, dr as compareVersions, f as procedureAuthKey, fr as describeUnmet, i as isArrayOutputSchema, l as looseSchema, m as ALL_CAPABILITY_DEFINITIONS, o as isObjectInput, p as resolveMethodAuth, pr as unmetRequirements, r as extractNestedAddonId, s as isVoidInput, u as objectInputDeclaresAddonId, ur as PackageRequiresSchema } from "./rename-composition-block-BYRBlx-V.mjs";
|
|
5
5
|
import { t as userError } from "./camstack-error-viZYfcj9.mjs";
|
|
6
6
|
import { a as expandCapMethods, n as DEVICE_STATUS_METHOD, t as DEVICE_SETTINGS_CONTRIBUTION_METHODS, u as resolveCapMount } from "./capability-definition-C2rJdVeX.mjs";
|
|
7
7
|
import { s as defineRecordKinds } from "./record-kind-ub6NXqfh.mjs";
|
|
8
8
|
import { D as RecordsEngine, J as asNumber, X as parseJsonObject, Y as asString$1, Z as parseJsonUnknown, l as SqliteSettingsBackend, q as asJsonObject$1 } from "./wal-maintenance-BG01rOn9.mjs";
|
|
9
9
|
import { f as AppPageLangSchema } from "./device-certificate-Cddm4Idn.mjs";
|
|
10
10
|
import { i as addonSettingsCapability } from "./addon-settings.cap-3-TIIMq_.mjs";
|
|
11
|
-
import { t as loadPrefixed } from "./prefix-walk-
|
|
11
|
+
import { t as loadPrefixed } from "./prefix-walk-CRnbYJcC.mjs";
|
|
12
12
|
import { a as AGENT_MDNS_TXT_KEYS, i as AGENT_MDNS_SERVICE_TYPE } from "./network-access.cap-BJnGbE6n.mjs";
|
|
13
13
|
import { t as RUNTIME_DEFAULTS } from "./constants-DCLpoF4L.mjs";
|
|
14
14
|
import { t as bareAddonId } from "./addon-id-CVg1_r5E.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Bt as describeHoldMs, Ft as eventLeafIdAt, Gt as anySubjectMatches, Ht as describeWantedFaults, It as forEachLeaf, Jt as isQuantityValue, Rt as isEventLeaf, Ut as faultMatches, Wt as readFault, an as weekdayOfLocalDate, en as isKnownTimeZone, rn as occurrenceOn, tn as localDateOf, zt as compareValues } from "./core-blocks.cap-CnwBuf7E.mjs";
|
|
2
|
+
import { ct as evaluateExpressionSource, ut as toExpressionValue } from "./error.cap-5zNPAgU2.mjs";
|
|
3
3
|
import { t as prefixRange } from "./prefix-range-Dl0znowN.mjs";
|
|
4
4
|
//#region ../types/dist/esm/time/time-window.mjs
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_core_blocks_cap = require("./core-blocks.cap-
|
|
2
|
-
const require_error_cap = require("./error.cap-
|
|
1
|
+
const require_core_blocks_cap = require("./core-blocks.cap-DlEuHq-S.js");
|
|
2
|
+
const require_error_cap = require("./error.cap-BCqzFlo2.js");
|
|
3
3
|
const require_prefix_range = require("./prefix-range-D_KueXbQ.js");
|
|
4
4
|
//#region ../types/dist/esm/time/time-window.mjs
|
|
5
5
|
/**
|
package/system/dist/{rename-composition-block-BJsL58Ih.js → rename-composition-block-BRgyBO25.js}
RENAMED
|
@@ -19,9 +19,9 @@ const require_platform_probe_cap = require("./platform-probe.cap-1WrMhWHx.js");
|
|
|
19
19
|
const require_user_management_cap = require("./user-management.cap-B9QDu8NE.js");
|
|
20
20
|
const require_device_type = require("./device-type-CbQsnFdC.js");
|
|
21
21
|
const require_device_certificate = require("./device-certificate-CguVACQO.js");
|
|
22
|
-
const require_core_blocks_cap = require("./core-blocks.cap-
|
|
22
|
+
const require_core_blocks_cap = require("./core-blocks.cap-DlEuHq-S.js");
|
|
23
23
|
const require_addon_settings_cap = require("./addon-settings.cap-DAiE0Nb0.js");
|
|
24
|
-
const require_error_cap = require("./error.cap-
|
|
24
|
+
const require_error_cap = require("./error.cap-BCqzFlo2.js");
|
|
25
25
|
const require_source_info = require("./source-info-DtWf4k2j.js");
|
|
26
26
|
const require_l10n = require("./l10n-CGMvp7NF.js");
|
|
27
27
|
const require_addon_pages_cap = require("./addon-pages.cap-Df9FQwN1.js");
|
|
@@ -10069,6 +10069,17 @@ var energySystemCapability = {
|
|
|
10069
10069
|
}
|
|
10070
10070
|
},
|
|
10071
10071
|
volatileStateFields: ["lastFetchedAt"],
|
|
10072
|
+
customize: {
|
|
10073
|
+
version: 1,
|
|
10074
|
+
targets: [],
|
|
10075
|
+
links: [{
|
|
10076
|
+
id: "heat-pump",
|
|
10077
|
+
sourceCap: "heat-pump-status",
|
|
10078
|
+
mode: "reference",
|
|
10079
|
+
slot: "heatPump",
|
|
10080
|
+
apply: "add"
|
|
10081
|
+
}]
|
|
10082
|
+
},
|
|
10072
10083
|
vocabulary: {
|
|
10073
10084
|
noun: /* @__PURE__ */ require_l10n.t("Energy system", "Sistema energetico"),
|
|
10074
10085
|
order: 4020
|
|
@@ -22096,6 +22107,13 @@ var powerMeterCapability = {
|
|
|
22096
22107
|
"voltage",
|
|
22097
22108
|
"current"
|
|
22098
22109
|
]
|
|
22110
|
+
}],
|
|
22111
|
+
links: [{
|
|
22112
|
+
id: "meter-device",
|
|
22113
|
+
sourceCap: "power-meter",
|
|
22114
|
+
mode: "project",
|
|
22115
|
+
apply: "add",
|
|
22116
|
+
deviceTypes: POWER_METER_CUSTOMIZE_DEVICE_TYPES
|
|
22099
22117
|
}]
|
|
22100
22118
|
},
|
|
22101
22119
|
vocabulary: {
|
package/system/dist/{rename-composition-block-OAtErZgq.mjs → rename-composition-block-BYRBlx-V.mjs}
RENAMED
|
@@ -19,9 +19,9 @@ import { r as MODEL_FORMATS, t as platformProbeCapability } from "./platform-pro
|
|
|
19
19
|
import { a as authProviderCapability, c as TokenScopeSchema, i as deviceCredentialsCapability, r as ssoBridgeCapability, t as userManagementCapability } from "./user-management.cap-DBIi77sB.mjs";
|
|
20
20
|
import { n as DeviceRole, r as DeviceType } from "./device-type-DgEvK3ch.mjs";
|
|
21
21
|
import { d as AppLoginPathSchema } from "./device-certificate-Cddm4Idn.mjs";
|
|
22
|
-
import { $ as
|
|
22
|
+
import { $t as unwrapSchema, A as MediaPlayerStatusSchema, At as TemplateEntriesValueSchema, B as isRemoteCustomKey, F as irSourceProblem, G as IrNativeFormatSchema, H as isRemoteWidgetRole, I as remoteSourceSteps, Jt as isQuantityValue, K as IrTimingsSchema, Kt as QuantityUnitError, M as REMOTE_STEP_DELAY_MAX_MS, Mt as TemplateTimeWindowValueSchema, N as RemoteSourceSchema, Nt as AutomationWhenSchema, Pt as EVENT_LEAF_ID_RE, Qt as enumerateSchemaFields, R as RemoteRoleSchema, St as AutomationRecipeSchema, V as isRemoteRole, W as IrNativeCodeSchema, Xt as paramMetaOf, Yt as paramMeta, Zt as enumerateItemArrayFields, _n as vocabCall, _t as SchedulerSchema, at as AutomationRunOutcomeSchema, bt as ActionStepSchema, c as coreBlocksCapability, et as CompositionBlockStateSchema, ft as LOCAL_DATE_PATTERN, gt as SchedulerPreviewSchema, hn as findVocabAction, ht as SchedulerInputSchema, it as alertsCapability, j as mediaPlayerCapability, jt as TemplateEventValueSchema, kt as TemplateActionValueSchema, ot as AutomationRunTraceSchema, pt as SchedulerConflictSchema, q as TransmitSettingsSchema, qt as convertQuantityInput, sn as EventVocabularyEntrySchema, tt as CompositionRunStatusSchema, vt as SchedulerStatusSchema, w as powerSourceCapability, xt as AutomationBranchStepSchema, z as customKeyOfRole } from "./core-blocks.cap-CnwBuf7E.mjs";
|
|
23
23
|
import { i as addonSettingsCapability, o as unitDimension, s as unitsForDimension } from "./addon-settings.cap-3-TIIMq_.mjs";
|
|
24
|
-
import { R as COMPOSED_DEVICE_STABLE_ID_PREFIX, T as CompositionSchema, r as errorCapability, x as COMPOSER_ADDON_ID } from "./error.cap-
|
|
24
|
+
import { R as COMPOSED_DEVICE_STABLE_ID_PREFIX, T as CompositionSchema, r as errorCapability, x as COMPOSER_ADDON_ID } from "./error.cap-5zNPAgU2.mjs";
|
|
25
25
|
import { a as normalizeUnit } from "./source-info-DGB7SdB_.mjs";
|
|
26
26
|
import { t } from "./l10n-Bu6aUvSY.mjs";
|
|
27
27
|
import { t as addonPagesCapability } from "./addon-pages.cap-DksUlE8j.mjs";
|
|
@@ -10066,6 +10066,17 @@ var energySystemCapability = {
|
|
|
10066
10066
|
}
|
|
10067
10067
|
},
|
|
10068
10068
|
volatileStateFields: ["lastFetchedAt"],
|
|
10069
|
+
customize: {
|
|
10070
|
+
version: 1,
|
|
10071
|
+
targets: [],
|
|
10072
|
+
links: [{
|
|
10073
|
+
id: "heat-pump",
|
|
10074
|
+
sourceCap: "heat-pump-status",
|
|
10075
|
+
mode: "reference",
|
|
10076
|
+
slot: "heatPump",
|
|
10077
|
+
apply: "add"
|
|
10078
|
+
}]
|
|
10079
|
+
},
|
|
10069
10080
|
vocabulary: {
|
|
10070
10081
|
noun: /* @__PURE__ */ t("Energy system", "Sistema energetico"),
|
|
10071
10082
|
order: 4020
|
|
@@ -22026,6 +22037,13 @@ var powerMeterCapability = {
|
|
|
22026
22037
|
"voltage",
|
|
22027
22038
|
"current"
|
|
22028
22039
|
]
|
|
22040
|
+
}],
|
|
22041
|
+
links: [{
|
|
22042
|
+
id: "meter-device",
|
|
22043
|
+
sourceCap: "power-meter",
|
|
22044
|
+
mode: "project",
|
|
22045
|
+
apply: "add",
|
|
22046
|
+
deviceTypes: POWER_METER_CUSTOMIZE_DEVICE_TYPES
|
|
22029
22047
|
}]
|
|
22030
22048
|
},
|
|
22031
22049
|
vocabulary: {
|