@camstack/server 1.2.848 → 1.2.850
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/api/trpc/generated-cap-routers.js +9 -0
- package/package.json +15 -11
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/actions-service.d.ts +13 -3
- package/system/dist/builtins/core-blocks/actions-store.d.ts +13 -7
- package/system/dist/builtins/core-blocks/actions-wiring.d.ts +10 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.d.ts +0 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +132 -71
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +132 -71
- package/system/dist/builtins/core-blocks/scheduler/scheduler-service.d.ts +5 -1
- package/system/dist/builtins/core-blocks/scheduler/scheduler-wiring.d.ts +2 -1
- 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-aggregation.d.ts +0 -25
- package/system/dist/builtins/device-manager/device-manager.addon.d.ts +0 -25
- package/system/dist/builtins/device-manager/device-manager.addon.js +191 -7
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +191 -7
- package/system/dist/builtins/device-manager/export-name-fields.d.ts +39 -0
- package/system/dist/builtins/device-manager/transitions/transitions-wiring.d.ts +6 -1
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +3 -3
- package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +3 -3
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-CLow73VK.js → capture-engine-BM9nGdvv.js} +1 -1
- package/system/dist/{capture-engine-BDgAg1_L.mjs → capture-engine-Bshtl7Kd.mjs} +1 -1
- package/system/dist/{composition-sources-Xb2YACrP.js → composition-sources-63HlIklt.js} +1 -1
- package/system/dist/{composition-sources-PCla-eR3.mjs → composition-sources-CYpKKHtf.mjs} +1 -1
- package/system/dist/{constants-Cjv1STtI.mjs → constants-15k32igK.mjs} +1 -1
- package/system/dist/{constants-Crx9nPwX.js → constants-lHbp6u7t.js} +1 -1
- package/system/dist/{device-ca-D5bhkYRx.mjs → device-ca-BmKBCV_4.mjs} +1 -1
- package/system/dist/{device-ca-jaJY-9dh.js → device-ca-aB_rFHhZ.js} +1 -1
- package/system/dist/{dist-D9G24tL4.js → dist-DNDhIlAe.js} +2884 -2489
- package/system/dist/{dist-CUB8zpv-.mjs → dist-DY7OGObz.mjs} +2861 -2478
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-0lAqqUXZ.mjs → hub-identity-BMz4OOYu.mjs} +1 -1
- package/system/dist/{hub-identity-D6Yzg92a.js → hub-identity-dcbGnvVX.js} +1 -1
- package/system/dist/{hub-mdns-ciao-dT75vFJK.mjs → hub-mdns-ciao-BOecE4tm.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-0vZomp05.js → hub-mdns-ciao-Y7YjcHQ4.js} +2 -2
- package/system/dist/index.js +36 -2505
- package/system/dist/index.mjs +36 -2505
- package/system/dist/kernel/bootstrap-config.d.ts +1 -2
- package/system/dist/kernel/capability-registry.d.ts +6 -2
- package/system/dist/{legacy-integration-rows-door-CkwpRASZ.mjs → legacy-integration-rows-door-87W9dzLF.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-V0HNtga9.js → legacy-integration-rows-door-BQKarbeM.js} +1 -1
- package/system/dist/migrations/hub/2026-11-12-drop-retired-storage-leftovers.d.ts +16 -0
- package/system/dist/{rename-composition-block-CKO6KFN4.mjs → rename-composition-block-DOzzdV9v.mjs} +1 -1
- package/system/dist/{rename-composition-block-CmNS12Yh.js → rename-composition-block-p_8C4nY4.js} +1 -1
- package/system/dist/{restore-archive-DRyTaAb5.js → restore-archive-Bc-Xm8TB.js} +1 -1
- package/system/dist/{restore-archive-Cp8P5gxb.mjs → restore-archive-TpUr6_kg.mjs} +1 -1
- package/system/dist/{wal-maintenance-CyW12mpW.mjs → wal-maintenance-CE7-afh9.mjs} +0 -0
- package/system/dist/{wal-maintenance-EJcAHbIL.js → wal-maintenance-auHpWNP7.js} +0 -0
- package/system/package.json +1 -1
- package/system/dist/kernel/legacy-config-yaml.d.ts +0 -37
|
@@ -8,7 +8,6 @@ import { type BootstrapConfig } from "./config-schema.js";
|
|
|
8
8
|
/**
|
|
9
9
|
* Built-in defaults with the environment applied — THE bootstrap loader: the
|
|
10
10
|
* hub's `main.ts` and `ConfigManager` come through here, so a key is read in one
|
|
11
|
-
* place. There is no config.yaml (D1018);
|
|
12
|
-
* node that still has one lives in `legacy-config-yaml.ts`.
|
|
11
|
+
* place. There is no config.yaml (D1018); a leftover file is not read.
|
|
13
12
|
*/
|
|
14
13
|
export declare function loadBootstrapConfig(env?: Readonly<Record<string, string | undefined>>): BootstrapConfig;
|
|
@@ -332,8 +332,12 @@ export declare class CapabilityRegistry {
|
|
|
332
332
|
* `status ⊆ runtimeState`, so the merged runtime slice parses and a
|
|
333
333
|
* runtime-only key such as `lastFetchedAt` is stripped. A slice that does not
|
|
334
334
|
* parse is `null`, logged once per `(cap, device)` transition with the device
|
|
335
|
-
* tag; a held claim is `null` without a parse.
|
|
336
|
-
*
|
|
335
|
+
* tag; a held claim is `null` without a parse.
|
|
336
|
+
*
|
|
337
|
+
* A cap with no `status` block is never overlaid: its `getStatus`, if it has
|
|
338
|
+
* one, is the cap's OWN method over its own output shape (`power-source`
|
|
339
|
+
* answers `PowerSourceInfo`, not its runtime slice), so the merged slice is
|
|
340
|
+
* the wrong answer for it.
|
|
337
341
|
*/
|
|
338
342
|
resolveClaimedStatus(capName: string, deviceId: number): Promise<StatusOverlayAnswer>;
|
|
339
343
|
private parseClaimed;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { hc as collectSecretMarkerRefs } from "./dist-DY7OGObz.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).
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { HubSqlMigration } from "../../builtins/sqlite-storage/migrations/migration-types.js";
|
|
2
|
+
export declare const DROP_RETIRED_SETTINGS_SHELLS_MIGRATION_ID = "hub/2026-11-12-drop-retired-settings-shells";
|
|
3
|
+
export declare const DROP_RETIRED_VEC_OBJECT_CLIP_MIGRATION_ID = "hub/2026-11-12-drop-retired-vec-object-clip";
|
|
4
|
+
/** Physical collection tables nothing declares any more (the kinds live in `records`). */
|
|
5
|
+
export declare const RETIRED_SETTINGS_SHELLS: readonly ["pipeline-analytics:package-background", "pipeline-analytics:phantom-cells", "pipeline-analytics:stationary-evidence"];
|
|
6
|
+
/** The unsuffixed CLIP virtual table. Not `vec_object_clip_siglip2_*`. */
|
|
7
|
+
export declare const RETIRED_VEC_TABLE = "vec_object_clip";
|
|
8
|
+
/**
|
|
9
|
+
* sqlite-vec's shadow tables for {@link RETIRED_VEC_TABLE}. Dropped with the virtual table;
|
|
10
|
+
* dropped one by one only when the virtual table row is already gone.
|
|
11
|
+
*/
|
|
12
|
+
export declare const RETIRED_VEC_SHADOWS: readonly ["vec_object_clip_auxiliary", "vec_object_clip_chunks", "vec_object_clip_info", "vec_object_clip_metadatachunks00", "vec_object_clip_metadatachunks01", "vec_object_clip_metadatachunks02", "vec_object_clip_metadatachunks03", "vec_object_clip_metadatatext02", "vec_object_clip_metadatatext03", "vec_object_clip_rowids", "vec_object_clip_vector_chunks00"];
|
|
13
|
+
/** What one table did. The engine logs the note at info, one key per table. */
|
|
14
|
+
export type RetiredTableOutcome = "absent" | "dropped" | "kept-nonempty";
|
|
15
|
+
export declare const DROP_RETIRED_SETTINGS_SHELLS_MIGRATION: HubSqlMigration;
|
|
16
|
+
export declare const DROP_RETIRED_VEC_OBJECT_CLIP_MIGRATION: HubSqlMigration;
|
package/system/dist/{rename-composition-block-CKO6KFN4.mjs → rename-composition-block-DOzzdV9v.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Sl as errMsg, vl as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./dist-DY7OGObz.mjs";
|
|
2
2
|
//#region src/builtins/core-blocks/rename-composition-block.ts
|
|
3
3
|
/**
|
|
4
4
|
* An operator rename of a composed device writes the composition block's
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { P as DATABASE_SNAPSHOT_SUFFIX, Q as DataStoreDatabaseSchema, wc as defineRecordKinds } from "./dist-DY7OGObz.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { createCipheriv, createDecipheriv, createHash, createPrivateKey, createPublicKey, diffieHellman, generateKeyPairSync, hkdfSync, randomBytes } from "node:crypto";
|
|
4
4
|
import { Buffer as Buffer$1 } from "buffer";
|
|
Binary file
|
|
Binary file
|
package/system/package.json
CHANGED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/** The bootstrap keys a legacy file could still set, with the variable that now owns each. */
|
|
2
|
-
declare const LEGACY_KEYS: readonly [{
|
|
3
|
-
readonly key: "port";
|
|
4
|
-
readonly envVar: "CAMSTACK_PORT";
|
|
5
|
-
}, {
|
|
6
|
-
readonly key: "host";
|
|
7
|
-
readonly envVar: "CAMSTACK_HOST";
|
|
8
|
-
}, {
|
|
9
|
-
readonly key: "dataPath";
|
|
10
|
-
readonly envVar: "CAMSTACK_DATA";
|
|
11
|
-
}];
|
|
12
|
-
export type LegacyBootstrapKey = (typeof LEGACY_KEYS)[number]["key"];
|
|
13
|
-
/** The effective value of each key, from env and defaults, before the legacy file is consulted. */
|
|
14
|
-
export interface EffectiveBootstrapValues {
|
|
15
|
-
readonly port: number;
|
|
16
|
-
readonly host: string;
|
|
17
|
-
readonly dataPath: string;
|
|
18
|
-
}
|
|
19
|
-
export interface LegacyNote {
|
|
20
|
-
readonly level: "info" | "warn";
|
|
21
|
-
readonly message: string;
|
|
22
|
-
}
|
|
23
|
-
export interface LegacyConfigYamlResult {
|
|
24
|
-
/** Values to apply under the environment: only keys whose env var is unset and whose legacy value differs. */
|
|
25
|
-
readonly overrides: Partial<EffectiveBootstrapValues>;
|
|
26
|
-
readonly notes: readonly LegacyNote[];
|
|
27
|
-
}
|
|
28
|
-
/** Where the legacy file would be: `CONFIG_PATH`, the former image default, then under the data root. */
|
|
29
|
-
export declare function legacyConfigYamlCandidates(env: Readonly<Record<string, string | undefined>>): readonly string[];
|
|
30
|
-
/**
|
|
31
|
-
* Compare a legacy config.yaml, if one exists, with what env and defaults give.
|
|
32
|
-
* Pure of side effects except for reading the file.
|
|
33
|
-
*/
|
|
34
|
-
export declare function reconcileLegacyConfigYaml(env: Readonly<Record<string, string | undefined>>, effective: EffectiveBootstrapValues): LegacyConfigYamlResult;
|
|
35
|
-
/** Print each note once per process, the way the bootstrap prints everything else. */
|
|
36
|
-
export declare function logLegacyNotes(notes: readonly LegacyNote[]): void;
|
|
37
|
-
export {};
|