@camstack/addon-pipeline 1.2.313 → 1.2.314

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 (31) hide show
  1. package/dist/audio-analyzer/index.js +2 -2
  2. package/dist/audio-analyzer/index.mjs +2 -2
  3. package/dist/{default-detection-model-BdGFby5Z.js → default-detection-model-BvxtQEcb.js} +1 -1
  4. package/dist/{default-detection-model-BKL87wl7.mjs → default-detection-model-Es1-dvFU.mjs} +1 -1
  5. package/dist/detection-pipeline/index.js +4 -4
  6. package/dist/detection-pipeline/index.mjs +4 -4
  7. package/dist/{dist-D0zhkadD.mjs → dist-E1Z_K22_.mjs} +307 -189
  8. package/dist/{dist-BPVKYeQX.js → dist-Jvi2SOxI.js} +307 -189
  9. package/dist/motion-wasm/index.js +1 -1
  10. package/dist/motion-wasm/index.mjs +1 -1
  11. package/dist/{node-B9daDdJP.mjs → node-DHe-9_tm.mjs} +1 -1
  12. package/dist/{node-C7rarKVD.js → node-EjcZQh8D.js} +1 -1
  13. package/dist/pipeline-runner/index.js +3 -3
  14. package/dist/pipeline-runner/index.mjs +3 -3
  15. package/dist/{process-memory-BUDBSDt2.js → process-memory-BUtnSPYK.js} +1 -1
  16. package/dist/{process-memory-Ci9SR5oX.mjs → process-memory-IQcwHauP.mjs} +1 -1
  17. package/dist/recorder/index.js +2 -2
  18. package/dist/recorder/index.mjs +2 -2
  19. package/dist/{segment-demux-js-CsReVvrn.mjs → segment-demux-js-CR58wpzs.mjs} +1 -1
  20. package/dist/{segment-demux-js-BBX4yDqb.js → segment-demux-js-Il0EkSOb.js} +1 -1
  21. package/dist/stream-broker/_stub.js +1 -1
  22. package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-B6JI3d7K.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-CBvGGDX_.mjs} +3 -3
  23. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D0BR9vFO.mjs +26 -0
  24. package/dist/stream-broker/demux-worker-child.js +1 -1
  25. package/dist/stream-broker/demux-worker-child.mjs +1 -1
  26. package/dist/stream-broker/{hostInit-CQOvL7HB.mjs → hostInit-CjvrBwfh.mjs} +3 -3
  27. package/dist/stream-broker/index.js +3 -3
  28. package/dist/stream-broker/index.mjs +3 -3
  29. package/dist/stream-broker/remoteEntry.js +1 -1
  30. package/package.json +2 -2
  31. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DuQsOkk7.mjs +0 -26
@@ -3,8 +3,8 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../chunk-emK7D4bc.js");
6
- const require_dist = require("../dist-BPVKYeQX.js");
7
- const require_process_memory = require("../process-memory-BUDBSDt2.js");
6
+ const require_dist = require("../dist-Jvi2SOxI.js");
7
+ const require_process_memory = require("../process-memory-BUtnSPYK.js");
8
8
  let node_fs = require("node:fs");
9
9
  node_fs = require_chunk.__toESM(node_fs);
10
10
  let node_path = require("node:path");
@@ -1,6 +1,6 @@
1
1
  import { n as __require } from "../chunk-DnnnRqeS.mjs";
2
- import { E as HF_BASE_URL, En as nodePin, G as audioAnalyzerCapability, Kt as resolvePoolMemoryPolicy, Sn as hydrateSchema, St as mapAudioLabelToMacro, Un as EventCategory, W as audioAnalysisCapability, _n as audioChunkBytesPerSample, fn as errMsg, j as PoolMemoryWatchdog, m as DEFAULT_AUDIO_ANALYZER_CONFIG, mn as BaseAddon, r as AUDIO_BACKEND_CHOICES, xn as expandAudioChunkToF32le } from "../dist-D0zhkadD.mjs";
3
- import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-Ci9SR5oX.mjs";
2
+ import { E as HF_BASE_URL, En as nodePin, G as audioAnalyzerCapability, Kt as resolvePoolMemoryPolicy, Sn as hydrateSchema, St as mapAudioLabelToMacro, Un as EventCategory, W as audioAnalysisCapability, _n as audioChunkBytesPerSample, fn as errMsg, j as PoolMemoryWatchdog, m as DEFAULT_AUDIO_ANALYZER_CONFIG, mn as BaseAddon, r as AUDIO_BACKEND_CHOICES, xn as expandAudioChunkToF32le } from "../dist-E1Z_K22_.mjs";
3
+ import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-IQcwHauP.mjs";
4
4
  import * as fs from "node:fs";
5
5
  import * as path$1 from "node:path";
