@camstack/server 1.2.872 → 1.2.874
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 +17 -0
- package/dist/api/trpc/generated-cap-routers.js +7 -0
- package/dist/core/agent/expired-leaf-renewer.js +67 -0
- package/dist/core/agent/mesh-handshake-wiring.js +48 -0
- package/dist/manual-boot.js +6 -0
- package/package.json +13 -11
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/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 +87 -29
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +87 -29
- 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 +190 -22
- package/system/dist/builtins/system-config/system-config.addon.mjs +189 -23
- 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-BNeKmvyo.js → capture-engine-Cm-Bq2GH.js} +1 -1
- package/system/dist/{capture-engine-BYuDoU5P.mjs → capture-engine-v5nSEyMa.mjs} +1 -1
- package/system/dist/{composition-sources-DQwbBMG1.mjs → composition-sources-BVxOFdMp.mjs} +1 -1
- package/system/dist/{composition-sources-52ZtkEBw.js → composition-sources-DgAdHcEq.js} +1 -1
- package/system/dist/{constants-jwecWQuN.js → constants-CPAYm7Bq.js} +14 -1
- package/system/dist/constants-Di6cOA3l.mjs +27 -0
- package/system/dist/{device-ca-Bkujp9Cx.js → device-ca-CtsnO3ul.js} +1 -1
- package/system/dist/{device-ca-DFi1axk5.mjs → device-ca-DukusHra.mjs} +1 -1
- package/system/dist/{dist-8pvVkKh4.js → dist-AbO-Bmtw.js} +182 -2
- package/system/dist/{dist-B15a2506.mjs → dist-CIUo0MpB.mjs} +177 -3
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-3uLEvGsn.mjs → hub-identity-CMzGT-O8.mjs} +1 -1
- package/system/dist/{hub-identity-C3ijBf-E.js → hub-identity-DyXxu-ZQ.js} +1 -1
- package/system/dist/{hub-mdns-ciao-Ch6HwlRl.mjs → hub-mdns-ciao-BTpy99VT.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-BUL3yLqz.js → hub-mdns-ciao-C6Gkg80T.js} +2 -2
- package/system/dist/index.js +10 -8
- package/system/dist/index.mjs +10 -10
- package/system/dist/kernel/index.d.ts +1 -1
- package/system/dist/kernel/moleculer/mesh-mtls/constants.d.ts +7 -2
- package/system/dist/kernel/moleculer/mesh-mtls/index.d.ts +2 -2
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-ca.d.ts +1 -1
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-peer-transport.d.ts +16 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-peer-verification.d.ts +30 -0
- package/system/dist/kernel/moleculer/mesh-mtls/tls-tcp-transporter.d.ts +31 -0
- package/system/dist/{legacy-integration-rows-door-BtRtvXfK.js → legacy-integration-rows-door-BQztEAgV.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-ChF97F5x.mjs → legacy-integration-rows-door-ChwuaraH.mjs} +1 -1
- package/system/dist/{rename-composition-block-DfsNTQ2H.mjs → rename-composition-block-CEkkKNmw.mjs} +1 -1
- package/system/dist/{rename-composition-block-CHIIBly8.js → rename-composition-block-CnQKQDSg.js} +1 -1
- package/system/dist/{restore-archive-BfaE7Y65.mjs → restore-archive-DROkE3b4.mjs} +1 -1
- package/system/dist/{restore-archive-8o1pcPFB.js → restore-archive-DRYoZ_dn.js} +1 -1
- package/system/dist/{wal-maintenance-Cv6MfFm9.js → wal-maintenance-C81WD-_A.js} +0 -0
- package/system/dist/{wal-maintenance-DxtgYuYM.mjs → wal-maintenance-DYmw2kX7.mjs} +0 -0
- package/system/package.json +1 -1
- package/system/dist/constants-RWobCEGs.mjs +0 -20
|
@@ -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-AbO-Bmtw.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-CnQKQDSg.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");
|
|
@@ -4710,43 +4710,106 @@ async function getWireableFields(deps, input) {
|
|
|
4710
4710
|
//#region src/builtins/device-manager/device-search.ts
|
|
4711
4711
|
/** A shortlist, not a second list. */
|
|
4712
4712
|
var SUGGESTED_MAX = 8;
|
|
4713
|
-
function
|
|
4713
|
+
function unrankedKeyOf(c) {
|
|
4714
4714
|
return [
|
|
4715
4715
|
c.compatible ? 0 : 1,
|
|
4716
|
-
c.device.type,
|
|
4717
4716
|
c.device.name.toLowerCase(),
|
|
4717
|
+
c.device.type,
|
|
4718
4718
|
c.device.id
|
|
4719
4719
|
];
|
|
4720
4720
|
}
|
|
4721
|
-
function
|
|
4721
|
+
function sortKeyOf(c) {
|
|
4722
|
+
const base = unrankedKeyOf(c);
|
|
4723
|
+
if (c.rank === null) return base;
|
|
4724
|
+
return [
|
|
4725
|
+
c.rank,
|
|
4726
|
+
base[0],
|
|
4727
|
+
base[1],
|
|
4728
|
+
base[2],
|
|
4729
|
+
base[3]
|
|
4730
|
+
];
|
|
4731
|
+
}
|
|
4732
|
+
function compareUnranked(a, b) {
|
|
4722
4733
|
if (a[0] !== b[0]) return a[0] - b[0];
|
|
4723
4734
|
if (a[1] !== b[1]) return a[1] < b[1] ? -1 : 1;
|
|
4724
4735
|
if (a[2] !== b[2]) return a[2] < b[2] ? -1 : 1;
|
|
4725
4736
|
return a[3] - b[3];
|
|
4726
4737
|
}
|
|
4738
|
+
function compareKeys(a, b) {
|
|
4739
|
+
if (a.length === 5 && b.length === 5) {
|
|
4740
|
+
if (a[0] !== b[0]) return a[0] - b[0];
|
|
4741
|
+
return compareUnranked([
|
|
4742
|
+
a[1],
|
|
4743
|
+
a[2],
|
|
4744
|
+
a[3],
|
|
4745
|
+
a[4]
|
|
4746
|
+
], [
|
|
4747
|
+
b[1],
|
|
4748
|
+
b[2],
|
|
4749
|
+
b[3],
|
|
4750
|
+
b[4]
|
|
4751
|
+
]);
|
|
4752
|
+
}
|
|
4753
|
+
if (a.length === 4 && b.length === 4) return compareUnranked(a, b);
|
|
4754
|
+
return a.length - b.length;
|
|
4755
|
+
}
|
|
4727
4756
|
function encodeCursor(key) {
|
|
4728
4757
|
return Buffer.from(JSON.stringify(key), "utf8").toString("base64url");
|
|
4729
4758
|
}
|
|
4759
|
+
function unrankedFrom(parsed) {
|
|
4760
|
+
const compatible = parsed[0];
|
|
4761
|
+
const name = parsed[1];
|
|
4762
|
+
const type = parsed[2];
|
|
4763
|
+
const id = parsed[3];
|
|
4764
|
+
if (typeof compatible !== "number" || typeof name !== "string" || typeof type !== "string") return null;
|
|
4765
|
+
if (typeof id !== "number") return null;
|
|
4766
|
+
return [
|
|
4767
|
+
compatible,
|
|
4768
|
+
name,
|
|
4769
|
+
type,
|
|
4770
|
+
id
|
|
4771
|
+
];
|
|
4772
|
+
}
|
|
4730
4773
|
function decodeCursor(cursor) {
|
|
4731
4774
|
try {
|
|
4732
4775
|
const parsed = JSON.parse(Buffer.from(cursor, "base64url").toString("utf8"));
|
|
4733
|
-
if (!Array.isArray(parsed)
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
const
|
|
4737
|
-
const
|
|
4738
|
-
if (typeof
|
|
4739
|
-
if (typeof i !== "number") return null;
|
|
4776
|
+
if (!Array.isArray(parsed)) return null;
|
|
4777
|
+
if (parsed.length === 4) return unrankedFrom(parsed);
|
|
4778
|
+
if (parsed.length !== 5) return null;
|
|
4779
|
+
const rank = parsed[0];
|
|
4780
|
+
const rest = unrankedFrom(parsed.slice(1));
|
|
4781
|
+
if (typeof rank !== "number" || rest === null) return null;
|
|
4740
4782
|
return [
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4783
|
+
rank,
|
|
4784
|
+
rest[0],
|
|
4785
|
+
rest[1],
|
|
4786
|
+
rest[2],
|
|
4787
|
+
rest[3]
|
|
4745
4788
|
];
|
|
4746
4789
|
} catch {
|
|
4747
4790
|
return null;
|
|
4748
4791
|
}
|
|
4749
4792
|
}
|
|
4793
|
+
function parentName(device, nameById) {
|
|
4794
|
+
if (device.parentDeviceId === null) return null;
|
|
4795
|
+
return nameById.get(device.parentDeviceId) ?? null;
|
|
4796
|
+
}
|
|
4797
|
+
/** Label is the device name. The parent name is a keyword, so a container is searchable. */
|
|
4798
|
+
function textRank(text, device, containerName, integrationLabel) {
|
|
4799
|
+
const keywords = [
|
|
4800
|
+
containerName,
|
|
4801
|
+
device.location,
|
|
4802
|
+
device.type,
|
|
4803
|
+
integrationLabel,
|
|
4804
|
+
device.integrationId ?? null,
|
|
4805
|
+
device.stableId
|
|
4806
|
+
].filter((value) => value !== null && value.length > 0);
|
|
4807
|
+
return require_dist.searchRank(text, {
|
|
4808
|
+
label: device.name,
|
|
4809
|
+
keywords,
|
|
4810
|
+
identifiers: [String(device.id), `#${device.id}`]
|
|
4811
|
+
});
|
|
4812
|
+
}
|
|
4750
4813
|
/** `colourTemperature` / `battery_level` → `Colour temperature` / `Battery level`. */
|
|
4751
4814
|
function labelOfPath(path) {
|
|
4752
4815
|
const words = (path.split(".").pop() ?? path).replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim().toLowerCase();
|
|
@@ -4798,6 +4861,9 @@ function applyRequire(candidate, have, req) {
|
|
|
4798
4861
|
async function searchDevices(deps, input) {
|
|
4799
4862
|
const [fleet, labels] = await Promise.all([deps.listDevices(), deps.integrationLabels()]);
|
|
4800
4863
|
const req = requireOf(input);
|
|
4864
|
+
const nameById = new Map(fleet.map((device) => [device.id, device.name]));
|
|
4865
|
+
const text = input.text ?? "";
|
|
4866
|
+
const hasText = text.trim().length > 0;
|
|
4801
4867
|
const candidates = fleet.map((device) => {
|
|
4802
4868
|
const integrationId = device.integrationId ?? null;
|
|
4803
4869
|
const integrationLabel = integrationId === null ? null : labels.get(integrationId) ?? null;
|
|
@@ -4805,21 +4871,13 @@ async function searchDevices(deps, input) {
|
|
|
4805
4871
|
device,
|
|
4806
4872
|
integrationId,
|
|
4807
4873
|
integrationLabel,
|
|
4808
|
-
|
|
4809
|
-
device.name,
|
|
4810
|
-
device.location ?? "",
|
|
4811
|
-
device.type,
|
|
4812
|
-
integrationId ?? "",
|
|
4813
|
-
integrationLabel ?? "",
|
|
4814
|
-
String(device.id)
|
|
4815
|
-
].join("\0").toLowerCase(),
|
|
4874
|
+
rank: hasText ? textRank(text, device, parentName(device, nameById), integrationLabel) : null,
|
|
4816
4875
|
matchedCaps: [],
|
|
4817
4876
|
compatible: !needsBindings(req)
|
|
4818
4877
|
};
|
|
4819
4878
|
});
|
|
4820
4879
|
if (input.ids !== void 0) return resolveIds(deps, input, candidates);
|
|
4821
|
-
const
|
|
4822
|
-
const textPass = needle === "" ? candidates : candidates.filter((c) => c.haystack.includes(needle));
|
|
4880
|
+
const textPass = hasText ? candidates.filter((c) => c.rank !== null) : candidates;
|
|
4823
4881
|
if (needsBindings(req)) {
|
|
4824
4882
|
const bound = await deps.boundCaps(textPass.map((c) => c.device.id));
|
|
4825
4883
|
for (const c of textPass) applyRequire(c, bound.get(c.device.id) ?? [], req);
|
|
@@ -12653,7 +12711,7 @@ var TransitionCorrelator = class {
|
|
|
12653
12711
|
const before = hadBefore ? prior[field] : void 0;
|
|
12654
12712
|
const after = has ? slice[field] : void 0;
|
|
12655
12713
|
if (sameValue(before, after)) continue;
|
|
12656
|
-
claimed = this.attribute(deviceId, capName, field, toTransitionValue(before), toTransitionValue(after), now, claimed,
|
|
12714
|
+
claimed = this.attribute(deviceId, capName, field, toTransitionValue(before), toTransitionValue(after), now, claimed, !hadBefore);
|
|
12657
12715
|
}
|
|
12658
12716
|
}
|
|
12659
12717
|
/** Expire every pending command past its window. Driven by the sender's tick. */
|
|
@@ -12683,13 +12741,13 @@ var TransitionCorrelator = class {
|
|
|
12683
12741
|
for (const key of [...this.deviceRows.keys()]) if (key.startsWith(prefix)) this.deviceRows.delete(key);
|
|
12684
12742
|
for (const key of [...this.pending.keys()]) if (key.startsWith(prefix)) this.pending.delete(key);
|
|
12685
12743
|
}
|
|
12686
|
-
attribute(deviceId, capName, field, from, to, now, claimedByThisWrite,
|
|
12744
|
+
attribute(deviceId, capName, field, from, to, now, claimedByThisWrite, neverHeld) {
|
|
12687
12745
|
const key = this.keyOf(deviceId, capName);
|
|
12688
12746
|
const ring = this.pending.get(key);
|
|
12689
12747
|
const live = (ring ?? []).filter((e) => !e.settled && e.expiresAt > now);
|
|
12690
12748
|
const matched = [...live].reverse().find((e) => e.effect !== null && e.effect.field === field && sameValue(e.effect.value, to)) ?? claimedByThisWrite ?? [...live].reverse().find((e) => e.effect === null);
|
|
12691
12749
|
if (matched === void 0) {
|
|
12692
|
-
if (
|
|
12750
|
+
if (neverHeld) return void 0;
|
|
12693
12751
|
this.emitDevice(deviceId, capName, field, from, to, now);
|
|
12694
12752
|
return;
|
|
12695
12753
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Al as vocabActionIdFor, Ar as deviceManagerCapability, Cr as defineExtensionSlotProvider, Dl as toSecretFieldView, Ec as auditedFields, Fl as DeviceRole, Fr as deviceStatusCapability, Hn as buildStreamParamsConfigSchema, Il as DeviceType$1, J as DEVICE_TEMPLATE_FILTERS, Kn as canonicalIconKey, Ll as errMsg$1, Ls as BaseAddon, Mc as commandEffect, Ni as legacyAutoLinkIds, Nt as MINUTES_PER_DAY, Ol as transformSecretWrite, Or as deviceExtensionCapability, Pl as DeviceFeature, Pr as deviceStateCapability, Q as DEVICE_TEMPLATE_VALUES_CAP, Ri as locationIconKey, Rr as enumerateItemArrayFields, S as CAP_NAMES_WITH_STATUS, Sl as secretTreeFromPaths, Ti as isKernelDerivedFeature, Tl as sleep$2, Ts as implementedMethodsOf$1, Uc as expandCapMethods$1, Wr as expandContainer, X as DEVICE_TEMPLATE_MAX_OUTPUT, Xn as checkDeviceAlias, Y as DEVICE_TEMPLATE_MAX_LENGTH, Yc as isCommand$1, Zc as isDeviceConfigCap, _t as FieldClaimModeSchema, aa as normalizeUnit, al as isSecretMarkerLike, ao as runtimeStatePolicyFor, at as DiscoveryProposalBodySchema, b as CAMERA_SWITCH_ORDER, ds as capAppliesToDeviceKind, el as isKeychainStoredField, fa as parseStreamParamsFormPatch, gr as createDeviceExtensionProvider, il as isSecretMarker, in as STREAM_PROFILE_META, io as runtimeFieldUnit, it as DeviceTombstoneSchema, j as ConditionMirror, ja as reconcileReportedFeatures, jc as collectZodSecretPaths$1, jr as deviceOffersActions, kl as userError, lt as ExportNameRefusedError, nl as isSecretClear, oi as generateDeviceAlias, pc as SECRET_CLEAR, po as settleDeviceFeatures, qr as extractSourceInfoFromMetadata, ri as formatMinutes, rt as DeviceStatusSchema, s as ALL_CAPABILITY_DEFINITIONS, to as resolveTemplateRef, uo as searchRank, us as canonicalStoredDeviceType, vt as FieldClaimSchema, yc as WELL_KNOWN_TAB_MAP, yl as resolveSecretMarkers, yo as siteZoneKey, z as DAY_NAMES, zc as defineRecordKinds, zl as EventCategory$1, zr as enumerateSchemaFields } from "../../dist-CIUo0MpB.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-CEkkKNmw.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";
|
|
@@ -4704,43 +4704,106 @@ async function getWireableFields(deps, input) {
|
|
|
4704
4704
|
//#region src/builtins/device-manager/device-search.ts
|
|
4705
4705
|
/** A shortlist, not a second list. */
|
|
4706
4706
|
var SUGGESTED_MAX = 8;
|
|
4707
|
-
function
|
|
4707
|
+
function unrankedKeyOf(c) {
|
|
4708
4708
|
return [
|
|
4709
4709
|
c.compatible ? 0 : 1,
|
|
4710
|
-
c.device.type,
|
|
4711
4710
|
c.device.name.toLowerCase(),
|
|
4711
|
+
c.device.type,
|
|
4712
4712
|
c.device.id
|
|
4713
4713
|
];
|
|
4714
4714
|
}
|
|
4715
|
-
function
|
|
4715
|
+
function sortKeyOf(c) {
|
|
4716
|
+
const base = unrankedKeyOf(c);
|
|
4717
|
+
if (c.rank === null) return base;
|
|
4718
|
+
return [
|
|
4719
|
+
c.rank,
|
|
4720
|
+
base[0],
|
|
4721
|
+
base[1],
|
|
4722
|
+
base[2],
|
|
4723
|
+
base[3]
|
|
4724
|
+
];
|
|
4725
|
+
}
|
|
4726
|
+
function compareUnranked(a, b) {
|
|
4716
4727
|
if (a[0] !== b[0]) return a[0] - b[0];
|
|
4717
4728
|
if (a[1] !== b[1]) return a[1] < b[1] ? -1 : 1;
|
|
4718
4729
|
if (a[2] !== b[2]) return a[2] < b[2] ? -1 : 1;
|
|
4719
4730
|
return a[3] - b[3];
|
|
4720
4731
|
}
|
|
4732
|
+
function compareKeys(a, b) {
|
|
4733
|
+
if (a.length === 5 && b.length === 5) {
|
|
4734
|
+
if (a[0] !== b[0]) return a[0] - b[0];
|
|
4735
|
+
return compareUnranked([
|
|
4736
|
+
a[1],
|
|
4737
|
+
a[2],
|
|
4738
|
+
a[3],
|
|
4739
|
+
a[4]
|
|
4740
|
+
], [
|
|
4741
|
+
b[1],
|
|
4742
|
+
b[2],
|
|
4743
|
+
b[3],
|
|
4744
|
+
b[4]
|
|
4745
|
+
]);
|
|
4746
|
+
}
|
|
4747
|
+
if (a.length === 4 && b.length === 4) return compareUnranked(a, b);
|
|
4748
|
+
return a.length - b.length;
|
|
4749
|
+
}
|
|
4721
4750
|
function encodeCursor(key) {
|
|
4722
4751
|
return Buffer.from(JSON.stringify(key), "utf8").toString("base64url");
|
|
4723
4752
|
}
|
|
4753
|
+
function unrankedFrom(parsed) {
|
|
4754
|
+
const compatible = parsed[0];
|
|
4755
|
+
const name = parsed[1];
|
|
4756
|
+
const type = parsed[2];
|
|
4757
|
+
const id = parsed[3];
|
|
4758
|
+
if (typeof compatible !== "number" || typeof name !== "string" || typeof type !== "string") return null;
|
|
4759
|
+
if (typeof id !== "number") return null;
|
|
4760
|
+
return [
|
|
4761
|
+
compatible,
|
|
4762
|
+
name,
|
|
4763
|
+
type,
|
|
4764
|
+
id
|
|
4765
|
+
];
|
|
4766
|
+
}
|
|
4724
4767
|
function decodeCursor(cursor) {
|
|
4725
4768
|
try {
|
|
4726
4769
|
const parsed = JSON.parse(Buffer.from(cursor, "base64url").toString("utf8"));
|
|
4727
|
-
if (!Array.isArray(parsed)
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
const
|
|
4731
|
-
const
|
|
4732
|
-
if (typeof
|
|
4733
|
-
if (typeof i !== "number") return null;
|
|
4770
|
+
if (!Array.isArray(parsed)) return null;
|
|
4771
|
+
if (parsed.length === 4) return unrankedFrom(parsed);
|
|
4772
|
+
if (parsed.length !== 5) return null;
|
|
4773
|
+
const rank = parsed[0];
|
|
4774
|
+
const rest = unrankedFrom(parsed.slice(1));
|
|
4775
|
+
if (typeof rank !== "number" || rest === null) return null;
|
|
4734
4776
|
return [
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4777
|
+
rank,
|
|
4778
|
+
rest[0],
|
|
4779
|
+
rest[1],
|
|
4780
|
+
rest[2],
|
|
4781
|
+
rest[3]
|
|
4739
4782
|
];
|
|
4740
4783
|
} catch {
|
|
4741
4784
|
return null;
|
|
4742
4785
|
}
|
|
4743
4786
|
}
|
|
4787
|
+
function parentName(device, nameById) {
|
|
4788
|
+
if (device.parentDeviceId === null) return null;
|
|
4789
|
+
return nameById.get(device.parentDeviceId) ?? null;
|
|
4790
|
+
}
|
|
4791
|
+
/** Label is the device name. The parent name is a keyword, so a container is searchable. */
|
|
4792
|
+
function textRank(text, device, containerName, integrationLabel) {
|
|
4793
|
+
const keywords = [
|
|
4794
|
+
containerName,
|
|
4795
|
+
device.location,
|
|
4796
|
+
device.type,
|
|
4797
|
+
integrationLabel,
|
|
4798
|
+
device.integrationId ?? null,
|
|
4799
|
+
device.stableId
|
|
4800
|
+
].filter((value) => value !== null && value.length > 0);
|
|
4801
|
+
return searchRank(text, {
|
|
4802
|
+
label: device.name,
|
|
4803
|
+
keywords,
|
|
4804
|
+
identifiers: [String(device.id), `#${device.id}`]
|
|
4805
|
+
});
|
|
4806
|
+
}
|
|
4744
4807
|
/** `colourTemperature` / `battery_level` → `Colour temperature` / `Battery level`. */
|
|
4745
4808
|
function labelOfPath(path) {
|
|
4746
4809
|
const words = (path.split(".").pop() ?? path).replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim().toLowerCase();
|
|
@@ -4792,6 +4855,9 @@ function applyRequire(candidate, have, req) {
|
|
|
4792
4855
|
async function searchDevices(deps, input) {
|
|
4793
4856
|
const [fleet, labels] = await Promise.all([deps.listDevices(), deps.integrationLabels()]);
|
|
4794
4857
|
const req = requireOf(input);
|
|
4858
|
+
const nameById = new Map(fleet.map((device) => [device.id, device.name]));
|
|
4859
|
+
const text = input.text ?? "";
|
|
4860
|
+
const hasText = text.trim().length > 0;
|
|
4795
4861
|
const candidates = fleet.map((device) => {
|
|
4796
4862
|
const integrationId = device.integrationId ?? null;
|
|
4797
4863
|
const integrationLabel = integrationId === null ? null : labels.get(integrationId) ?? null;
|
|
@@ -4799,21 +4865,13 @@ async function searchDevices(deps, input) {
|
|
|
4799
4865
|
device,
|
|
4800
4866
|
integrationId,
|
|
4801
4867
|
integrationLabel,
|
|
4802
|
-
|
|
4803
|
-
device.name,
|
|
4804
|
-
device.location ?? "",
|
|
4805
|
-
device.type,
|
|
4806
|
-
integrationId ?? "",
|
|
4807
|
-
integrationLabel ?? "",
|
|
4808
|
-
String(device.id)
|
|
4809
|
-
].join("\0").toLowerCase(),
|
|
4868
|
+
rank: hasText ? textRank(text, device, parentName(device, nameById), integrationLabel) : null,
|
|
4810
4869
|
matchedCaps: [],
|
|
4811
4870
|
compatible: !needsBindings(req)
|
|
4812
4871
|
};
|
|
4813
4872
|
});
|
|
4814
4873
|
if (input.ids !== void 0) return resolveIds(deps, input, candidates);
|
|
4815
|
-
const
|
|
4816
|
-
const textPass = needle === "" ? candidates : candidates.filter((c) => c.haystack.includes(needle));
|
|
4874
|
+
const textPass = hasText ? candidates.filter((c) => c.rank !== null) : candidates;
|
|
4817
4875
|
if (needsBindings(req)) {
|
|
4818
4876
|
const bound = await deps.boundCaps(textPass.map((c) => c.device.id));
|
|
4819
4877
|
for (const c of textPass) applyRequire(c, bound.get(c.device.id) ?? [], req);
|
|
@@ -12646,7 +12704,7 @@ var TransitionCorrelator = class {
|
|
|
12646
12704
|
const before = hadBefore ? prior[field] : void 0;
|
|
12647
12705
|
const after = has ? slice[field] : void 0;
|
|
12648
12706
|
if (sameValue(before, after)) continue;
|
|
12649
|
-
claimed = this.attribute(deviceId, capName, field, toTransitionValue(before), toTransitionValue(after), now, claimed,
|
|
12707
|
+
claimed = this.attribute(deviceId, capName, field, toTransitionValue(before), toTransitionValue(after), now, claimed, !hadBefore);
|
|
12650
12708
|
}
|
|
12651
12709
|
}
|
|
12652
12710
|
/** Expire every pending command past its window. Driven by the sender's tick. */
|
|
@@ -12676,13 +12734,13 @@ var TransitionCorrelator = class {
|
|
|
12676
12734
|
for (const key of [...this.deviceRows.keys()]) if (key.startsWith(prefix)) this.deviceRows.delete(key);
|
|
12677
12735
|
for (const key of [...this.pending.keys()]) if (key.startsWith(prefix)) this.pending.delete(key);
|
|
12678
12736
|
}
|
|
12679
|
-
attribute(deviceId, capName, field, from, to, now, claimedByThisWrite,
|
|
12737
|
+
attribute(deviceId, capName, field, from, to, now, claimedByThisWrite, neverHeld) {
|
|
12680
12738
|
const key = this.keyOf(deviceId, capName);
|
|
12681
12739
|
const ring = this.pending.get(key);
|
|
12682
12740
|
const live = (ring ?? []).filter((e) => !e.settled && e.expiresAt > now);
|
|
12683
12741
|
const matched = [...live].reverse().find((e) => e.effect !== null && e.effect.field === field && sameValue(e.effect.value, to)) ?? claimedByThisWrite ?? [...live].reverse().find((e) => e.effect === null);
|
|
12684
12742
|
if (matched === void 0) {
|
|
12685
|
-
if (
|
|
12743
|
+
if (neverHeld) return void 0;
|
|
12686
12744
|
this.emitDevice(deviceId, capName, field, from, to, now);
|
|
12687
12745
|
return;
|
|
12688
12746
|
}
|
|
@@ -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-AbO-Bmtw.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 { Ls as BaseAddon, Vi as logDestinationCapability } from "../../dist-CIUo0MpB.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-AbO-Bmtw.js");
|
|
7
|
+
const require_device_ca = require("../../device-ca-CtsnO3ul.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-BQztEAgV.js");
|
|
10
|
+
const require_constants = require("../../constants-CPAYm7Bq.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 { Dt as KEYCHAIN_RESET_TRIGGER_ACTOR,
|
|
2
|
-
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-
|
|
1
|
+
import { Dt as KEYCHAIN_RESET_TRIGGER_ACTOR, Ls as BaseAddon, Mi as keychainCapability, Ot as KeychainAuditEntrySchema, Wc as formatSecretScope, fl as normalizeSecretOwner, hl as parseSecretRef, ji as keychainAdminCapability, kt as KeychainResetRecordSchema, zc as defineRecordKinds, zl as EventCategory } from "../../dist-CIUo0MpB.mjs";
|
|
2
|
+
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-DukusHra.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-ChwuaraH.mjs";
|
|
5
|
+
import { a as MESH_CA_KEY_REF } from "../../constants-Di6cOA3l.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-AbO-Bmtw.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 { Gi as mayWriteToLocation,
|
|
1
|
+
import { Gi as mayWriteToLocation, Ll as errMsg, Ls as BaseAddon, Pc as createEvent, Qt as RecordingStatusSchema, Yt as RECORDING_SOURCE_CAMSTACK_ADDON, zl as EventCategory } from "../../dist-CIUo0MpB.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-AbO-Bmtw.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-CtsnO3ul.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,
|
|
2
|
+
import { Bn as buildDeviceSignatureMessage, Bt as PREFERENCES_MAX_VALUE_BYTES, Dr as deviceCredentialsCapability, G as DEVICE_NONCE_TTL_MS, Gt as PreferenceDeviceIdSchema, H as DEVICE_ENROLLMENT_TTL_MS, Kt as PreferenceNamespaceSchema, Ls as BaseAddon, Mn as authProviderCapability, O as CREDENTIAL_TOKEN_AUDIENCE, P as CredentialTokenClaimsSchema, Si as isCredentialTokenPayload, Vo as userManagementCapability, gn as TokenScopeSchema, il as isSecretMarker, kl as userError, ni as formatDeviceRevoker, qt as PreferenceValueSchema, sl as makeSecretMarker, sn as ScopedTokenSchema, un as SsoBridgeClaimsSchema, vn as UserRecordSchema, zc as defineRecordKinds, zn as buildDeviceEnrollmentLink } from "../../dist-CIUo0MpB.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-DukusHra.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-AbO-Bmtw.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-DyXxu-ZQ.js");
|
|
6
|
+
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-C6Gkg80T.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 { Ci as isDefaultAppConnectionEndpoint, Ct as HUB_MDNS_TXT_KEYS,
|
|
1
|
+
import { Ci as isDefaultAppConnectionEndpoint, Ct as HUB_MDNS_TXT_KEYS, Ha as resolveAppConnections, Ic as defineAddonMigrations, Li as localNetworkCapability, Ll as errMsg, Ls as BaseAddon, Rt as NetworkTunnelStartedDataSchema, St as HUB_MDNS_SERVICE_TYPE, Uo as validateCustomAddress, Za as resolveNotificationTapAddress, Zn as checkRoleAddress, _o as shortHostname, ha as pickAppLinkHub, qa as resolveHubAddressRoles, vi as isAppLinkBase, x as CAMSTACK_APP_LINK_ORIGIN, xa as preconditionOf, zl as EventCategory } from "../../dist-CIUo0MpB.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-CMzGT-O8.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-BTpy99VT.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-AbO-Bmtw.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 { $c as isInstanceEnabled, Ic as defineAddonMigrations, Ls as BaseAddon, Oi as isSameAddonId, Pn as bareAddonId, Rc as defineEntryKind, Vi as logDestinationCapability, fc as RevConflictError, fi as integrationInstancesCapability, il as isSecretMarker, rl as isSecretFieldView, sc as RecordIntegrationInstances, xa as preconditionOf } from "../../dist-CIUo0MpB.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-AbO-Bmtw.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 { Ll as errMsg, Ls as BaseAddon, Pa as reducePoints, Pc as createEvent, Ua as resolveBucketMs, Xi as metricsProviderCapability, Zt as ROOT_BUCKET_KEY, _n as UNATTRIBUTED_BUCKET_KEY, ti as foldSnapshotByFunction, zl as EventCategory } from "../../dist-CIUo0MpB.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-AbO-Bmtw.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 { Ll as errMsg, Lr as enumerateInferenceDevices, Ls as BaseAddon, Vc as emitReadiness, _a as platformProbeCapability, lo as scoreRuntimes, ua as parseAcceleratorFactsJson, zl as EventCategory } from "../../dist-CIUo0MpB.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-AbO-Bmtw.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 { Js as InvalidRecordError, Ls as BaseAddon, Ma as recordEntriesCapability, _c as UnknownRecordKindError, wl as secretViewsOf } from "../../dist-CIUo0MpB.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-AbO-Bmtw.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 { Ls as BaseAddon, zl as EventCategory } from "../../dist-CIUo0MpB.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-AbO-Bmtw.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 { Fn as batteryCapability, Il as DeviceType, Ji as memoizePinnedFfmpeg, Ll as errMsg, Ls as BaseAddon, Pl as DeviceFeature, Pn as bareAddonId, bo as snapshotCapability, ko as streamQualityLabel, ul as nodePin, wr as deriveBatteryPresence, y as BatteryStatusSchema, zl as EventCategory } from "../../dist-CIUo0MpB.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";
|