@camstack/server 1.2.888 → 1.2.890

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.
Files changed (92) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/api/trpc/generated-cap-mounts.js +2 -1
  3. package/dist/api/trpc/generated-cap-routers.js +529 -487
  4. package/package.json +17 -10
  5. package/system/assets/loki-logging/icon.png +0 -0
  6. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  7. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  8. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  9. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  10. package/system/dist/builtins/alerts/alerts.addon.js +1 -1
  11. package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
  12. package/system/dist/builtins/autotrack/index.js +1 -1
  13. package/system/dist/builtins/autotrack/index.mjs +1 -1
  14. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  15. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  16. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  17. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  18. package/system/dist/builtins/camera-grid/index.js +1 -1
  19. package/system/dist/builtins/camera-grid/index.mjs +1 -1
  20. package/system/dist/builtins/composer/composer.addon.js +4 -4
  21. package/system/dist/builtins/composer/composer.addon.mjs +4 -4
  22. package/system/dist/builtins/console-logging/index.js +1 -1
  23. package/system/dist/builtins/console-logging/index.mjs +1 -1
  24. package/system/dist/builtins/core-blocks/core-blocks.addon.js +3 -3
  25. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
  26. package/system/dist/builtins/device-history/device-history.addon.js +2 -2
  27. package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
  28. package/system/dist/builtins/device-manager/device-manager.addon.js +12 -2
  29. package/system/dist/builtins/device-manager/device-manager.addon.mjs +12 -2
  30. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  31. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  32. package/system/dist/builtins/keychain/index.js +4 -4
  33. package/system/dist/builtins/keychain/index.mjs +4 -4
  34. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  35. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  36. package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
  37. package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
  38. package/system/dist/builtins/local-network/local-network.addon.js +3 -3
  39. package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
  40. package/system/dist/builtins/loki-logging/index.js +1 -1
  41. package/system/dist/builtins/loki-logging/index.mjs +1 -1
  42. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  43. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  44. package/system/dist/builtins/platform-probe/index.js +1 -1
  45. package/system/dist/builtins/platform-probe/index.mjs +1 -1
  46. package/system/dist/builtins/record-entries/index.js +1 -1
  47. package/system/dist/builtins/record-entries/index.mjs +1 -1
  48. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  49. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  50. package/system/dist/builtins/snapshot/index.js +1 -1
  51. package/system/dist/builtins/snapshot/index.mjs +1 -1
  52. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  53. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  54. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  55. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  56. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
  57. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
  58. package/system/dist/builtins/storage-orchestrator/location-occupancy.d.ts +1 -1
  59. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +21 -11
  60. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +21 -11
  61. package/system/dist/builtins/system-config/system-config.addon.js +3 -3
  62. package/system/dist/builtins/system-config/system-config.addon.mjs +3 -3
  63. package/system/dist/builtins/winston-logging/index.js +1 -1
  64. package/system/dist/builtins/winston-logging/index.mjs +1 -1
  65. package/system/dist/{capture-engine-CIzuHcW5.mjs → capture-engine-B1bMuzVX.mjs} +1 -1
  66. package/system/dist/{capture-engine-BQtS1bJu.js → capture-engine-C1vdBL88.js} +1 -1
  67. package/system/dist/{composition-sources-Ck2SVb6t.js → composition-sources-BfLlyKRe.js} +1 -1
  68. package/system/dist/{composition-sources-BG56kyxT.mjs → composition-sources-Dj6qn5PP.mjs} +1 -1
  69. package/system/dist/{constants-BOtRWcUU.mjs → constants-Ba51ywI4.mjs} +1 -1
  70. package/system/dist/{constants-B2rCPAir.js → constants-DuB_xXYx.js} +1 -1
  71. package/system/dist/{device-ca-CZ_wWfyt.js → device-ca-CVjaotgX.js} +1 -1
  72. package/system/dist/{device-ca-DKemGRa7.mjs → device-ca-CkXjf3ms.mjs} +1 -1
  73. package/system/dist/{dist-1r7BFeuz.mjs → dist-BKojK6Wf.mjs} +341 -18
  74. package/system/dist/{dist-BC9-zzD-.js → dist-BjhII4Uq.js} +341 -18
  75. package/system/dist/file-host-worker.js +1 -1
  76. package/system/dist/file-host-worker.mjs +1 -1
  77. package/system/dist/{hub-identity-E3mTM7Ll.js → hub-identity-C0ehkt78.js} +1 -1
  78. package/system/dist/{hub-identity-CtxGsQyr.mjs → hub-identity-C0qf888i.mjs} +1 -1
  79. package/system/dist/{hub-mdns-ciao-CPoiWmkG.mjs → hub-mdns-ciao-BYe34S2Q.mjs} +2 -2
  80. package/system/dist/{hub-mdns-ciao-ruddeiE8.js → hub-mdns-ciao-DJHjyjvT.js} +2 -2
  81. package/system/dist/index.js +8 -8
  82. package/system/dist/index.mjs +8 -8
  83. package/system/dist/{legacy-integration-rows-door-BwR2uJMG.mjs → legacy-integration-rows-door-BEYgXSXr.mjs} +1 -1
  84. package/system/dist/{legacy-integration-rows-door-cMhRbXzP.js → legacy-integration-rows-door-G6EceE_J.js} +1 -1
  85. package/system/dist/{rename-composition-block-Bcc0x_Oi.js → rename-composition-block-D1mO51F9.js} +1 -1
  86. package/system/dist/{rename-composition-block-DjVFKD_K.mjs → rename-composition-block-D6bq3Twf.mjs} +1 -1
  87. package/system/dist/{restore-archive-DyFnTC0y.js → restore-archive-CJvMq13C.js} +1 -1
  88. package/system/dist/{restore-archive-Cytts2c1.mjs → restore-archive-FXsCWq_f.mjs} +1 -1
  89. package/system/dist/{wal-maintenance-DzJQxMoR.js → wal-maintenance-COJ_JxrD.js} +0 -0
  90. package/system/dist/{wal-maintenance-GGloLxfY.mjs → wal-maintenance-Ci9Dl-lB.mjs} +0 -0
  91. package/system/package.json +2 -2
  92. package/system/assets/loki-logging/icon.svg +0 -7