6
6
  import { downloadFile } from "@camstack/system/addon-utils";
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-BPVKYeQX.js");
1
+ const require_dist = require("./dist-Jvi2SOxI.js");
2
2
  let node_crypto = require("node:crypto");
3
3
  //#region src/detection-pipeline/registry/effective-confidence.ts
4
4
  /** The default in force: the model's own floor, else the step's. */
@@ -1,4 +1,4 @@
1
- import { K as audioKindId, Yt as stepModelRunsOnFormat, _t as hfModelUrl, f as COCO_80_LABELS, i as AUDIO_MACRO_LABELS, p as COCO_TO_MACRO, vt as inferModelProvider, y as DEVICE_BACKEND_TO_FORMAT } from "./dist-D0zhkadD.mjs";
1
+ import { K as audioKindId, Yt as stepModelRunsOnFormat, _t as hfModelUrl, f as COCO_80_LABELS, i as AUDIO_MACRO_LABELS, p as COCO_TO_MACRO, vt as inferModelProvider, y as DEVICE_BACKEND_TO_FORMAT } from "./dist-E1Z_K22_.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  //#region src/detection-pipeline/registry/effective-confidence.ts
4
4
  /** The default in force: the model's own floor, else the step's. */
@@ -3,11 +3,11 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../chunk-emK7D4bc.js");
6
- const require_dist = require("../dist-BPVKYeQX.js");
7
- const require_node = require("../node-C7rarKVD.js");
8
- const require_default_detection_model = require("../default-detection-model-BdGFby5Z.js");
6
+ const require_dist = require("../dist-Jvi2SOxI.js");
7
+ const require_node = require("../node-EjcZQh8D.js");
8
+ const require_default_detection_model = require("../default-detection-model-BvxtQEcb.js");
9
9
  const require_lazy_sharp = require("../lazy-sharp-BuwKlQLR.js");
10
- const require_process_memory = require("../process-memory-BUDBSDt2.js");
10
+ const require_process_memory = require("../process-memory-BUtnSPYK.js");
11
11
  let node_os = require("node:os");
12
12
  node_os = require_chunk.__toESM(node_os);
13
13
  let node_fs = require("node:fs");
@@ -1,9 +1,9 @@
1
1
  import { n as __require } from "../chunk-DnnnRqeS.mjs";
2
- import { An as sleep, At as overlayClusterStepSettings, Dn as parseJsonUnknown, En as nodePin, Ft as pipelineExecutorCapability, H as YAMNET_TO_MACRO, Hn as union, Ht as resolveClusterStepModelId, Jt as runtimeDevices$1, Kt as resolvePoolMemoryPolicy, Mn as array, Mt as pickClusterStepSettings, Rn as object, Sn as hydrateSchema, Un as EventCategory, Vn as string, Yt as stepModelRunsOnFormat, bt as loadContributionCapability, ct as evaluateZoneRules, d as CLUSTER_MODEL_SCOPED_STEPS, en as supportedRuntimes$1, et as defaultDeviceFor$1, fn as errMsg, h as DEFAULT_CLUSTER_STEP_SETTINGS, it as detectionPipelineCapability, j as PoolMemoryWatchdog, mn as BaseAddon, n as APPLE_SA_TO_MACRO, st as enumerateInferenceDevices, vn as createEvent, y as DEVICE_BACKEND_TO_FORMAT } from "../dist-D0zhkadD.mjs";
3
- import { s as readProcessCost } from "../node-B9daDdJP.mjs";
4
- import { _ as resolveModelForFormat, a as buildSubtreeCanRun, b as resolveModelDefaultConfidence, c as macroGateVerdict, f as ALL_PIPELINE_STEPS, g as getStepDefinition, h as getStep, i as mergeCustomModels, m as getDefaultModelForFormat, n as resolveDefaultDetectionModel, p as ALL_STEPS, r as CustomModelCatalog, u as localFrameRegistry, y as landmarkPrecisionVerdict } from "../default-detection-model-BKL87wl7.mjs";
2
+ import { An as sleep, At as overlayClusterStepSettings, Dn as parseJsonUnknown, En as nodePin, Ft as pipelineExecutorCapability, H as YAMNET_TO_MACRO, Hn as union, Ht as resolveClusterStepModelId, Jt as runtimeDevices$1, Kt as resolvePoolMemoryPolicy, Mn as array, Mt as pickClusterStepSettings, Rn as object, Sn as hydrateSchema, Un as EventCategory, Vn as string, Yt as stepModelRunsOnFormat, bt as loadContributionCapability, ct as evaluateZoneRules, d as CLUSTER_MODEL_SCOPED_STEPS, en as supportedRuntimes$1, et as defaultDeviceFor$1, fn as errMsg, h as DEFAULT_CLUSTER_STEP_SETTINGS, it as detectionPipelineCapability, j as PoolMemoryWatchdog, mn as BaseAddon, n as APPLE_SA_TO_MACRO, st as enumerateInferenceDevices, vn as createEvent, y as DEVICE_BACKEND_TO_FORMAT } from "../dist-E1Z_K22_.mjs";
3
+ import { s as readProcessCost } from "../node-DHe-9_tm.mjs";
4
+ import { _ as resolveModelForFormat, a as buildSubtreeCanRun, b as resolveModelDefaultConfidence, c as macroGateVerdict, f as ALL_PIPELINE_STEPS, g as getStepDefinition, h as getStep, i as mergeCustomModels, m as getDefaultModelForFormat, n as resolveDefaultDetectionModel, p as ALL_STEPS, r as CustomModelCatalog, u as localFrameRegistry, y as landmarkPrecisionVerdict } from "../default-detection-model-Es1-dvFU.mjs";
5
5
  import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
