@camstack/server 1.2.809 → 1.2.810
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/package.json +42 -8
- package/system/dist/{agent-https-DS4b0ucn.mjs → agent-https-B5cYxyQW.mjs} +1 -1
- package/system/dist/{agent-https-CuChFRA2.js → agent-https-C0QE8tXs.js} +1 -1
- 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/backup-orchestrator/destination-policy.d.ts +1 -1
- 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 +3 -3
- package/system/dist/builtins/composer/composer.addon.mjs +3 -3
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +3 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -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 +2 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/system/dist/builtins/loki-logging/index.js +8 -2
- package/system/dist/builtins/loki-logging/index.mjs +8 -2
- 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/location-store.d.ts +0 -6
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +284 -284
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-CnVIcnyN.mjs → capture-engine-Ci4GwgjQ.mjs} +1 -1
- package/system/dist/{capture-engine-Byc5Fkp0.js → capture-engine-DHvJXvuV.js} +1 -1
- package/system/dist/{composition-sources-BxK6ttP9.js → composition-sources-B-WY9L7z.js} +1 -1
- package/system/dist/{composition-sources-BhM6G9QT.mjs → composition-sources-CXJ0SzYJ.mjs} +1 -1
- package/system/dist/{constants-Bf1PEHRU.mjs → constants-DAuOjW5K.mjs} +1 -1
- package/system/dist/{constants--xo6Q-KA.js → constants-DnJ2vuC7.js} +1 -1
- package/system/dist/{device-ca-Uq5KGFSq.js → device-ca-BRpXm-B0.js} +1 -1
- package/system/dist/{device-ca-Do0-HV_h.mjs → device-ca-D0HejZGK.mjs} +1 -1
- package/system/dist/{dist-CogtCQxu.mjs → dist-BLxWQm_m.mjs} +56 -10
- package/system/dist/{dist-2SHQaxaS.js → dist-DZQowBDF.js} +56 -10
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-aFHCKrif.mjs → hub-mdns-ciao-BJx5WmFx.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-DqPrLiYH.js → hub-mdns-ciao-ClSuN_QT.js} +2 -2
- package/system/dist/index.js +8 -8
- package/system/dist/index.mjs +8 -8
- package/system/dist/{legacy-integration-rows-door-Bz8rivxI.js → legacy-integration-rows-door-BiNKE2zW.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-CiuxDLoc.mjs → legacy-integration-rows-door-CN84_M7B.mjs} +1 -1
- package/system/dist/{restore-archive-D-3wmHDq.js → restore-archive-Co1yYMV3.js} +1 -1
- package/system/dist/{restore-archive-PlBC2NwT.mjs → restore-archive-gLW5oc1w.mjs} +82 -82
- package/system/dist/{wal-maintenance-BTR55y--.js → wal-maintenance-BQaIM_cY.js} +0 -0
- package/system/dist/{wal-maintenance-jrhYTCn2.mjs → wal-maintenance-Zji_8sLK.mjs} +0 -0
- package/system/package.json +1 -1
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-DZQowBDF.js");
|
|
7
7
|
const require_formatter = require("../../formatter-xbxeV4GD.js");
|
|
8
8
|
const require_log_file_read_protocol = require("../../log-file-read-protocol-DSV_vQRb.js");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ko as BaseAddon, Yi as preconditionOf, hi as logDestinationCapability, zs as defineAddonMigrations } from "../../dist-
|
|
1
|
+
import { Ko as BaseAddon, Yi as preconditionOf, hi as logDestinationCapability, zs as defineAddonMigrations } from "../../dist-BLxWQm_m.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-DkYZ4LXp.mjs";
|
|
3
3
|
import { a as LogFileIndexStore, i as serveRead, n as isFromReader, t as CancelBook } from "../../log-file-read-protocol-hTaAsYlX.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Js as historyItemFieldPath, Nc as DeviceType, ts as HISTORY_DEFAULT_MIN_INTERVAL_MS } from "./dist-
|
|
1
|
+
import { Js as historyItemFieldPath, Nc as DeviceType, ts as HISTORY_DEFAULT_MIN_INTERVAL_MS } from "./dist-BLxWQm_m.mjs";
|
|
2
2
|
//#region src/builtins/device-history/store/series-registry.ts
|
|
3
3
|
function subjectIdOf(subject) {
|
|
4
4
|
return subject.kind === "device" ? `d:${subject.deviceId}` : `n:${subject.nodeId}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_dist = require("./dist-
|
|
1
|
+
const require_dist = require("./dist-DZQowBDF.js");
|
|
2
2
|
//#region src/builtins/device-history/store/series-registry.ts
|
|
3
3
|
function subjectIdOf(subject) {
|
|
4
4
|
return subject.kind === "device" ? `d:${subject.deviceId}` : `n:${subject.nodeId}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Oo as compositionSourceKey, Pc as errMsg } from "./dist-
|
|
1
|
+
import { Oo as compositionSourceKey, Pc as errMsg } from "./dist-BLxWQm_m.mjs";
|
|
2
2
|
//#region src/builtins/shared/device-state-changed.ts
|
|
3
3
|
/** Structural narrowing helper for untrusted bus payloads. */
|
|
4
4
|
function isRecord(value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** `secret://system/global/meshCaKey` — EC P-256 PKCS#8 PEM of the hub mesh CA. */
|
|
2
|
-
var MESH_CA_KEY_REF = require("./dist-
|
|
2
|
+
var MESH_CA_KEY_REF = require("./dist-DZQowBDF.js").buildSecretRef({
|
|
3
3
|
owner: "system",
|
|
4
4
|
scope: { kind: "global" },
|
|
5
5
|
fieldPath: "meshCaKey"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as DEVICE_SAN_USER_PREFIX, Ms as buildSecretRef, W as DEVICE_SAN_CREDENTIAL_PREFIX } from "./dist-
|
|
1
|
+
import { G as DEVICE_SAN_USER_PREFIX, Ms as buildSecretRef, W as DEVICE_SAN_CREDENTIAL_PREFIX } from "./dist-BLxWQm_m.mjs";
|
|
2
2
|
import { C as backdatedNotBefore, S as withUtcTimeEncoding, a as KeyUsageFlags, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension } from "./x509.es-BRiJgOvu.mjs";
|
|
3
3
|
import { X509Certificate, createPublicKey, randomBytes, verify, webcrypto } from "node:crypto";
|
|
4
4
|
//#region src/auth/jwt-signing-key.ts
|
|
@@ -1204,7 +1204,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
1204
1204
|
return DeviceRole;
|
|
1205
1205
|
}({});
|
|
1206
1206
|
//#endregion
|
|
1207
|
-
//#region ../types/dist/sleep-
|
|
1207
|
+
//#region ../types/dist/sleep-CGPZyzB5.mjs
|
|
1208
1208
|
/**
|
|
1209
1209
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
1210
1210
|
* window to float samples (D455).
|
|
@@ -2587,6 +2587,7 @@ var RecordIntegrationInstances = class {
|
|
|
2587
2587
|
this.secretKeys = topLevelSecretKeys(kind.declaration.secretPaths);
|
|
2588
2588
|
this.secretMaps = secretMapKeys(kind.declaration.secretPaths);
|
|
2589
2589
|
this.nameField = kind.declaration.entry?.nameField ?? "name";
|
|
2590
|
+
if (hooks.kindOf === void 0 && hooks.description.kinds.length !== 1) throw new Error(`record kind '${kind.name}': describe().kinds has ${hooks.description.kinds.length} entries, so kindOf is required to say which one an instance is`);
|
|
2590
2591
|
}
|
|
2591
2592
|
/**
|
|
2592
2593
|
* One instance read for the addon's own runtime; null when absent. When the keychain is
|
|
@@ -2628,10 +2629,21 @@ var RecordIntegrationInstances = class {
|
|
|
2628
2629
|
}
|
|
2629
2630
|
return out;
|
|
2630
2631
|
}
|
|
2632
|
+
/** The kind an instance body is of: the provider's `kindOf`, else its one declared kind. */
|
|
2633
|
+
kindOfBody(body) {
|
|
2634
|
+
if (this.hooks.kindOf !== void 0) {
|
|
2635
|
+
const id = this.hooks.kindOf(body);
|
|
2636
|
+
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)`);
|
|
2637
|
+
return id;
|
|
2638
|
+
}
|
|
2639
|
+
const only = this.hooks.description.kinds[0];
|
|
2640
|
+
if (only === void 0) throw new Error(`record kind '${this.kind.name}' declares no kinds`);
|
|
2641
|
+
return only.id;
|
|
2642
|
+
}
|
|
2631
2643
|
viewOf(record) {
|
|
2632
2644
|
const shown = secretViewsOf(this.records.owner, this.kind.name, record.id, this.kind.declaration, record.data);
|
|
2633
2645
|
const rawName = record.data[this.nameField];
|
|
2634
|
-
const kind = this.
|
|
2646
|
+
const kind = this.kindOfBody(record.data);
|
|
2635
2647
|
const health = this.hooks.health?.(record.data, record.id);
|
|
2636
2648
|
return {
|
|
2637
2649
|
id: record.id,
|
|
@@ -2639,7 +2651,7 @@ var RecordIntegrationInstances = class {
|
|
|
2639
2651
|
configured: this.hooks.configured(record.data),
|
|
2640
2652
|
enabled: isInstanceEnabled(record.data),
|
|
2641
2653
|
formValues: shown,
|
|
2642
|
-
|
|
2654
|
+
kind,
|
|
2643
2655
|
...health?.status !== void 0 ? { status: health.status } : {},
|
|
2644
2656
|
...health?.lastCheckedAt !== void 0 ? { lastCheckedAt: health.lastCheckedAt } : {}
|
|
2645
2657
|
};
|
|
@@ -52426,6 +52438,11 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
52426
52438
|
defaultThreshold: 5,
|
|
52427
52439
|
defaultStartDwellMs: 3e4,
|
|
52428
52440
|
defaultStopDwellMs: 18e4,
|
|
52441
|
+
deviceTypeDefaults: { [DeviceType.MediaPlayer]: {
|
|
52442
|
+
startDwellMs: 1e4,
|
|
52443
|
+
stopDwellMs: 1e4,
|
|
52444
|
+
minSamples: 1
|
|
52445
|
+
} },
|
|
52429
52446
|
thresholdUnit: "W"
|
|
52430
52447
|
}]
|
|
52431
52448
|
}
|
|
@@ -62989,10 +63006,11 @@ var IntegrationInstanceDescriptionSchema = z.object({
|
|
|
62989
63006
|
/** True when `testInstance` really probes the remote. */
|
|
62990
63007
|
canTest: z.boolean(),
|
|
62991
63008
|
/**
|
|
62992
|
-
* The kinds an instance can be of
|
|
62993
|
-
* Add flow asks which first and sends it as
|
|
63009
|
+
* The kinds an instance can be of (D1013 rule 1), each naming its `functionCap`. One entry:
|
|
63010
|
+
* nothing to choose; more than one: the Add flow asks which first and sends it as
|
|
63011
|
+
* `createInstance.kind`. Never empty: every instance belongs to exactly one kind.
|
|
62994
63012
|
*/
|
|
62995
|
-
kinds: z.array(IntegrationInstanceKindSchema).
|
|
63013
|
+
kinds: z.array(IntegrationInstanceKindSchema).min(1),
|
|
62996
63014
|
/**
|
|
62997
63015
|
* The provider accepts `createInstance.id` for an id that once existed (an adopted id, because
|
|
62998
63016
|
* devices carry it). The UI then offers "restore under its old id" on Add. Absent means no.
|
|
@@ -63028,8 +63046,8 @@ var IntegrationInstanceSchema = z.object({
|
|
|
63028
63046
|
* the body is the one store, `setInstanceEnabled` the one writer (epic #440, step 3).
|
|
63029
63047
|
*/
|
|
63030
63048
|
enabled: z.boolean().optional(),
|
|
63031
|
-
/** The kind of this instance
|
|
63032
|
-
kind: z.string().
|
|
63049
|
+
/** The kind of this instance: exactly one of `describe().kinds[].id` (D1013 rule 2). */
|
|
63050
|
+
kind: z.string().min(1),
|
|
63033
63051
|
/** Values for the instance form; a secret is a `SecretFieldView`, never text. */
|
|
63034
63052
|
formValues: z.record(z.string(), z.unknown()),
|
|
63035
63053
|
status: IntegrationInstanceStatusSchema.optional(),
|
|
@@ -85727,6 +85745,31 @@ var remoteLayoutComponentsCapability = {
|
|
|
85727
85745
|
};
|
|
85728
85746
|
var RUNNING_POWER_START_DELAY_MS = 3e4;
|
|
85729
85747
|
var RUNNING_POWER_STOP_DELAY_MS = 18e4;
|
|
85748
|
+
/** What every type without its own row starts from. */
|
|
85749
|
+
var RUNNING_POWER_GLOBAL_DEFAULTS = {
|
|
85750
|
+
startDwellMs: RUNNING_POWER_START_DELAY_MS,
|
|
85751
|
+
stopDwellMs: RUNNING_POWER_STOP_DELAY_MS,
|
|
85752
|
+
minSamples: 2
|
|
85753
|
+
};
|
|
85754
|
+
/**
|
|
85755
|
+
* Per-type overrides of the dwell defaults. A media player draws power the
|
|
85756
|
+
* moment it is on and stops drawing the moment it is off, so it needs neither
|
|
85757
|
+
* a long dwell nor a second sample. A type absent here keeps the global values.
|
|
85758
|
+
*/
|
|
85759
|
+
var RUNNING_POWER_DEFAULTS_BY_TYPE = { [DeviceType.MediaPlayer]: {
|
|
85760
|
+
startDwellMs: 1e4,
|
|
85761
|
+
stopDwellMs: 1e4,
|
|
85762
|
+
minSamples: 1
|
|
85763
|
+
} };
|
|
85764
|
+
/** True when the type has its own row, so its numbers are stated rather than inherited. */
|
|
85765
|
+
function hasOwnRunningPowerDefaults(deviceType) {
|
|
85766
|
+
return deviceType !== void 0 && RUNNING_POWER_DEFAULTS_BY_TYPE[deviceType] !== void 0;
|
|
85767
|
+
}
|
|
85768
|
+
/** The only place a running-power dwell default is resolved for a device type. */
|
|
85769
|
+
function runningPowerDefaultsFor(deviceType) {
|
|
85770
|
+
if (deviceType === void 0) return RUNNING_POWER_GLOBAL_DEFAULTS;
|
|
85771
|
+
return RUNNING_POWER_DEFAULTS_BY_TYPE[deviceType] ?? RUNNING_POWER_GLOBAL_DEFAULTS;
|
|
85772
|
+
}
|
|
85730
85773
|
var RunningStateSourceSchema = z.enum(["native", "assigned"]);
|
|
85731
85774
|
var RunningStateStatusSchema = z.object({
|
|
85732
85775
|
/** null = unknown — never coerced to false (D393). */
|
|
@@ -85819,6 +85862,7 @@ var runningStateCapability = {
|
|
|
85819
85862
|
defaultThreshold: 5,
|
|
85820
85863
|
defaultStartDwellMs: RUNNING_POWER_START_DELAY_MS,
|
|
85821
85864
|
defaultStopDwellMs: RUNNING_POWER_STOP_DELAY_MS,
|
|
85865
|
+
deviceTypeDefaults: RUNNING_POWER_DEFAULTS_BY_TYPE,
|
|
85822
85866
|
thresholdUnit: "W"
|
|
85823
85867
|
}]
|
|
85824
85868
|
}
|
|
@@ -93640,6 +93684,7 @@ var THRESHOLD_GRID_W = [
|
|
|
93640
93684
|
function proposeRunningThreshold(series) {
|
|
93641
93685
|
const segments = toSegments(series);
|
|
93642
93686
|
const spanMs = segments.length === 0 ? 0 : series.to - (segments[0]?.start ?? series.to);
|
|
93687
|
+
const fallbackDefaults = runningPowerDefaultsFor(series.deviceType);
|
|
93643
93688
|
const insufficient = (reason, runsFound) => ({
|
|
93644
93689
|
state: "insufficient",
|
|
93645
93690
|
reason,
|
|
@@ -93652,8 +93697,9 @@ function proposeRunningThreshold(series) {
|
|
|
93652
93697
|
kind: "threshold",
|
|
93653
93698
|
comparison: "gte",
|
|
93654
93699
|
threshold: 5,
|
|
93655
|
-
startDwellMs:
|
|
93656
|
-
stopDwellMs:
|
|
93700
|
+
startDwellMs: fallbackDefaults.startDwellMs,
|
|
93701
|
+
stopDwellMs: fallbackDefaults.stopDwellMs,
|
|
93702
|
+
...hasOwnRunningPowerDefaults(series.deviceType) ? { minSamples: fallbackDefaults.minSamples } : {}
|
|
93657
93703
|
}
|
|
93658
93704
|
});
|
|
93659
93705
|
if (series.truncated) return insufficient("truncated", 0);
|
|
@@ -1204,7 +1204,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
1204
1204
|
return DeviceRole;
|
|
1205
1205
|
}({});
|
|
1206
1206
|
//#endregion
|
|
1207
|
-
//#region ../types/dist/sleep-
|
|
1207
|
+
//#region ../types/dist/sleep-CGPZyzB5.mjs
|
|
1208
1208
|
/**
|
|
1209
1209
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
1210
1210
|
* window to float samples (D455).
|
|
@@ -2587,6 +2587,7 @@ var RecordIntegrationInstances = class {
|
|
|
2587
2587
|
this.secretKeys = topLevelSecretKeys(kind.declaration.secretPaths);
|
|
2588
2588
|
this.secretMaps = secretMapKeys(kind.declaration.secretPaths);
|
|
2589
2589
|
this.nameField = kind.declaration.entry?.nameField ?? "name";
|
|
2590
|
+
if (hooks.kindOf === void 0 && hooks.description.kinds.length !== 1) throw new Error(`record kind '${kind.name}': describe().kinds has ${hooks.description.kinds.length} entries, so kindOf is required to say which one an instance is`);
|
|
2590
2591
|
}
|
|
2591
2592
|
/**
|
|
2592
2593
|
* One instance read for the addon's own runtime; null when absent. When the keychain is
|
|
@@ -2628,10 +2629,21 @@ var RecordIntegrationInstances = class {
|
|
|
2628
2629
|
}
|
|
2629
2630
|
return out;
|
|
2630
2631
|
}
|
|
2632
|
+
/** The kind an instance body is of: the provider's `kindOf`, else its one declared kind. */
|
|
2633
|
+
kindOfBody(body) {
|
|
2634
|
+
if (this.hooks.kindOf !== void 0) {
|
|
2635
|
+
const id = this.hooks.kindOf(body);
|
|
2636
|
+
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)`);
|
|
2637
|
+
return id;
|
|
2638
|
+
}
|
|
2639
|
+
const only = this.hooks.description.kinds[0];
|
|
2640
|
+
if (only === void 0) throw new Error(`record kind '${this.kind.name}' declares no kinds`);
|
|
2641
|
+
return only.id;
|
|
2642
|
+
}
|
|
2631
2643
|
viewOf(record) {
|
|
2632
2644
|
const shown = secretViewsOf(this.records.owner, this.kind.name, record.id, this.kind.declaration, record.data);
|
|
2633
2645
|
const rawName = record.data[this.nameField];
|
|
2634
|
-
const kind = this.
|
|
2646
|
+
const kind = this.kindOfBody(record.data);
|
|
2635
2647
|
const health = this.hooks.health?.(record.data, record.id);
|
|
2636
2648
|
return {
|
|
2637
2649
|
id: record.id,
|
|
@@ -2639,7 +2651,7 @@ var RecordIntegrationInstances = class {
|
|
|
2639
2651
|
configured: this.hooks.configured(record.data),
|
|
2640
2652
|
enabled: isInstanceEnabled(record.data),
|
|
2641
2653
|
formValues: shown,
|
|
2642
|
-
|
|
2654
|
+
kind,
|
|
2643
2655
|
...health?.status !== void 0 ? { status: health.status } : {},
|
|
2644
2656
|
...health?.lastCheckedAt !== void 0 ? { lastCheckedAt: health.lastCheckedAt } : {}
|
|
2645
2657
|
};
|
|
@@ -52426,6 +52438,11 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
52426
52438
|
defaultThreshold: 5,
|
|
52427
52439
|
defaultStartDwellMs: 3e4,
|
|
52428
52440
|
defaultStopDwellMs: 18e4,
|
|
52441
|
+
deviceTypeDefaults: { [DeviceType.MediaPlayer]: {
|
|
52442
|
+
startDwellMs: 1e4,
|
|
52443
|
+
stopDwellMs: 1e4,
|
|
52444
|
+
minSamples: 1
|
|
52445
|
+
} },
|
|
52429
52446
|
thresholdUnit: "W"
|
|
52430
52447
|
}]
|
|
52431
52448
|
}
|
|
@@ -62989,10 +63006,11 @@ var IntegrationInstanceDescriptionSchema = zod.z.object({
|
|
|
62989
63006
|
/** True when `testInstance` really probes the remote. */
|
|
62990
63007
|
canTest: zod.z.boolean(),
|
|
62991
63008
|
/**
|
|
62992
|
-
* The kinds an instance can be of
|
|
62993
|
-
* Add flow asks which first and sends it as
|
|
63009
|
+
* The kinds an instance can be of (D1013 rule 1), each naming its `functionCap`. One entry:
|
|
63010
|
+
* nothing to choose; more than one: the Add flow asks which first and sends it as
|
|
63011
|
+
* `createInstance.kind`. Never empty: every instance belongs to exactly one kind.
|
|
62994
63012
|
*/
|
|
62995
|
-
kinds: zod.z.array(IntegrationInstanceKindSchema).
|
|
63013
|
+
kinds: zod.z.array(IntegrationInstanceKindSchema).min(1),
|
|
62996
63014
|
/**
|
|
62997
63015
|
* The provider accepts `createInstance.id` for an id that once existed (an adopted id, because
|
|
62998
63016
|
* devices carry it). The UI then offers "restore under its old id" on Add. Absent means no.
|
|
@@ -63028,8 +63046,8 @@ var IntegrationInstanceSchema = zod.z.object({
|
|
|
63028
63046
|
* the body is the one store, `setInstanceEnabled` the one writer (epic #440, step 3).
|
|
63029
63047
|
*/
|
|
63030
63048
|
enabled: zod.z.boolean().optional(),
|
|
63031
|
-
/** The kind of this instance
|
|
63032
|
-
kind: zod.z.string().
|
|
63049
|
+
/** The kind of this instance: exactly one of `describe().kinds[].id` (D1013 rule 2). */
|
|
63050
|
+
kind: zod.z.string().min(1),
|
|
63033
63051
|
/** Values for the instance form; a secret is a `SecretFieldView`, never text. */
|
|
63034
63052
|
formValues: zod.z.record(zod.z.string(), zod.z.unknown()),
|
|
63035
63053
|
status: IntegrationInstanceStatusSchema.optional(),
|
|
@@ -85727,6 +85745,31 @@ var remoteLayoutComponentsCapability = {
|
|
|
85727
85745
|
};
|
|
85728
85746
|
var RUNNING_POWER_START_DELAY_MS = 3e4;
|
|
85729
85747
|
var RUNNING_POWER_STOP_DELAY_MS = 18e4;
|
|
85748
|
+
/** What every type without its own row starts from. */
|
|
85749
|
+
var RUNNING_POWER_GLOBAL_DEFAULTS = {
|
|
85750
|
+
startDwellMs: RUNNING_POWER_START_DELAY_MS,
|
|
85751
|
+
stopDwellMs: RUNNING_POWER_STOP_DELAY_MS,
|
|
85752
|
+
minSamples: 2
|
|
85753
|
+
};
|
|
85754
|
+
/**
|
|
85755
|
+
* Per-type overrides of the dwell defaults. A media player draws power the
|
|
85756
|
+
* moment it is on and stops drawing the moment it is off, so it needs neither
|
|
85757
|
+
* a long dwell nor a second sample. A type absent here keeps the global values.
|
|
85758
|
+
*/
|
|
85759
|
+
var RUNNING_POWER_DEFAULTS_BY_TYPE = { [DeviceType.MediaPlayer]: {
|
|
85760
|
+
startDwellMs: 1e4,
|
|
85761
|
+
stopDwellMs: 1e4,
|
|
85762
|
+
minSamples: 1
|
|
85763
|
+
} };
|
|
85764
|
+
/** True when the type has its own row, so its numbers are stated rather than inherited. */
|
|
85765
|
+
function hasOwnRunningPowerDefaults(deviceType) {
|
|
85766
|
+
return deviceType !== void 0 && RUNNING_POWER_DEFAULTS_BY_TYPE[deviceType] !== void 0;
|
|
85767
|
+
}
|
|
85768
|
+
/** The only place a running-power dwell default is resolved for a device type. */
|
|
85769
|
+
function runningPowerDefaultsFor(deviceType) {
|
|
85770
|
+
if (deviceType === void 0) return RUNNING_POWER_GLOBAL_DEFAULTS;
|
|
85771
|
+
return RUNNING_POWER_DEFAULTS_BY_TYPE[deviceType] ?? RUNNING_POWER_GLOBAL_DEFAULTS;
|
|
85772
|
+
}
|
|
85730
85773
|
var RunningStateSourceSchema = zod.z.enum(["native", "assigned"]);
|
|
85731
85774
|
var RunningStateStatusSchema = zod.z.object({
|
|
85732
85775
|
/** null = unknown — never coerced to false (D393). */
|
|
@@ -85819,6 +85862,7 @@ var runningStateCapability = {
|
|
|
85819
85862
|
defaultThreshold: 5,
|
|
85820
85863
|
defaultStartDwellMs: RUNNING_POWER_START_DELAY_MS,
|
|
85821
85864
|
defaultStopDwellMs: RUNNING_POWER_STOP_DELAY_MS,
|
|
85865
|
+
deviceTypeDefaults: RUNNING_POWER_DEFAULTS_BY_TYPE,
|
|
85822
85866
|
thresholdUnit: "W"
|
|
85823
85867
|
}]
|
|
85824
85868
|
}
|
|
@@ -93640,6 +93684,7 @@ var THRESHOLD_GRID_W = [
|
|
|
93640
93684
|
function proposeRunningThreshold(series) {
|
|
93641
93685
|
const segments = toSegments(series);
|
|
93642
93686
|
const spanMs = segments.length === 0 ? 0 : series.to - (segments[0]?.start ?? series.to);
|
|
93687
|
+
const fallbackDefaults = runningPowerDefaultsFor(series.deviceType);
|
|
93643
93688
|
const insufficient = (reason, runsFound) => ({
|
|
93644
93689
|
state: "insufficient",
|
|
93645
93690
|
reason,
|
|
@@ -93652,8 +93697,9 @@ function proposeRunningThreshold(series) {
|
|
|
93652
93697
|
kind: "threshold",
|
|
93653
93698
|
comparison: "gte",
|
|
93654
93699
|
threshold: 5,
|
|
93655
|
-
startDwellMs:
|
|
93656
|
-
stopDwellMs:
|
|
93700
|
+
startDwellMs: fallbackDefaults.startDwellMs,
|
|
93701
|
+
stopDwellMs: fallbackDefaults.stopDwellMs,
|
|
93702
|
+
...hasOwnRunningPowerDefaults(series.deviceType) ? { minSamples: fallbackDefaults.minSamples } : {}
|
|
93657
93703
|
}
|
|
93658
93704
|
});
|
|
93659
93705
|
if (series.truncated) return insufficient("truncated", 0);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
2
|
+
const require_wal_maintenance = require("./wal-maintenance-BQaIM_cY.js");
|
|
3
3
|
let node_worker_threads = require("node:worker_threads");
|
|
4
4
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-
|
|
1
|
+
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-Zji_8sLK.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,7 +1,7 @@
|
|
|
1
1
|
import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { kc as userError } from "./dist-
|
|
2
|
+
import { kc as userError } from "./dist-BLxWQm_m.mjs";
|
|
3
3
|
import { f as X509Certificate$1 } from "./x509.es-BRiJgOvu.mjs";
|
|
4
|
-
import { D as reasonRequiresNewCa, E as evaluateExistingCert, F as readNameConstraints, N as permitsIdentity, _ as issueLeaf, b as collectCertIdentity, g as generateCa, j as isConstrainedCa, v as loadCa, y as localCaCommonName } from "./agent-https-
|
|
4
|
+
import { D as reasonRequiresNewCa, E as evaluateExistingCert, F as readNameConstraints, N as permitsIdentity, _ as issueLeaf, b as collectCertIdentity, g as generateCa, j as isConstrainedCa, v as loadCa, y as localCaCommonName } from "./agent-https-B5cYxyQW.mjs";
|
|
5
5
|
import { X509Certificate, createPrivateKey } from "node:crypto";
|
|
6
6
|
import { writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
7
7
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-DZQowBDF.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
|
-
const require_agent_https = require("./agent-https-
|
|
4
|
+
const require_agent_https = require("./agent-https-C0QE8tXs.js");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
6
6
|
let _camstack_types_node = require("@camstack/types/node");
|
|
7
7
|
let node_fs = require("node:fs");
|
package/system/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("./dist-
|
|
4
|
-
const require_device_ca = require("./device-ca-
|
|
3
|
+
const require_dist = require("./dist-DZQowBDF.js");
|
|
4
|
+
const require_device_ca = require("./device-ca-BRpXm-B0.js");
|
|
5
5
|
const require_read_all_rows$1 = require("./read-all-rows-CVoO1ONM.js");
|
|
6
6
|
const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
|
|
7
7
|
require("./builtins/alerts/index.js");
|
|
@@ -26,22 +26,22 @@ const require_builtins_loki_logging_index = require("./builtins/loki-logging/ind
|
|
|
26
26
|
const require_builtins_native_metrics_native_metrics_addon = require("./builtins/native-metrics/native-metrics.addon.js");
|
|
27
27
|
const require_builtins_device_history_device_history_addon = require("./builtins/device-history/device-history.addon.js");
|
|
28
28
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./builtins/sqlite-storage/filesystem-storage.addon.js");
|
|
29
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
30
|
-
const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-
|
|
29
|
+
const require_wal_maintenance = require("./wal-maintenance-BQaIM_cY.js");
|
|
30
|
+
const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-BiNKE2zW.js");
|
|
31
31
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./builtins/sqlite-storage/sqlite-settings.addon.js");
|
|
32
32
|
const require_builtins_sqlite_storage_index = require("./builtins/sqlite-storage/index.js");
|
|
33
33
|
const require_builtins_storage_orchestrator_storage_orchestrator_addon = require("./builtins/storage-orchestrator/storage-orchestrator.addon.js");
|
|
34
34
|
require("./builtins/storage-orchestrator/index.js");
|
|
35
|
-
const require_agent_https = require("./agent-https-
|
|
36
|
-
const require_constants = require("./constants
|
|
35
|
+
const require_agent_https = require("./agent-https-C0QE8tXs.js");
|
|
36
|
+
const require_constants = require("./constants-DnJ2vuC7.js");
|
|
37
37
|
const require_builtins_system_config_system_config_addon = require("./builtins/system-config/system-config.addon.js");
|
|
38
38
|
require("./builtins/system-config/index.js");
|
|
39
39
|
const require_builtins_winston_logging_index = require("./builtins/winston-logging/index.js");
|
|
40
40
|
const require_custom_action_registry = require("./custom-action-registry-CmWpSeMS.js");
|
|
41
|
-
const require_hub_mdns_ciao = require("./hub-mdns-ciao-
|
|
41
|
+
const require_hub_mdns_ciao = require("./hub-mdns-ciao-ClSuN_QT.js");
|
|
42
42
|
const require_platform_key_source = require("./platform-key-source-Di7HrlGR.js");
|
|
43
43
|
const require_resource_monitor = require("./resource-monitor-mio9dSCT.js");
|
|
44
|
-
const require_restore_archive = require("./restore-archive-
|
|
44
|
+
const require_restore_archive = require("./restore-archive-Co1yYMV3.js");
|
|
45
45
|
const require_coral_accelerators = require("./coral-accelerators-BSVsBVzt.js");
|
|
46
46
|
let zod = require("zod");
|
|
47
47
|
let node_crypto = require("node:crypto");
|
package/system/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __require } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { Ac as withoutCallerStamp, Ar as extractNestedAddonId, Ca as scopesAllowAddon, D as CatalogFileSchema, Ds as asJsonObject$1, Fi as objectInputDeclaresAddonId, Fs as collectSecretMarkerRefs, Gr as interpolate, Gs as expandCapMethods, Hs as defineRecordKinds, Ic as EventCategory$1, Ii as objectInputDeclaresRequiredDeviceId, Jo as CALLER_STAMPED_CAPABILITIES$1, Ls as createEvent$1, Nt as PackageRequiresSchema, Os as asNumber, Pa as splitTranslationRef, Pc as errMsg$1, Qa as unmetRequirements, St as METHOD_ACCESS_MAP, Tn as bareAddonId, Ua as supportedRuntimes, Us as emitDownForOwnedCaps, Wn as compareVersions, Xo as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Xr as isCollectionArrayMethod, Yo as DATAPLANE_SECRET_HEADER$1, Yr as isArrayOutputSchema, Zi as procedureAuthKey, Zo as DEVICE_STATUS_METHOD, Zs as isDebugChannelName, _c as readinessKey, _i as looseSchema, a as AGENT_MDNS_SERVICE_TYPE, b as CATALOG_LANGS, bt as LOG_LEVEL_RANK, fs as RUNTIME_DEFAULTS, gi as logLevelAtMost, gn as addonSettingsCapability, hc as parseJsonUnknown, ii as kebabToCamel$1, kc as userError, ks as asString$1, li as lifecycleJobSchema, ma as resolveMethodAuth, mc as parseJsonObject, ms as ReadinessTimeoutError, o as AGENT_MDNS_TXT_KEYS, pr as describeUnmet, ps as ReadinessRegistry, qs as getDebugInterest, ri as isVoidInput, s as ALL_CAPABILITY_DEFINITIONS, ti as isObjectInput, wa as scopesAllowDeviceCap, xc as scopeKey, yc as resolveCapMount } from "./dist-
|
|
3
|
-
import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-
|
|
2
|
+
import { Ac as withoutCallerStamp, Ar as extractNestedAddonId, Ca as scopesAllowAddon, D as CatalogFileSchema, Ds as asJsonObject$1, Fi as objectInputDeclaresAddonId, Fs as collectSecretMarkerRefs, Gr as interpolate, Gs as expandCapMethods, Hs as defineRecordKinds, Ic as EventCategory$1, Ii as objectInputDeclaresRequiredDeviceId, Jo as CALLER_STAMPED_CAPABILITIES$1, Ls as createEvent$1, Nt as PackageRequiresSchema, Os as asNumber, Pa as splitTranslationRef, Pc as errMsg$1, Qa as unmetRequirements, St as METHOD_ACCESS_MAP, Tn as bareAddonId, Ua as supportedRuntimes, Us as emitDownForOwnedCaps, Wn as compareVersions, Xo as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Xr as isCollectionArrayMethod, Yo as DATAPLANE_SECRET_HEADER$1, Yr as isArrayOutputSchema, Zi as procedureAuthKey, Zo as DEVICE_STATUS_METHOD, Zs as isDebugChannelName, _c as readinessKey, _i as looseSchema, a as AGENT_MDNS_SERVICE_TYPE, b as CATALOG_LANGS, bt as LOG_LEVEL_RANK, fs as RUNTIME_DEFAULTS, gi as logLevelAtMost, gn as addonSettingsCapability, hc as parseJsonUnknown, ii as kebabToCamel$1, kc as userError, ks as asString$1, li as lifecycleJobSchema, ma as resolveMethodAuth, mc as parseJsonObject, ms as ReadinessTimeoutError, o as AGENT_MDNS_TXT_KEYS, pr as describeUnmet, ps as ReadinessRegistry, qs as getDebugInterest, ri as isVoidInput, s as ALL_CAPABILITY_DEFINITIONS, ti as isObjectInput, wa as scopesAllowDeviceCap, xc as scopeKey, yc as resolveCapMount } from "./dist-BLxWQm_m.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-D0HejZGK.mjs";
|
|
4
4
|
import { t as require_read_all_rows } from "./read-all-rows-TaPqdWNF.mjs";
|
|
5
5
|
import { AlertCenterAddon, a as redactLogEntry, i as isCredentialKeyName, n as lastCauseAfterChunk, o as redactLogMeta, r as readRunnerDisplayName, s as redactLogText, t as CRASH_BREAKER_ERROR_PREFIX } from "./builtins/alerts/alerts.addon.mjs";
|
|
6
6
|
import "./builtins/alerts/index.mjs";
|
|
@@ -25,22 +25,22 @@ import { LokiDestination, LokiLoggingAddon } from "./builtins/loki-logging/index
|
|
|
25
25
|
import NativeMetricsAddon, { a as NativeMetricsProvider, i as parseProcStatusRss, n as nodeProcReader, r as parseProcStat } from "./builtins/native-metrics/native-metrics.addon.mjs";
|
|
26
26
|
import { DeviceHistoryAddon } from "./builtins/device-history/device-history.addon.mjs";
|
|
27
27
|
import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./builtins/sqlite-storage/filesystem-storage.addon.mjs";
|
|
28
|
-
import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-
|
|
29
|
-
import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-
|
|
28
|
+
import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-Zji_8sLK.mjs";
|
|
29
|
+
import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-CN84_M7B.mjs";
|
|
30
30
|
import { SqliteSettingsAddon } from "./builtins/sqlite-storage/sqlite-settings.addon.mjs";
|
|
31
31
|
import { ConfigStore, DeviceStore } from "./builtins/sqlite-storage/index.mjs";
|
|
32
32
|
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";
|
|
33
33
|
import "./builtins/storage-orchestrator/index.mjs";
|
|
34
|
-
import { A as buildNameConstraintSet, B as setProcessAgentHttpsNames, C as LEAF_RENEWAL_WINDOW_DAYS, E as evaluateExistingCert, F as readNameConstraints, I as AGENT_HTTPS_NAMES_COLLECTION, L as AGENT_HTTPS_NAMES_COLUMNS, M as isLocalOnlyHostname, N as permitsIdentity, O as PERMITTED_DNS_SUFFIXES, P as permitsName, R as AgentHttpsNames, S as CA_VALIDITY_DAYS, T as SERVER_AUTH_OID, a as collectAgentNames, b as collectCertIdentity, c as installAgentHttps, d as issueAgentHttpsLeaf, f as loadAgentHttps, h as CA_COMMON_NAME, i as certificateNames, j as isConstrainedCa, k as PERMITTED_IP_RANGES, l as isContainerBridgeAddress, m as pinnedHttpsCaFingerprint, n as acceptAgentSans, o as createAgentHttpsRequest, p as pemDigest, r as agentHttpsPaths, s as describeHttpsLeaf, t as AgentHttpsInstallError, u as isPrivateAddress, w as MAX_LEAF_VALIDITY_DAYS, x as systemHostFacts, y as localCaCommonName, z as getProcessAgentHttpsNames } from "./agent-https-
|
|
35
|
-
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-
|
|
34
|
+
import { A as buildNameConstraintSet, B as setProcessAgentHttpsNames, C as LEAF_RENEWAL_WINDOW_DAYS, E as evaluateExistingCert, F as readNameConstraints, I as AGENT_HTTPS_NAMES_COLLECTION, L as AGENT_HTTPS_NAMES_COLUMNS, M as isLocalOnlyHostname, N as permitsIdentity, O as PERMITTED_DNS_SUFFIXES, P as permitsName, R as AgentHttpsNames, S as CA_VALIDITY_DAYS, T as SERVER_AUTH_OID, a as collectAgentNames, b as collectCertIdentity, c as installAgentHttps, d as issueAgentHttpsLeaf, f as loadAgentHttps, h as CA_COMMON_NAME, i as certificateNames, j as isConstrainedCa, k as PERMITTED_IP_RANGES, l as isContainerBridgeAddress, m as pinnedHttpsCaFingerprint, n as acceptAgentSans, o as createAgentHttpsRequest, p as pemDigest, r as agentHttpsPaths, s as describeHttpsLeaf, t as AgentHttpsInstallError, u as isPrivateAddress, w as MAX_LEAF_VALIDITY_DAYS, x as systemHostFacts, y as localCaCommonName, z as getProcessAgentHttpsNames } from "./agent-https-B5cYxyQW.mjs";
|
|
35
|
+
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-DAuOjW5K.mjs";
|
|
36
36
|
import { $ as caFingerprintCompact, A as getProcessNodeMeshTransport, B as MESH_NODE_CERTIFICATES_COLLECTION, C as MESH_TLS_PORT_HELLO_FIELD, Ct as readOriginSetting, D as setProcessMeshTlsEnabler, Dt as readCidrSetting, E as ServiceBroker, Et as parseCidrList, F as renewMeshCertificate, G as getProcessMeshCertificateRegistry, H as MeshCertificateRegistry, I as revokeMeshCertificate, J as processMeshCrl, K as setProcessMeshCertificateRegistry, L as getProcessMeshTlsListenerState, M as isProcessVerifiedMeshPeer, N as onProcessNodeRegistered, O as dropProcessPeer, P as setProcessMeshPeerTransportLookup, Q as caFingerprint, R as openMeshTlsWhenRevocationsLoaded, S as verifyMembershipAnswer, St as parseOriginList, SystemConfigAddon, T as Errors, Tt as normalizeIp, U as RENEWAL_ABANDONED, V as MESH_NODE_CERTIFICATES_COLUMNS, W as describeMeshLeaf, X as getProcessMeshCaState, Y as MeshCaKeeper, Z as requireProcessMeshCa, _ as signPairingProof, _t as verifyAgentUiUnlockTicket, a as hubHostFromMeshAddress, at as issueMeshLeafForNode, b as MembershipResponder, bt as isInsecureOrigin, c as PAIRING_MAX_SESSIONS, ct as AGENT_DASHBOARD_ORIGINS_FIELD, d as PAIRING_PROTOCOL, dt as AGENT_UI_UNLOCK_USE, et as createMeshCsrPem, f as PAIRING_TTL_MS, ft as AGENT_UI_UNLOCK_VERSION, g as keyFingerprintShort, gt as parseAgentDashboardOrigins, h as describeCsr, ht as mintAgentUiUnlockTicket, i as AgentPairing, it as isValidAgentNodeId, j as getProcessPeerLeaf, k as emitProcessNodeRegistered, l as PAIRING_PATHS, lt as AGENT_UI_UNLOCK_TTL_MS, m as computePairingSas, mt as isAllowedAgentDashboardReturnTo, n as HubPairing, nt as generateMeshCa, o as PAIRING_CODE_DIGITS, ot as issueMeshLeafFromCsr, p as computePairingCommitment, pt as UnlockTicketJtiStore, q as MeshCrl, r as PairingHttpError, rt as generateMeshKeyPair, s as PAIRING_MAX_CODE_ATTEMPTS, st as loadMeshCa, tt as exportMeshPrivateKeyPem, u as PAIRING_PIN_DIGITS, ut as AGENT_UI_UNLOCK_TYP, v as verifyPairingProof, vt as InvalidCorsOriginError, w as TlsTcpTransporter, wt as createCidrMatcher, x as signMembershipProof, xt as normalizeOrigin, y as MEMBERSHIP_PATHS, yt as OPAQUE_ORIGIN, z as setProcessMeshTlsListenerState } from "./builtins/system-config/system-config.addon.mjs";
|
|
37
37
|
import "./builtins/system-config/index.mjs";
|
|
38
38
|
import { WinstonDestination, WinstonLoggingAddon } from "./builtins/winston-logging/index.mjs";
|
|
39
39
|
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";
|
|
40
|
-
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-
|
|
40
|
+
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-BJx5WmFx.mjs";
|
|
41
41
|
import { n as getPlatformKeychainKey, r as setPlatformKeychainKey, t as clearPlatformKeychainKey } from "./platform-key-source-BWlq0jjn.mjs";
|
|
42
42
|
import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-Di9daRwI.mjs";
|
|
43
|
-
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-
|
|
43
|
+
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-gLW5oc1w.mjs";
|
|
44
44
|
import { r as nodeCoralFs, t as classifyCoralAccelerator } from "./coral-accelerators-DBlgWB8k.mjs";
|
|
45
45
|
import { z } from "zod";
|
|
46
46
|
import * as crypto$1 from "node:crypto";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fs as collectSecretMarkerRefs } from "./dist-
|
|
1
|
+
import { Fs as collectSecretMarkerRefs } from "./dist-BLxWQm_m.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).
|