@camstack/server 1.2.840 → 1.2.841
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/dist/api/trpc/generated-cap-routers.js +16 -0
- package/package.json +17 -7
- package/system/dist/addon-runner.js +4 -2
- package/system/dist/addon-runner.mjs +4 -2
- 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 +5 -5
- package/system/dist/builtins/composer/composer.addon.mjs +5 -5
- 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/composition-api.d.ts +2 -2
- package/system/dist/builtins/core-blocks/composition-sources.d.ts +9 -2
- package/system/dist/builtins/core-blocks/core-blocks.addon.d.ts +2 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +598 -395
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +598 -395
- package/system/dist/builtins/core-blocks/fan-link-forward.d.ts +42 -0
- package/system/dist/builtins/core-blocks/fan-presets-service.d.ts +25 -39
- package/system/dist/builtins/core-blocks/fan-presets-wiring.d.ts +5 -3
- package/system/dist/builtins/core-blocks/migrations/helper-to-customize.d.ts +3 -1
- package/system/dist/builtins/core-blocks/power-source-service.d.ts +2 -0
- package/system/dist/builtins/core-blocks/timed-run/timed-run-service.d.ts +8 -2
- 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-bindings-store.d.ts +8 -5
- package/system/dist/builtins/device-manager/device-manager.addon.js +116 -22
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +116 -22
- package/system/dist/builtins/device-manager/device-row-store.d.ts +0 -52
- 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-7E2O4-UN.js → capture-engine-CGU4rnN-.js} +1 -1
- package/system/dist/{capture-engine-B5IBWIRT.mjs → capture-engine-CLrh3FG0.mjs} +1 -1
- package/system/dist/{composition-sources-Cfqn4cly.mjs → composition-sources-CoLbBru1.mjs} +32 -5
- package/system/dist/{composition-sources-DLtc8lSL.js → composition-sources-bhWIz4Rp.js} +32 -5
- package/system/dist/{constants-DjsgCnZk.mjs → constants-CfAS4Qm6.mjs} +1 -1
- package/system/dist/{constants-Cc70YreG.js → constants-DZwpZY5J.js} +1 -1
- package/system/dist/{device-ca-CVP5h3u1.mjs → device-ca-CAbEBLyf.mjs} +1 -1
- package/system/dist/{device-ca-C6JqeFfK.js → device-ca-ksS811fC.js} +1 -1
- package/system/dist/{dist-OmrC_RZs.mjs → dist-ByiDJLen.mjs} +1081 -327
- package/system/dist/{dist-CLnTYKFn.js → dist-DlRUArVs.js} +1128 -338
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-CKQVXf4o.mjs → hub-identity-Bh28ooQx.mjs} +1 -1
- package/system/dist/{hub-identity-TrZcnJkB.js → hub-identity-C-1NeWlr.js} +1 -1
- package/system/dist/{hub-mdns-ciao-ocg6suyX.js → hub-mdns-ciao-CL-Z9yMs.js} +2 -2
- package/system/dist/{hub-mdns-ciao-C8G0K1Z1.mjs → hub-mdns-ciao-OWO6Bw-X.mjs} +2 -2
- package/system/dist/index.js +16 -12
- package/system/dist/index.mjs +16 -12
- package/system/dist/{legacy-integration-rows-door-BPkJUGaX.mjs → legacy-integration-rows-door-Be_QKUlY.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-b6CUxtXX.js → legacy-integration-rows-door-CDPH26e8.js} +1 -1
- package/system/dist/{rename-composition-block-N7lslQJK.js → rename-composition-block-Bs5KT3Gn.js} +1 -1
- package/system/dist/{rename-composition-block-DPlsP1xF.mjs → rename-composition-block-CncvFIHl.mjs} +1 -1
- package/system/dist/{restore-archive-CcuEoEtj.js → restore-archive-CHUKcl3T.js} +1 -1
- package/system/dist/{restore-archive-Btc3H-Fg.mjs → restore-archive-DX7kK3LQ.mjs} +1 -1
- package/system/dist/{wal-maintenance-g7yvxLMj.mjs → wal-maintenance-Fibm7rsM.mjs} +0 -0
- package/system/dist/{wal-maintenance-B2_uCEi5.js → wal-maintenance-GNE9Oqdu.js} +0 -0
- package/system/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $r as generateDeviceAlias, Ar as deviceStatusCapability, At as MINUTES_PER_DAY, Ci as legacyAutoLinkIds, Ec as expandCapMethods$1, Er as deviceManagerCapability, Hc as isSecretMarkerLike, Hn as canonicalStoredDeviceType, J as DEVICE_TEMPLATE_MAX_OUTPUT, K as DEVICE_TEMPLATE_FILTERS, Ka as runtimeFieldUnit, Kn as checkDeviceAlias, L as DAY_NAMES, Lc as isKeychainStoredField, Mc as isCommand$1, Nr as enumerateItemArrayFields, Oi as locationIconKey, Pc as isDeviceConfigCap, Pr as enumerateSchemaFields, Rn as buildStreamParamsConfigSchema, Sc as defineRecordKinds, Ua as resolveTemplateRef, Un as capAppliesToDeviceKind, Vc as isSecretMarker, Vn as canonicalIconKey, X as DEVICE_TEMPLATE_VALUES_CAP, Zi as normalizeUnit, Zr as formatMinutes, Zs as SECRET_CLEAR, _l as DeviceRole, al as secretTreeFromPaths, b as CAP_NAMES_WITH_STATUS, cl as sleep$2, dl as transformSecretWrite, eo as settleDeviceFeatures, fl as userError, fr as createDeviceExtensionProvider, gl as DeviceFeature, hc as commandEffect, hi as isKernelDerivedFeature, ht as FieldClaimSchema, ia as parseStreamParamsFormPatch, k as ConditionMirror, kr as deviceStateCapability, lc as auditedFields, ls as implementedMethodsOf$1, mc as collectZodSecretPaths$1, mt as FieldClaimModeSchema, nc as WELL_KNOWN_TAB_MAP, nl as resolveSecretMarkers, nt as DeviceTombstoneSchema, oo as siteZoneKey, q as DEVICE_TEMPLATE_MAX_LENGTH, qa as runtimeStatePolicyFor, rt as DiscoveryProposalBodySchema, s as ALL_CAPABILITY_DEFINITIONS, tn as STREAM_PROFILE_META, tt as DeviceStatusSchema, ul as toSecretFieldView, v as CAMERA_SWITCH_ORDER, vl as DeviceType$1, wr as deviceExtensionCapability, xa as reconcileReportedFeatures, xl as EventCategory$1, xs as BaseAddon, yl as errMsg$1, yr as defineExtensionSlotProvider, zc as isSecretClear, zr as expandContainer } from "../../dist-ByiDJLen.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
3
|
import { a as redactLogText, i as redactLogMeta, n as isSecretArgumentKey } from "../../log-redactor-XLDrPzOi.mjs";
|
|
4
|
-
import { n as renameCompositionBlock, t as composedBlockIdOf } from "../../rename-composition-block-
|
|
4
|
+
import { n as renameCompositionBlock, t as composedBlockIdOf } from "../../rename-composition-block-CncvFIHl.mjs";
|
|
5
5
|
import { t as prefixRange } from "../../prefix-range-Dl0znowN.mjs";
|
|
6
6
|
import { t as loadPrefixed } from "../../prefix-walk-DAOBSyH1.mjs";
|
|
7
7
|
import { n as purgeRetiredSettingsRows } from "../../retired-settings-keys-u6xQA6r7.mjs";
|
|
@@ -548,6 +548,25 @@ function joinRuntimeBlob(native, owned, policyFor) {
|
|
|
548
548
|
return out;
|
|
549
549
|
}
|
|
550
550
|
/**
|
|
551
|
+
* `record` with the value at a DOTTED claim path replaced, as a copy: a claim
|
|
552
|
+
* of `oscillationAxes.horizontal.angle` sets that leaf and keeps its siblings.
|
|
553
|
+
* A missing or `null` parent becomes `{}` — the cap schema's leaf defaults
|
|
554
|
+
* fill the rest (an axis the native reports absent, linked in Customize).
|
|
555
|
+
*/
|
|
556
|
+
function setPath(record, segments, value) {
|
|
557
|
+
const [head, ...rest] = segments;
|
|
558
|
+
if (head === void 0) return { ...record };
|
|
559
|
+
if (rest.length === 0) return {
|
|
560
|
+
...record,
|
|
561
|
+
[head]: value
|
|
562
|
+
};
|
|
563
|
+
const child = record[head];
|
|
564
|
+
return {
|
|
565
|
+
...record,
|
|
566
|
+
[head]: setPath(isPlainRecord(child) ? child : {}, rest, value)
|
|
567
|
+
};
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
551
570
|
* The one merge. Held when a claimed field has no value yet (S5: never
|
|
552
571
|
* answered from the native), when a `replace` has no native slice to overlay
|
|
553
572
|
* (a partial slice is never emitted), or when the merged slice fails the cap's
|
|
@@ -563,10 +582,7 @@ function mergeOwned(native, owned, schema) {
|
|
|
563
582
|
kind: "held",
|
|
564
583
|
reason: "no native slice yet"
|
|
565
584
|
};
|
|
566
|
-
const merged = {
|
|
567
|
-
...native,
|
|
568
|
-
...owned.values
|
|
569
|
-
};
|
|
585
|
+
const merged = Object.entries(owned.values).reduce((acc, [path, value]) => setPath(acc, path.split("."), value), { ...native });
|
|
570
586
|
if (schema === null) return {
|
|
571
587
|
kind: "slice",
|
|
572
588
|
slice: merged
|
|
@@ -1492,22 +1508,22 @@ function onceLedgerNonEmpty(deps) {
|
|
|
1492
1508
|
};
|
|
1493
1509
|
}
|
|
1494
1510
|
/**
|
|
1495
|
-
* Does a capability apply to a device of type `deviceType`?
|
|
1511
|
+
* Does a capability apply to a device of type `deviceType` and role `role`?
|
|
1496
1512
|
*
|
|
1497
|
-
* The cap's `deviceTypes`
|
|
1498
|
-
* cap metadata lives in the `*.cap.ts`, never in a
|
|
1499
|
-
*
|
|
1513
|
+
* The cap's `deviceTypes` and `deviceRoles` are the ONLY declarations
|
|
1514
|
+
* consulted (D4: behavioural cap metadata lives in the `*.cap.ts`, never in a
|
|
1515
|
+
* manifest). A type the cap's `deviceRoles` names binds only for those roles
|
|
1516
|
+
* (D1033: a heater is a switch with role `switch-heater`); the role is read
|
|
1517
|
+
* from the row on every pass, so a role change applies with no restart. Two
|
|
1518
|
+
* deliberate fail-open cases:
|
|
1500
1519
|
*
|
|
1501
1520
|
* - a cap that declares no `deviceTypes` (or an empty list) applies to every
|
|
1502
1521
|
* device — the pre-existing, back-compatible semantics;
|
|
1503
1522
|
* - an UNKNOWN `deviceType` never filters, so a missing/failed meta lookup
|
|
1504
1523
|
* changes nothing (D49: a read that fails must not destroy work).
|
|
1505
1524
|
*/
|
|
1506
|
-
function capAppliesToDeviceType(def, deviceType) {
|
|
1507
|
-
|
|
1508
|
-
const declared = def?.deviceTypes;
|
|
1509
|
-
if (!declared || declared.length === 0) return true;
|
|
1510
|
-
return declared.some((t) => t === deviceType);
|
|
1525
|
+
function capAppliesToDeviceType(def, deviceType, role) {
|
|
1526
|
+
return capAppliesToDeviceKind(def, deviceType, role);
|
|
1511
1527
|
}
|
|
1512
1528
|
/**
|
|
1513
1529
|
* An addon's identity, with the node it happens to run on stripped.
|
|
@@ -1531,13 +1547,13 @@ function addonIdentityOf(addonId) {
|
|
|
1531
1547
|
* addon are ONE provider — the defect this exists to make unrepresentable.
|
|
1532
1548
|
* Gated only by the cap's declared `deviceTypes` (D4), like step 2's auto-bind.
|
|
1533
1549
|
*/
|
|
1534
|
-
function collectionBindings(deps, deviceId, deviceType) {
|
|
1550
|
+
function collectionBindings(deps, deviceId, deviceType, role) {
|
|
1535
1551
|
const registry = deps.capabilityRegistry;
|
|
1536
1552
|
if (!registry) return [];
|
|
1537
1553
|
const out = [];
|
|
1538
1554
|
for (const declared of registry.listCapabilities()) {
|
|
1539
1555
|
if (declared.mode !== "collection") continue;
|
|
1540
|
-
if (!capAppliesToDeviceType(registry.getDefinition(declared.name), deviceType)) continue;
|
|
1556
|
+
if (!capAppliesToDeviceType(registry.getDefinition(declared.name), deviceType, role)) continue;
|
|
1541
1557
|
const nativeAddonId = registry.getNativeAddonId(declared.name, deviceId);
|
|
1542
1558
|
const seen = /* @__PURE__ */ new Set();
|
|
1543
1559
|
for (const addonId of [...declared.providers, ...nativeAddonId ? [nativeAddonId] : []]) {
|
|
@@ -1591,10 +1607,11 @@ async function resolveBindingsForDevice(deps, deviceId, row, pass) {
|
|
|
1591
1607
|
const storeKey = String(deviceId);
|
|
1592
1608
|
const perDevice = pass.store.deviceBindings[storeKey] ?? {};
|
|
1593
1609
|
const deviceType = resolveDeviceType(deps, row, deviceId);
|
|
1610
|
+
const deviceRole = row?.meta.role ?? null;
|
|
1594
1611
|
const presence = await resolveDevicePresence(deps, row, deviceId, pass.ledgerNonEmpty);
|
|
1595
1612
|
const entries = [];
|
|
1596
1613
|
const seenCaps = /* @__PURE__ */ new Set();
|
|
1597
|
-
const collectionEntries = collectionBindings(deps, deviceId, deviceType);
|
|
1614
|
+
const collectionEntries = collectionBindings(deps, deviceId, deviceType, deviceRole);
|
|
1598
1615
|
for (const entry of collectionEntries) {
|
|
1599
1616
|
entries.push(entry);
|
|
1600
1617
|
seenCaps.add(entry.capName);
|
|
@@ -1629,7 +1646,7 @@ async function resolveBindingsForDevice(deps, deviceId, row, pass) {
|
|
|
1629
1646
|
const skippedForType = [];
|
|
1630
1647
|
for (const capName of deps.capabilityRegistry.getCapsWithDefaultWrapper()) {
|
|
1631
1648
|
if (seenCaps.has(capName)) continue;
|
|
1632
|
-
if (!capAppliesToDeviceType(deps.capabilityRegistry.getDefinition(capName), deviceType)) {
|
|
1649
|
+
if (!capAppliesToDeviceType(deps.capabilityRegistry.getDefinition(capName), deviceType, deviceRole)) {
|
|
1633
1650
|
skippedForType.push(capName);
|
|
1634
1651
|
continue;
|
|
1635
1652
|
}
|
|
@@ -6985,7 +7002,7 @@ async function registerDevice(pctx, input) {
|
|
|
6985
7002
|
throw new Error(`[device-manager] registerDevice: device ${id} (${addonId}/${stableId}) was removed — refusing to resurrect it`);
|
|
6986
7003
|
}
|
|
6987
7004
|
if (Array.isArray(input.secretConfigPaths)) pctx.secretConfigPaths.set(id, input.secretConfigPaths);
|
|
6988
|
-
const { isFirstRegistration, exportFingerprint, fingerprintChanged, storedFeatures, inheritedLocation, inheritedDescendantIds, inheritFailed } = await pctx.metaStore.withMetaWriteLock(async () => {
|
|
7005
|
+
const { isFirstRegistration, exportFingerprint, fingerprintChanged, storedFeatures, inheritedLocation, inheritedDescendantIds, inheritFailed, filledRole } = await pctx.metaStore.withMetaWriteLock(async () => {
|
|
6989
7006
|
const existingRow = await pctx.metaStore.rows.get(id);
|
|
6990
7007
|
const existingMeta = existingRow?.meta;
|
|
6991
7008
|
const wasRegistered = existingRow?.registered ?? false;
|
|
@@ -7017,6 +7034,9 @@ async function registerDevice(pctx, input) {
|
|
|
7017
7034
|
exportFingerprint: fingerprint
|
|
7018
7035
|
});
|
|
7019
7036
|
if (existingMeta?.alias === void 0) await pctx.metaStore.rows.patch(id, { alias: await freeAliasFor(pctx.metaStore.rows, resolvedName, id, await readReservedAliases(pctx)) });
|
|
7037
|
+
const providerRole = typeof input.role === "string" && input.role.length > 0 ? input.role : null;
|
|
7038
|
+
const roleToFill = existingMeta?.role == null ? providerRole : null;
|
|
7039
|
+
if (roleToFill !== null) await pctx.metaStore.rows.patch(id, { role: roleToFill });
|
|
7020
7040
|
const descendantsFilled = [];
|
|
7021
7041
|
const descendantsFailed = [];
|
|
7022
7042
|
if (inherited !== null) for (const descendant of await collectDescendants(pctx.metaStore, id)) {
|
|
@@ -7038,9 +7058,30 @@ async function registerDevice(pctx, input) {
|
|
|
7038
7058
|
fingerprintChanged: existingMeta?.exportFingerprint !== fingerprint,
|
|
7039
7059
|
inheritedLocation: inherited,
|
|
7040
7060
|
inheritedDescendantIds: descendantsFilled,
|
|
7041
|
-
inheritFailed: descendantsFailed
|
|
7061
|
+
inheritFailed: descendantsFailed,
|
|
7062
|
+
filledRole: roleToFill
|
|
7042
7063
|
};
|
|
7043
7064
|
});
|
|
7065
|
+
if (filledRole !== null) {
|
|
7066
|
+
pctx.host.ctx.eventBus.emit({
|
|
7067
|
+
id: randomUUID(),
|
|
7068
|
+
timestamp: /* @__PURE__ */ new Date(),
|
|
7069
|
+
source: {
|
|
7070
|
+
type: "device",
|
|
7071
|
+
id
|
|
7072
|
+
},
|
|
7073
|
+
category: EventCategory$1.DeviceMetaChanged,
|
|
7074
|
+
data: {
|
|
7075
|
+
deviceId: id,
|
|
7076
|
+
field: "role",
|
|
7077
|
+
value: filledRole
|
|
7078
|
+
}
|
|
7079
|
+
});
|
|
7080
|
+
pctx.host.ctx.logger.info("registerDevice: filled the missing role from the provider", {
|
|
7081
|
+
tags: { deviceId: id },
|
|
7082
|
+
meta: { role: filledRole }
|
|
7083
|
+
});
|
|
7084
|
+
}
|
|
7044
7085
|
if (Object.keys(config).length > 0) await pctx.settings.writeDeviceStore(id, config);
|
|
7045
7086
|
pctx.metaStore.idToAddonId.set(id, addonId);
|
|
7046
7087
|
if (inheritedLocation !== null) {
|
|
@@ -9810,6 +9851,58 @@ var FleetReadCensus = class FleetReadCensus {
|
|
|
9810
9851
|
//#endregion
|
|
9811
9852
|
//#region src/builtins/device-manager/device-row-store.ts
|
|
9812
9853
|
/**
|
|
9854
|
+
* `device-manager:devices` — ONE ROW PER DEVICE.
|
|
9855
|
+
*
|
|
9856
|
+
* ## What this replaces
|
|
9857
|
+
*
|
|
9858
|
+
* The device-manager used to keep its whole fleet in three JSON blobs on the
|
|
9859
|
+
* addon-settings row set (`deviceMeta`, `deviceMetadata`, `deviceIndex`).
|
|
9860
|
+
* Measured on the live hub 2026-08-19: 467 KB + 87 KB + 70 KB = 625 KB of the
|
|
9861
|
+
* table's 627 KB, and EVERY read of any of them read and `JSON.parse`d all
|
|
9862
|
+
* three, synchronously, on hub-main's event loop — `ctx.settings.readAddonStore`
|
|
9863
|
+
* lands in `SqliteSettingsBackend.getAllAddon`, which is prefix-scoped to the
|
|
9864
|
+
* addon but not to the key. A V8 profile of that boot had hub-main's JS thread
|
|
9865
|
+
* 99.9% busy for 76 s with 64% of it inside `getAllAddon`, ~89% of that entered
|
|
9866
|
+
* through the meta store, and every runner's first store read queued behind it.
|
|
9867
|
+
*
|
|
9868
|
+
* Writing was worse than reading. `ConfigManager.createSettingsView`'s
|
|
9869
|
+
* `writeAddonStore` is `setAllAddon(addonId, { ...existing, ...patch })`, and
|
|
9870
|
+
* `setAllAddon` DELETEs and re-INSERTs every row of the addon — so renaming one
|
|
9871
|
+
* camera rewrote 625 KB.
|
|
9872
|
+
*
|
|
9873
|
+
* A row per device makes the per-device question a primary-key lookup and the
|
|
9874
|
+
* per-device write a single-row upsert touching only the columns named.
|
|
9875
|
+
*
|
|
9876
|
+
* ## Why `deviceIndex` has no column and no collection
|
|
9877
|
+
*
|
|
9878
|
+
* `deviceIndex` was `Record<addonId, stableId[]>` — pure derivation: `addonId`
|
|
9879
|
+
* and `stableId` are fields of every row, so "this addon's devices" is
|
|
9880
|
+
* `where: { addonId }`. It carried exactly one bit that is NOT derivable:
|
|
9881
|
+
* membership meant "`registerDevice` has run at least once", which is how
|
|
9882
|
+
* `registerDevice` tells a FIRST registration (emit `DeviceRegistered`) from a
|
|
9883
|
+
* meta refresh. `allocateDeviceId` writes a row without registering, so row
|
|
9884
|
+
* existence alone cannot answer it. That bit is the {@link registered} column,
|
|
9885
|
+
* and nothing else of `deviceIndex` survives.
|
|
9886
|
+
*
|
|
9887
|
+
* ## Why metadata is a column and not a second collection
|
|
9888
|
+
*
|
|
9889
|
+
* `deviceMetadata` lived in its own blob for ONE reason: a blob write is
|
|
9890
|
+
* whole-value, so a lifecycle writer (`registerDevice` / `setName` / …) that
|
|
9891
|
+
* had to preserve a `metadata` field would eventually clobber a concurrent
|
|
9892
|
+
* `setMetadata`. Single-writer-per-blob was the fix. Column writes have no such
|
|
9893
|
+
* problem — `set` names its columns and leaves the rest of the row untouched —
|
|
9894
|
+
* so the split has no reason to exist and metadata rides on the device's own
|
|
9895
|
+
* row.
|
|
9896
|
+
*
|
|
9897
|
+
* ## Adding a column later
|
|
9898
|
+
*
|
|
9899
|
+
* `declareCollection` is additive ONLY when SQLite can `ALTER TABLE … ADD
|
|
9900
|
+
* COLUMN` it. A new `NOT NULL` column without a `defaultValue` cannot be added
|
|
9901
|
+
* to a populated table, so the backend counts it as non-additive and REBUILDS
|
|
9902
|
+
* the collection — dropping every row. Any column added here after ship must
|
|
9903
|
+
* either be nullable or carry a `defaultValue`.
|
|
9904
|
+
*/
|
|
9905
|
+
/**
|
|
9813
9906
|
* @durable class=ledger owner=device-manager
|
|
9814
9907
|
* write="one row per device, written by `allocateDeviceId` (identity placeholder),
|
|
9815
9908
|
* `registerDevice` (full reconcile) and every meta setter (single-column patch);
|
|
@@ -10049,7 +10142,8 @@ function decodeDeviceRow(data) {
|
|
|
10049
10142
|
const deviceId = readNumber(data["deviceId"]);
|
|
10050
10143
|
const addonId = readString(data["addonId"]);
|
|
10051
10144
|
const stableId = readString(data["stableId"]);
|
|
10052
|
-
const
|
|
10145
|
+
const storedType = readString(data["type"]);
|
|
10146
|
+
const type = storedType === void 0 ? void 0 : canonicalStoredDeviceType(storedType);
|
|
10053
10147
|
const name = readString(data["name"]);
|
|
10054
10148
|
if (deviceId === void 0 || addonId === void 0 || stableId === void 0 || type === void 0 || name === void 0) return null;
|
|
10055
10149
|
const location = readString(data["location"]);
|
|
@@ -1,55 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `device-manager:devices` — ONE ROW PER DEVICE.
|
|
3
|
-
*
|
|
4
|
-
* ## What this replaces
|
|
5
|
-
*
|
|
6
|
-
* The device-manager used to keep its whole fleet in three JSON blobs on the
|
|
7
|
-
* addon-settings row set (`deviceMeta`, `deviceMetadata`, `deviceIndex`).
|
|
8
|
-
* Measured on the live hub 2026-08-19: 467 KB + 87 KB + 70 KB = 625 KB of the
|
|
9
|
-
* table's 627 KB, and EVERY read of any of them read and `JSON.parse`d all
|
|
10
|
-
* three, synchronously, on hub-main's event loop — `ctx.settings.readAddonStore`
|
|
11
|
-
* lands in `SqliteSettingsBackend.getAllAddon`, which is prefix-scoped to the
|
|
12
|
-
* addon but not to the key. A V8 profile of that boot had hub-main's JS thread
|
|
13
|
-
* 99.9% busy for 76 s with 64% of it inside `getAllAddon`, ~89% of that entered
|
|
14
|
-
* through the meta store, and every runner's first store read queued behind it.
|
|
15
|
-
*
|
|
16
|
-
* Writing was worse than reading. `ConfigManager.createSettingsView`'s
|
|
17
|
-
* `writeAddonStore` is `setAllAddon(addonId, { ...existing, ...patch })`, and
|
|
18
|
-
* `setAllAddon` DELETEs and re-INSERTs every row of the addon — so renaming one
|
|
19
|
-
* camera rewrote 625 KB.
|
|
20
|
-
*
|
|
21
|
-
* A row per device makes the per-device question a primary-key lookup and the
|
|
22
|
-
* per-device write a single-row upsert touching only the columns named.
|
|
23
|
-
*
|
|
24
|
-
* ## Why `deviceIndex` has no column and no collection
|
|
25
|
-
*
|
|
26
|
-
* `deviceIndex` was `Record<addonId, stableId[]>` — pure derivation: `addonId`
|
|
27
|
-
* and `stableId` are fields of every row, so "this addon's devices" is
|
|
28
|
-
* `where: { addonId }`. It carried exactly one bit that is NOT derivable:
|
|
29
|
-
* membership meant "`registerDevice` has run at least once", which is how
|
|
30
|
-
* `registerDevice` tells a FIRST registration (emit `DeviceRegistered`) from a
|
|
31
|
-
* meta refresh. `allocateDeviceId` writes a row without registering, so row
|
|
32
|
-
* existence alone cannot answer it. That bit is the {@link registered} column,
|
|
33
|
-
* and nothing else of `deviceIndex` survives.
|
|
34
|
-
*
|
|
35
|
-
* ## Why metadata is a column and not a second collection
|
|
36
|
-
*
|
|
37
|
-
* `deviceMetadata` lived in its own blob for ONE reason: a blob write is
|
|
38
|
-
* whole-value, so a lifecycle writer (`registerDevice` / `setName` / …) that
|
|
39
|
-
* had to preserve a `metadata` field would eventually clobber a concurrent
|
|
40
|
-
* `setMetadata`. Single-writer-per-blob was the fix. Column writes have no such
|
|
41
|
-
* problem — `set` names its columns and leaves the rest of the row untouched —
|
|
42
|
-
* so the split has no reason to exist and metadata rides on the device's own
|
|
43
|
-
* row.
|
|
44
|
-
*
|
|
45
|
-
* ## Adding a column later
|
|
46
|
-
*
|
|
47
|
-
* `declareCollection` is additive ONLY when SQLite can `ALTER TABLE … ADD
|
|
48
|
-
* COLUMN` it. A new `NOT NULL` column without a `defaultValue` cannot be added
|
|
49
|
-
* to a populated table, so the backend counts it as non-additive and REBUILDS
|
|
50
|
-
* the collection — dropping every row. Any column added here after ship must
|
|
51
|
-
* either be nullable or carry a `defaultValue`.
|
|
52
|
-
*/
|
|
53
1
|
import type { ChildLayout, CollectionColumn, CollectionIndex, DeviceDisplayOverride, IScopedLogger, MutationFilter, QueryFilter, SettingsRecord, SettingsStoreClient } from "@camstack/types";
|
|
54
2
|
import type { RetiredRowStore } from "../sqlite-storage/retired-settings-keys.js";
|
|
55
3
|
import type { PersistedDeviceMeta } from "./device-meta-types.js";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-DlRUArVs.js");
|
|
7
7
|
const require_formatter = require("../../formatter-xbxeV4GD.js");
|
|
8
8
|
//#region src/builtins/hub-forwarder/hub-forwarder-destination.ts
|
|
9
9
|
var DEFAULT_OUTBOUND_BUFFER_SIZE = 500;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ji as logDestinationCapability, xs as BaseAddon } from "../../dist-ByiDJLen.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-DkYZ4LXp.mjs";
|
|
3
3
|
//#region src/builtins/hub-forwarder/hub-forwarder-destination.ts
|
|
4
4
|
var DEFAULT_OUTBOUND_BUFFER_SIZE = 500;
|
|
@@ -3,11 +3,11 @@ 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-
|
|
7
|
-
const require_device_ca = require("../../device-ca-
|
|
6
|
+
const require_dist = require("../../dist-DlRUArVs.js");
|
|
7
|
+
const require_device_ca = require("../../device-ca-ksS811fC.js");
|
|
8
8
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
9
|
-
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-
|
|
10
|
-
const require_constants = require("../../constants-
|
|
9
|
+
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-CDPH26e8.js");
|
|
10
|
+
const require_constants = require("../../constants-DZwpZY5J.js");
|
|
11
11
|
const require_platform_key_source = require("../../platform-key-source-Di7HrlGR.js");
|
|
12
12
|
let node_crypto = require("node:crypto");
|
|
13
13
|
let _camstack_types_node = require("@camstack/types/node");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-
|
|
1
|
+
import { Dc as formatSecretScope, Et as KeychainResetRecordSchema, Qc as parseSecretRef, Sc as defineRecordKinds, Si as keychainCapability, Tt as KeychainAuditEntrySchema, Yc as normalizeSecretOwner, wt as KEYCHAIN_RESET_TRIGGER_ACTOR, xi as keychainAdminCapability, xl as EventCategory, xs as BaseAddon } from "../../dist-ByiDJLen.mjs";
|
|
2
|
+
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-CAbEBLyf.mjs";
|
|
3
3
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
4
|
-
import { t as LEGACY_INTEGRATION_ROWS_TABLE } from "../../legacy-integration-rows-door-
|
|
5
|
-
import { a as MESH_CA_KEY_REF } from "../../constants-
|
|
4
|
+
import { t as LEGACY_INTEGRATION_ROWS_TABLE } from "../../legacy-integration-rows-door-Be_QKUlY.mjs";
|
|
5
|
+
import { a as MESH_CA_KEY_REF } from "../../constants-CfAS4Qm6.mjs";
|
|
6
6
|
import { n as getPlatformKeychainKey } from "../../platform-key-source-BWlq0jjn.mjs";
|
|
7
7
|
import { createCipheriv, createDecipheriv, createHmac, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
8
8
|
import { restrictDirToOwnerSync, restrictFileToOwnerSync, writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("../../dist-
|
|
3
|
+
const require_dist = require("../../dist-DlRUArVs.js");
|
|
4
4
|
let node_fs = require("node:fs");
|
|
5
5
|
let node_path = require("node:path");
|
|
6
6
|
node_path = require_chunk.__toESM(node_path);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fi as mayWriteToLocation, Kt as RECORDING_SOURCE_CAMSTACK_ADDON, Yt as RecordingStatusSchema, _c as createEvent, xl as EventCategory, xs as BaseAddon, yl as errMsg } from "../../dist-ByiDJLen.mjs";
|
|
2
2
|
import { constants } from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import * as fsp from "node:fs/promises";
|
|
@@ -3,10 +3,10 @@ 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-DlRUArVs.js");
|
|
7
7
|
const require_safe_buffer$1 = require("../../safe-buffer-D3aoa-7X.js");
|
|
8
8
|
const require_ms$1 = require("../../ms-LB3giGoU.js");
|
|
9
|
-
const require_device_ca = require("../../device-ca-
|
|
9
|
+
const require_device_ca = require("../../device-ca-ksS811fC.js");
|
|
10
10
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
11
11
|
let zod = require("zod");
|
|
12
12
|
let node_crypto = require("node:crypto");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as __require, o as __toESM, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { B as DEVICE_ENROLLMENT_TTL_MS, Cr as deviceCredentialsCapability, E as CREDENTIAL_TOKEN_AUDIENCE, Fn as buildDeviceEnrollmentLink, Ht as PreferenceDeviceIdSchema, In as buildDeviceSignatureMessage, Lt as PREFERENCES_MAX_VALUE_BYTES, M as CredentialTokenClaimsSchema, On as authProviderCapability, Oo as userManagementCapability, Sc as defineRecordKinds, U as DEVICE_NONCE_TTL_MS, Ut as PreferenceNamespaceSchema, Vc as isSecretMarker, Wc as makeSecretMarker, Wt as PreferenceValueSchema, Xr as formatDeviceRevoker, fi as isCredentialTokenPayload, fl as userError, hn as UserRecordSchema, in as ScopedTokenSchema, pn as TokenScopeSchema, sn as SsoBridgeClaimsSchema, xs as BaseAddon } from "../../dist-ByiDJLen.mjs";
|
|
3
3
|
import { t as require_safe_buffer } from "../../safe-buffer-B1OjL1I9.mjs";
|
|
4
4
|
import { t as require_ms } from "../../ms-CgH2OFlD.mjs";
|
|
5
|
-
import { _ as setProcessJwtSigningKey, a as importDevicePublicKey, c as rebuildDeviceCaCertificate, d as JWT_SIGNING_KEY_REF, g as processJwtSigningKey, h as loadJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, r as DEVICE_CA_SETTINGS_SECTION, s as loadDeviceCa, t as DEVICE_CA_FIELD, u as verifyDeviceSignature } from "../../device-ca-
|
|
5
|
+
import { _ as setProcessJwtSigningKey, a as importDevicePublicKey, c as rebuildDeviceCaCertificate, d as JWT_SIGNING_KEY_REF, g as processJwtSigningKey, h as loadJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, r as DEVICE_CA_SETTINGS_SECTION, s as loadDeviceCa, t as DEVICE_CA_FIELD, u as verifyDeviceSignature } from "../../device-ca-CAbEBLyf.mjs";
|
|
6
6
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import * as crypto$1 from "node:crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("../../dist-
|
|
3
|
+
const require_dist = require("../../dist-DlRUArVs.js");
|
|
4
4
|
const require_dns_wire = require("../../dns-wire-B1BvF9Ao.js");
|
|
5
|
-
const require_hub_identity = require("../../hub-identity-
|
|
6
|
-
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-
|
|
5
|
+
const require_hub_identity = require("../../hub-identity-C-1NeWlr.js");
|
|
6
|
+
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-CL-Z9yMs.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let node_net = require("node:net");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Aa as resolveAppConnections, Ao as validateCustomAddress, Di as localNetworkCapability, Fa as resolveHubAddressRoles, Ft as NetworkTunnelStartedDataSchema, bt as HUB_MDNS_TXT_KEYS, io as shortHostname, li as isAppLinkBase, pa as preconditionOf, pi as isDefaultAppConnectionEndpoint, qn as checkRoleAddress, sa as pickAppLinkHub, xl as EventCategory, xs as BaseAddon, y as CAMSTACK_APP_LINK_ORIGIN, yc as defineAddonMigrations, yl as errMsg, yt as HUB_MDNS_SERVICE_TYPE, za as resolveNotificationTapAddress } from "../../dist-ByiDJLen.mjs";
|
|
2
2
|
import { a as emptyMdnsRecords, c as parseMdnsMessage, i as buildRecordQuery, l as parseMdnsRecords, n as MDNS_PORT, o as mergeMdnsRecords, r as buildPtrQuery, s as normalizeServiceType, t as MDNS_GROUP } from "../../dns-wire-Dm3H_7ST.mjs";
|
|
3
|
-
import { i as loadOrCreateHubId, r as isAnnouncedHubId } from "../../hub-identity-
|
|
4
|
-
import { E as ensureTlsCert, I as readLanHttpState, N as applyLanHttp, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, d as servedHttpsLeafFingerprint, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, r as regenerateCertificate, t as createCiaoPublisher, y as writeExtraSans } from "../../hub-mdns-ciao-
|
|
3
|
+
import { i as loadOrCreateHubId, r as isAnnouncedHubId } from "../../hub-identity-Bh28ooQx.mjs";
|
|
4
|
+
import { E as ensureTlsCert, I as readLanHttpState, N as applyLanHttp, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, d as servedHttpsLeafFingerprint, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, r as regenerateCertificate, t as createCiaoPublisher, y as writeExtraSans } from "../../hub-mdns-ciao-OWO6Bw-X.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { isIP } from "node:net";
|
|
7
7
|
import { readFileSync } from "node:fs";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-DlRUArVs.js");
|
|
7
7
|
const require_log_read_filter = require("../../log-read-filter-Bi066jwU.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
//#region src/builtins/loki-logging/loki-payload.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { An as bareAddonId, Bc as isSecretFieldView, Gs as RecordIntegrationInstances, Ic as isInstanceEnabled, Vc as isSecretMarker, Xs as RevConflictError, ii as integrationInstancesCapability, ji as logDestinationCapability, pa as preconditionOf, vi as isSameAddonId, xc as defineEntryKind, xs as BaseAddon, yc as defineAddonMigrations } from "../../dist-ByiDJLen.mjs";
|
|
2
2
|
import { n as compileLogFilter, o as lineMatches } from "../../log-read-filter-D7Ev3zm-.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/builtins/loki-logging/loki-payload.ts
|
|
@@ -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-DlRUArVs.js");
|
|
7
7
|
let node_fs = require("node:fs");
|
|
8
8
|
node_fs = require_chunk.__toESM(node_fs);
|
|
9
9
|
let node_fs_promises = require("node:fs/promises");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bi as metricsProviderCapability, Jt as ROOT_BUCKET_KEY, Yr as foldSnapshotByFunction, _c as createEvent, ja as resolveBucketMs, mn as UNATTRIBUTED_BUCKET_KEY, wa as reducePoints, xl as EventCategory, xs as BaseAddon, yl as errMsg } from "../../dist-ByiDJLen.mjs";
|
|
2
2
|
import * as fs$1 from "node:fs";
|
|
3
3
|
import { constants, readFileSync } from "node:fs";
|
|
4
4
|
import { access, readFile, readdir } from "node:fs/promises";
|
|
@@ -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-DlRUArVs.js");
|
|
7
7
|
const require_coral_accelerators = require("../../coral-accelerators-BSVsBVzt.js");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as __toESM, r as __exportAll } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Mr as enumerateInferenceDevices, Za as scoreRuntimes, la as platformProbeCapability, na as parseAcceleratorFactsJson, wc as emitReadiness, xl as EventCategory, xs as BaseAddon, yl as errMsg } from "../../dist-ByiDJLen.mjs";
|
|
3
3
|
import { n as detectCoralAccelerator, r as nodeCoralFs } from "../../coral-accelerators-DBlgWB8k.mjs";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
5
5
|
import * as path$1 from "node:path";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-DlRUArVs.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
//#region src/builtins/record-entries/entries-service.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ms as InvalidRecordError, Sa as recordEntriesCapability, sl as secretViewsOf, tc as UnknownRecordKindError, xs as BaseAddon } from "../../dist-ByiDJLen.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
//#region src/builtins/record-entries/entries-service.ts
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-DlRUArVs.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
9
9
|
/**
|
package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { xl as EventCategory, xs as BaseAddon } from "../../dist-ByiDJLen.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
4
4
|
/**
|
|
@@ -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-DlRUArVs.js");
|
|
7
7
|
const require_snapshot_courtesy = require("../../snapshot-courtesy-D_C5-nC0.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { An as
|
|
1
|
+
import { An as bareAddonId, Ri as memoizePinnedFfmpeg, _ as BatteryStatusSchema, br as deriveBatteryPresence, gl as DeviceFeature, go as streamQualityLabel, jn as batteryCapability, qc as nodePin, so as snapshotCapability, vl as DeviceType, xl as EventCategory, xs as BaseAddon, yl as errMsg } from "../../dist-ByiDJLen.mjs";
|
|
2
2
|
import { i as renderCourtesyOverlayJpeg, n as courtesyCacheKey, r as renderCourtesyJpeg } from "../../snapshot-courtesy-CyFs1M3I.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
@@ -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-DlRUArVs.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mo as storageProviderCapability, qr as filesystemBrowseCapability, xs as BaseAddon } from "../../dist-ByiDJLen.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import * as fs$1 from "node:fs";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -4,7 +4,7 @@ Object.defineProperties(exports, {
|
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
6
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./filesystem-storage.addon.js");
|
|
7
|
-
const require_wal_maintenance = require("../../wal-maintenance-
|
|
7
|
+
const require_wal_maintenance = require("../../wal-maintenance-GNE9Oqdu.js");
|
|
8
8
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./sqlite-settings.addon.js");
|
|
9
9
|
//#region src/builtins/sqlite-storage/config-store.ts
|
|
10
10
|
var ConfigStore = class {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./filesystem-storage.addon.mjs";
|
|
2
|
-
import { B as SQLITE_ENGINE_STORM_WALL_SHARE, F as SQLITE_MMAP_FLOOR_BYTES, G as SqliteOpProfiler, H as SQLITE_PROFILE_REPORT_INTERVAL_MS, I as SQLITE_PAGE_CACHE_CEILING_KIB, K as sqliteEngineStorm, L as SQLITE_PAGE_CACHE_FLOOR_KIB, N as SQLITE_JOURNAL_SIZE_LIMIT_BYTES, P as SQLITE_MMAP_CEILING_BYTES, R as sqliteMmapSizeFor, U as SQLITE_PROFILE_TOP_N, V as SQLITE_PROFILE_REPORT_FLOOR_MS, W as SQLITE_SLOW_CALL_MS, a as WalMaintenance, i as WAL_MAINTENANCE_INTERVAL_MS, l as SqliteSettingsBackend, n as WAL_HIGH_WATER_BYTES, r as WAL_IDLE_QUIET_MS, t as WAL_CHECKPOINT_BUSY_TIMEOUT_MS, z as sqlitePageCacheKibFor } from "../../wal-maintenance-
|
|
2
|
+
import { B as SQLITE_ENGINE_STORM_WALL_SHARE, F as SQLITE_MMAP_FLOOR_BYTES, G as SqliteOpProfiler, H as SQLITE_PROFILE_REPORT_INTERVAL_MS, I as SQLITE_PAGE_CACHE_CEILING_KIB, K as sqliteEngineStorm, L as SQLITE_PAGE_CACHE_FLOOR_KIB, N as SQLITE_JOURNAL_SIZE_LIMIT_BYTES, P as SQLITE_MMAP_CEILING_BYTES, R as sqliteMmapSizeFor, U as SQLITE_PROFILE_TOP_N, V as SQLITE_PROFILE_REPORT_FLOOR_MS, W as SQLITE_SLOW_CALL_MS, a as WalMaintenance, i as WAL_MAINTENANCE_INTERVAL_MS, l as SqliteSettingsBackend, n as WAL_HIGH_WATER_BYTES, r as WAL_IDLE_QUIET_MS, t as WAL_CHECKPOINT_BUSY_TIMEOUT_MS, z as sqlitePageCacheKibFor } from "../../wal-maintenance-Fibm7rsM.mjs";
|
|
3
3
|
import { SqliteSettingsAddon } from "./sqlite-settings.addon.mjs";
|
|
4
4
|
//#region src/builtins/sqlite-storage/config-store.ts
|
|
5
5
|
var ConfigStore = class {
|
|
@@ -3,12 +3,12 @@ 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-DlRUArVs.js");
|
|
7
7
|
const require_retired_settings_keys = require("../../retired-settings-keys-C8nOOr5H.js");
|
|
8
|
-
const require_wal_maintenance = require("../../wal-maintenance-
|
|
8
|
+
const require_wal_maintenance = require("../../wal-maintenance-GNE9Oqdu.js");
|
|
9
9
|
const require_sqlite_snapshot_protocol = require("../../sqlite-snapshot-protocol-B9OndqZv.js");
|
|
10
10
|
const require_wal_checkpoint_policy = require("../../wal-checkpoint-policy-d2z2qPqx.js");
|
|
11
|
-
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-
|
|
11
|
+
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-CDPH26e8.js");
|
|
12
12
|
let zod = require("zod");
|
|
13
13
|
let node_crypto = require("node:crypto");
|
|
14
14
|
let node_fs = require("node:fs");
|