6
- import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-Ci9SR5oX.mjs";
6
+ import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-IQcwHauP.mjs";
7
7
  import * as os from "node:os";
8
8
  import * as fs from "node:fs";
9
9
  import * as path$1 from "node:path";
@@ -13832,6 +13832,68 @@ method(object({
13832
13832
  password: string()
13833
13833
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
13834
13834
  /**
13835
+ * How long one snapshot may take end to end: the pinned copy of the whole
13836
+ * database plus `PRAGMA integrity_check` over the copy, on the hub's slowest
13837
+ * disk. ~800 MB at a pessimistic 10 MB/s is under 3 minutes; the bound is
13838
+ * generous because a timeout fails the whole backup run.
13839
+ */
13840
+ var DATABASE_SNAPSHOT_TIMEOUT_MS = 30 * 6e4;
13841
+ /**
13842
+ * The databases an owner snapshots — declared by the OWNER, so a caller never
13843
+ * guesses which file is live from what sits beside it (a cleanly closed
13844
+ * database has no sidecars and is just as owned). Paths are absolute on the
13845
+ * owner's host.
13846
+ */
13847
+ var DatabaseSnapshotTargetsSchema = object({ databases: array(object({ livePath: string() })) });
13848
+ /** One b-tree table of the snapshot and the rows it holds. */
13849
+ var DatabaseSnapshotTableSchema = object({
13850
+ name: string(),
13851
+ rows: number().int().nonnegative()
13852
+ });
13853
+ /**
13854
+ * What the owner wrote. Every path is ABSOLUTE on the owner's host — the
13855
+ * caller pins the call to its own node, so it can read the file; a caller
13856
+ * that finds the path outside its own data root refuses it rather than
13857
+ * archiving something it cannot place.
13858
+ */
13859
+ var DatabaseSnapshotResultSchema = object({
13860
+ /** The live database the snapshot copies. Never to be copied as a file. */
13861
+ livePath: string(),
13862
+ /** The verified copy: `<livePath>` + {@link DATABASE_SNAPSHOT_SUFFIX}. */
13863
+ snapshotPath: string(),
13864
+ sizeBytes: number().int().nonnegative(),
13865
+ pageCount: number().int().nonnegative(),
13866
+ pageSize: number().int().positive(),
13867
+ /**
13868
+ * Every b-tree table with its row count. Read inside the SAME read
13869
+ * transaction the copy was taken from, and found EQUAL on the copy — so
13870
+ * this is the content of the snapshot, not an estimate of the source.
13871
+ */
13872
+ tables: array(DatabaseSnapshotTableSchema),
13873
+ /** Wall time of the pinned copy (row counts included). */
13874
+ copyMs: number().nonnegative(),
13875
+ /** Wall time of the checks on the copy (`integrity_check`, row counts). */
13876
+ verifyMs: number().nonnegative(),
13877
+ /** When the pinned read transaction began (ms epoch) — the snapshot's instant. */
13878
+ takenAt: number()
13879
+ });
13880
+ /**
13881
+ * A snapshot as an ARCHIVE records it (`ArchiveManifest.sqliteSnapshots`):
13882
+ * the same facts, with both paths relative to the archive root (the node's
13883
+ * data dir), because an archive outlives the host that made it.
13884
+ */
13885
+ var ArchiveSqliteSnapshotSchema = DatabaseSnapshotResultSchema.extend({
13886
+ /** Archive-relative path of the live database the archive does NOT carry. */
13887
+ livePath: string(),
13888
+ /** Archive-relative path of the verified copy it carries in its place. */
13889
+ snapshotPath: string()
13890
+ });
13891
+ method(object({}), DatabaseSnapshotTargetsSchema, { auth: "admin" }), method(object({}), DatabaseSnapshotResultSchema, {
13892
+ kind: "mutation",
13893
+ auth: "admin",
13894
+ timeoutMs: DATABASE_SNAPSHOT_TIMEOUT_MS
13895
+ });
13896
+ /**
13835
13897
  * Orchestrator-side destination metadata. The orchestrator computes
13836
13898
  * `id = <addonId>:<subId>` from its provider lookup so consumers
13837
13899
  * (admin UI, restore flow) see one canonical key.
@@ -13942,7 +14004,12 @@ var ArchiveManifestSchema = object({
13942
14004
  locations: array(string()),
13943
14005
  entries: array(ArchiveEntrySchema),
13944
14006
  totalBytes: number(),
13945
- totalFiles: number()
14007
+ totalFiles: number(),
14008
+ /**
14009
+ * Live SQLite databases this archive carries as their OWNER's verified
14010
+ * snapshot instead of as files (D693). Absent on archives made before.
14011
+ */
14012
+ sqliteSnapshots: array(ArchiveSqliteSnapshotSchema).optional()
13946
14013
  });
13947
14014
  var LocationStatSchema = object({
13948
14015
  name: string(),
@@ -15720,6 +15787,52 @@ var CompositionBlockStateSchema = object({
15720
15787
  reason: string().optional(),
15721
15788
  fields: array(CompositionFieldStateSchema)
15722
15789
  });
15790
+ var ComposerBlockSchema = object({
15791
+ id: string().min(1),
15792
+ name: string().min(1).max(120),
15793
+ enabled: boolean(),
15794
+ updatedAt: number(),
15795
+ composition: CompositionSchema
15796
+ });
15797
+ /**
15798
+ * A stored composition row that no longer PARSES — a schema a release
15799
+ * tightened, a row written by a newer build. Sent by id so the composer keeps
15800
+ * its device as a placeholder and reports the block `failed` naming the parse
15801
+ * error. Leaving it out would read, twice, exactly like a delete (D49).
15802
+ */
15803
+ var ComposerUnreadableBlockSchema = object({
15804
+ id: string().min(1),
15805
+ /** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
15806
+ name: string().nullable(),
15807
+ /** The parse error, in the operator's words. */
15808
+ error: string()
15809
+ });
15810
+ method(object({
15811
+ /** The shared Blocks integration; null until `core-blocks` has reconciled it. */
15812
+ integrationId: string().nullable(),
15813
+ /** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
15814
+ storeLoaded: boolean(),
15815
+ blocks: array(ComposerBlockSchema),
15816
+ /** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
15817
+ restartBlockIds: array(string()),
15818
+ /** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
15819
+ unreadableBlocks: array(ComposerUnreadableBlockSchema)
15820
+ }), object({
15821
+ blocks: array(object({
15822
+ blockId: string(),
15823
+ status: CompositionRunStatusSchema,
15824
+ reason: string().optional()
15825
+ })),
15826
+ /**
15827
+ * False when the composer declared and withdrew NOTHING (store not loaded,
15828
+ * integration unknown, its own rows unread or read empty once). An empty
15829
+ * apply the caller owes is paid off only by one the composer acted on (D49).
15830
+ */
15831
+ acted: boolean()
15832
+ }), {
15833
+ kind: "mutation",
15834
+ auth: "admin"
15835
+ }), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
15723
15836
  var NUMBER = {
15724
15837
  kind: "fixed",
15725
15838
  result: ["number"]
@@ -15956,52 +16069,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
15956
16069
  auth: "admin",
15957
16070
  access: "view"
15958
16071
  });
15959
- var ComposerBlockSchema = object({
15960
- id: string().min(1),
15961
- name: string().min(1).max(120),
15962
- enabled: boolean(),
15963
- updatedAt: number(),
15964
- composition: CompositionSchema
15965
- });
15966
- /**
15967
- * A stored composition row that no longer PARSES — a schema a release
15968
- * tightened, a row written by a newer build. Sent by id so the composer keeps
15969
- * its device as a placeholder and reports the block `failed` naming the parse
15970
- * error. Leaving it out would read, twice, exactly like a delete (D49).
15971
- */
15972
- var ComposerUnreadableBlockSchema = object({
15973
- id: string().min(1),
15974
- /** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
15975
- name: string().nullable(),
15976
- /** The parse error, in the operator's words. */
15977
- error: string()
15978
- });
15979
- method(object({
15980
- /** The shared Blocks integration; null until `core-blocks` has reconciled it. */
15981
- integrationId: string().nullable(),
15982
- /** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
15983
- storeLoaded: boolean(),
15984
- blocks: array(ComposerBlockSchema),
15985
- /** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
15986
- restartBlockIds: array(string()),
15987
- /** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
15988
- unreadableBlocks: array(ComposerUnreadableBlockSchema)
15989
- }), object({
15990
- blocks: array(object({
15991
- blockId: string(),
15992
- status: CompositionRunStatusSchema,
15993
- reason: string().optional()
15994
- })),
15995
- /**
15996
- * False when the composer declared and withdrew NOTHING (store not loaded,
15997
- * integration unknown, its own rows unread or read empty once). An empty
15998
- * apply the caller owes is paid off only by one the composer acted on (D49).
15999
- */
16000
- acted: boolean()
16001
- }), {
16002
- kind: "mutation",
16003
- auth: "admin"
16004
- }), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
16005
16072
  /**
16006
16073
  * `custom-model-registry` — collection cap exposing operator-registered
16007
16074
  * custom detection models. Each provider (today: `addon-model-studio`)
@@ -17881,6 +17948,138 @@ method(object({
17881
17948
  deviceIds: array(number()).readonly(),
17882
17949
  caps: array(string()).readonly().optional()
17883
17950
  }), record(string(), record(string(), unknown().nullable())));
17951
+ object({
17952
+ /** Ms epoch of the last press. null = never observed since this provider started. */
17953
+ lastPressedAt: number().nullable(),
17954
+ /** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
17955
+ pressCountSinceStart: number()
17956
+ });
17957
+ object({
17958
+ deviceId: number(),
17959
+ timestamp: number()
17960
+ });
17961
+ /**
17962
+ * The `doorbell-source` extension slot's editable value (D648): the camera's
17963
+ * virtual-doorbell trigger devices, exactly what the wrapper's
17964
+ * `doorbellSources` persists (as `{ deviceId }` records).
17965
+ */
17966
+ var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
17967
+ DeviceType.Camera;
17968
+ DeviceType.Button, DeviceType.Camera;
17969
+ var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
17970
+ DeviceType.Camera, DeviceType.Camera;
17971
+ /** A slot's editable value, discriminated on `slot`. */
17972
+ var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
17973
+ DeviceType.Camera;
17974
+ var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
17975
+ state: literal("unreachable"),
17976
+ reason: string()
17977
+ })]);
17978
+ /** One provider of slots — the D554 source-listing row. */
17979
+ var ExtensionSourceSchema = object({
17980
+ /** The routing prefix of every `slotRef` this provider serves. */
17981
+ source: string(),
17982
+ label: string(),
17983
+ /** Stamped by the dispatcher from the registry (D557). */
17984
+ addonId: string().optional(),
17985
+ availability: ExtensionSourceAvailabilitySchema
17986
+ });
17987
+ /**
17988
+ * How one picked source stands. `missing` — no such device (deleted, or an id
17989
+ * that never existed); `foreign` — a device the slot's owner cannot read from
17990
+ * (a source owned by another addon); `unavailable` — it exists but is not a
17991
+ * valid source now (a container, which is never a pick). A source in any of
17992
+ * these states is SHOWN, never silently dropped or re-pointed.
17993
+ */
17994
+ var ExtensionSourceHealthSchema = _enum([
17995
+ "ok",
17996
+ "missing",
17997
+ "foreign",
17998
+ "unavailable"
17999
+ ]);
18000
+ var ExtensionSlotSourceSchema = object({
18001
+ deviceId: number().int(),
18002
+ /** The device's name, or null when it could not be resolved (`missing`). */
18003
+ name: string().nullable(),
18004
+ health: ExtensionSourceHealthSchema,
18005
+ detail: string().optional()
18006
+ });
18007
+ /**
18008
+ * A DIFFERENT authority that gates whether the slot's sources do anything —
18009
+ * reported read-only, named, never written through this contract (D62). The
18010
+ * virtual doorbell's sources ring only while the wrapper is bound to the
18011
+ * camera, and that binding belongs to `deviceManager.setWrapperActive`.
18012
+ * `unknown` means the gate could not be read; it is not "inactive" (D315).
18013
+ */
18014
+ var ExtensionSlotActivationSchema = object({
18015
+ state: _enum([
18016
+ "active",
18017
+ "inactive",
18018
+ "unknown"
18019
+ ]),
18020
+ authority: string(),
18021
+ detail: string().optional()
18022
+ });
18023
+ var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
18024
+ state: literal("ok"),
18025
+ /** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
18026
+ slotRef: string(),
18027
+ slot: ExtensionSlotIdSchema,
18028
+ /** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
18029
+ authority: string(),
18030
+ activation: ExtensionSlotActivationSchema.nullable(),
18031
+ value: ExtensionSlotValueSchema,
18032
+ sources: array(ExtensionSlotSourceSchema),
18033
+ /**
18034
+ * Devices the owner links to the host ON ITS OWN, by structure, and that
18035
+ * are therefore not in `value` (D655): a camera's device-tree children, and
18036
+ * the child a picked container stands for (D356 — a container is never a
18037
+ * pick, its children are). Read-only; the editor shows them and may offer
18038
+ * per-device options on them (the linked-devices tracked-event opt-in).
18039
+ * Absent when the owner links nothing beyond the picks, and from an owner
18040
+ * older than D655.
18041
+ */
18042
+ impliedSources: array(ExtensionSlotSourceSchema).optional()
18043
+ }), object({
18044
+ state: literal("unreachable"),
18045
+ addonId: string(),
18046
+ reason: string()
18047
+ })]);
18048
+ var ExtensionCandidatesSchema = object({ candidates: array(object({
18049
+ deviceId: number().int(),
18050
+ name: string(),
18051
+ type: string(),
18052
+ location: string().nullable(),
18053
+ /** The container a child belongs to — "Spotlight 2" alone does not say which. */
18054
+ parentName: string().nullable(),
18055
+ /** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
18056
+ suggested: boolean(),
18057
+ /** Why it is suggested ("same location"), null when it is not. */
18058
+ reason: string().nullable()
18059
+ })) });
18060
+ /**
18061
+ * What a write did. `none` — applied in place. `host` / `parent` — the owner
18062
+ * reloaded the host (or, for an accessory child, its parent) because the
18063
+ * write changed what the host REGISTERS. A slot never adds a capability to its
18064
+ * host — that is a composition (D663) — so today's owners answer `none`.
18065
+ */
18066
+ var ExtensionSetResultSchema = object({
18067
+ applied: literal(true),
18068
+ reload: _enum([
18069
+ "none",
18070
+ "host",
18071
+ "parent"
18072
+ ])
18073
+ });
18074
+ var ExtensionSlotRefInputSchema = object({
18075
+ deviceId: number().int(),
18076
+ slotRef: string().min(1)
18077
+ });
18078
+ var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
18079
+ method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
18080
+ kind: "mutation",
18081
+ auth: "admin"
18082
+ });
17884
18083
  /**
17885
18084
  * Per-field ownership (D663). A composition may CLAIM fields of a native
17886
18085
  * cap's runtime-state slice on an existing device: `replace` overlays the
@@ -21250,17 +21449,25 @@ var NcScheduleSchema = object({
21250
21449
  */
