@camstack/server 1.2.842 → 1.2.844
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 +12 -0
- package/package.json +7 -16
- 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 +28 -5
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +28 -5
- 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 +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-DSrJUGYs.js → capture-engine-BT9BCK3T.js} +1 -1
- package/system/dist/{capture-engine-DySELkE_.mjs → capture-engine-DIevRhU_.mjs} +1 -1
- package/system/dist/{composition-sources-CNfFz3Cz.js → composition-sources-BANqJW1j.js} +1 -1
- package/system/dist/{composition-sources-DZ4E9FFU.mjs → composition-sources-ByiNqtqC.mjs} +1 -1
- package/system/dist/{constants-DkgFDCQ7.js → constants-6l3U2agy.js} +1 -1
- package/system/dist/{constants-BEXN_b1Y.mjs → constants-B7ZCfRiI.mjs} +1 -1
- package/system/dist/{device-ca-sYcSz-Fv.js → device-ca-B6x-SNd5.js} +1 -1
- package/system/dist/{device-ca-Dk_9f4MY.mjs → device-ca-BRzIzcHo.mjs} +1 -1
- package/system/dist/{dist-4jAoRtpT.mjs → dist-CIih-HqD.mjs} +142 -97
- package/system/dist/{dist-LQWK1_M4.js → dist-WNMdvnXD.js} +142 -97
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-BxGHDga-.mjs → hub-identity-0E4bXr1T.mjs} +1 -1
- package/system/dist/{hub-identity-haC7V8-b.js → hub-identity-DNHQmALh.js} +1 -1
- package/system/dist/{hub-mdns-ciao-Birwi8W5.mjs → hub-mdns-ciao-0pnoEm4s.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-zxNvdRQz.js → hub-mdns-ciao-CbIiNR-t.js} +2 -2
- package/system/dist/index.js +8 -8
- package/system/dist/index.mjs +8 -8
- package/system/dist/{legacy-integration-rows-door-C-hOd-lt.mjs → legacy-integration-rows-door-BQKvWTO6.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-CCtcCRjZ.js → legacy-integration-rows-door-Bb04BZ2c.js} +1 -1
- package/system/dist/{rename-composition-block-BCZeI3eY.js → rename-composition-block-CQAUtljP.js} +1 -1
- package/system/dist/{rename-composition-block-YpAVqp4W.mjs → rename-composition-block-DF8RskLi.mjs} +1 -1
- package/system/dist/{restore-archive-D0Nyukhb.js → restore-archive-B2HPMYjR.js} +1 -1
- package/system/dist/{restore-archive-BpC3y50e.mjs → restore-archive-D1N1Ef6G.mjs} +82 -82
- package/system/dist/{wal-maintenance-C7jLVFCw.mjs → wal-maintenance-BgZyg4QK.mjs} +0 -0
- package/system/dist/{wal-maintenance-CRiSNk0X.js → wal-maintenance-CCaPLd9x.js} +0 -0
- package/system/package.json +1 -1
|
@@ -17270,8 +17270,7 @@ function describeUnmet(unmet) {
|
|
|
17270
17270
|
* path with no instance segment and a link with no instance both mean it, and
|
|
17271
17271
|
* its id is the addon id. {@link oauthLinkServesInstance} is the one
|
|
17272
17272
|
* comparison a per-instance route is meant to call, so nobody compares
|
|
17273
|
-
* `undefined` with an id.
|
|
17274
|
-
* `perInstance` (the Alexa per-instance route, T3, is the first consumer).
|
|
17273
|
+
* `undefined` with an id. The Alexa export's routes are its first caller.
|
|
17275
17274
|
*/
|
|
17276
17275
|
/** An instance id as it may appear in a path or a query: no separator, no escape, bounded. */
|
|
17277
17276
|
var ADDON_INSTANCE_ID_RE = /^[A-Za-z0-9._-]{1,64}$/;
|
|
@@ -43197,6 +43196,41 @@ function anySubjectMatches(subjects, observed) {
|
|
|
43197
43196
|
reason: subjects.length === 1 ? lastReason : `none of [${subjects.map(describeSubject).join(", ")}] matches (${observed.className || "unknown"})`
|
|
43198
43197
|
};
|
|
43199
43198
|
}
|
|
43199
|
+
var EventVocabularyKindSchema = zod.z.enum([
|
|
43200
|
+
"press",
|
|
43201
|
+
"long-press",
|
|
43202
|
+
"long-press-start",
|
|
43203
|
+
"release",
|
|
43204
|
+
"repeat",
|
|
43205
|
+
"double-press",
|
|
43206
|
+
"other"
|
|
43207
|
+
]);
|
|
43208
|
+
/** The part of the device an event comes from: a button, a channel. */
|
|
43209
|
+
var EventVocabularySourceSchema = zod.z.object({
|
|
43210
|
+
id: zod.z.string().min(1),
|
|
43211
|
+
label: zod.z.string().min(1)
|
|
43212
|
+
});
|
|
43213
|
+
/** One scalar field of an event's `data`, by dotted path. */
|
|
43214
|
+
var EventVocabularyFieldSchema = zod.z.object({
|
|
43215
|
+
path: zod.z.string().min(1),
|
|
43216
|
+
kind: zod.z.enum([
|
|
43217
|
+
"string",
|
|
43218
|
+
"number",
|
|
43219
|
+
"boolean",
|
|
43220
|
+
"enum"
|
|
43221
|
+
]),
|
|
43222
|
+
enumValues: zod.z.array(zod.z.string()).optional(),
|
|
43223
|
+
label: zod.z.string().min(1).optional()
|
|
43224
|
+
});
|
|
43225
|
+
var EventVocabularyEntrySchema = zod.z.object({
|
|
43226
|
+
/** The native token, verbatim. */
|
|
43227
|
+
id: zod.z.string().min(1),
|
|
43228
|
+
source: EventVocabularySourceSchema.optional(),
|
|
43229
|
+
label: zod.z.string().min(1),
|
|
43230
|
+
description: zod.z.string().optional(),
|
|
43231
|
+
kind: EventVocabularyKindSchema.optional(),
|
|
43232
|
+
payload: zod.z.array(EventVocabularyFieldSchema).optional()
|
|
43233
|
+
});
|
|
43200
43234
|
/**
|
|
43201
43235
|
* Where the sun is, from a latitude and a longitude — the one solar
|
|
43202
43236
|
* calculation in the repo. Compact NOAA sunrise equation (accurate to about a
|
|
@@ -43665,6 +43699,33 @@ var ScheduleLeafSchema = zod.z.object({
|
|
|
43665
43699
|
/** @deprecated legacy cron — new schedules use `at`. */
|
|
43666
43700
|
cron: zod.z.string().min(1).max(120).optional()
|
|
43667
43701
|
}).refine((leaf) => leaf.at === void 0 !== (leaf.cron === void 0), { message: "a schedule names exactly one of `at` (a time spec) and `cron` (legacy)" }).refine((leaf) => leaf.days === void 0 || leaf.at !== void 0, { message: "`days` goes with `at`; a cron expression carries its own days" });
|
|
43702
|
+
/**
|
|
43703
|
+
* One payload predicate of a `device-fired` row: the value at `path` inside
|
|
43704
|
+
* the fire's `data` (dotted) equals `equals`. Compared strictly, no coercion.
|
|
43705
|
+
*/
|
|
43706
|
+
var DeviceFiredMatchSchema = zod.z.object({
|
|
43707
|
+
path: zod.z.string().min(1).max(120),
|
|
43708
|
+
equals: zod.z.union([
|
|
43709
|
+
zod.z.string(),
|
|
43710
|
+
zod.z.number(),
|
|
43711
|
+
zod.z.boolean()
|
|
43712
|
+
])
|
|
43713
|
+
});
|
|
43714
|
+
/**
|
|
43715
|
+
* "fires": one device of the `event-emitter` capability reported an event
|
|
43716
|
+
* (D1045). Every list is an OR, the lists together an AND; an absent list does
|
|
43717
|
+
* not narrow. `eventIds` are the device's own tokens, `sourceIds` the parts of
|
|
43718
|
+
* the device (a button), `kinds` the shared press kinds of its vocabulary.
|
|
43719
|
+
*/
|
|
43720
|
+
var DeviceFiredLeafSchema = zod.z.object({
|
|
43721
|
+
kind: zod.z.literal("device-fired"),
|
|
43722
|
+
...eventLeafId,
|
|
43723
|
+
deviceId: zod.z.number().int().nonnegative(),
|
|
43724
|
+
eventIds: zod.z.array(zod.z.string().min(1)).min(1).max(64).optional(),
|
|
43725
|
+
sourceIds: zod.z.array(zod.z.string().min(1)).min(1).max(64).optional(),
|
|
43726
|
+
kinds: zod.z.array(EventVocabularyKindSchema).min(1).optional(),
|
|
43727
|
+
match: zod.z.array(DeviceFiredMatchSchema).min(1).max(8).optional()
|
|
43728
|
+
});
|
|
43668
43729
|
var ManualLeafSchema = zod.z.object({
|
|
43669
43730
|
kind: zod.z.literal("manual"),
|
|
43670
43731
|
...eventLeafId
|
|
@@ -43806,6 +43867,7 @@ var AutomationWhenSchema = zod.z.lazy(() => zod.z.discriminatedUnion("kind", [
|
|
|
43806
43867
|
}),
|
|
43807
43868
|
DeviceBecomesLeafSchema,
|
|
43808
43869
|
DeviceEventLeafSchema,
|
|
43870
|
+
DeviceFiredLeafSchema,
|
|
43809
43871
|
ScheduleLeafSchema,
|
|
43810
43872
|
ManualLeafSchema,
|
|
43811
43873
|
IntervalLeafSchema,
|
|
@@ -43820,6 +43882,7 @@ var AutomationWhenSchema = zod.z.lazy(() => zod.z.discriminatedUnion("kind", [
|
|
|
43820
43882
|
var EVENT_KINDS = new Set([
|
|
43821
43883
|
"device-becomes",
|
|
43822
43884
|
"device-event",
|
|
43885
|
+
"device-fired",
|
|
43823
43886
|
"schedule",
|
|
43824
43887
|
"manual",
|
|
43825
43888
|
"interval",
|
|
@@ -43904,6 +43967,7 @@ function hasEmptyContainer(node) {
|
|
|
43904
43967
|
var LEAF_WORDS = {
|
|
43905
43968
|
"device-becomes": "a device value that becomes",
|
|
43906
43969
|
"device-event": "a device event",
|
|
43970
|
+
"device-fired": "a device firing an event",
|
|
43907
43971
|
schedule: "a schedule",
|
|
43908
43972
|
manual: "a manual run",
|
|
43909
43973
|
interval: "an interval",
|
|
@@ -45240,6 +45304,16 @@ var BECOMES_DESCRIPTIONS = {
|
|
|
45240
45304
|
from: "the value before the change, empty when it is not known",
|
|
45241
45305
|
to: "the value it changed to"
|
|
45242
45306
|
};
|
|
45307
|
+
/**
|
|
45308
|
+
* A fire's payload is offered too, as `data.<path>` (`{{vars.data.channel}}`):
|
|
45309
|
+
* those names depend on the device, so they are not in this list.
|
|
45310
|
+
*/
|
|
45311
|
+
var FIRED_DESCRIPTIONS = {
|
|
45312
|
+
deviceId: "the device that fired",
|
|
45313
|
+
eventType: "the event, as the device names it",
|
|
45314
|
+
sourceId: "the part of the device that fired (a button), empty when it names none",
|
|
45315
|
+
eventKind: "the kind of press (press, long-press …), empty when the device declares none"
|
|
45316
|
+
};
|
|
45243
45317
|
function describe$1(descriptions) {
|
|
45244
45318
|
return Object.entries(descriptions).map(([name, description]) => ({
|
|
45245
45319
|
name,
|
|
@@ -45248,12 +45322,74 @@ function describe$1(descriptions) {
|
|
|
45248
45322
|
}
|
|
45249
45323
|
describe$1(DETECTION_DESCRIPTIONS);
|
|
45250
45324
|
describe$1(STATIONARY_DESCRIPTIONS);
|
|
45325
|
+
describe$1(FIRED_DESCRIPTIONS).map((v) => v.name === "deviceId" ? {
|
|
45326
|
+
...v,
|
|
45327
|
+
hintKey: "firedDeviceId"
|
|
45328
|
+
} : v);
|
|
45251
45329
|
describe$1(BECOMES_DESCRIPTIONS).map((v) => v.name === "deviceId" ? {
|
|
45252
45330
|
...v,
|
|
45253
45331
|
hintKey: "becomesDeviceId"
|
|
45254
45332
|
} : v);
|
|
45255
45333
|
new Set(Object.values(COCO_TO_MACRO.mapping));
|
|
45256
45334
|
/**
|
|
45335
|
+
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
45336
|
+
* device. Carries the device's EXACT declared event vocabulary verbatim
|
|
45337
|
+
* (NO normalization). Two shapes:
|
|
45338
|
+
* - structured source (HA `event.*` entity) → `vocabulary` is the fixed
|
|
45339
|
+
* declared set (e.g. press_short, press_long, …).
|
|
45340
|
+
* - generic/legacy source (HA bus events, e.g. zha_event) → `vocabulary`
|
|
45341
|
+
* is [] (open) and `lastEvent.data` carries the complex payload.
|
|
45342
|
+
* `vocabulary` (D1044) names each event for a person and types it for a
|
|
45343
|
+
* rule; `eventTypes` is its list of native tokens, kept for older readers.
|
|
45344
|
+
* A fire names the part of the device it came from in `sourceId` when the
|
|
45345
|
+
* vocabulary declares sources (a remote's buttons).
|
|
45346
|
+
* `seq` is monotonic so two identical events still produce distinct slice writes.
|
|
45347
|
+
*/
|
|
45348
|
+
var EventFireSchema = zod.z.object({
|
|
45349
|
+
deviceId: zod.z.number(),
|
|
45350
|
+
eventType: zod.z.string(),
|
|
45351
|
+
sourceId: zod.z.string().optional(),
|
|
45352
|
+
data: zod.z.record(zod.z.string(), zod.z.unknown()).nullable(),
|
|
45353
|
+
timestamp: zod.z.number().meta(readingMeta("none")),
|
|
45354
|
+
seq: zod.z.number().meta(readingMeta("count"))
|
|
45355
|
+
});
|
|
45356
|
+
var EventEmitterStatusSchema = zod.z.object({
|
|
45357
|
+
eventTypes: zod.z.array(zod.z.string()),
|
|
45358
|
+
/**
|
|
45359
|
+
* Required of a provider by the type. A status written before the field
|
|
45360
|
+
* existed still parses, as an empty vocabulary: read it through
|
|
45361
|
+
* `readEventVocabulary`, which then answers with the plain tokens.
|
|
45362
|
+
*/
|
|
45363
|
+
vocabulary: zod.z.array(EventVocabularyEntrySchema).default([]),
|
|
45364
|
+
lastEvent: EventFireSchema.nullable(),
|
|
45365
|
+
eventCountSinceStart: zod.z.number().meta(readingMeta("count"))
|
|
45366
|
+
});
|
|
45367
|
+
var eventEmitterCapability = {
|
|
45368
|
+
name: "event-emitter",
|
|
45369
|
+
scope: "device",
|
|
45370
|
+
deviceNative: true,
|
|
45371
|
+
mode: "singleton",
|
|
45372
|
+
deviceTypes: [DeviceType.EventEmitter],
|
|
45373
|
+
methods: {},
|
|
45374
|
+
events: { onEvent: { data: EventFireSchema } },
|
|
45375
|
+
status: {
|
|
45376
|
+
schema: EventEmitterStatusSchema,
|
|
45377
|
+
kind: "push"
|
|
45378
|
+
},
|
|
45379
|
+
runtimeState: EventEmitterStatusSchema,
|
|
45380
|
+
/**
|
|
45381
|
+
* Runtime-state durability: **session** — `eventCountSinceStart` names its own scope.
|
|
45382
|
+
*
|
|
45383
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
45384
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
45385
|
+
*/
|
|
45386
|
+
durability: "session",
|
|
45387
|
+
/**
|
|
45388
|
+
* History (D850): none — `eventCountSinceStart` resets with the addon; events live in ledgers.
|
|
45389
|
+
*/
|
|
45390
|
+
history: "none"
|
|
45391
|
+
};
|
|
45392
|
+
/**
|
|
45257
45393
|
* Save-time check of a `when` tree against the SITE: a `time-is` window
|
|
45258
45394
|
* bounded by a sun event needs the site location, and any window needs a known
|
|
45259
45395
|
* time zone. Refused before the save with a typed reason — at run time the
|
|
@@ -45644,6 +45780,7 @@ var AutomationConditionTraceNodeSchema = zod.z.object({
|
|
|
45644
45780
|
"triggered-by",
|
|
45645
45781
|
"device-becomes",
|
|
45646
45782
|
"device-event",
|
|
45783
|
+
"device-fired",
|
|
45647
45784
|
"schedule",
|
|
45648
45785
|
"interval",
|
|
45649
45786
|
"manual",
|
|
@@ -46543,7 +46680,8 @@ function isVarRef(value) {
|
|
|
46543
46680
|
const keys = Object.keys(value);
|
|
46544
46681
|
return keys.length === 1 && keys[0] === "$var" && typeof Reflect.get(value, "$var") === "string";
|
|
46545
46682
|
}
|
|
46546
|
-
|
|
46683
|
+
/** `{{vars.name}}`, or a dotted name (`{{vars.data.channel}}`): the bag is flat, the dots are part of the key. */
|
|
46684
|
+
var TEMPLATE_RE = /\{\{\s*vars\.([A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*)\s*\}\}/g;
|
|
46547
46685
|
/**
|
|
46548
46686
|
* Substitute a step's args from the run's variables. SUBSTITUTION only, never
|
|
46549
46687
|
* evaluation:
|
|
@@ -46593,7 +46731,7 @@ function newSlotNonce() {
|
|
|
46593
46731
|
return Math.random().toString(36).slice(2, 12);
|
|
46594
46732
|
}
|
|
46595
46733
|
function slotPattern(nonce) {
|
|
46596
|
-
return new RegExp(`${VAR_SLOT_OPEN}${nonce}:([A-Za-z_][A-Za-z0-9_]*)${VAR_SLOT_CLOSE}`, "g");
|
|
46734
|
+
return new RegExp(`${VAR_SLOT_OPEN}${nonce}:([A-Za-z_][A-Za-z0-9_.]*)${VAR_SLOT_CLOSE}`, "g");
|
|
46597
46735
|
}
|
|
46598
46736
|
/** True when a string, once its `{{vars.x}}` slots are set aside, still carries template markup. */
|
|
46599
46737
|
function carriesDeviceTemplate(text) {
|
|
@@ -64293,99 +64431,6 @@ var enumSensorCapability = {
|
|
|
64293
64431
|
* whether persisting is worth a SQLite commit. */
|
|
64294
64432
|
volatileStateFields: ["lastFetchedAt", "timestamp"]
|
|
64295
64433
|
};
|
|
64296
|
-
var EventVocabularyKindSchema = zod.z.enum([
|
|
64297
|
-
"press",
|
|
64298
|
-
"long-press",
|
|
64299
|
-
"long-press-start",
|
|
64300
|
-
"release",
|
|
64301
|
-
"repeat",
|
|
64302
|
-
"double-press",
|
|
64303
|
-
"other"
|
|
64304
|
-
]);
|
|
64305
|
-
/** The part of the device an event comes from: a button, a channel. */
|
|
64306
|
-
var EventVocabularySourceSchema = zod.z.object({
|
|
64307
|
-
id: zod.z.string().min(1),
|
|
64308
|
-
label: zod.z.string().min(1)
|
|
64309
|
-
});
|
|
64310
|
-
/** One scalar field of an event's `data`, by dotted path. */
|
|
64311
|
-
var EventVocabularyFieldSchema = zod.z.object({
|
|
64312
|
-
path: zod.z.string().min(1),
|
|
64313
|
-
kind: zod.z.enum([
|
|
64314
|
-
"string",
|
|
64315
|
-
"number",
|
|
64316
|
-
"boolean",
|
|
64317
|
-
"enum"
|
|
64318
|
-
]),
|
|
64319
|
-
enumValues: zod.z.array(zod.z.string()).optional(),
|
|
64320
|
-
label: zod.z.string().min(1).optional()
|
|
64321
|
-
});
|
|
64322
|
-
var EventVocabularyEntrySchema = zod.z.object({
|
|
64323
|
-
/** The native token, verbatim. */
|
|
64324
|
-
id: zod.z.string().min(1),
|
|
64325
|
-
source: EventVocabularySourceSchema.optional(),
|
|
64326
|
-
label: zod.z.string().min(1),
|
|
64327
|
-
description: zod.z.string().optional(),
|
|
64328
|
-
kind: EventVocabularyKindSchema.optional(),
|
|
64329
|
-
payload: zod.z.array(EventVocabularyFieldSchema).optional()
|
|
64330
|
-
});
|
|
64331
|
-
/**
|
|
64332
|
-
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
64333
|
-
* device. Carries the device's EXACT declared event vocabulary verbatim
|
|
64334
|
-
* (NO normalization). Two shapes:
|
|
64335
|
-
* - structured source (HA `event.*` entity) → `vocabulary` is the fixed
|
|
64336
|
-
* declared set (e.g. press_short, press_long, …).
|
|
64337
|
-
* - generic/legacy source (HA bus events, e.g. zha_event) → `vocabulary`
|
|
64338
|
-
* is [] (open) and `lastEvent.data` carries the complex payload.
|
|
64339
|
-
* `vocabulary` (D1044) names each event for a person and types it for a
|
|
64340
|
-
* rule; `eventTypes` is its list of native tokens, kept for older readers.
|
|
64341
|
-
* A fire names the part of the device it came from in `sourceId` when the
|
|
64342
|
-
* vocabulary declares sources (a remote's buttons).
|
|
64343
|
-
* `seq` is monotonic so two identical events still produce distinct slice writes.
|
|
64344
|
-
*/
|
|
64345
|
-
var EventFireSchema = zod.z.object({
|
|
64346
|
-
deviceId: zod.z.number(),
|
|
64347
|
-
eventType: zod.z.string(),
|
|
64348
|
-
sourceId: zod.z.string().optional(),
|
|
64349
|
-
data: zod.z.record(zod.z.string(), zod.z.unknown()).nullable(),
|
|
64350
|
-
timestamp: zod.z.number().meta(readingMeta("none")),
|
|
64351
|
-
seq: zod.z.number().meta(readingMeta("count"))
|
|
64352
|
-
});
|
|
64353
|
-
var EventEmitterStatusSchema = zod.z.object({
|
|
64354
|
-
eventTypes: zod.z.array(zod.z.string()),
|
|
64355
|
-
/**
|
|
64356
|
-
* Required of a provider by the type. A status written before the field
|
|
64357
|
-
* existed still parses, as an empty vocabulary: read it through
|
|
64358
|
-
* `readEventVocabulary`, which then answers with the plain tokens.
|
|
64359
|
-
*/
|
|
64360
|
-
vocabulary: zod.z.array(EventVocabularyEntrySchema).default([]),
|
|
64361
|
-
lastEvent: EventFireSchema.nullable(),
|
|
64362
|
-
eventCountSinceStart: zod.z.number().meta(readingMeta("count"))
|
|
64363
|
-
});
|
|
64364
|
-
var eventEmitterCapability = {
|
|
64365
|
-
name: "event-emitter",
|
|
64366
|
-
scope: "device",
|
|
64367
|
-
deviceNative: true,
|
|
64368
|
-
mode: "singleton",
|
|
64369
|
-
deviceTypes: [DeviceType.EventEmitter],
|
|
64370
|
-
methods: {},
|
|
64371
|
-
events: { onEvent: { data: EventFireSchema } },
|
|
64372
|
-
status: {
|
|
64373
|
-
schema: EventEmitterStatusSchema,
|
|
64374
|
-
kind: "push"
|
|
64375
|
-
},
|
|
64376
|
-
runtimeState: EventEmitterStatusSchema,
|
|
64377
|
-
/**
|
|
64378
|
-
* Runtime-state durability: **session** — `eventCountSinceStart` names its own scope.
|
|
64379
|
-
*
|
|
64380
|
-
* See `RuntimeStateDurability`. Enforced by
|
|
64381
|
-
* `scripts/check-runtime-state-durability.ts`.
|
|
64382
|
-
*/
|
|
64383
|
-
durability: "session",
|
|
64384
|
-
/**
|
|
64385
|
-
* History (D850): none — `eventCountSinceStart` resets with the addon; events live in ledgers.
|
|
64386
|
-
*/
|
|
64387
|
-
history: "none"
|
|
64388
|
-
};
|
|
64389
64434
|
var IdentitySchema = zod.z.object({
|
|
64390
64435
|
id: zod.z.string(),
|
|
64391
64436
|
name: zod.z.string(),
|
|
@@ -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-CCaPLd9x.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-BgZyg4QK.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,4 +1,4 @@
|
|
|
1
|
-
import { Cc as defineRecordKinds } from "./dist-
|
|
1
|
+
import { Cc as defineRecordKinds } from "./dist-CIih-HqD.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,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-WNMdvnXD.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,7 +1,7 @@
|
|
|
1
1
|
import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { pl as userError } from "./dist-
|
|
2
|
+
import { pl as userError } from "./dist-CIih-HqD.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-0E4bXr1T.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";
|
|
@@ -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-WNMdvnXD.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-DNHQmALh.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");
|
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-WNMdvnXD.js");
|
|
4
|
+
const require_device_ca = require("./device-ca-B6x-SNd5.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-CCaPLd9x.js");
|
|
32
|
+
const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-Bb04BZ2c.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-DNHQmALh.js");
|
|
38
|
+
const require_constants = require("./constants-6l3U2agy.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-CbIiNR-t.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-B2HPMYjR.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 { $i as objectInputDeclaresAddonId, $n as compareVersions, An as bareAddonId, Cc as defineRecordKinds, Dc as expandCapMethods, Ds as DEVICE_STATUS_METHOD, Dt as LOG_LEVEL_RANK, Ei as lifecycleJobSchema, Es as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Gs as ReadinessTimeoutError, Ni as logLevelAtMost, O as CatalogFileSchema, Oo as unmetRequirements, Ot as METHOD_ACCESS_MAP, Pc as isDebugChannelName, Pi as looseSchema, Qc as parseJsonUnknown, Ra as resolveMethodAuth, Sl as EventCategory$1, Sr as describeUnmet, Ts as DATAPLANE_SECRET_HEADER$1, Us as RUNTIME_DEFAULTS, Vr as extractNestedAddonId, Ws as ReadinessRegistry, Xa as scopesAllowAddon, Za as scopesAllowDeviceCap, Zc as parseJsonObject, a as AGENT_MDNS_SERVICE_TYPE, ac as asJsonObject$1, al as scopeKey, bi as isVoidInput, bl as errMsg$1, di as isArrayOutputSchema, ea as objectInputDeclaresRequiredDeviceId, el as readinessKey, fi as isCollectionArrayMethod, ga as procedureAuthKey, hl as withoutCallerStamp, kc as getDebugInterest, lo as splitTranslationRef, mc as collectSecretMarkerRefs, nl as resolveCapMount, o as AGENT_MDNS_TXT_KEYS, oc as asNumber, oi as interpolate, pl as userError, s as ALL_CAPABILITY_DEFINITIONS, sc as asString$1, si as isAddonInstanceId, vc as createEvent$1, vi as isObjectInput, vo as supportedRuntimes, wc as emitDownForOwnedCaps, ws as CALLER_STAMPED_CAPABILITIES$1, x as CATALOG_LANGS, xi as kebabToCamel$1, xn as addonSettingsCapability, zt as PackageRequiresSchema } 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 { $i as objectInputDeclaresAddonId, $n as compareVersions, An as bareAddonId, Cc as defineRecordKinds, Dc as expandCapMethods, Ds as DEVICE_STATUS_METHOD, Dt as LOG_LEVEL_RANK, Ei as lifecycleJobSchema, Es as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Gs as ReadinessTimeoutError, Ni as logLevelAtMost, O as CatalogFileSchema, Oo as unmetRequirements, Ot as METHOD_ACCESS_MAP, Pc as isDebugChannelName, Pi as looseSchema, Qc as parseJsonUnknown, Ra as resolveMethodAuth, Sl as EventCategory$1, Sr as describeUnmet, Ts as DATAPLANE_SECRET_HEADER$1, Us as RUNTIME_DEFAULTS, Vr as extractNestedAddonId, Ws as ReadinessRegistry, Xa as scopesAllowAddon, Za as scopesAllowDeviceCap, Zc as parseJsonObject, a as AGENT_MDNS_SERVICE_TYPE, ac as asJsonObject$1, al as scopeKey, bi as isVoidInput, bl as errMsg$1, di as isArrayOutputSchema, ea as objectInputDeclaresRequiredDeviceId, el as readinessKey, fi as isCollectionArrayMethod, ga as procedureAuthKey, hl as withoutCallerStamp, kc as getDebugInterest, lo as splitTranslationRef, mc as collectSecretMarkerRefs, nl as resolveCapMount, o as AGENT_MDNS_TXT_KEYS, oc as asNumber, oi as interpolate, pl as userError, s as ALL_CAPABILITY_DEFINITIONS, sc as asString$1, si as isAddonInstanceId, vc as createEvent$1, vi as isObjectInput, vo as supportedRuntimes, wc as emitDownForOwnedCaps, ws as CALLER_STAMPED_CAPABILITIES$1, x as CATALOG_LANGS, xi as kebabToCamel$1, xn as addonSettingsCapability, zt as PackageRequiresSchema } from "./dist-CIih-HqD.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-BRzIzcHo.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-BgZyg4QK.mjs";
|
|
31
|
+
import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-BQKvWTO6.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-0E4bXr1T.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-B7ZCfRiI.mjs";
|
|
38
38
|
import { $ as caFingerprint, A as emitProcessNodeRegistered, B as setProcessMeshTlsListenerState, C as verifyMembershipAnswer, Ct as parseOriginList, D as ServiceBroker, Dt as parseCidrList, E as Errors, Et as normalizeIp, F as setProcessMeshPeerTransportLookup, G as describeMeshLeaf, H as MESH_NODE_CERTIFICATES_COLUMNS, I as renewMeshCertificate, J as MeshCrl, K as getProcessMeshCertificateRegistry, L as revokeMeshCertificate, M as getProcessPeerLeaf, N as isProcessVerifiedMeshPeer, O as setProcessMeshTlsEnabler, Ot as readCidrSetting, P as onProcessNodeRegistered, Q as requireProcessMeshCa, R as getProcessMeshTlsListenerState, S as signMembershipProof, St as normalizeOrigin, SystemConfigAddon, T as TlsTcpTransporter, Tt as createCidrMatcher, U as MeshCertificateRegistry, V as MESH_NODE_CERTIFICATES_COLLECTION, W as RENEWAL_ABANDONED, X as MeshCaKeeper, Y as processMeshCrl, Z as getProcessMeshCaState, _ as keyFingerprintShort, _t as parseAgentDashboardOrigins, a as dialableHubHost, at as isValidAgentNodeId, b as MEMBERSHIP_PATHS, bt as OPAQUE_ORIGIN, c as PAIRING_MAX_CODE_ATTEMPTS, ct as loadMeshCa, d as PAIRING_PIN_DIGITS, dt as AGENT_UI_UNLOCK_TYP, et as caFingerprintCompact, f as PAIRING_PROTOCOL, ft as AGENT_UI_UNLOCK_USE, g as describeCsr, gt as mintAgentUiUnlockTicket, h as computePairingSas, ht as isAllowedAgentDashboardReturnTo, i as AgentPairing, it as generateMeshKeyPair, j as getProcessNodeMeshTransport, k as dropProcessPeer, l as PAIRING_MAX_SESSIONS, lt as AGENT_DASHBOARD_ORIGINS_FIELD, m as computePairingCommitment, mt as UnlockTicketJtiStore, n as HubPairing, nt as exportMeshPrivateKeyPem, o as hubHostFromMeshAddress, ot as issueMeshLeafForNode, p as PAIRING_TTL_MS, pt as AGENT_UI_UNLOCK_VERSION, q as setProcessMeshCertificateRegistry, r as PairingHttpError, rt as generateMeshCa, s as PAIRING_CODE_DIGITS, st as issueMeshLeafFromCsr, tt as createMeshCsrPem, u as PAIRING_PATHS, ut as AGENT_UI_UNLOCK_TTL_MS, v as signPairingProof, vt as verifyAgentUiUnlockTicket, w as MESH_TLS_PORT_HELLO_FIELD, wt as readOriginSetting, x as MembershipResponder, xt as isInsecureOrigin, y as verifyPairingProof, yt as InvalidCorsOriginError, z as openMeshTlsWhenRevocationsLoaded } 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-0pnoEm4s.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-D1N1Ef6G.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 { mc as collectSecretMarkerRefs } from "./dist-
|
|
1
|
+
import { mc as collectSecretMarkerRefs } from "./dist-CIih-HqD.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-YpAVqp4W.mjs → rename-composition-block-DF8RskLi.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bl as errMsg, gl as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./dist-
|
|
1
|
+
import { bl as errMsg, gl as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./dist-CIih-HqD.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
|