@camstack/server 1.2.858 → 1.2.860
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 +16 -0
- package/dist/api/trpc/generated-cap-routers.js +16 -0
- package/dist/core/cluster-update/cluster-update-steps.js +10 -2
- package/dist/server-root/index.js +1125 -45
- package/package.json +17 -16
- package/system/dist/addon-runner.js +76 -1
- package/system/dist/addon-runner.mjs +76 -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/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/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 +32 -23
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +32 -23
- package/system/dist/builtins/device-manager/device-search.d.ts +4 -3
- package/system/dist/builtins/device-manager/removal-fence.d.ts +2 -2
- 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 +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-B4_fq2JB.mjs → capture-engine-B5OYzCH1.mjs} +1 -1
- package/system/dist/{capture-engine-yhFFC7F8.js → capture-engine-BManwD48.js} +1 -1
- package/system/dist/{composition-sources-BQOEYCJG.mjs → composition-sources-B8hoUx1K.mjs} +1 -1
- package/system/dist/{composition-sources-CKSSe5ny.js → composition-sources-DWu-IL2w.js} +1 -1
- package/system/dist/{constants-dfnEfsX7.js → constants-CUAopsxj.js} +1 -1
- package/system/dist/{constants-h8wJE_8O.mjs → constants-qDKQ7NaY.mjs} +1 -1
- package/system/dist/{device-ca-h54CenJx.mjs → device-ca-BOUTrISA.mjs} +1 -1
- package/system/dist/{device-ca-_o0-3jJ6.js → device-ca-DNrM4Ao-.js} +1 -1
- package/system/dist/{dist-atHH8IeD.mjs → dist-3MQdfUTG.mjs} +254 -71
- package/system/dist/{dist-WEGVb8qV.js → dist-B9Kzw974.js} +259 -70
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-nIMYA24i.js → hub-identity-BQIE6w3g.js} +1 -1
- package/system/dist/{hub-identity-DLF698tj.mjs → hub-identity-DEbxcoVh.mjs} +1 -1
- package/system/dist/{hub-mdns-ciao-B6ZHStt1.js → hub-mdns-ciao-Bj_RdJiH.js} +2 -2
- package/system/dist/{hub-mdns-ciao-DchpUVAk.mjs → hub-mdns-ciao-BzKGywE2.mjs} +2 -2
- package/system/dist/index.js +84 -9
- package/system/dist/index.mjs +84 -9
- package/system/dist/kernel/moleculer/switch-toggle.d.ts +41 -0
- package/system/dist/{legacy-integration-rows-door-BbaIE1qF.js → legacy-integration-rows-door-CRfEC_HP.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-DBO3ZLmn.mjs → legacy-integration-rows-door-rgL9olef.mjs} +1 -1
- package/system/dist/{rename-composition-block-IIfaFnEl.js → rename-composition-block-Bbt43q6n.js} +1 -1
- package/system/dist/{rename-composition-block-6ISzMLgj.mjs → rename-composition-block-DlgSgxch.mjs} +1 -1
- package/system/dist/{restore-archive-ChRNoqGg.js → restore-archive-DJBACMC0.js} +1 -1
- package/system/dist/{restore-archive-DeDRh7Lf.mjs → restore-archive-aQzQt2Kv.mjs} +82 -82
- package/system/dist/{wal-maintenance-BXj9xnDD.mjs → wal-maintenance-Bu6vjJlR.mjs} +0 -0
- package/system/dist/{wal-maintenance-l3CsKEaJ.js → wal-maintenance-BvIEU1r1.js} +0 -0
- package/system/package.json +1 -1
|
@@ -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-B9Kzw974.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
const require_log_redactor = require("../../log-redactor-BhIEMaG9.js");
|
|
9
|
-
const require_rename_composition_block = require("../../rename-composition-block-
|
|
9
|
+
const require_rename_composition_block = require("../../rename-composition-block-Bbt43q6n.js");
|
|
10
10
|
const require_prefix_range = require("../../prefix-range-D_KueXbQ.js");
|
|
11
11
|
const require_prefix_walk = require("../../prefix-walk-Dv6MLZlM.js");
|
|
12
12
|
const require_retired_settings_keys = require("../../retired-settings-keys-C8nOOr5H.js");
|
|
@@ -3553,7 +3553,8 @@ async function adoptionRefresh(pctx, input) {
|
|
|
3553
3553
|
}
|
|
3554
3554
|
async function adoptionAdopt(pctx, input) {
|
|
3555
3555
|
const { addonId, ...rest } = input;
|
|
3556
|
-
|
|
3556
|
+
const adoptionProvider = await pctx.host.requireDeviceAdoptionProvider(addonId);
|
|
3557
|
+
return pctx.removalFence.runUnfenced(() => adoptionProvider.adopt(rest));
|
|
3557
3558
|
}
|
|
3558
3559
|
async function adoptionRelease(pctx, input) {
|
|
3559
3560
|
const { addonId, ...rest } = input;
|
|
@@ -4751,10 +4752,28 @@ function bump(counts, key) {
|
|
|
4751
4752
|
if (key === null) return;
|
|
4752
4753
|
counts.set(key, (counts.get(key) ?? 0) + 1);
|
|
4753
4754
|
}
|
|
4755
|
+
function requireOf(input) {
|
|
4756
|
+
return {
|
|
4757
|
+
caps: input.requires?.caps ?? [],
|
|
4758
|
+
actions: input.requires?.actions ?? [],
|
|
4759
|
+
mode: input.requires?.mode ?? "any"
|
|
4760
|
+
};
|
|
4761
|
+
}
|
|
4762
|
+
function needsBindings(req) {
|
|
4763
|
+
return req.caps.length > 0 || req.actions.length > 0;
|
|
4764
|
+
}
|
|
4765
|
+
/** Caps and actions are judged separately, then both must pass. An empty list passes. */
|
|
4766
|
+
function applyRequire(candidate, have, req) {
|
|
4767
|
+
const held = new Set(have);
|
|
4768
|
+
const matched = req.caps.filter((cap) => held.has(cap));
|
|
4769
|
+
candidate.matchedCaps = matched;
|
|
4770
|
+
const capsOk = req.caps.length === 0 ? true : req.mode === "all" ? matched.length === req.caps.length : matched.length > 0;
|
|
4771
|
+
const actionsOk = require_dist.deviceOffersActions(have, req.actions, req.mode, candidate.device.type);
|
|
4772
|
+
candidate.compatible = capsOk && actionsOk;
|
|
4773
|
+
}
|
|
4754
4774
|
async function searchDevices(deps, input) {
|
|
4755
4775
|
const [fleet, labels] = await Promise.all([deps.listDevices(), deps.integrationLabels()]);
|
|
4756
|
-
const
|
|
4757
|
-
const mode = input.requires?.mode ?? "any";
|
|
4776
|
+
const req = requireOf(input);
|
|
4758
4777
|
const candidates = fleet.map((device) => {
|
|
4759
4778
|
const integrationId = device.integrationId ?? null;
|
|
4760
4779
|
const integrationLabel = integrationId === null ? null : labels.get(integrationId) ?? null;
|
|
@@ -4771,20 +4790,15 @@ async function searchDevices(deps, input) {
|
|
|
4771
4790
|
String(device.id)
|
|
4772
4791
|
].join("\0").toLowerCase(),
|
|
4773
4792
|
matchedCaps: [],
|
|
4774
|
-
compatible:
|
|
4793
|
+
compatible: !needsBindings(req)
|
|
4775
4794
|
};
|
|
4776
4795
|
});
|
|
4777
4796
|
if (input.ids !== void 0) return resolveIds(deps, input, candidates);
|
|
4778
4797
|
const needle = (input.text ?? "").trim().toLowerCase();
|
|
4779
4798
|
const textPass = needle === "" ? candidates : candidates.filter((c) => c.haystack.includes(needle));
|
|
4780
|
-
if (
|
|
4799
|
+
if (needsBindings(req)) {
|
|
4781
4800
|
const bound = await deps.boundCaps(textPass.map((c) => c.device.id));
|
|
4782
|
-
for (const c of textPass)
|
|
4783
|
-
const have = new Set(bound.get(c.device.id) ?? []);
|
|
4784
|
-
const matched = requiredCaps.filter((cap) => have.has(cap));
|
|
4785
|
-
c.matchedCaps = matched;
|
|
4786
|
-
c.compatible = mode === "all" ? matched.length === requiredCaps.length : matched.length > 0;
|
|
4787
|
-
}
|
|
4801
|
+
for (const c of textPass) applyRequire(c, bound.get(c.device.id) ?? [], req);
|
|
4788
4802
|
}
|
|
4789
4803
|
const locationCounts = /* @__PURE__ */ new Map();
|
|
4790
4804
|
const integrationCounts = /* @__PURE__ */ new Map();
|
|
@@ -4829,7 +4843,7 @@ async function searchDevices(deps, input) {
|
|
|
4829
4843
|
const last = keyed[start + limit - 1];
|
|
4830
4844
|
const nextCursor = start + limit < keyed.length && last !== void 0 ? encodeCursor(last.key) : null;
|
|
4831
4845
|
const suggestedCandidates = start === 0 ? suggestFor(input, keyed, fleet) : [];
|
|
4832
|
-
const items = await withValues(deps, [...page, ...suggestedCandidates],
|
|
4846
|
+
const items = await withValues(deps, [...page, ...suggestedCandidates], req.caps);
|
|
4833
4847
|
const byId = new Map(items.map((i) => [i.id, i]));
|
|
4834
4848
|
const facets = {
|
|
4835
4849
|
locations: facetList(locationCounts),
|
|
@@ -4863,8 +4877,7 @@ function suggestFor(input, keyed, fleet) {
|
|
|
4863
4877
|
return keyed.map((k) => k.c).filter((c) => c.compatible && c.device.location === context.location && c.device.id !== context.id).slice(0, SUGGESTED_MAX);
|
|
4864
4878
|
}
|
|
4865
4879
|
async function resolveIds(deps, input, candidates) {
|
|
4866
|
-
const
|
|
4867
|
-
const mode = input.requires?.mode ?? "any";
|
|
4880
|
+
const req = requireOf(input);
|
|
4868
4881
|
const byId = new Map(candidates.map((c) => [c.device.id, c]));
|
|
4869
4882
|
const asked = [...new Set(input.ids ?? [])];
|
|
4870
4883
|
const found = [];
|
|
@@ -4874,15 +4887,11 @@ async function resolveIds(deps, input, candidates) {
|
|
|
4874
4887
|
if (c === void 0) missingIds.push(id);
|
|
4875
4888
|
else found.push(c);
|
|
4876
4889
|
}
|
|
4877
|
-
if (
|
|
4890
|
+
if (needsBindings(req) && found.length > 0) {
|
|
4878
4891
|
const bound = await deps.boundCaps(found.map((c) => c.device.id));
|
|
4879
|
-
for (const c of found)
|
|
4880
|
-
const have = new Set(bound.get(c.device.id) ?? []);
|
|
4881
|
-
c.matchedCaps = requiredCaps.filter((cap) => have.has(cap));
|
|
4882
|
-
c.compatible = mode === "all" ? c.matchedCaps.length === requiredCaps.length : c.matchedCaps.length > 0;
|
|
4883
|
-
}
|
|
4892
|
+
for (const c of found) applyRequire(c, bound.get(c.device.id) ?? [], req);
|
|
4884
4893
|
}
|
|
4885
|
-
const items = await withValues(deps, found,
|
|
4894
|
+
const items = await withValues(deps, found, req.caps);
|
|
4886
4895
|
return {
|
|
4887
4896
|
items,
|
|
4888
4897
|
nextCursor: null,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Aa as reconcileReportedFeatures, Ac as commandEffect, Ar as deviceManagerCapability, Cl as sleep$2, Cr as defineExtensionSlotProvider, Cs as implementedMethodsOf$1, Dl as userError, El as transformSecretWrite, Fl as errMsg$1, Fr as deviceStatusCapability, Fs as BaseAddon, Hn as buildStreamParamsConfigSchema, J as DEVICE_TEMPLATE_FILTERS, Kn as canonicalIconKey, Lc as defineRecordKinds, Li as locationIconKey, Ll as EventCategory$1, Mi as legacyAutoLinkIds, Ml as DeviceFeature, Nl as DeviceRole, Nt as MINUTES_PER_DAY, Ol as vocabActionIdFor, Or as deviceExtensionCapability, Pl as DeviceType$1, Pr as deviceStateCapability, Q as DEVICE_TEMPLATE_VALUES_CAP, Qc as isKeychainStoredField, Rr as enumerateItemArrayFields, S as CAP_NAMES_WITH_STATUS, Tl as toSecretFieldView, Vc as expandCapMethods$1, Wr as expandContainer, X as DEVICE_TEMPLATE_MAX_OUTPUT, Xn as checkDeviceAlias, Y as DEVICE_TEMPLATE_MAX_LENGTH, Yc as isDeviceConfigCap, _c as WELL_KNOWN_TAB_MAP, _l as resolveSecretMarkers, _o as siteZoneKey, _t as FieldClaimModeSchema, ai as generateDeviceAlias, at as DiscoveryProposalBodySchema, b as CAMERA_SWITCH_ORDER, bl as secretTreeFromPaths, cs as canonicalStoredDeviceType, da as parseStreamParamsFormPatch, dc as SECRET_CLEAR, do as settleDeviceFeatures, el as isSecretClear, eo as resolveTemplateRef, gr as createDeviceExtensionProvider, ia as normalizeUnit, in as STREAM_PROFILE_META, io as runtimeStatePolicyFor, it as DeviceTombstoneSchema, j as ConditionMirror, jr as deviceOffersActions, kc as collectZodSecretPaths$1, ls as capAppliesToDeviceKind, lt as ExportNameRefusedError, ni as formatMinutes, nl as isSecretMarker, qc as isCommand$1, rl as isSecretMarkerLike, ro as runtimeFieldUnit, rt as DeviceStatusSchema, s as ALL_CAPABILITY_DEFINITIONS, vt as FieldClaimSchema, wc as auditedFields, wi as isKernelDerivedFeature, z as DAY_NAMES, zr as enumerateSchemaFields } from "../../dist-3MQdfUTG.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-DlgSgxch.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";
|
|
@@ -3547,7 +3547,8 @@ async function adoptionRefresh(pctx, input) {
|
|
|
3547
3547
|
}
|
|
3548
3548
|
async function adoptionAdopt(pctx, input) {
|
|
3549
3549
|
const { addonId, ...rest } = input;
|
|
3550
|
-
|
|
3550
|
+
const adoptionProvider = await pctx.host.requireDeviceAdoptionProvider(addonId);
|
|
3551
|
+
return pctx.removalFence.runUnfenced(() => adoptionProvider.adopt(rest));
|
|
3551
3552
|
}
|
|
3552
3553
|
async function adoptionRelease(pctx, input) {
|
|
3553
3554
|
const { addonId, ...rest } = input;
|
|
@@ -4745,10 +4746,28 @@ function bump(counts, key) {
|
|
|
4745
4746
|
if (key === null) return;
|
|
4746
4747
|
counts.set(key, (counts.get(key) ?? 0) + 1);
|
|
4747
4748
|
}
|
|
4749
|
+
function requireOf(input) {
|
|
4750
|
+
return {
|
|
4751
|
+
caps: input.requires?.caps ?? [],
|
|
4752
|
+
actions: input.requires?.actions ?? [],
|
|
4753
|
+
mode: input.requires?.mode ?? "any"
|
|
4754
|
+
};
|
|
4755
|
+
}
|
|
4756
|
+
function needsBindings(req) {
|
|
4757
|
+
return req.caps.length > 0 || req.actions.length > 0;
|
|
4758
|
+
}
|
|
4759
|
+
/** Caps and actions are judged separately, then both must pass. An empty list passes. */
|
|
4760
|
+
function applyRequire(candidate, have, req) {
|
|
4761
|
+
const held = new Set(have);
|
|
4762
|
+
const matched = req.caps.filter((cap) => held.has(cap));
|
|
4763
|
+
candidate.matchedCaps = matched;
|
|
4764
|
+
const capsOk = req.caps.length === 0 ? true : req.mode === "all" ? matched.length === req.caps.length : matched.length > 0;
|
|
4765
|
+
const actionsOk = deviceOffersActions(have, req.actions, req.mode, candidate.device.type);
|
|
4766
|
+
candidate.compatible = capsOk && actionsOk;
|
|
4767
|
+
}
|
|
4748
4768
|
async function searchDevices(deps, input) {
|
|
4749
4769
|
const [fleet, labels] = await Promise.all([deps.listDevices(), deps.integrationLabels()]);
|
|
4750
|
-
const
|
|
4751
|
-
const mode = input.requires?.mode ?? "any";
|
|
4770
|
+
const req = requireOf(input);
|
|
4752
4771
|
const candidates = fleet.map((device) => {
|
|
4753
4772
|
const integrationId = device.integrationId ?? null;
|
|
4754
4773
|
const integrationLabel = integrationId === null ? null : labels.get(integrationId) ?? null;
|
|
@@ -4765,20 +4784,15 @@ async function searchDevices(deps, input) {
|
|
|
4765
4784
|
String(device.id)
|
|
4766
4785
|
].join("\0").toLowerCase(),
|
|
4767
4786
|
matchedCaps: [],
|
|
4768
|
-
compatible:
|
|
4787
|
+
compatible: !needsBindings(req)
|
|
4769
4788
|
};
|
|
4770
4789
|
});
|
|
4771
4790
|
if (input.ids !== void 0) return resolveIds(deps, input, candidates);
|
|
4772
4791
|
const needle = (input.text ?? "").trim().toLowerCase();
|
|
4773
4792
|
const textPass = needle === "" ? candidates : candidates.filter((c) => c.haystack.includes(needle));
|
|
4774
|
-
if (
|
|
4793
|
+
if (needsBindings(req)) {
|
|
4775
4794
|
const bound = await deps.boundCaps(textPass.map((c) => c.device.id));
|
|
4776
|
-
for (const c of textPass)
|
|
4777
|
-
const have = new Set(bound.get(c.device.id) ?? []);
|
|
4778
|
-
const matched = requiredCaps.filter((cap) => have.has(cap));
|
|
4779
|
-
c.matchedCaps = matched;
|
|
4780
|
-
c.compatible = mode === "all" ? matched.length === requiredCaps.length : matched.length > 0;
|
|
4781
|
-
}
|
|
4795
|
+
for (const c of textPass) applyRequire(c, bound.get(c.device.id) ?? [], req);
|
|
4782
4796
|
}
|
|
4783
4797
|
const locationCounts = /* @__PURE__ */ new Map();
|
|
4784
4798
|
const integrationCounts = /* @__PURE__ */ new Map();
|
|
@@ -4823,7 +4837,7 @@ async function searchDevices(deps, input) {
|
|
|
4823
4837
|
const last = keyed[start + limit - 1];
|
|
4824
4838
|
const nextCursor = start + limit < keyed.length && last !== void 0 ? encodeCursor(last.key) : null;
|
|
4825
4839
|
const suggestedCandidates = start === 0 ? suggestFor(input, keyed, fleet) : [];
|
|
4826
|
-
const items = await withValues(deps, [...page, ...suggestedCandidates],
|
|
4840
|
+
const items = await withValues(deps, [...page, ...suggestedCandidates], req.caps);
|
|
4827
4841
|
const byId = new Map(items.map((i) => [i.id, i]));
|
|
4828
4842
|
const facets = {
|
|
4829
4843
|
locations: facetList(locationCounts),
|
|
@@ -4857,8 +4871,7 @@ function suggestFor(input, keyed, fleet) {
|
|
|
4857
4871
|
return keyed.map((k) => k.c).filter((c) => c.compatible && c.device.location === context.location && c.device.id !== context.id).slice(0, SUGGESTED_MAX);
|
|
4858
4872
|
}
|
|
4859
4873
|
async function resolveIds(deps, input, candidates) {
|
|
4860
|
-
const
|
|
4861
|
-
const mode = input.requires?.mode ?? "any";
|
|
4874
|
+
const req = requireOf(input);
|
|
4862
4875
|
const byId = new Map(candidates.map((c) => [c.device.id, c]));
|
|
4863
4876
|
const asked = [...new Set(input.ids ?? [])];
|
|
4864
4877
|
const found = [];
|
|
@@ -4868,15 +4881,11 @@ async function resolveIds(deps, input, candidates) {
|
|
|
4868
4881
|
if (c === void 0) missingIds.push(id);
|
|
4869
4882
|
else found.push(c);
|
|
4870
4883
|
}
|
|
4871
|
-
if (
|
|
4884
|
+
if (needsBindings(req) && found.length > 0) {
|
|
4872
4885
|
const bound = await deps.boundCaps(found.map((c) => c.device.id));
|
|
4873
|
-
for (const c of found)
|
|
4874
|
-
const have = new Set(bound.get(c.device.id) ?? []);
|
|
4875
|
-
c.matchedCaps = requiredCaps.filter((cap) => have.has(cap));
|
|
4876
|
-
c.compatible = mode === "all" ? c.matchedCaps.length === requiredCaps.length : c.matchedCaps.length > 0;
|
|
4877
|
-
}
|
|
4886
|
+
for (const c of found) applyRequire(c, bound.get(c.device.id) ?? [], req);
|
|
4878
4887
|
}
|
|
4879
|
-
const items = await withValues(deps, found,
|
|
4888
|
+
const items = await withValues(deps, found, req.caps);
|
|
4880
4889
|
return {
|
|
4881
4890
|
items,
|
|
4882
4891
|
nextCursor: null,
|
|
@@ -11,9 +11,10 @@
|
|
|
11
11
|
*
|
|
12
12
|
* Everything that costs a read per device (bindings, status) is paid only for
|
|
13
13
|
* what the answer needs: bindings once for the devices that survive the text
|
|
14
|
-
* filter and only when a cap is required, live readings only for
|
|
15
|
-
* actually returned (a page, the suggestions, the resolved ids) —
|
|
16
|
-
* fleet.
|
|
14
|
+
* filter and only when a cap or an action is required, live readings only for
|
|
15
|
+
* the devices actually returned (a page, the suggestions, the resolved ids) —
|
|
16
|
+
* never the fleet. An action require uses `deviceOffersActions` (the same
|
|
17
|
+
* vocabulary resolution the command picker uses); it does not fill `values`.
|
|
17
18
|
*/
|
|
18
19
|
import type { DeviceInfo, DeviceSearchInput, DeviceSearchResult, DeviceValueOption, IScopedLogger } from "@camstack/types";
|
|
19
20
|
/** The wireable fields of one capability, as `wireableEntryForDef` derives them. */
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* a teardown that is seconds wide, in the one process that owns the rows; a
|
|
21
21
|
* durable tombstone would be a second authority on "does this device exist"
|
|
22
22
|
* and this repo has been burned by those. A deliberate re-add of the same
|
|
23
|
-
* hardware (`createDevice` / `adoptDevice`) lifts the fence for that pair
|
|
23
|
+
* hardware (`createDevice` / `adoptDevice` / `adoptionAdopt`) lifts the fence for that pair
|
|
24
24
|
* explicitly, so an operator is never told "no" for their own action.
|
|
25
25
|
*/
|
|
26
26
|
/** How long a removed identity refuses to be re-created. */
|
|
@@ -43,7 +43,7 @@ export interface RemovalFence {
|
|
|
43
43
|
/**
|
|
44
44
|
* Run an operator-initiated create/adopt with the fence down.
|
|
45
45
|
*
|
|
46
|
-
* `createDevice` / `adoptDevice` do not know the stableId in advance — the
|
|
46
|
+
* `createDevice` / `adoptDevice` / `adoptionAdopt` do not know the stableId in advance — the
|
|
47
47
|
* provider derives it from the hardware — so re-adding a camera that was
|
|
48
48
|
* just deleted cannot lift a single pair. It suspends the whole fence for
|
|
49
49
|
* the duration of the operator's own action instead, which is the one case
|
|
@@ -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-B9Kzw974.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 { Bi as logDestinationCapability, Fs as BaseAddon } from "../../dist-3MQdfUTG.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-B9Kzw974.js");
|
|
7
|
+
const require_device_ca = require("../../device-ca-DNrM4Ao-.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-CRfEC_HP.js");
|
|
10
|
+
const require_constants = require("../../constants-CUAopsxj.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 { Ai as
|
|
2
|
-
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-
|
|
1
|
+
import { Ai as keychainAdminCapability, Dt as KEYCHAIN_RESET_TRIGGER_ACTOR, Fs as BaseAddon, Hc as formatSecretScope, Lc as defineRecordKinds, Ll as EventCategory, Ot as KeychainAuditEntrySchema, ji as keychainCapability, kt as KeychainResetRecordSchema, pl as parseSecretRef, ul as normalizeSecretOwner } from "../../dist-3MQdfUTG.mjs";
|
|
2
|
+
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-BOUTrISA.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-rgL9olef.mjs";
|
|
5
|
+
import { a as MESH_CA_KEY_REF } from "../../constants-qDKQ7NaY.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-B9Kzw974.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 { Fl as errMsg, Fs as BaseAddon, Ll as EventCategory, Mc as createEvent, Qt as RecordingStatusSchema, Wi as mayWriteToLocation, Yt as RECORDING_SOURCE_CAMSTACK_ADDON } from "../../dist-3MQdfUTG.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-B9Kzw974.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-DNrM4Ao-.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 { Bn as buildDeviceSignatureMessage, Bt as PREFERENCES_MAX_VALUE_BYTES, Dr as deviceCredentialsCapability,
|
|
2
|
+
import { Bn as buildDeviceSignatureMessage, Bt as PREFERENCES_MAX_VALUE_BYTES, Dl as userError, Dr as deviceCredentialsCapability, Fs as BaseAddon, G as DEVICE_NONCE_TTL_MS, Gt as PreferenceDeviceIdSchema, H as DEVICE_ENROLLMENT_TTL_MS, Kt as PreferenceNamespaceSchema, Lc as defineRecordKinds, Mn as authProviderCapability, O as CREDENTIAL_TOKEN_AUDIENCE, P as CredentialTokenClaimsSchema, al as makeSecretMarker, gn as TokenScopeSchema, nl as isSecretMarker, qt as PreferenceValueSchema, sn as ScopedTokenSchema, ti as formatDeviceRevoker, un as SsoBridgeClaimsSchema, vn as UserRecordSchema, xi as isCredentialTokenPayload, zn as buildDeviceEnrollmentLink, zo as userManagementCapability } from "../../dist-3MQdfUTG.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-BOUTrISA.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-B9Kzw974.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-BQIE6w3g.js");
|
|
6
|
+
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-Bj_RdJiH.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 { Ct as HUB_MDNS_TXT_KEYS, Fl as errMsg, Fs as BaseAddon, Ii as localNetworkCapability, Ka as resolveHubAddressRoles, Ll as EventCategory, Pc as defineAddonMigrations, Rt as NetworkTunnelStartedDataSchema, Si as isDefaultAppConnectionEndpoint, St as HUB_MDNS_SERVICE_TYPE, Va as resolveAppConnections, Vo as validateCustomAddress, Xa as resolveNotificationTapAddress, Zn as checkRoleAddress, _i as isAppLinkBase, ba as preconditionOf, ho as shortHostname, ma as pickAppLinkHub, x as CAMSTACK_APP_LINK_ORIGIN } from "../../dist-3MQdfUTG.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-DEbxcoVh.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-BzKGywE2.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-B9Kzw974.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 { Bi as logDestinationCapability, Di as isSameAddonId, Fs as BaseAddon, Ic as defineEntryKind, Pc as defineAddonMigrations, Pn as bareAddonId, Zc as isInstanceEnabled, ac as RecordIntegrationInstances, ba as preconditionOf, di as integrationInstancesCapability, nl as isSecretMarker, tl as isSecretFieldView, uc as RevConflictError } from "../../dist-3MQdfUTG.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-B9Kzw974.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 { Fl as errMsg, Fs as BaseAddon, Ha as resolveBucketMs, Ll as EventCategory, Mc as createEvent, Na as reducePoints, Yi as metricsProviderCapability, Zt as ROOT_BUCKET_KEY, _n as UNATTRIBUTED_BUCKET_KEY, ei as foldSnapshotByFunction } from "../../dist-3MQdfUTG.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-B9Kzw974.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 { Fl as errMsg, Fs as BaseAddon, Ll as EventCategory, Lr as enumerateInferenceDevices, co as scoreRuntimes, ga as platformProbeCapability, la as parseAcceleratorFactsJson, zc as emitReadiness } from "../../dist-3MQdfUTG.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-B9Kzw974.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 { Fs as BaseAddon, Ks as InvalidRecordError, Sl as secretViewsOf, hc as UnknownRecordKindError, ja as recordEntriesCapability } from "../../dist-3MQdfUTG.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-B9Kzw974.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 { Fs as BaseAddon, Ll as EventCategory } from "../../dist-3MQdfUTG.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-B9Kzw974.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 {
|
|
1
|
+
import { Do as streamQualityLabel, Fl as errMsg, Fn as batteryCapability, Fs as BaseAddon, Ll as EventCategory, Ml as DeviceFeature, Pl as DeviceType, Pn as bareAddonId, cl as nodePin, qi as memoizePinnedFfmpeg, vo as snapshotCapability, wr as deriveBatteryPresence, y as BatteryStatusSchema } from "../../dist-3MQdfUTG.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-B9Kzw974.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 { Fs as BaseAddon, Qr as filesystemBrowseCapability, To as storageProviderCapability } from "../../dist-3MQdfUTG.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-BvIEU1r1.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-Bu6vjJlR.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-B9Kzw974.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-BvIEU1r1.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-CRfEC_HP.js");
|
|
12
12
|
let zod = require("zod");
|
|
13
13
|
let node_crypto = require("node:crypto");
|
|
14
14
|
let node_fs = require("node:fs");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $s as RECORD_SWEEP_INTERVAL_MS, F as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, Fc as defineCustomActions, Fl as errMsg$1, Fs as BaseAddon, I as DATABASE_SNAPSHOT_SUFFIX, Ko as vectorStoreCapability, Ks as InvalidRecordError, L as DATABASE_SNAPSHOT_TIMEOUT_MS, Ll as EventCategory, Lt as MigrationMetaSchema, Ma as recordsCapability, Mt as MIGRATION_API_V1_METHODS, Nc as customAction, Oc as collectSecretMarkerRefs, Pn as bareAddonId, Qa as resolveRunnerId, R as DATA_STORE_DATABASES, Vs as DeclarationRefusedError, Xi as migrationsCapability, Yn as catalogueIssues, ca as orderMigrations, hc as UnknownRecordKindError, nc as RUNTIME_DEFAULTS, oc as RecordKindDeclarationSchema, pc as TransactRefusedError, qs as NoCallerError, ul as normalizeSecretOwner, vr as dataStoreProviderCapability, xo as storageAdminCapability, yr as databaseSnapshotCapability } from "../../dist-3MQdfUTG.mjs";
|
|
2
2
|
import { r as retiredKeyStoreOf, t as purgeRetiredSettingsKeys } from "../../retired-settings-keys-u6xQA6r7.mjs";
|
|
3
|
-
import { A as callRecords, D as RecordsEngine, E as databaseOfStore, M as controlTargetOf, O as callControl, T as trustResult, _ as rehydrateError, a as WalMaintenance, b as collectTransferables, c as vectorProviderOfOwnedFile, d as callMigrate, f as migrateTargetOf, g as DuplicatePlacementError, h as DatabaseBusyError, j as callVector, k as callData, l as SqliteSettingsBackend, m as CrossDatabaseTransactError, o as createVectorIndex, p as CollectionPlacementError, s as vectorProviderOf, u as HUB_MIGRATIONS, x as isFileHostMessage } from "../../wal-maintenance-
|
|
3
|
+
import { A as callRecords, D as RecordsEngine, E as databaseOfStore, M as controlTargetOf, O as callControl, T as trustResult, _ as rehydrateError, a as WalMaintenance, b as collectTransferables, c as vectorProviderOfOwnedFile, d as callMigrate, f as migrateTargetOf, g as DuplicatePlacementError, h as DatabaseBusyError, j as callVector, k as callData, l as SqliteSettingsBackend, m as CrossDatabaseTransactError, o as createVectorIndex, p as CollectionPlacementError, s as vectorProviderOf, u as HUB_MIGRATIONS, x as isFileHostMessage } from "../../wal-maintenance-Bu6vjJlR.mjs";
|
|
4
4
|
import { r as isSnapshotWorkerMessage } from "../../sqlite-snapshot-protocol-2QaTouWV.mjs";
|
|
5
5
|
import { a as isWorkerMessage, t as WAL_CHECKPOINT_LARGE_PASS_FRAMES } from "../../wal-checkpoint-policy-BahrTtyD.mjs";
|
|
6
|
-
import { a as patchLegacyIntegrationRows, i as legacyIntegrationAddonId, n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows, r as deleteLegacyIntegrationRowKeys } from "../../legacy-integration-rows-door-
|
|
6
|
+
import { a as patchLegacyIntegrationRows, i as legacyIntegrationAddonId, n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows, r as deleteLegacyIntegrationRowKeys } from "../../legacy-integration-rows-door-rgL9olef.mjs";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
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-B9Kzw974.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
let node_crypto = require("node:crypto");
|