21251
21450
  var NcSystemEventDeliveryModeSchema = _enum(["instant", "summary"]);
21252
21451
  /**
21452
+ * How a summary window is SENT (D698): `rule` (absent) = ONE notification with
21453
+ * every section; `section` = one notification per section with something to
21454
+ * say (an unavailable section included), each titled by its section.
21455
+ */
21456
+ var NcStateSummarySplitSchema = _enum(["rule", "section"]);
21457
+ /**
21253
21458
  * `summary`: the rule sends NOTHING per event. When a window of `schedule`
21254
21459
  * CLOSES, it sends one notification with the current state of its kinds
21255
21460
  * (low batteries, consumables to replace, devices offline, updates
21256
- * available, ...), after its own filters. Nothing to report sends nothing.
21461
+ * available, ...), after its own filters — or, with `split: 'section'`
21462
+ * (D698), one notification per section. Nothing to report sends nothing.
21257
21463
  * The schedule is the ordinary `NcSchedule` (weekly windows, IANA timezone,
21258
21464
  * midnight crossing); the send time is each window's END. Refused on the
21259
21465
  * `alarm` family, which stays instant (`systemEventDeliveryProblems`).
21260
21466
  */
21261
21467
  var NcSystemEventDeliverySchema = discriminatedUnion("mode", [object({ mode: literal("instant") }), object({
21262
21468
  mode: literal("summary"),
21263
- schedule: NcScheduleSchema
21469
+ schedule: NcScheduleSchema,
21470
+ split: NcStateSummarySplitSchema.optional()
21264
21471
  })]);