@@ -1274,7 +1274,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
1274
1274
  */
1275
1275
  var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
1276
1276
  //#endregion
1277
- //#region ../types/dist/sleep-DnhxKL99.mjs
1277
+ //#region ../types/dist/sleep-Ch7Q7UtE.mjs
1278
1278
  /**
1279
1279
  * The audio chunk plane's byte format, and the ONE expansion from a coded
1280
1280
  * window to float samples (D455).
@@ -2724,7 +2724,7 @@ var RecordIntegrationInstances = class {
2724
2724
  kindOfBody(body) {
2725
2725
  if (this.hooks.kindOf !== void 0) {
2726
2726
  const id = this.hooks.kindOf(body);
2727
- if (!this.hooks.description.kinds.some((declared) => declared.id === id)) throw new Error(`record kind '${this.kind.name}': kindOf returned '${id}', which describe().kinds does not declare (D1013)`);
2727
+ if (!this.hooks.description.kinds.some((declared) => declared.id === id)) throw new Error(`record kind '${this.kind.name}': kindOf returned '${id}', which describe().kinds does not declare`);
2728
2728
  return id;
2729
2729
  }
2730
2730
  const only = this.hooks.description.kinds[0];
@@ -2754,8 +2754,15 @@ var RecordIntegrationInstances = class {
2754
2754
  field: link.field,
2755
2755
  to: link.to
2756
2756
  })) };
2757
+ const wired = this.hooks.test !== void 0;
2758
+ const stated = this.hooks.description;
2757
2759
  return {
2758
- ...this.hooks.description,
2760
+ ...stated,
2761
+ ...stated.canTest && !wired ? { canTest: false } : {},
2762
+ ...stated.kinds === void 0 ? {} : { kinds: stated.kinds.map((kind) => kind.canTest === true && !wired ? {
2763
+ ...kind,
2764
+ canTest: false
2765
+ } : kind) },
2759
2766
  ...links,
2760
2767
  ...this.hooks.mintId === void 0 ? {} : { mintsId: true }
2761
2768
  };
@@ -5691,6 +5698,20 @@ var RuleFireOriginSchema = zod.z.object({
5691
5698
  cameraId: zod.z.number().int()
5692
5699
  })).optional()
5693
5700
  });
5701
+ /** The ecosystems an exporter speaks for. */
5702
+ var OnBehalfSourceSchema = zod.z.enum([
5703
+ "homeassistant",
5704
+ "homekit",
5705
+ "alexa",
5706
+ "google",
5707
+ "matter"
5708
+ ]);
5709
+ /** WHO an exporter acts for: the ecosystem and the principal it reported, never invented. */
5710
+ var OnBehalfSchema = zod.z.object({
5711
+ source: OnBehalfSourceSchema,
5712
+ principalId: zod.z.string(),
5713
+ principalName: zod.z.string().optional()
5714
+ });
5694
5715
  zod.z.discriminatedUnion("kind", [
5695
5716
  zod.z.object({
5696
5717
  kind: zod.z.literal("action"),
@@ -5707,7 +5728,8 @@ zod.z.discriminatedUnion("kind", [
5707
5728
  zod.z.object({
5708
5729
  kind: zod.z.literal("rule"),
5709
5730
  fire: RuleFireOriginSchema
5710
- })
5731
+ }),
5732
+ OnBehalfSchema.extend({ kind: zod.z.literal("on-behalf") })
5711
5733
  ]);
5712
5734
  /** The rule fire a claim carries, if it carries one. */
5713
5735
  function ruleFireOfClaim(claim) {
@@ -5749,7 +5771,9 @@ var TransitionActorSchema = zod.z.discriminatedUnion("kind", [
5749
5771
  zod.z.object({
5750
5772
  kind: zod.z.literal("addon"),
5751
5773
  addonId: zod.z.string(),
5752
- nodeId: zod.z.string().optional()
5774
+ nodeId: zod.z.string().optional(),
5775
+ /** The ecosystem principal an exporter relayed, when it reported one. */
5776
+ onBehalf: OnBehalfSchema.optional()
5753
5777
  }),
5754
5778
  zod.z.object({
5755
5779
  kind: zod.z.literal("action"),
@@ -9571,6 +9595,62 @@ var CAP_VOCABULARY_BY_NAME = {
9571
9595
  }],
9572
9596
  events: { onMotionTriggerChanged: { notOperatorFacing: "the `enabled` state trigger phrases both edges of this change" } }
9573
9597
  },
9598
+ "siren": {
9599
+ scope: "device",
9600
+ noun: {
9601
+ en: "Siren",
9602
+ it: "Sirena"
9603
+ },
9604
+ actions: [{
9605
+ id: "siren.trigger",
9606
+ method: "trigger",
9607
+ label: {
9608
+ en: "Sound the siren",
9609
+ it: "Fai suonare la sirena"
9610
+ },
9611
+ phrase: {
9612
+ en: "Sound {device}",
9613
+ it: "Fai suonare {device}"
9614
+ },
9615
+ icon: "siren",
9616
+ args: {}
9617
+ }, {
9618
+ id: "siren.stop",
9619
+ method: "stop",
9620
+ label: {
9621
+ en: "Silence the siren",
9622
+ it: "Zittisci la sirena"
9623
+ },
9624
+ phrase: {
9625
+ en: "Silence {device}",
9626
+ it: "Zittisci {device}"
9627
+ },
9628
+ icon: "siren",
9629
+ args: {},
9630
+ effect: {
9631
+ field: "active",
9632
+ value: false
9633
+ }
9634
+ }],
9635
+ state: [{
9636
+ kind: "boolean",
9637
+ field: "active",
9638
+ label: {
9639
+ en: "Siren sounding",
9640
+ it: "Sirena in funzione"
9641
+ },
9642
+ whenTrue: {
9643
+ en: "When {device} starts sounding",
9644
+ it: "Quando {device} inizia a suonare"
9645
+ },
9646
+ whenFalse: {
9647
+ en: "When {device} falls silent",
9648
+ it: "Quando {device} smette di suonare"
9649
+ },
9650
+ icon: "siren"
9651
+ }],
9652
+ events: { onSirenChanged: { notOperatorFacing: "the `active` state trigger phrases both edges of this change" } }
9653
+ },
9574
9654
  "vacuum-control": {
9575
9655
  scope: "device",
9576
9656
  noun: {
@@ -16311,6 +16391,7 @@ var CAP_NAMES = Object.freeze([
16311
16391
  "script-runner",
16312
16392
  "server-management",
16313
16393
  "settings-store",
16394
+ "siren",
16314
16395
  "smoke",
16315
16396
  "smtp-provider",
16316
16397
  "snapshot",
@@ -18035,6 +18116,24 @@ Object.freeze({
18035
18116
  "valueType": "string"
18036
18117
  }
18037
18118
  ],
18119
+ "siren": [
18120
+ {
18121
+ "path": "active",
18122
+ "valueType": "boolean"
18123
+ },
18124
+ {
18125
+ "path": "activeUntil",
18126
+ "valueType": "number"
18127
+ },
18128
+ {
18129
+ "path": "durationSeconds",
18130
+ "valueType": "number"
18131
+ },
18132
+ {
18133
+ "path": "lastTriggeredAt",
18134
+ "valueType": "number"
18135
+ }
18136
+ ],
18038
18137
  "smoke": [{
18039
18138
  "path": "detected",
18040
18139
  "valueType": "boolean"
@@ -65684,7 +65783,7 @@ function groupTemplate(id) {
65684
65783
  }
65685
65784
  /**
65686
65785
  * Cap history catalog, projected from every `*.cap.ts` `history` block.
65687
- * 46 caps with series (124 series), 38 caps answered `'none'`.
65786
+ * 46 caps with series (124 series), 39 caps answered `'none'`.
65688
65787
  * Field keys are `runtimeState` paths (`a.b` into fixed objects only).
65689
65788
  */
65690
65789
  var HISTORY_CATALOG = {
@@ -78303,6 +78402,12 @@ var HeroRowModelSchema = zod.z.object({
78303
78402
  /** `null` = the type has no inline control, or the caller may not act on it. */
78304
78403
  primary: HeroControlSchema.nullable(),
78305
78404
  /**
78405
+ * `true` when the primary exists but the model gates it (the caller may not act): the
78406
+ * row is read-only and a client draws no control, not a fallback. `false` = nothing
78407
+ * covers the type yet. Absent = an older server.
78408
+ */
78409
+ primaryGated: zod.z.boolean().optional(),
78410
+ /**
78306
78411
  * Beside `primary` when the device offers a timed run: Run while idle, Stop
78307
78412
  * while armed. `null` when there is no slot, or the caller may not act.
78308
78413
  */
@@ -78357,26 +78462,44 @@ function primaryOf(model) {
78357
78462
  const named = ROW_PRIMARY_BY_TYPE[model.type];
78358
78463
  if (named !== void 0) {
78359
78464
  const found = extraOf(model, named);
78360
- if (found !== null) return found;
78465
+ if (found !== null) return {
78466
+ control: found,
78467
+ gated: false
78468
+ };
78361
78469
  }
78362
78470
  const power = model.ownPower;
78363
78471
  if (power !== null) {
78364
- if (model.gated.includes("own-power")) return null;
78472
+ if (model.gated.includes("own-power")) return {
78473
+ control: null,
78474
+ gated: true
78475
+ };
78365
78476
  return {
78366
- kind: "toggle",
78367
- id: "own-power",
78368
- label: power.turnOn.label,
78369
- on: power.on,
78370
- turnOn: power.turnOn,
78371
- turnOff: power.turnOff
78477
+ control: {
78478
+ kind: "toggle",
78479
+ id: "own-power",
78480
+ label: power.turnOn.label,
78481
+ on: power.on,
78482
+ turnOn: power.turnOn,
78483
+ turnOff: power.turnOff
78484
+ },
78485
+ gated: false
78372
78486
  };
78373
78487
  }
78374
78488
  for (const row of model.rows) {
78375
78489
  const control = row.controls[0];
78376
78490
  if (control === void 0) continue;
78377
- return model.gated.includes(row.id) ? null : control;
78491
+ return model.gated.includes(row.id) ? {
78492
+ control: null,
78493
+ gated: true
78494
+ } : {
78495
+ control,
78496
+ gated: false
78497
+ };
78378
78498
  }
78379
- return null;
78499
+ return {
78500
+ control: null,
78501
+ gated: false
78502
+ };
78380
78503
  }
78381
78504
  /**
78382
78505
  * The extras of a type, by control id, in the order they are drawn. The ids are the
@@ -78443,7 +78566,7 @@ function timedRunOf(model) {
78443
78566
  }
78444
78567
  function projectDeviceRow(model) {
78445
78568
  const trailing = trailingOf(model);
78446
- const primary = primaryOf(model);
78569
+ const { control: primary, gated: primaryGated } = primaryOf(model);
78447
78570
  return {
78448
78571
  deviceId: model.deviceId,
78449
78572
  name: model.name,
@@ -78454,6 +78577,7 @@ function projectDeviceRow(model) {
78454
78577
  scene: model.scene,
78455
78578
  statusLine: statusLineOf(model, trailing),
78456
78579
  primary,
78580
+ primaryGated,
78457
78581
  timedRun: timedRunOf(model),
78458
78582
  extras: extrasOf(model, primary),
78459
78583
  trailing,
@@ -104790,6 +104914,150 @@ var serverManagementCapability = {
104790
104914
  vocabulary: { notOperatorFacing: NOT_A_DEVICE.CLUSTER }
104791
104915
  };
104792
104916
  /**
104917
+ * Timed siren: trigger the siren for a duration and know until when it sounds.
104918
+ *
104919
+ * The plain on/off `switch` of a siren stays as it is (HomeKit / Alexa see a
104920
+ * switch); this cap adds the part a switch cannot say — HOW LONG, and the
104921
+ * moment the siren is expected to fall silent (`activeUntil`, epoch ms), so a
104922
+ * UI can show the activation with a countdown.
104923
+ *
104924
+ * The allowed durations are never hardcoded: `getOptions` answers what the
104925
+ * CAMERA reports (a discrete list or `{min,max,step}`), the default, and the
104926
+ * unit truth — a camera that counts plays rather than seconds says so, with the
104927
+ * seconds-per-play factor used to convert, and whether that factor was read
104928
+ * from the camera or is an estimate.
104929
+ */
104930
+ /** What the camera counts natively. */
104931
+ var SirenDurationUnit = {
104932
+ Seconds: "seconds",
104933
+ Plays: "plays"
104934
+ };
104935
+ /** Where the numbers of an options answer come from. */
104936
+ var SirenOptionsSource = {
104937
+ /** Read from the camera by this fetch. */
104938
+ Camera: "camera",
104939
+ /** The camera did not answer or does not advertise it; a documented fallback. */
104940
+ Fallback: "fallback"
104941
+ };
104942
+ var SirenDurationRangeSchema = zod.z.object({
104943
+ min: zod.z.number().positive(),
104944
+ max: zod.z.number().positive(),
104945
+ step: zod.z.number().positive()
104946
+ });
104947
+ var SirenOptionsSchema = zod.z.object({
104948
+ /** Discrete durations in seconds the operator may pick; `null` when the camera gives a range. */
104949
+ allowedSeconds: zod.z.array(zod.z.number().positive()).nullable(),
104950
+ /** Continuous range in seconds; `null` when the camera gives a discrete list. */
104951
+ rangeSeconds: SirenDurationRangeSchema.nullable(),
104952
+ /** The camera's default duration, seconds. */
104953
+ defaultSeconds: zod.z.number().positive(),
104954
+ /** What the camera counts natively. */
104955
+ unit: zod.z.enum([SirenDurationUnit.Seconds, SirenDurationUnit.Plays]),
104956
+ /** Seconds one play lasts, when `unit` is `plays`; `null` for a seconds camera. */
104957
+ secondsPerPlay: zod.z.number().positive().nullable(),
104958
+ /** `camera` when the values were read from it, `fallback` when the camera could not say. */
104959
+ source: zod.z.enum([SirenOptionsSource.Camera, SirenOptionsSource.Fallback]),
104960
+ /** Ms epoch of the read that produced this answer. */
104961
+ fetchedAt: zod.z.number()
104962
+ });
104963
+ var SirenStatusSchema = zod.z.object({
104964
+ /** True while the siren is sounding by a timed trigger or switched on. */
104965
+ active: zod.z.boolean(),
104966
+ /** Ms epoch the siren is expected to fall silent; `null` when not active or open-ended. */
104967
+ activeUntil: zod.z.number().nullable(),
104968
+ /** Duration of the current / last activation, seconds; `null` when none yet. */
104969
+ durationSeconds: zod.z.number().nullable(),
104970
+ /** Ms epoch of the last trigger (0 = never). */
104971
+ lastTriggeredAt: zod.z.number()
104972
+ });
104973
+ var SirenRuntimeStateSchema = SirenStatusSchema.extend({
104974
+ /** Ms epoch of the last successful camera read of the options (0 = never). */
104975
+ lastFetchedAt: zod.z.number() });
104976
+ var sirenCapability = {
104977
+ name: "siren",
104978
+ scope: "device",
104979
+ deviceNative: true,
104980
+ mode: "singleton",
104981
+ deviceTypes: [DeviceType.Siren],
104982
+ methods: {
104983
+ /** The durations the camera allows, read from the camera. */
104984
+ getOptions: method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), SirenOptionsSchema, {
104985
+ kind: "query",
104986
+ auth: "protected"
104987
+ }),
104988
+ /**
104989
+ * Sound the siren. Without `durationSeconds` the camera default applies.
104990
+ * Answers the state at the moment of the trigger (`activeUntil` included).
104991
+ */
104992
+ trigger: method(zod.z.object({
104993
+ deviceId: zod.z.number().int().nonnegative(),
104994
+ durationSeconds: zod.z.number().positive().optional()
104995
+ }), SirenStatusSchema, {
104996
+ kind: "mutation",
104997
+ auth: "protected",
104998
+ actions: [{
104999
+ id: "siren.trigger",
105000
+ label: t("Sound the siren", "Fai suonare la sirena"),
105001
+ phrase: t("Sound {device}", "Fai suonare {device}"),
105002
+ icon: "siren",
105003
+ args: {}
105004
+ }]
105005
+ }),
105006
+ /** Silence the siren now. */
105007
+ stop: method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), SirenStatusSchema, {
105008
+ kind: "mutation",
105009
+ auth: "protected",
105010
+ actions: [{
105011
+ id: "siren.stop",
105012
+ label: t("Silence the siren", "Zittisci la sirena"),
105013
+ phrase: t("Silence {device}", "Zittisci {device}"),
105014
+ icon: "siren",
105015
+ effect: {
105016
+ field: "active",
105017
+ value: false
105018
+ },
105019
+ args: {}
105020
+ }]
105021
+ })
105022
+ },
105023
+ events: { onSirenChanged: {
105024
+ data: zod.z.object({
105025
+ deviceId: zod.z.number(),
105026
+ active: zod.z.boolean(),
105027
+ activeUntil: zod.z.number().nullable()
105028
+ }),
105029
+ notOperatorFacing: "the `active` state trigger phrases both edges of this change"
105030
+ } },
105031
+ status: {
105032
+ schema: SirenStatusSchema,
105033
+ kind: "command-driven"
105034
+ },
105035
+ runtimeState: SirenRuntimeStateSchema,
105036
+ /**
105037
+ * Runtime-state durability: **session** — a siren activation is a moment, not a fact to restore after a restart.
105038
+ *
105039
+ * See `RuntimeStateDurability`. Enforced by
105040
+ * `scripts/check-runtime-state-durability.ts`.
105041
+ */
105042
+ durability: "session",
105043
+ /**
105044
+ * History (D850): none — an activation is already recorded by the switch / alarm events.
105045
+ */
105046
+ history: "none",
105047
+ vocabulary: {
105048
+ noun: t("Siren", "Sirena"),
105049
+ order: 1170,
105050
+ state: [{
105051
+ kind: "boolean",
105052
+ field: "active",
105053
+ label: t("Siren sounding", "Sirena in funzione"),
105054
+ whenTrue: t("When {device} starts sounding", "Quando {device} inizia a suonare"),
105055
+ whenFalse: t("When {device} falls silent", "Quando {device} smette di suonare"),
105056
+ icon: "siren"
105057
+ }]
105058
+ }
105059
+ };
105060
+ /**
104793
105061
  * Smoke alarm sensor — boolean "is smoke currently detected" with
104794
105062
  * timestamp of the last transition. Drives Home Assistant
104795
105063
  * `binary_sensor` entries with `device_class: smoke`.
@@ -112190,6 +112458,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
112190
112458
  scriptRunnerCapability,
112191
112459
  serverManagementCapability,
112192
112460
  settingsStoreCapability,
112461
+ sirenCapability,
112193
112462
  smokeCapability,
112194
112463
  smtpProviderCapability,
112195
112464
  snapshotCapability,
@@ -114875,6 +115144,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
114875
115144
  runningState: runningStateCapability,
114876
115145
  sceneMonitor: sceneMonitorCapability,
114877
115146
  scriptRunner: scriptRunnerCapability,
115147
+ siren: sirenCapability,
114878
115148
  smoke: smokeCapability,
114879
115149
  streamCatalog: streamCatalogCapability,
114880
115150
  streamParams: streamParamsCapability,
@@ -128677,6 +128947,34 @@ var METHOD_ACCESS_MAP = Object.freeze({
128677
128947
  access: "create",
128678
128948
  role: "admin"
128679
128949
  },
128950
+ "siren.getOptions": {
128951
+ capName: "siren",
128952
+ capScope: "device",
128953
+ addonId: null,
128954
+ access: "view",
128955
+ role: "viewer"
128956
+ },
128957
+ "siren.getStatus": {
128958
+ capName: "siren",
128959
+ capScope: "device",
128960
+ addonId: null,
128961
+ access: "view",
128962
+ role: "viewer"
128963
+ },
128964
+ "siren.stop": {
128965
+ capName: "siren",
128966
+ capScope: "device",
128967
+ addonId: null,
128968
+ access: "create",
128969
+ role: "viewer"
128970
+ },
128971
+ "siren.trigger": {
128972
+ capName: "siren",
128973
+ capScope: "device",
128974
+ addonId: null,
128975
+ access: "create",
128976
+ role: "viewer"
128977
+ },
128680
128978
  "smoke.getStatus": {
128681
128979
  capName: "smoke",
128682
128980
  capScope: "device",
@@ -131011,6 +131309,7 @@ var CAP_NAMES_WITH_STATUS = [
131011
131309
  "running-state",
131012
131310
  "scene-monitor",
131013
131311
  "script-runner",
131312
+ "siren",
131014
131313
  "smoke",
131015
131314
  "snapshot",
131016
131315
  "stream-params",
@@ -133714,6 +134013,26 @@ Object.freeze({
133714
134013
  form: "single",
133715
134014
  optional: false
133716
134015
  }],
134016
+ "siren.getOptions": [{
134017
+ name: "deviceId",
134018
+ form: "single",
134019
+ optional: false
134020
+ }],
134021
+ "siren.getStatus": [{
134022
+ name: "deviceId",
134023
+ form: "single",
134024
+ optional: false
134025
+ }],
134026
+ "siren.stop": [{
134027
+ name: "deviceId",
134028
+ form: "single",
134029
+ optional: false
134030
+ }],
134031
+ "siren.trigger": [{
134032
+ name: "deviceId",
134033
+ form: "single",
134034
+ optional: false
134035
+ }],
133717
134036
  "smoke.getStatus": [{
133718
134037
  name: "deviceId",
133719
134038
  form: "single",
@@ -134194,7 +134513,7 @@ Object.freeze({
134194
134513
  });
134195
134514
  /**
134196
134515
  * Per-cap runtime-state policy, projected from every `*.cap.ts` that declares
134197
- * `runtimeState`. 85 caps: 43 `restored`, 42 `session`.
134516
+ * `runtimeState`. 86 caps: 43 `restored`, 43 `session`.
134198
134517
  *
134199
134518
  * A cap absent from this map has no runtime-state slice at all. A cap PRESENT
134200
134519
  * with `durability: 'session'` has one and has decided not to keep it.
@@ -134469,6 +134788,10 @@ var RUNTIME_STATE_POLICY = {
134469
134788
  durability: "session",
134470
134789
  volatileFields: []
134471
134790
  },
134791
+ "siren": {
134792
+ durability: "session",
134793
+ volatileFields: []
134794
+ },
134472
134795
  "smoke": {
134473
134796
  durability: "restored",
134474
134797
  volatileFields: ["lastChangedAt"]
@@ -1,5 +1,5 @@
1
1
  require("./chunk-Cek0wNdY.js");
2
- const require_wal_maintenance = require("./wal-maintenance-DzJQxMoR.js");
2
+ const require_wal_maintenance = require("./wal-maintenance-COJ_JxrD.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-GGloLxfY.mjs";
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-Ci9Dl-lB.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-BC9-zzD-.js");
2
+ const require_dist = require("./dist-BjhII4Uq.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 { Jc as defineRecordKinds } from "./dist-1r7BFeuz.mjs";
1
+ import { Jc as defineRecordKinds } from "./dist-BKojK6Wf.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
  import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
2
- import { Rl as userError } from "./dist-1r7BFeuz.mjs";
2
+ import { Rl as userError } from "./dist-BKojK6Wf.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-CtxGsQyr.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-C0qf888i.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-BC9-zzD-.js");
2
+ const require_dist = require("./dist-BjhII4Uq.js");
3
3
  const require_x509_es = require("./x509.es-WtnRNyYS.js");
4
- const require_hub_identity = require("./hub-identity-E3mTM7Ll.js");
4
+ const require_hub_identity = require("./hub-identity-C0ehkt78.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
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_chunk = require("./chunk-Cek0wNdY.js");
3
- const require_dist = require("./dist-BC9-zzD-.js");
4
- const require_device_ca = require("./device-ca-CZ_wWfyt.js");
3
+ const require_dist = require("./dist-BjhII4Uq.js");
4
+ const require_device_ca = require("./device-ca-CVjaotgX.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-DzJQxMoR.js");
32
- const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-cMhRbXzP.js");
31
+ const require_wal_maintenance = require("./wal-maintenance-COJ_JxrD.js");
32
+ const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-G6EceE_J.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-E3mTM7Ll.js");
38
- const require_constants = require("./constants-B2rCPAir.js");
37
+ const require_hub_identity = require("./hub-identity-C0ehkt78.js");
38
+ const require_constants = require("./constants-DuB_xXYx.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-ruddeiE8.js");
43
+ const require_hub_mdns_ciao = require("./hub-mdns-ciao-DJHjyjvT.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-DyFnTC0y.js");
46
+ const require_restore_archive = require("./restore-archive-CJvMq13C.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");
@@ -1,6 +1,6 @@
1
1
  import { i as __require } from "./chunk-CNf5ZN-e.mjs";
2
- import { A as CatalogFileSchema, Ac as asJsonObject$1, Al as scopeKey, Ar as describeUnmet, At as LOG_LEVEL_RANK, C as CATALOG_LANGS, Ci as isArrayOutputSchema, Cl as parseJsonUnknown, Dl as resolveCapMount, Dn as addonSettingsCapability, Ht as PackageRequiresSchema, Jc as defineRecordKinds, Jl as EventCategory$1, Js as CALLER_STAMPED_CAPABILITIES$1, Ki as logLevelAtMost, Kl as errMsg$1, Ln as bareAddonId, Lo as supportedRuntimes, Mc as asString$1, Ni as isVoidInput, Oo as splitTranslationRef, Pi as kebabToCamel$1, Qc as expandCapMethods, Rl as userError, Sl as parseJsonObject, Ti as isCollectionArrayMethod, Tl as readinessKey, Uc as createEvent$1, Vl as withoutCallerStamp, Xr as extractNestedAddonId, Xs as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Yc as emitDownForOwnedCaps, Yo as unmetRequirements, Ys as DATAPLANE_SECRET_HEADER$1, Zs as DEVICE_STATUS_METHOD, a as AGENT_MDNS_SERVICE_TYPE, al as isDebugChannelName, da as objectInputDeclaresAddonId, el as getDebugInterest, fa as objectInputDeclaresRequiredDeviceId, hc as ReadinessTimeoutError, ho as scopesAllowDeviceCap, jc as asNumber, ji as isObjectInput, jt as METHOD_ACCESS_MAP, ka as procedureAuthKey, mc as ReadinessRegistry, mo as scopesAllowAddon, no as resolveMethodAuth, o as AGENT_MDNS_TXT_KEYS, or as compareVersions, pc as RUNTIME_DEFAULTS, qi as looseSchema, s as ALL_CAPABILITY_DEFINITIONS, vi as interpolate, yi as isAddonInstanceId, zc as collectSecretMarkerRefs, zi as lifecycleJobSchema } from "./dist-1r7BFeuz.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-DKemGRa7.mjs";
2
+ import { A as CatalogFileSchema, Ac as asJsonObject$1, Al as scopeKey, Ar as describeUnmet, At as LOG_LEVEL_RANK, C as CATALOG_LANGS, Ci as isArrayOutputSchema, Cl as parseJsonUnknown, Dl as resolveCapMount, Dn as addonSettingsCapability, Ht as PackageRequiresSchema, Jc as defineRecordKinds, Jl as EventCategory$1, Js as CALLER_STAMPED_CAPABILITIES$1, Ki as logLevelAtMost, Kl as errMsg$1, Ln as bareAddonId, Lo as supportedRuntimes, Mc as asString$1, Ni as isVoidInput, Oo as splitTranslationRef, Pi as kebabToCamel$1, Qc as expandCapMethods, Rl as userError, Sl as parseJsonObject, Ti as isCollectionArrayMethod, Tl as readinessKey, Uc as createEvent$1, Vl as withoutCallerStamp, Xr as extractNestedAddonId, Xs as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Yc as emitDownForOwnedCaps, Yo as unmetRequirements, Ys as DATAPLANE_SECRET_HEADER$1, Zs as DEVICE_STATUS_METHOD, a as AGENT_MDNS_SERVICE_TYPE, al as isDebugChannelName, da as objectInputDeclaresAddonId, el as getDebugInterest, fa as objectInputDeclaresRequiredDeviceId, hc as ReadinessTimeoutError, ho as scopesAllowDeviceCap, jc as asNumber, ji as isObjectInput, jt as METHOD_ACCESS_MAP, ka as procedureAuthKey, mc as ReadinessRegistry, mo as scopesAllowAddon, no as resolveMethodAuth, o as AGENT_MDNS_TXT_KEYS, or as compareVersions, pc as RUNTIME_DEFAULTS, qi as looseSchema, s as ALL_CAPABILITY_DEFINITIONS, vi as interpolate, yi as isAddonInstanceId, zc as collectSecretMarkerRefs, zi as lifecycleJobSchema } from "./dist-BKojK6Wf.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-CkXjf3ms.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-GGloLxfY.mjs";
31
- import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-BwR2uJMG.mjs";
30
+ import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-Ci9Dl-lB.mjs";
31
+ import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-BEYgXSXr.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-CtxGsQyr.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-BOtRWcUU.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-C0qf888i.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-Ba51ywI4.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-CPoiWmkG.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-BYe34S2Q.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-Cytts2c1.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-FXsCWq_f.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";