@camstack/server 1.2.893 → 1.2.894
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/api/core/api-catalog.js +93 -0
- package/dist/api/core/api-catalog.router.js +74 -0
- package/dist/api/trpc/trpc.middleware.js +17 -0
- package/dist/api/trpc/trpc.router.js +10 -3
- package/package.json +15 -11
- 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 +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- 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/core-blocks.addon.js +3 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
- 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 +79 -8
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +79 -8
- package/system/dist/builtins/device-manager/device-provider-context.d.ts +5 -0
- package/system/dist/builtins/device-manager/device-state-mirror.d.ts +10 -0
- package/system/dist/builtins/device-manager/runtime-state-persist-gate.d.ts +20 -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 +3 -3
- package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
- 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 +3 -3
- 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-CIVKm_jN.mjs → capture-engine-6UsbHfRF.mjs} +1 -1
- package/system/dist/{capture-engine-mZ2J-GD6.js → capture-engine-DhqkkOfH.js} +1 -1
- package/system/dist/{composition-sources-CGP5ZUYo.js → composition-sources-AbyhP_uF.js} +1 -1
- package/system/dist/{composition-sources-bJP8_Z2o.mjs → composition-sources-DmDAqBqM.mjs} +1 -1
- package/system/dist/{constants-BD8oSQro.js → constants-CLyC9O9i.js} +1 -1
- package/system/dist/{constants-w-6vvTPp.mjs → constants-DMeh8SL7.mjs} +1 -1
- package/system/dist/{device-ca-DE_oetBE.mjs → device-ca-BJ714blt.mjs} +1 -1
- package/system/dist/{device-ca-CXxnQaff.js → device-ca-C4odTE-a.js} +1 -1
- package/system/dist/{dist-B2-Uflhy.js → dist-BDciHA-9.js} +101 -25
- package/system/dist/{dist-Be8yFd71.mjs → dist-DLp5CYDy.mjs} +101 -25
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-BjYvJU_v.js → hub-identity-BLkehzWw.js} +1 -1
- package/system/dist/{hub-identity-C3g7b58L.mjs → hub-identity-C6c6E6Xn.mjs} +1 -1
- package/system/dist/{hub-mdns-ciao-BRfv9GfW.js → hub-mdns-ciao-ByOblmkT.js} +2 -2
- package/system/dist/{hub-mdns-ciao-v6X_SbWl.mjs → hub-mdns-ciao-oQtUklUf.mjs} +2 -2
- package/system/dist/index.js +8 -8
- package/system/dist/index.mjs +8 -8
- package/system/dist/{legacy-integration-rows-door-B0q34gh3.js → legacy-integration-rows-door-CVwsY9u6.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-DG35DG06.mjs → legacy-integration-rows-door-D_FBo1b1.mjs} +1 -1
- package/system/dist/{rename-composition-block-LEbZ4oZE.mjs → rename-composition-block-CnA_Dslb.mjs} +1 -1
- package/system/dist/{rename-composition-block-DNte3Cs9.js → rename-composition-block-_LotNQv9.js} +1 -1
- package/system/dist/{restore-archive-DpFPheMK.js → restore-archive-CXPBPM61.js} +1 -1
- package/system/dist/{restore-archive--4ENkU5f.mjs → restore-archive-WMuoi9Ve.mjs} +1 -1
- package/system/dist/{wal-maintenance-DQVDhuVJ.mjs → wal-maintenance-COXWd5qA.mjs} +0 -0
- package/system/dist/{wal-maintenance-BWUJktqT.js → wal-maintenance-h2cm6gDJ.js} +0 -0
- package/system/package.json +1 -1
|
@@ -832,7 +832,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
832
832
|
return EventCategory;
|
|
833
833
|
}({});
|
|
834
834
|
//#endregion
|
|
835
|
-
//#region ../types/dist/composed-stable-id-
|
|
835
|
+
//#region ../types/dist/composed-stable-id-Kt5VKzGZ.mjs
|
|
836
836
|
/**
|
|
837
837
|
import { errMsg } from '@camstack/types'
|
|
838
838
|
* Extract a human-readable message from an unknown error value.
|
|
@@ -1060,9 +1060,6 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
|
1060
1060
|
DeviceFeature["FanDirection"] = "fan-direction";
|
|
1061
1061
|
/** Fan exposes an oscillation toggle. */
|
|
1062
1062
|
DeviceFeature["FanOscillating"] = "fan-oscillating";
|
|
1063
|
-
/** Lock requires a PIN code on lock/unlock. Gates the code-entry
|
|
1064
|
-
* field on the UI lock-controls panel. */
|
|
1065
|
-
DeviceFeature["LockPinRequired"] = "lock-pin-required";
|
|
1066
1063
|
/** Lock supports a latch-release ("open door") action distinct from
|
|
1067
1064
|
* unlock. Mirrors HA `LockEntityFeature.OPEN` (bit 1) in
|
|
1068
1065
|
* `supported_features`. Gates the Open Door button in the UI. */
|
|
@@ -1093,8 +1090,6 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
|
1093
1090
|
DeviceFeature["MediaPlayerChannelStep"] = "media-player-channel-step";
|
|
1094
1091
|
/** Media player exposes power on / off. */
|
|
1095
1092
|
DeviceFeature["MediaPlayerPower"] = "media-player-power";
|
|
1096
|
-
/** Alarm panel requires a PIN code on arm/disarm. */
|
|
1097
|
-
DeviceFeature["AlarmPinRequired"] = "alarm-pin-required";
|
|
1098
1093
|
/** Presence device carries GPS coordinates (lat/lng/accuracy) in
|
|
1099
1094
|
* addition to a textual location. */
|
|
1100
1095
|
DeviceFeature["PresenceGps"] = "presence-gps";
|
|
@@ -1302,7 +1297,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
1302
1297
|
*/
|
|
1303
1298
|
var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
|
|
1304
1299
|
//#endregion
|
|
1305
|
-
//#region ../types/dist/sleep-
|
|
1300
|
+
//#region ../types/dist/sleep-CFN40XWx.mjs
|
|
1306
1301
|
/**
|
|
1307
1302
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
1308
1303
|
* window to float samples (D455).
|
|
@@ -16984,7 +16979,7 @@ Object.freeze({
|
|
|
16984
16979
|
]
|
|
16985
16980
|
},
|
|
16986
16981
|
{
|
|
16987
|
-
"path": "
|
|
16982
|
+
"path": "codeRequired",
|
|
16988
16983
|
"valueType": "boolean"
|
|
16989
16984
|
}
|
|
16990
16985
|
],
|
|
@@ -18052,6 +18047,9 @@ Object.freeze({
|
|
|
18052
18047
|
"jammed",
|
|
18053
18048
|
"door-open"
|
|
18054
18049
|
]
|
|
18050
|
+
}, {
|
|
18051
|
+
"path": "codeRequired",
|
|
18052
|
+
"valueType": "boolean"
|
|
18055
18053
|
}],
|
|
18056
18054
|
"media-player": [
|
|
18057
18055
|
{
|
|
@@ -19361,7 +19359,7 @@ function sleep(ms) {
|
|
|
19361
19359
|
return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
|
|
19362
19360
|
}
|
|
19363
19361
|
//#endregion
|
|
19364
|
-
//#region ../types/dist/implemented-methods-
|
|
19362
|
+
//#region ../types/dist/implemented-methods-BiV3Y-40.mjs
|
|
19365
19363
|
var AUDIO_ENCODER_BY_CODEC = {
|
|
19366
19364
|
opus: "libopus",
|
|
19367
19365
|
aac: "aac",
|
|
@@ -48256,6 +48254,68 @@ z.object({
|
|
|
48256
48254
|
/** Namespaces the client listed that no longer exist. */
|
|
48257
48255
|
deleted: z.array(PreferenceNamespaceSchema)
|
|
48258
48256
|
});
|
|
48257
|
+
/**
|
|
48258
|
+
* The wire shapes of `apiCatalog.*` — the API explorer's data (planning#595).
|
|
48259
|
+
*
|
|
48260
|
+
* One entry per tRPC method the hub serves, capability and core routes alike,
|
|
48261
|
+
* read off the live router by the hub (never a hand-written list).
|
|
48262
|
+
*/
|
|
48263
|
+
var ApiProcedureKindSchema = z.enum([
|
|
48264
|
+
"query",
|
|
48265
|
+
"mutation",
|
|
48266
|
+
"subscription"
|
|
48267
|
+
]);
|
|
48268
|
+
/** The gate a method runs behind. */
|
|
48269
|
+
var ApiProcedureTierSchema = z.enum([
|
|
48270
|
+
"public",
|
|
48271
|
+
"protected",
|
|
48272
|
+
"admin"
|
|
48273
|
+
]);
|
|
48274
|
+
/** The token scope a capability route is matched against (its `METHOD_ACCESS_MAP` row). */
|
|
48275
|
+
var ApiCatalogScopeSchema = z.object({
|
|
48276
|
+
capName: z.string(),
|
|
48277
|
+
capScope: z.enum(["device", "system"]),
|
|
48278
|
+
access: z.enum([
|
|
48279
|
+
"view",
|
|
48280
|
+
"create",
|
|
48281
|
+
"delete"
|
|
48282
|
+
]),
|
|
48283
|
+
role: z.string()
|
|
48284
|
+
});
|
|
48285
|
+
var ApiCatalogEntrySchema = z.object({
|
|
48286
|
+
/** `<router>.<method>` — the tRPC path. */
|
|
48287
|
+
path: z.string(),
|
|
48288
|
+
router: z.string(),
|
|
48289
|
+
method: z.string(),
|
|
48290
|
+
kind: ApiProcedureKindSchema,
|
|
48291
|
+
tier: ApiProcedureTierSchema,
|
|
48292
|
+
source: z.enum(["capability", "core"]),
|
|
48293
|
+
/** `null` on a core route: it needs authentication only (plus admin where its tier says so). */
|
|
48294
|
+
scope: ApiCatalogScopeSchema.nullable(),
|
|
48295
|
+
hasInput: z.boolean()
|
|
48296
|
+
});
|
|
48297
|
+
/**
|
|
48298
|
+
* May the CALLER call a method. The list has no input, so a method reached
|
|
48299
|
+
* only through a device grant is `per-device`: the real call is allowed or
|
|
48300
|
+
* refused on the device its input names.
|
|
48301
|
+
*/
|
|
48302
|
+
var ApiCallableSchema = z.enum([
|
|
48303
|
+
"yes",
|
|
48304
|
+
"no",
|
|
48305
|
+
"per-device"
|
|
48306
|
+
]);
|
|
48307
|
+
var ApiCatalogMethodSchema = ApiCatalogEntrySchema.extend({ callable: ApiCallableSchema });
|
|
48308
|
+
z.object({ methods: z.array(ApiCatalogMethodSchema) });
|
|
48309
|
+
/** A JSON Schema document, as the explorer receives it. */
|
|
48310
|
+
var JsonSchemaDocumentSchema = z.record(z.string(), z.unknown());
|
|
48311
|
+
z.object({
|
|
48312
|
+
path: z.string(),
|
|
48313
|
+
hasInput: z.boolean(),
|
|
48314
|
+
/** The INPUT JSON schema (what the caller sends); `null` without input or when it could not be produced. */
|
|
48315
|
+
schema: JsonSchemaDocumentSchema.nullable(),
|
|
48316
|
+
/** Why no schema could be produced (a non-Zod parser, an unrepresentable type). */
|
|
48317
|
+
error: z.string().nullable()
|
|
48318
|
+
});
|
|
48259
48319
|
z.enum(["new-session", "step-up"]);
|
|
48260
48320
|
/** The languages the hub's app landing pages are written in (D858). */
|
|
48261
48321
|
var AppPageLangSchema = z.enum(["en", "it"]);
|
|
@@ -56739,9 +56799,8 @@ var airQualitySensorCapability = {
|
|
|
56739
56799
|
* Many panels require a PIN code on arm / disarm — the optional
|
|
56740
56800
|
* `code` field on the methods passes it through to the upstream
|
|
56741
56801
|
* service; it's NEVER persisted in the runtime slice or any event
|
|
56742
|
-
* payload.
|
|
56743
|
-
* `
|
|
56744
|
-
* field without a slice fetch.
|
|
56802
|
+
* payload. Whether a code is required is the slice's `codeRequired`
|
|
56803
|
+
* (#459): `null` when the provider cannot tell (D393).
|
|
56745
56804
|
*
|
|
56746
56805
|
* `availableModes` mirrors HA's `supported_features`-derived arm
|
|
56747
56806
|
* mode list — the UI renders only the buttons the panel accepts.
|
|
@@ -56780,9 +56839,13 @@ var AlarmPanelStatusSchema = z.object({
|
|
|
56780
56839
|
/** Subset of arm modes the panel accepts. UI renders one button per
|
|
56781
56840
|
* mode in this list. */
|
|
56782
56841
|
availableModes: z.array(AlarmArmModeSchema),
|
|
56783
|
-
/**
|
|
56784
|
-
*
|
|
56785
|
-
requiresCode
|
|
56842
|
+
/**
|
|
56843
|
+
* Whether the panel requires a PIN on arm / disarm (#459; the field was
|
|
56844
|
+
* `requiresCode`, and the `alarm-pin-required` device feature is gone).
|
|
56845
|
+
* `null` = the provider cannot tell (D393), never `false`. A slice restored
|
|
56846
|
+
* from before the rename is upgraded at boot by `restoredFieldRenames`.
|
|
56847
|
+
*/
|
|
56848
|
+
codeRequired: z.boolean().nullable(),
|
|
56786
56849
|
/** Ms epoch when the slice was last updated. */
|
|
56787
56850
|
lastChangedAt: z.number()
|
|
56788
56851
|
});
|
|
@@ -56839,7 +56902,7 @@ var alarmPanelCapability = {
|
|
|
56839
56902
|
arm: method(z.object({
|
|
56840
56903
|
deviceId: z.number().int().nonnegative(),
|
|
56841
56904
|
mode: AlarmArmModeSchema,
|
|
56842
|
-
/** Optional PIN code. Required when `
|
|
56905
|
+
/** Optional PIN code. Required when `codeRequired === true`.
|
|
56843
56906
|
* Passed through to the upstream service; never persisted. */
|
|
56844
56907
|
code: z.string().min(1).optional()
|
|
56845
56908
|
}), z.void(), {
|
|
@@ -56956,7 +57019,7 @@ var alarmPanelCapability = {
|
|
|
56956
57019
|
/**
|
|
56957
57020
|
* Runtime-state slice — mirrored by the kernel. UI panel reads the
|
|
56958
57021
|
* full slice; renders an arm button per `availableModes` entry and
|
|
56959
|
-
* a PIN field iff `
|
|
57022
|
+
* a PIN field iff `codeRequired === true`.
|
|
56960
57023
|
*/
|
|
56961
57024
|
runtimeState: AlarmPanelStatusSchema,
|
|
56962
57025
|
/**
|
|
@@ -56967,6 +57030,13 @@ var alarmPanelCapability = {
|
|
|
56967
57030
|
*/
|
|
56968
57031
|
durability: "restored",
|
|
56969
57032
|
/**
|
|
57033
|
+
* A slice persisted before #459 carries `requiresCode`; the boot seed reads it
|
|
57034
|
+
* once into `codeRequired` (`restoredPart`), so no reader meets the old key,
|
|
57035
|
+
* and rewrites the row once without it (`seedMirrorFromRow`) — so this entry
|
|
57036
|
+
* can be dropped after every node has booted once on a release that has it.
|
|
57037
|
+
*/
|
|
57038
|
+
restoredFieldRenames: { requiresCode: "codeRequired" },
|
|
57039
|
+
/**
|
|
56970
57040
|
* History (D850): the panel's lifecycle state as an `enum` series —
|
|
56971
57041
|
* change-only, no floor, so an `arming -> pending -> triggered` sequence of a
|
|
56972
57042
|
* few seconds keeps every step. Who armed it stays in the events ledger.
|
|
@@ -83402,8 +83472,8 @@ var localNetworkCapability = {
|
|
|
83402
83472
|
* (workplace keypad locks, hospitality). The optional `code` field
|
|
83403
83473
|
* on the methods passes it through to the upstream service — the
|
|
83404
83474
|
* code is NEVER persisted in the runtime slice or any event payload.
|
|
83405
|
-
*
|
|
83406
|
-
* the
|
|
83475
|
+
* Whether a lock REQUIRES a code is the slice's `codeRequired` (#459):
|
|
83476
|
+
* `true` / `false` when the provider knows, `null` when it does not (D393).
|
|
83407
83477
|
*
|
|
83408
83478
|
* Locks that support a latch-release ("open door") action advertise
|
|
83409
83479
|
* `DeviceFeature.LockOpen`. The `open` method triggers the latch
|
|
@@ -83432,6 +83502,13 @@ var LockControlStatusSchema = z.object({
|
|
|
83432
83502
|
/** Lifecycle state of the lock. `jammed` means the motor reported
|
|
83433
83503
|
* failure to reach the target — operator intervention required. */
|
|
83434
83504
|
state: LockStateSchema,
|
|
83505
|
+
/**
|
|
83506
|
+
* Whether lock / unlock need a PIN `code` (#459, replaces the
|
|
83507
|
+
* `lock-pin-required` device feature). `null` = the provider cannot tell
|
|
83508
|
+
* (D393) — never `false`. `.optional()` so a restored slice written before
|
|
83509
|
+
* the field still parses; readers treat absent exactly like `null`.
|
|
83510
|
+
*/
|
|
83511
|
+
codeRequired: z.boolean().nullable().optional(),
|
|
83435
83512
|
/** Ms epoch when the slice was last updated. */
|
|
83436
83513
|
lastChangedAt: z.number()
|
|
83437
83514
|
});
|
|
@@ -118546,8 +118623,8 @@ var ALARM_MODES = [
|
|
|
118546
118623
|
"vacation",
|
|
118547
118624
|
"custom_bypass"
|
|
118548
118625
|
];
|
|
118549
|
-
function alarmControls(state, modes,
|
|
118550
|
-
if (
|
|
118626
|
+
function alarmControls(state, modes, codeRequired) {
|
|
118627
|
+
if (codeRequired) return [];
|
|
118551
118628
|
const disarm = asAction(action("alarm.disarm", t("Disarm", "Disinserisci"), "shield-off", "alarm-panel", "disarm", {}, "primary"));
|
|
118552
118629
|
const arm = (primaryFirst) => modes.map((mode, i) => asAction(action(`alarm.arm.${mode}`, ARM_LABELS[mode], "shield-check", "alarm-panel", "arm", { mode }, primaryFirst && i === 0 ? "primary" : "normal")));
|
|
118553
118630
|
switch (state) {
|
|
@@ -118567,7 +118644,7 @@ var ACCESS_FAMILY_CONTRIBUTIONS = {
|
|
|
118567
118644
|
const modes = slice === void 0 ? ALARM_MODES : slice.availableModes;
|
|
118568
118645
|
return {
|
|
118569
118646
|
reading: reading("alarm-panel", words?.state ?? "unknown", false, words?.title),
|
|
118570
|
-
rows: [row$1("alarm", state === "triggered" ? "shield-alert" : state === "disarmed" ? "shield-off" : "shield-check", joinText([words?.title ?? NOT_REPORTED, since]), alarmControls(state, modes, slice?.
|
|
118647
|
+
rows: [row$1("alarm", state === "triggered" ? "shield-alert" : state === "disarmed" ? "shield-off" : "shield-check", joinText([words?.title ?? NOT_REPORTED, since]), alarmControls(state, modes, slice?.codeRequired !== false))],
|
|
118571
118648
|
...since === null || words === null ? {} : { facts: [fact("since", "clock", since, state === "triggered" ? "danger" : "muted")] },
|
|
118572
118649
|
...words === null ? {} : { tiles: {
|
|
118573
118650
|
left: [{
|
|
@@ -133106,7 +133183,6 @@ var DEVICE_FEATURE_REQUIREMENTS = {
|
|
|
133106
133183
|
[DeviceFeature.FanPreset]: bound("fan-control", ["setPreset"]),
|
|
133107
133184
|
[DeviceFeature.FanDirection]: bound("fan-control", ["setDirection"]),
|
|
133108
133185
|
[DeviceFeature.FanOscillating]: bound("fan-control", ["setOscillating"]),
|
|
133109
|
-
[DeviceFeature.LockPinRequired]: reported(CAP_PENDING),
|
|
133110
133186
|
[DeviceFeature.LockOpen]: bound("lock-control", ["open"]),
|
|
133111
133187
|
[DeviceFeature.MediaPlayerSeek]: bound("media-player", ["seek"]),
|
|
133112
133188
|
[DeviceFeature.MediaPlayerVolume]: bound("media-player", ["setVolume"]),
|
|
@@ -133121,7 +133197,6 @@ var DEVICE_FEATURE_REQUIREMENTS = {
|
|
|
133121
133197
|
[DeviceFeature.MediaPlayerVolumeStep]: bound("media-player", ["volumeUp", "volumeDown"]),
|
|
133122
133198
|
[DeviceFeature.MediaPlayerChannelStep]: bound("media-player", ["channelUp", "channelDown"]),
|
|
133123
133199
|
[DeviceFeature.MediaPlayerPower]: bound("media-player", ["turnOn", "turnOff"]),
|
|
133124
|
-
[DeviceFeature.AlarmPinRequired]: reported(CAP_PENDING),
|
|
133125
133200
|
[DeviceFeature.PresenceGps]: reported(CAP_PENDING),
|
|
133126
133201
|
[DeviceFeature.NotifierImage]: reported(CAP_PENDING),
|
|
133127
133202
|
[DeviceFeature.NotifierPriority]: reported(CAP_PENDING),
|
|
@@ -136625,7 +136700,8 @@ var RUNTIME_STATE_POLICY = {
|
|
|
136625
136700
|
},
|
|
136626
136701
|
"alarm-panel": {
|
|
136627
136702
|
durability: "restored",
|
|
136628
|
-
volatileFields: ["lastChangedAt"]
|
|
136703
|
+
volatileFields: ["lastChangedAt"],
|
|
136704
|
+
renamedFields: { requiresCode: "codeRequired" }
|
|
136629
136705
|
},
|
|
136630
136706
|
"ambient-light-sensor": {
|
|
136631
136707
|
durability: "restored",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
2
|
+
const require_wal_maintenance = require("./wal-maintenance-h2cm6gDJ.js");
|
|
3
3
|
let node_worker_threads = require("node:worker_threads");
|
|
4
4
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-
|
|
1
|
+
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-COXWd5qA.mjs";
|
|
2
2
|
import { parentPort, threadId, workerData } from "node:worker_threads";
|
|
3
3
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-BDciHA-9.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
4
|
let zod = require("zod");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ml as defineRecordKinds } from "./dist-
|
|
1
|
+
import { ml as defineRecordKinds } from "./dist-DLp5CYDy.mjs";
|
|
2
2
|
import { C as backdatedNotBefore, S as withUtcTimeEncoding, _ as NameConstraints, a as KeyUsageFlags, c as Pkcs10CertificateRequest, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, g as GeneralSubtrees, h as GeneralSubtree, i as Extension, l as Pkcs10CertificateRequestGenerator, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension, v as GeneralName, x as AsnConvert } from "./x509.es-BRiJgOvu.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { X509Certificate, createHash, createPrivateKey, randomBytes, webcrypto } from "node:crypto";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-BDciHA-9.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
|
-
const require_hub_identity = require("./hub-identity-
|
|
4
|
+
const require_hub_identity = require("./hub-identity-BLkehzWw.js");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
6
6
|
let _camstack_types_node = require("@camstack/types/node");
|
|
7
7
|
let node_fs = require("node:fs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { iu as userError } from "./dist-
|
|
2
|
+
import { iu as userError } from "./dist-DLp5CYDy.mjs";
|
|
3
3
|
import { f as X509Certificate$1 } from "./x509.es-BRiJgOvu.mjs";
|
|
4
|
-
import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-
|
|
4
|
+
import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-C6c6E6Xn.mjs";
|
|
5
5
|
import { X509Certificate, createPrivateKey } from "node:crypto";
|
|
6
6
|
import { writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
7
7
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
package/system/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("./dist-
|
|
4
|
-
const require_device_ca = require("./device-ca-
|
|
3
|
+
const require_dist = require("./dist-BDciHA-9.js");
|
|
4
|
+
const require_device_ca = require("./device-ca-C4odTE-a.js");
|
|
5
5
|
const require_read_all_rows$1 = require("./read-all-rows-CVoO1ONM.js");
|
|
6
6
|
const require_log_redactor = require("./log-redactor-BhIEMaG9.js");
|
|
7
7
|
const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
|
|
@@ -28,22 +28,22 @@ const require_builtins_loki_logging_index = require("./builtins/loki-logging/ind
|
|
|
28
28
|
const require_builtins_native_metrics_native_metrics_addon = require("./builtins/native-metrics/native-metrics.addon.js");
|
|
29
29
|
const require_builtins_device_history_device_history_addon = require("./builtins/device-history/device-history.addon.js");
|
|
30
30
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./builtins/sqlite-storage/filesystem-storage.addon.js");
|
|
31
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
32
|
-
const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-
|
|
31
|
+
const require_wal_maintenance = require("./wal-maintenance-h2cm6gDJ.js");
|
|
32
|
+
const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-CVwsY9u6.js");
|
|
33
33
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./builtins/sqlite-storage/sqlite-settings.addon.js");
|
|
34
34
|
const require_builtins_sqlite_storage_index = require("./builtins/sqlite-storage/index.js");
|
|
35
35
|
const require_builtins_storage_orchestrator_storage_orchestrator_addon = require("./builtins/storage-orchestrator/storage-orchestrator.addon.js");
|
|
36
36
|
require("./builtins/storage-orchestrator/index.js");
|
|
37
|
-
const require_hub_identity = require("./hub-identity-
|
|
38
|
-
const require_constants = require("./constants-
|
|
37
|
+
const require_hub_identity = require("./hub-identity-BLkehzWw.js");
|
|
38
|
+
const require_constants = require("./constants-CLyC9O9i.js");
|
|
39
39
|
const require_builtins_system_config_system_config_addon = require("./builtins/system-config/system-config.addon.js");
|
|
40
40
|
require("./builtins/system-config/index.js");
|
|
41
41
|
const require_builtins_winston_logging_index = require("./builtins/winston-logging/index.js");
|
|
42
42
|
const require_custom_action_registry = require("./custom-action-registry-CmWpSeMS.js");
|
|
43
|
-
const require_hub_mdns_ciao = require("./hub-mdns-ciao-
|
|
43
|
+
const require_hub_mdns_ciao = require("./hub-mdns-ciao-ByOblmkT.js");
|
|
44
44
|
const require_platform_key_source = require("./platform-key-source-Di7HrlGR.js");
|
|
45
45
|
const require_resource_monitor = require("./resource-monitor-mio9dSCT.js");
|
|
46
|
-
const require_restore_archive = require("./restore-archive-
|
|
46
|
+
const require_restore_archive = require("./restore-archive-CXPBPM61.js");
|
|
47
47
|
const require_coral_accelerators = require("./coral-accelerators-BSVsBVzt.js");
|
|
48
48
|
let zod = require("zod");
|
|
49
49
|
let node_crypto = require("node:crypto");
|
package/system/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __require } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { $o as supportedRuntimes, A as CatalogFileSchema, Ao as scopesAllowDeviceCap, C as CATALOG_LANGS, Ea as objectInputDeclaresRequiredDeviceId, Fc as ReadinessTimeoutError, Fi as isCollectionArrayMethod, Gl as readinessKey, Hi as isObjectInput, Hl as parseJsonObject, Ki as kebabToCamel$1, Kt as PackageRequiresSchema, Nc as RUNTIME_DEFAULTS, Ni as isArrayOutputSchema, Nt as LOG_LEVEL_RANK, Oi as interpolate, Pc as ReadinessRegistry, Pn as addonSettingsCapability, Pt as METHOD_ACCESS_MAP, Qc as asString$1, Qi as lifecycleJobSchema, Rr as describeUnmet, Ta as objectInputDeclaresAddonId, Tl as isDebugChannelName, Ua as procedureAuthKey, Ul as parseJsonUnknown, Wi as isVoidInput, Wn as bareAddonId, Wo as splitTranslationRef, Xc as asJsonObject$1, Xl as scopeKey, Zc as asNumber, _c as DEVICE_STATUS_METHOD, a as AGENT_MDNS_SERVICE_TYPE, aa as logLevelAtMost, al as collectSecretMarkerRefs, bl as getDebugInterest, fs as unmetRequirements, fu as errMsg$1, gc as DEVICE_SETTINGS_CONTRIBUTION_METHODS, go as resolveMethodAuth, hc as DATAPLANE_SECRET_HEADER$1, hl as emitDownForOwnedCaps, ii as extractNestedAddonId, iu as userError, ki as isAddonInstanceId, ko as scopesAllowAddon, ll as createEvent$1, mc as CALLER_STAMPED_CAPABILITIES$1, ml as defineRecordKinds, mu as EventCategory$1, o as AGENT_MDNS_TXT_KEYS, oa as looseSchema, pr as compareVersions, ql as resolveCapMount, s as ALL_CAPABILITY_DEFINITIONS, su as withoutCallerStamp, vl as expandCapMethods } from "./dist-
|
|
3
|
-
import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-
|
|
2
|
+
import { $o as supportedRuntimes, A as CatalogFileSchema, Ao as scopesAllowDeviceCap, C as CATALOG_LANGS, Ea as objectInputDeclaresRequiredDeviceId, Fc as ReadinessTimeoutError, Fi as isCollectionArrayMethod, Gl as readinessKey, Hi as isObjectInput, Hl as parseJsonObject, Ki as kebabToCamel$1, Kt as PackageRequiresSchema, Nc as RUNTIME_DEFAULTS, Ni as isArrayOutputSchema, Nt as LOG_LEVEL_RANK, Oi as interpolate, Pc as ReadinessRegistry, Pn as addonSettingsCapability, Pt as METHOD_ACCESS_MAP, Qc as asString$1, Qi as lifecycleJobSchema, Rr as describeUnmet, Ta as objectInputDeclaresAddonId, Tl as isDebugChannelName, Ua as procedureAuthKey, Ul as parseJsonUnknown, Wi as isVoidInput, Wn as bareAddonId, Wo as splitTranslationRef, Xc as asJsonObject$1, Xl as scopeKey, Zc as asNumber, _c as DEVICE_STATUS_METHOD, a as AGENT_MDNS_SERVICE_TYPE, aa as logLevelAtMost, al as collectSecretMarkerRefs, bl as getDebugInterest, fs as unmetRequirements, fu as errMsg$1, gc as DEVICE_SETTINGS_CONTRIBUTION_METHODS, go as resolveMethodAuth, hc as DATAPLANE_SECRET_HEADER$1, hl as emitDownForOwnedCaps, ii as extractNestedAddonId, iu as userError, ki as isAddonInstanceId, ko as scopesAllowAddon, ll as createEvent$1, mc as CALLER_STAMPED_CAPABILITIES$1, ml as defineRecordKinds, mu as EventCategory$1, o as AGENT_MDNS_TXT_KEYS, oa as looseSchema, pr as compareVersions, ql as resolveCapMount, s as ALL_CAPABILITY_DEFINITIONS, su as withoutCallerStamp, vl as expandCapMethods } from "./dist-DLp5CYDy.mjs";
|
|
3
|
+
import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-BJ714blt.mjs";
|
|
4
4
|
import { t as require_read_all_rows } from "./read-all-rows-TaPqdWNF.mjs";
|
|
5
5
|
import { a as redactLogText, i as redactLogMeta, r as redactLogEntry, t as isCredentialKeyName } from "./log-redactor-XLDrPzOi.mjs";
|
|
6
6
|
import { AlertCenterAddon, n as lastCauseAfterChunk, r as readRunnerDisplayName, t as CRASH_BREAKER_ERROR_PREFIX } from "./builtins/alerts/alerts.addon.mjs";
|
|
@@ -27,22 +27,22 @@ import { LokiDestination, LokiLoggingAddon } from "./builtins/loki-logging/index
|
|
|
27
27
|
import NativeMetricsAddon, { a as NativeMetricsProvider, i as parseProcStatusRss, n as nodeProcReader, r as parseProcStat } from "./builtins/native-metrics/native-metrics.addon.mjs";
|
|
28
28
|
import { DeviceHistoryAddon } from "./builtins/device-history/device-history.addon.mjs";
|
|
29
29
|
import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./builtins/sqlite-storage/filesystem-storage.addon.mjs";
|
|
30
|
-
import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-
|
|
31
|
-
import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-
|
|
30
|
+
import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-COXWd5qA.mjs";
|
|
31
|
+
import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-D_FBo1b1.mjs";
|
|
32
32
|
import { SqliteSettingsAddon } from "./builtins/sqlite-storage/sqlite-settings.addon.mjs";
|
|
33
33
|
import { ConfigStore, DeviceStore } from "./builtins/sqlite-storage/index.mjs";
|
|
34
34
|
import { StorageOrchestratorAddon, a as createHubCapForwardService, i as HUB_CAP_FWD_SERVICE, o as stripForwardedCaller, r as HUB_CAP_FWD_ACTION, s as buildStorageLocationRegistry, t as StorageOrchestratorService, u as storageOrchestratorRecordKinds } from "./builtins/storage-orchestrator/storage-orchestrator.addon.mjs";
|
|
35
35
|
import "./builtins/storage-orchestrator/index.mjs";
|
|
36
|
-
import { A as evaluateExistingCert, B as AGENT_HTTPS_NAMES_COLLECTION, C as localCaCommonName, D as LEAF_RENEWAL_WINDOW_DAYS, E as CA_VALIDITY_DAYS, F as isConstrainedCa, H as AgentHttpsNames, I as isLocalOnlyHostname, L as permitsIdentity, M as PERMITTED_DNS_SUFFIXES, N as PERMITTED_IP_RANGES, O as MAX_LEAF_VALIDITY_DAYS, P as buildNameConstraintSet, R as permitsName, T as systemHostFacts, U as getProcessAgentHttpsNames, V as AGENT_HTTPS_NAMES_COLUMNS, W as setProcessAgentHttpsNames, _ as pemDigest, a as AgentHttpsInstallError, c as certificateNames, d as describeHttpsLeaf, f as installAgentHttps, g as loadAgentHttps, h as issueAgentHttpsLeaf, i as loadOrCreateHubId, k as SERVER_AUTH_OID, l as collectAgentNames, m as isPrivateAddress, n as HUB_IDENTITY_RELATIVE, o as acceptAgentSans, p as isContainerBridgeAddress, r as isAnnouncedHubId, s as agentHttpsPaths, t as HUB_IDENTITY_FILE, u as createAgentHttpsRequest, v as pinnedHttpsCaFingerprint, w as collectCertIdentity, y as CA_COMMON_NAME, z as readNameConstraints } from "./hub-identity-
|
|
37
|
-
import { a as MESH_CA_KEY_REF, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY } from "./constants-
|
|
36
|
+
import { A as evaluateExistingCert, B as AGENT_HTTPS_NAMES_COLLECTION, C as localCaCommonName, D as LEAF_RENEWAL_WINDOW_DAYS, E as CA_VALIDITY_DAYS, F as isConstrainedCa, H as AgentHttpsNames, I as isLocalOnlyHostname, L as permitsIdentity, M as PERMITTED_DNS_SUFFIXES, N as PERMITTED_IP_RANGES, O as MAX_LEAF_VALIDITY_DAYS, P as buildNameConstraintSet, R as permitsName, T as systemHostFacts, U as getProcessAgentHttpsNames, V as AGENT_HTTPS_NAMES_COLUMNS, W as setProcessAgentHttpsNames, _ as pemDigest, a as AgentHttpsInstallError, c as certificateNames, d as describeHttpsLeaf, f as installAgentHttps, g as loadAgentHttps, h as issueAgentHttpsLeaf, i as loadOrCreateHubId, k as SERVER_AUTH_OID, l as collectAgentNames, m as isPrivateAddress, n as HUB_IDENTITY_RELATIVE, o as acceptAgentSans, p as isContainerBridgeAddress, r as isAnnouncedHubId, s as agentHttpsPaths, t as HUB_IDENTITY_FILE, u as createAgentHttpsRequest, v as pinnedHttpsCaFingerprint, w as collectCertIdentity, y as CA_COMMON_NAME, z as readNameConstraints } from "./hub-identity-C6c6E6Xn.mjs";
|
|
37
|
+
import { a as MESH_CA_KEY_REF, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY } from "./constants-DMeh8SL7.mjs";
|
|
38
38
|
import { $ as getProcessMeshCaState, A as emitProcessNodeRegistered, At as readCidrSetting, B as getProcessMeshTlsListenerState, C as verifyMembershipAnswer, Ct as isInsecureOrigin, D as ServiceBroker, Dt as createCidrMatcher, E as Errors, Et as readOriginSetting, F as onProcessNodeRegistered, G as MeshCertificateRegistry, H as setProcessMeshTlsListenerState, I as setProcessMeshHandshakeReporter, J as getProcessMeshCertificateRegistry, K as RENEWAL_ABANDONED, L as setProcessMeshPeerTransportLookup, M as getProcessNodeMeshTransport, N as getProcessPeerLeaf, O as setProcessMeshTlsEnabler, Ot as normalizeIp, P as isProcessVerifiedMeshPeer, Q as MeshCaKeeper, R as renewMeshCertificate, S as signMembershipProof, St as OPAQUE_ORIGIN, SystemConfigAddon, T as TlsTcpTransporter, Tt as parseOriginList, U as MESH_NODE_CERTIFICATES_COLLECTION, V as openMeshTlsWhenRevocationsLoaded, W as MESH_NODE_CERTIFICATES_COLUMNS, X as MeshCrl, Y as setProcessMeshCertificateRegistry, Z as processMeshCrl, _ as keyFingerprintShort, _t as isAllowedAgentDashboardReturnTo, a as dialableHubHost, at as generateMeshCa, b as MEMBERSHIP_PATHS, bt as verifyAgentUiUnlockTicket, c as PAIRING_MAX_CODE_ATTEMPTS, ct as issueMeshLeafForNode, d as PAIRING_PIN_DIGITS, dt as AGENT_DASHBOARD_ORIGINS_FIELD, et as requireProcessMeshCa, f as PAIRING_PROTOCOL, ft as AGENT_UI_UNLOCK_TTL_MS, g as describeCsr, gt as UnlockTicketJtiStore, h as computePairingSas, ht as AGENT_UI_UNLOCK_VERSION, i as AgentPairing, it as exportMeshPrivateKeyPem, j as getProcessMeshHandshakeReporter, k as dropProcessPeer, kt as parseCidrList, l as PAIRING_MAX_SESSIONS, lt as issueMeshLeafFromCsr, m as computePairingCommitment, mt as AGENT_UI_UNLOCK_USE, n as HubPairing, nt as caFingerprintCompact, o as hubHostFromMeshAddress, ot as generateMeshKeyPair, p as PAIRING_TTL_MS, pt as AGENT_UI_UNLOCK_TYP, q as describeMeshLeaf, r as PairingHttpError, rt as createMeshCsrPem, s as PAIRING_CODE_DIGITS, st as isValidAgentNodeId, tt as caFingerprint, u as PAIRING_PATHS, ut as loadMeshCa, v as signPairingProof, vt as mintAgentUiUnlockTicket, w as MESH_TLS_PORT_HELLO_FIELD, wt as normalizeOrigin, x as MembershipResponder, xt as InvalidCorsOriginError, y as verifyPairingProof, yt as parseAgentDashboardOrigins, z as revokeMeshCertificate } from "./builtins/system-config/system-config.addon.mjs";
|
|
39
39
|
import "./builtins/system-config/index.mjs";
|
|
40
40
|
import { WinstonDestination, WinstonLoggingAddon } from "./builtins/winston-logging/index.mjs";
|
|
41
41
|
import { C as isModelDownloaded, E as setHuggingFaceReachabilityObserver, T as revisionWeightUrl, _ as downloadFile, a as startEventLoopStallMonitor, b as fetchJson, c as createAuthenticatedFileServer, d as resolveFilePath, f as ModelDownloadService, g as deleteModelFromDisk, h as collectModelFiles, i as attributeStall, l as parseRangeHeader, m as adoptModelRevisions, n as STALL_REPORT_MS, o as createFileDataPlaneHandler, r as STALL_TICK_MS, s as contentTypeFor, t as CustomActionRegistry, u as parseTokenizedUrl, v as downloadModel, w as resolveFormatRevision, x as getModelFilePath, y as ensureModel } from "./custom-action-registry-B9zFBNVa.mjs";
|
|
42
|
-
import { A as retirePreviousLocalCa, C as checkUploadedCa, D as loadTlsCert, E as ensureTlsCert, F as closeLanHttp, I as readLanHttpState, L as registerLanHttpHandler, M as allFamiliesListenHost, N as applyLanHttp, O as reissueTlsLeaf, P as bindPendingLanHttp, S as chainsToPublicRoot, T as caReplacementMarkerFile, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsEnabled, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, k as replaceUnconstrainedLocalCa, l as registerHttpsListener, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, p as UPLOADED_CA_FILE, r as regenerateCertificate, s as clearHttpsListener, t as createCiaoPublisher, u as reloadHttpsListener, v as splitPemCertificates, w as validateUploadedTls, x as writeTlsMode, y as writeExtraSans } from "./hub-mdns-ciao-
|
|
42
|
+
import { A as retirePreviousLocalCa, C as checkUploadedCa, D as loadTlsCert, E as ensureTlsCert, F as closeLanHttp, I as readLanHttpState, L as registerLanHttpHandler, M as allFamiliesListenHost, N as applyLanHttp, O as reissueTlsLeaf, P as bindPendingLanHttp, S as chainsToPublicRoot, T as caReplacementMarkerFile, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsEnabled, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, k as replaceUnconstrainedLocalCa, l as registerHttpsListener, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, p as UPLOADED_CA_FILE, r as regenerateCertificate, s as clearHttpsListener, t as createCiaoPublisher, u as reloadHttpsListener, v as splitPemCertificates, w as validateUploadedTls, x as writeTlsMode, y as writeExtraSans } from "./hub-mdns-ciao-oQtUklUf.mjs";
|
|
43
43
|
import { n as getPlatformKeychainKey, r as setPlatformKeychainKey, t as clearPlatformKeychainKey } from "./platform-key-source-BWlq0jjn.mjs";
|
|
44
44
|
import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-Di9daRwI.mjs";
|
|
45
|
-
import { _ as backupRecordStoresOf, c as BackupDecryptError, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive
|
|
45
|
+
import { _ as backupRecordStoresOf, c as BackupDecryptError, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-WMuoi9Ve.mjs";
|
|
46
46
|
import { r as nodeCoralFs, t as classifyCoralAccelerator } from "./coral-accelerators-DBlgWB8k.mjs";
|
|
47
47
|
import { z } from "zod";
|
|
48
48
|
import * as crypto$1 from "node:crypto";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { al as collectSecretMarkerRefs } from "./dist-
|
|
1
|
+
import { al as collectSecretMarkerRefs } from "./dist-DLp5CYDy.mjs";
|
|
2
2
|
//#region src/builtins/sqlite-storage/migrations/legacy-integration-rows-door.ts
|
|
3
3
|
/**
|
|
4
4
|
* Migration-only door for the leftover integration rows (planning#416).
|
package/system/dist/{rename-composition-block-LEbZ4oZE.mjs → rename-composition-block-CnA_Dslb.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cu as COMPOSED_DEVICE_STABLE_ID_PREFIX, fu as errMsg } from "./dist-
|
|
1
|
+
import { cu as COMPOSED_DEVICE_STABLE_ID_PREFIX, fu as errMsg } from "./dist-DLp5CYDy.mjs";
|
|
2
2
|
//#region src/builtins/core-blocks/rename-composition-block.ts
|
|
3
3
|
/**
|
|
4
4
|
* An operator rename of a composed device writes the composition block's
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as DATABASE_SNAPSHOT_SUFFIX, ml as defineRecordKinds, tt as DataStoreDatabaseSchema } from "./dist-
|
|
1
|
+
import { I as DATABASE_SNAPSHOT_SUFFIX, ml as defineRecordKinds, tt as DataStoreDatabaseSchema } from "./dist-DLp5CYDy.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { createCipheriv, createDecipheriv, createHash, createPrivateKey, createPublicKey, diffieHellman, generateKeyPairSync, hkdfSync, randomBytes } from "node:crypto";
|
|
4
4
|
import { Buffer as Buffer$1 } from "buffer";
|
|
Binary file
|
|
Binary file
|