21265
21472
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
21266
21473
  var NcPlateMatcherSchema = object({
@@ -21911,10 +22118,12 @@ var NcMediaPolicySchema = object({
21911
22118
  /**
21912
22119
  * Cooldown GRANULARITY over the subject's class — how much a fired
21913
22120
  * notification suppresses.
21914
- * - `shared` (default, and the absent value) — one window for the whole
21915
- * rule/scope: a cat silences the next dog for `cooldownSec`.
21916
- * - `per-class` — an independent window per detected class, so cat→dog fires
21917
- * at once and cat→cat still waits.
22121
+ * - `per-class` (default, and the absent value since 2026-10-01 — D36) — an
22122
+ * independent window per detected class: cat→dog fires at once, cat→cat
22123
+ * still waits.
22124
+ * - `shared` — one window for the whole rule/scope: a cat silences the next
22125
+ * dog for `cooldownSec`. Only written when an operator picks it; it is no
22126
+ * longer what an unset rule means.
21918
22127
  *
21919
22128
  * AUDIO subjects are ALWAYS per-class regardless of this setting: a scream
21920
22129
  * must not be swallowed by a bark's window (the precedent this generalizes —
@@ -21929,8 +22138,11 @@ var NcThrottleSchema = object({
21929
22138
  /**
21930
22139
  * Class granularity of the cooldown key. Optional rather than defaulted:
21931
22140
  * a Zod default does NOT run on the addon→addon cap path, so a persisted
21932
- * rule authored before this field simply carries none — and the engine
21933
- * reads absent as `shared`, the pre-existing behaviour.
22141
+ * rule authored before this field simply carries none. The engine used to
22142
+ * read absent as `shared` (D36); since 2026-10-01 it reads absent as
22143
+ * `per-class` — the operator's default — and only an explicit `shared`
22144
+ * still means `shared`. See `cooldownKey` / `keysPerClass` in the rule
22145
+ * engine, and D36's dated note.
21934
22146
  */
21935
22147
  granularity: NcThrottleGranularitySchema.optional()
21936
22148
  });
@@ -22254,11 +22466,23 @@ var NcStateSummaryPreviewSectionSchema = object({
22254
22466
  reason: string().optional()
22255
22467
  });
22256
22468
  /**
22469
+ * One notification a previewed summary would send (D698): the whole summary on
22470
+ * a `rule` split (no `section`), one section's on a `section` split.
22471
+ */
22472
+ var NcStateSummaryPreviewRowSchema = object({
22473
+ section: string().optional(),
22474
+ /** The section's name on a per-section row; every reported section's, joined, on a combined one. */
22475
+ title: string(),
22476
+ text: string(),
22477
+ count: number().int().nonnegative()
22478
+ });
22479
+ /**
22257
22480
  * The summary a rule would send now. `empty` = nothing to report and every
22258
22481
  * section read: such a summary is NOT sent. `dropped` counts the open states
22259
22482
  * the rule's own filters (or a camera mute) left out, by reason.
22260
22483
  * `excludedGroups` names the kind groups selected that have no state to report
22261
- * (backups & exports).
22484
+ * (backups & exports). `split` and `rows` (D698) say how it would be sent —
22485
+ * optional, so an older hub's answer still parses.
22262
22486
  */
22263
22487
  var NcStateSummaryPreviewSchema = object({
22264
22488
  empty: boolean(),
@@ -22266,7 +22490,9 @@ var NcStateSummaryPreviewSchema = object({
22266
22490
  text: string(),
22267
22491
  sections: array(NcStateSummaryPreviewSectionSchema),
22268
22492
  dropped: record(string(), number().int().nonnegative()),
22269
- excludedGroups: array(string())
22493
+ excludedGroups: array(string()),
22494
+ split: NcStateSummarySplitSchema.optional(),
22495
+ rows: array(NcStateSummaryPreviewRowSchema).optional()
22270
22496
  });
22271
22497
  var NcTestResultSchema = object({
22272
22498
  recordId: string(),
@@ -30476,138 +30702,6 @@ var videoclipsCapability = {
30476
30702
  })
30477
30703
  }
30478
30704
  };
30479
- object({
30480
- /** Ms epoch of the last press. null = never observed since this provider started. */
30481
- lastPressedAt: number().nullable(),
30482
- /** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
30483
- pressCountSinceStart: number()
30484
- });
30485
- object({
30486
- deviceId: number(),
30487
- timestamp: number()
30488
- });
30489
- /**
30490
- * The `doorbell-source` extension slot's editable value (D648): the camera's
30491
- * virtual-doorbell trigger devices, exactly what the wrapper's
30492
- * `doorbellSources` persists (as `{ deviceId }` records).
30493
- */
30494
- var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
30495
- DeviceType.Camera;
30496
- DeviceType.Button, DeviceType.Camera;
30497
- var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
30498
- DeviceType.Camera, DeviceType.Camera;
30499
- /** A slot's editable value, discriminated on `slot`. */
30500
- var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
30501
- DeviceType.Camera;
30502
- var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
30503
- state: literal("unreachable"),
30504
- reason: string()
30505
- })]);
30506
- /** One provider of slots — the D554 source-listing row. */
30507
- var ExtensionSourceSchema = object({
30508
- /** The routing prefix of every `slotRef` this provider serves. */
30509
- source: string(),
30510
- label: string(),
30511
- /** Stamped by the dispatcher from the registry (D557). */
30512
- addonId: string().optional(),
30513
- availability: ExtensionSourceAvailabilitySchema
30514
- });
30515
- /**
30516
- * How one picked source stands. `missing` — no such device (deleted, or an id
30517
- * that never existed); `foreign` — a device the slot's owner cannot read from
30518
- * (a source owned by another addon); `unavailable` — it exists but is not a
30519
- * valid source now (a container, which is never a pick). A source in any of
30520
- * these states is SHOWN, never silently dropped or re-pointed.
30521
- */
30522
- var ExtensionSourceHealthSchema = _enum([
30523
- "ok",
30524
- "missing",
30525
- "foreign",
30526
- "unavailable"
30527
- ]);
30528
- var ExtensionSlotSourceSchema = object({
30529
- deviceId: number().int(),
30530
- /** The device's name, or null when it could not be resolved (`missing`). */
30531
- name: string().nullable(),
30532
- health: ExtensionSourceHealthSchema,
30533
- detail: string().optional()
30534
- });
30535
- /**
30536
- * A DIFFERENT authority that gates whether the slot's sources do anything —
30537
- * reported read-only, named, never written through this contract (D62). The
30538
- * virtual doorbell's sources ring only while the wrapper is bound to the
30539
- * camera, and that binding belongs to `deviceManager.setWrapperActive`.
30540
- * `unknown` means the gate could not be read; it is not "inactive" (D315).
30541
- */
30542
- var ExtensionSlotActivationSchema = object({
30543
- state: _enum([
30544
- "active",
30545
- "inactive",
30546
- "unknown"
30547
- ]),
30548
- authority: string(),
30549
- detail: string().optional()
30550
- });
30551
- var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
30552
- state: literal("ok"),
30553
- /** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
30554
- slotRef: string(),
30555
- slot: ExtensionSlotIdSchema,
30556
- /** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
30557
- authority: string(),
30558
- activation: ExtensionSlotActivationSchema.nullable(),
30559
- value: ExtensionSlotValueSchema,
30560
- sources: array(ExtensionSlotSourceSchema),
30561
- /**
30562
- * Devices the owner links to the host ON ITS OWN, by structure, and that
30563
- * are therefore not in `value` (D655): a camera's device-tree children, and
30564
- * the child a picked container stands for (D356 — a container is never a
30565
- * pick, its children are). Read-only; the editor shows them and may offer
30566
- * per-device options on them (the linked-devices tracked-event opt-in).
30567
- * Absent when the owner links nothing beyond the picks, and from an owner
30568
- * older than D655.
30569
- */
30570
- impliedSources: array(ExtensionSlotSourceSchema).optional()
30571
- }), object({
30572
- state: literal("unreachable"),
30573
- addonId: string(),
30574
- reason: string()
30575
- })]);
30576
- var ExtensionCandidatesSchema = object({ candidates: array(object({
30577
- deviceId: number().int(),
30578
- name: string(),
30579
- type: string(),
30580
- location: string().nullable(),
30581
- /** The container a child belongs to — "Spotlight 2" alone does not say which. */
30582
- parentName: string().nullable(),
30583
- /** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
30584
- suggested: boolean(),
30585
- /** Why it is suggested ("same location"), null when it is not. */
30586
- reason: string().nullable()
30587
- })) });
30588
- /**
30589
- * What a write did. `none` — applied in place. `host` / `parent` — the owner
30590
- * reloaded the host (or, for an accessory child, its parent) because the
30591
- * write changed what the host REGISTERS. A slot never adds a capability to its
30592
- * host — that is a composition (D663) — so today's owners answer `none`.
30593
- */
30594
- var ExtensionSetResultSchema = object({
30595
- applied: literal(true),
30596
- reload: _enum([
30597
- "none",
30598
- "host",
30599
- "parent"
30600
- ])
30601
- });
30602
- var ExtensionSlotRefInputSchema = object({
30603
- deviceId: number().int(),
30604
- slotRef: string().min(1)
30605
- });
30606
- var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
30607
- method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
30608
- kind: "mutation",
30609
- auth: "admin"
30610
- });
30611
30705
  /**
30612
30706
  * Optional client-side hints sent at session creation to help the provider
30613
30707
  * pick the best native source. All fields optional — a viewer that knows
@@ -42450,6 +42544,18 @@ Object.freeze({
42450
42544
  addonId: null,
42451
42545
  access: "view"
42452
42546
  },
42547
+ "databaseSnapshot.listDatabases": {
42548
+ capName: "database-snapshot",
42549
+ capScope: "system",
42550
+ addonId: null,
42551
+ access: "view"
42552
+ },
42553
+ "databaseSnapshot.writeSnapshot": {
42554
+ capName: "database-snapshot",
42555
+ capScope: "system",
42556
+ addonId: null,
42557
+ access: "create"
42558
+ },
42453
42559
  "dataStoreProvider.aggregate": {
42454
42560
  capName: "data-store-provider",
42455
42561
  capScope: "system",
@@ -51028,6 +51134,18 @@ var STATE_SUMMARY_VARS = [
51028
51134
  systemEventKinds: [...SUMMARISABLE],
51029
51135
  systemEventDeliveries: ["summary"]
51030
51136
  },
51137
+ {
51138
+ name: "summarySection",
51139
+ label: "Summary: this section",
51140
+ description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
51141
+ example: "Batterie scariche",
51142
+ group: "system",
51143
+ families: ["rule"],
51144
+ fields: [...RULE_TEXT],
51145
+ kinds: ["system"],
51146
+ systemEventKinds: [...SUMMARISABLE],
51147
+ systemEventDeliveries: ["summary"]
51148
+ },
51031
51149
  ...STATE_SUMMARY_SECTION_VARS.map((v) => ({
51032
51150
  name: v.name,
51033
51151
  label: v.label,