@camstack/server 1.2.733 → 1.2.734
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/core/agent/node-removal-hooks.js +25 -0
- package/dist/manual-boot.js +11 -0
- package/package.json +4 -6
- package/system/dist/addon-runner.js +94 -17
- package/system/dist/addon-runner.mjs +95 -18
- package/system/dist/{agent-https-v5uyVgpk.js → agent-https-DEmi-YQ_.js} +1 -1
- package/system/dist/{agent-https-D3dptveB.mjs → agent-https-DGp4gFzH.mjs} +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +3 -3
- package/system/dist/builtins/composer/composer.addon.mjs +3 -3
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +79 -8
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +90 -21
- package/system/dist/builtins/core-blocks/index.mjs +1 -1
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +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 +3 -3
- package/system/dist/builtins/keychain/index.mjs +3 -3
- 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 +91 -21
- package/system/dist/builtins/local-network/local-network.addon.mjs +91 -21
- package/system/dist/builtins/local-network/scan/dns-wire.d.ts +29 -0
- 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 +2 -2
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2 -2
- 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/{composition-sources-j_bFq7Tx.js → composition-sources-DfyoPtMe.js} +1 -1
- package/system/dist/{composition-sources-Dnyu7-1p.mjs → composition-sources-wVMwuZ-r.mjs} +1 -1
- package/system/dist/{constants-GDBin8zB.mjs → constants-C8fjD4YU.mjs} +1 -1
- package/system/dist/{constants-C6zJ_38f.js → constants-CavIW3ee.js} +1 -1
- package/system/dist/{device-ca-Bpqrad00.mjs → device-ca-B1vN9ZRB.mjs} +1 -1
- package/system/dist/{device-ca-CV9QZvoy.js → device-ca-b_fSvUlI.js} +1 -1
- package/system/dist/{dist-CwYYyGAB.js → dist-DDl6NKUe.js} +56 -1
- package/system/dist/{dist-DcHvuBfD.mjs → dist-SXRVvbkS.mjs} +51 -2
- package/system/dist/{dns-wire-CqgMi_uB.js → dns-wire-B1BvF9Ao.js} +78 -10
- package/system/dist/{dns-wire-DO56tOHL.mjs → dns-wire-Dm3H_7ST.mjs} +55 -11
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-DNLnbJNG.js → hub-mdns-ciao-95JXbLd5.js} +2 -2
- package/system/dist/{hub-mdns-ciao-D2sU6sKd.mjs → hub-mdns-ciao-euMLdIPi.mjs} +2 -2
- package/system/dist/index.d.ts +1 -0
- package/system/dist/index.js +45 -19
- package/system/dist/index.mjs +46 -21
- package/system/dist/kernel/addon-settings-store.d.ts +25 -0
- package/system/dist/kernel/device-settings-resolver.d.ts +27 -0
- package/system/dist/kernel/moleculer/runner-device-settings.d.ts +2 -0
- package/system/dist/kernel/settings-door-view.d.ts +5 -1
- package/system/dist/kernel/settings-view-types.d.ts +7 -1
- package/system/dist/migrations/hub/2026-11-02-addon-settings-node-id.d.ts +3 -0
- package/system/dist/migrations/hub/index.d.ts +3 -4
- package/system/dist/{restore-archive-xTqhDFkW.js → restore-archive-CMkK7SeP.js} +1 -1
- package/system/dist/{restore-archive-BGK6EnYj.mjs → restore-archive-DbtbDgPC.mjs} +1 -1
- package/system/dist/{retention-CXu8PB2L.mjs → retention-BGUmx4FD.mjs} +1 -1
- package/system/dist/{retention-gQ3GIUA3.js → retention-DI_dDceD.js} +1 -1
- package/system/dist/{wal-maintenance-Hwzm3DCe.js → wal-maintenance-BaPMwUtL.js} +0 -0
- package/system/dist/{wal-maintenance-D7XmFaUD.mjs → wal-maintenance-CgHJ7XTw.mjs} +0 -0
- package/system/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("../../dist-
|
|
4
|
-
const require_dns_wire = require("../../dns-wire-
|
|
5
|
-
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-
|
|
3
|
+
const require_dist = require("../../dist-DDl6NKUe.js");
|
|
4
|
+
const require_dns_wire = require("../../dns-wire-B1BvF9Ao.js");
|
|
5
|
+
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-95JXbLd5.js");
|
|
6
6
|
let zod = require("zod");
|
|
7
7
|
let node_net = require("node:net");
|
|
8
8
|
let node_os = require("node:os");
|
|
@@ -716,6 +716,8 @@ var SCAN_REQUEST_TIMEOUT_MS = 1200;
|
|
|
716
716
|
/** Wi-Fi boards drop or late-answer one multicast query: send it three times, listen to the end. */
|
|
717
717
|
var MULTICAST_RESEND_AT_MS = [1200, 2500];
|
|
718
718
|
var MULTICAST_LISTEN_MS = 4500;
|
|
719
|
+
/** One follow-up question on a link (SRV+TXT, then A): sent once, listened to briefly. */
|
|
720
|
+
var FOLLOW_UP_LISTEN_MS = 1500;
|
|
719
721
|
/** Unicast DNS-SD probes to extra subnets get one retry. */
|
|
720
722
|
var UNICAST_RESEND_AT_MS = [900];
|
|
721
723
|
var UNICAST_LISTEN_MS = 2e3;
|
|
@@ -799,22 +801,17 @@ function hubLinks(interfaces) {
|
|
|
799
801
|
function instanceLabel(instance) {
|
|
800
802
|
return instance.split("._")[0] ?? instance;
|
|
801
803
|
}
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
* query alone never found it. A bind or membership failure is a named skip and the
|
|
807
|
-
* link falls back to the QU query, which still finds same-link devices.
|
|
808
|
-
*/
|
|
809
|
-
async function exchangeOnLink(deps, link, groupQuery, fallbackQuery) {
|
|
804
|
+
async function exchangeOnLink(deps, link, groupQuery, fallbackQuery, timing = {
|
|
805
|
+
resendAtMs: MULTICAST_RESEND_AT_MS,
|
|
806
|
+
listenMs: MULTICAST_LISTEN_MS
|
|
807
|
+
}) {
|
|
810
808
|
const request = {
|
|
811
809
|
targets: [{
|
|
812
810
|
host: require_dns_wire.MDNS_GROUP,
|
|
813
811
|
port: require_dns_wire.MDNS_PORT
|
|
814
812
|
}],
|
|
815
813
|
localAddress: link.address,
|
|
816
|
-
|
|
817
|
-
listenMs: MULTICAST_LISTEN_MS
|
|
814
|
+
...timing
|
|
818
815
|
};
|
|
819
816
|
try {
|
|
820
817
|
return await deps.io.udpExchange({
|
|
@@ -859,21 +856,92 @@ async function runMdns(deps, entries, subnets, c) {
|
|
|
859
856
|
listenMs: UNICAST_LISTEN_MS
|
|
860
857
|
}));
|
|
861
858
|
}
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
859
|
+
const records = require_dns_wire.emptyMdnsRecords();
|
|
860
|
+
for (const reply of dedupeReplies(replies)) require_dns_wire.mergeMdnsRecords(records, require_dns_wire.parseMdnsRecords(reply.data));
|
|
861
|
+
const wanted = wantedInstances(entries, records);
|
|
862
|
+
await followUp(deps, links, records, wanted, "srv", c);
|
|
863
|
+
await followUp(deps, links, records, wanted, "a", c);
|
|
864
|
+
const unresolved = /* @__PURE__ */ new Map();
|
|
865
|
+
for (const { ptr, label, entry } of wanted) {
|
|
866
|
+
const service = records.srv.get(ptr.instance.toLowerCase());
|
|
867
|
+
if (service === void 0) {
|
|
868
|
+
unresolved.set(ptr.instance, "srv-unresolved");
|
|
869
|
+
continue;
|
|
870
|
+
}
|
|
871
|
+
const host = records.addresses.get(service.target.toLowerCase());
|
|
872
|
+
if (host === void 0) {
|
|
873
|
+
unresolved.set(ptr.instance, "a-unresolved");
|
|
874
|
+
continue;
|
|
875
|
+
}
|
|
866
876
|
emit(c, entry, {
|
|
867
|
-
host
|
|
877
|
+
host,
|
|
868
878
|
port: service.port,
|
|
869
879
|
mdns: {
|
|
870
880
|
instance: label,
|
|
871
|
-
host: service.
|
|
881
|
+
host: service.target,
|
|
872
882
|
port: service.port,
|
|
873
|
-
txt:
|
|
883
|
+
txt: records.txt.get(ptr.instance.toLowerCase()) ?? {}
|
|
874
884
|
}
|
|
875
885
|
});
|
|
876
886
|
}
|
|
887
|
+
for (const [instance, reason] of unresolved) {
|
|
888
|
+
c.mdnsUnresolved += 1;
|
|
889
|
+
deps.logger.info("local-network: mdns instance not resolved, left out of the hits", { meta: {
|
|
890
|
+
instance: instanceLabel(instance),
|
|
891
|
+
reason
|
|
892
|
+
} });
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
/** The PTR answers some request asked for: its type and its instance pattern both match. */
|
|
896
|
+
function wantedInstances(entries, records) {
|
|
897
|
+
const out = [];
|
|
898
|
+
for (const ptr of records.ptrs) for (const entry of entries) {
|
|
899
|
+
if (require_dns_wire.normalizeServiceType(entry.mode.serviceType) !== require_dns_wire.normalizeServiceType(ptr.serviceType)) continue;
|
|
900
|
+
const label = instanceLabel(ptr.instance);
|
|
901
|
+
if (entry.mode.instancePattern !== void 0 && !matches(entry.mode.instancePattern, label)) continue;
|
|
902
|
+
out.push({
|
|
903
|
+
ptr,
|
|
904
|
+
label,
|
|
905
|
+
entry
|
|
906
|
+
});
|
|
907
|
+
}
|
|
908
|
+
return out;
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* One follow-up question per link for what the PTR answer left out: SRV+TXT of the
|
|
912
|
+
* instances without an SRV, or the A record of the SRV targets without an address.
|
|
913
|
+
* The answers are folded in whichever packet carries them.
|
|
914
|
+
*/
|
|
915
|
+
async function followUp(deps, links, records, wanted, stage, c) {
|
|
916
|
+
const questions = /* @__PURE__ */ new Map();
|
|
917
|
+
for (const { ptr } of wanted) {
|
|
918
|
+
const service = records.srv.get(ptr.instance.toLowerCase());
|
|
919
|
+
if (stage === "srv" && service === void 0) {
|
|
920
|
+
questions.set(`SRV ${ptr.instance}`, {
|
|
921
|
+
name: ptr.instance,
|
|
922
|
+
type: "SRV"
|
|
923
|
+
});
|
|
924
|
+
questions.set(`TXT ${ptr.instance}`, {
|
|
925
|
+
name: ptr.instance,
|
|
926
|
+
type: "TXT"
|
|
927
|
+
});
|
|
928
|
+
} else if (stage === "a" && service !== void 0 && !records.addresses.has(service.target.toLowerCase())) questions.set(`A ${service.target}`, {
|
|
929
|
+
name: service.target,
|
|
930
|
+
type: "A"
|
|
931
|
+
});
|
|
932
|
+
}
|
|
933
|
+
if (questions.size === 0) return;
|
|
934
|
+
const list = [...questions.values()];
|
|
935
|
+
const groupQuery = require_dns_wire.buildRecordQuery(list);
|
|
936
|
+
const fallbackQuery = require_dns_wire.buildRecordQuery(list, { unicastResponse: true });
|
|
937
|
+
for (const link of links) {
|
|
938
|
+
bucket(c, "mdns").probed += 1;
|
|
939
|
+
const replies = await exchangeOnLink(deps, link, groupQuery, fallbackQuery, {
|
|
940
|
+
resendAtMs: [],
|
|
941
|
+
listenMs: FOLLOW_UP_LISTEN_MS
|
|
942
|
+
});
|
|
943
|
+
for (const reply of replies) require_dns_wire.mergeMdnsRecords(records, require_dns_wire.parseMdnsRecords(reply.data));
|
|
944
|
+
}
|
|
877
945
|
}
|
|
878
946
|
function matches(pattern, text) {
|
|
879
947
|
try {
|
|
@@ -1116,7 +1184,8 @@ async function runScan(deps, input) {
|
|
|
1116
1184
|
const c = {
|
|
1117
1185
|
hits: [],
|
|
1118
1186
|
errors: [],
|
|
1119
|
-
stats: /* @__PURE__ */ new Map()
|
|
1187
|
+
stats: /* @__PURE__ */ new Map(),
|
|
1188
|
+
mdnsUnresolved: 0
|
|
1120
1189
|
};
|
|
1121
1190
|
await Promise.all([
|
|
1122
1191
|
guarded(c, "mdns", () => runMdns(deps, entriesOf(input.requests, "mdns"), subnets, c)),
|
|
@@ -1138,6 +1207,7 @@ async function runScan(deps, input) {
|
|
|
1138
1207
|
hostsProbed: stats.hostsProbed,
|
|
1139
1208
|
hits: stats.hits,
|
|
1140
1209
|
timeouts: stats.timeouts,
|
|
1210
|
+
mdnsUnresolved: c.mdnsUnresolved,
|
|
1141
1211
|
errors: c.errors.length,
|
|
1142
1212
|
byMode,
|
|
1143
1213
|
hitsBySubnet: hitsBySubnet(subnets, c.hits),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ar as isAppLinkBase, Dn as checkRoleAddress, Et as NetworkTunnelStartedDataSchema, Gi as resolveNotificationTapAddress,
|
|
2
|
-
import { a as parseMdnsMessage, i as
|
|
3
|
-
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-
|
|
1
|
+
import { Ar as isAppLinkBase, Dn as checkRoleAddress, Et as NetworkTunnelStartedDataSchema, Gi as resolveNotificationTapAddress, Js as EventCategory, Kr as localNetworkCapability, Li as resolveAppConnections, Pr as isDefaultAppConnectionEndpoint, Vi as resolveHubAddressRoles, _ as CAMSTACK_APP_LINK_ORIGIN, do as BaseAddon, dt as HUB_MDNS_TXT_KEYS, ia as shortHostname, qs as errMsg, ut as HUB_MDNS_SERVICE_TYPE, wa as validateCustomAddress, xi as pickAppLinkHub } from "../../dist-SXRVvbkS.mjs";
|
|
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 { 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-euMLdIPi.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { isIP } from "node:net";
|
|
6
6
|
import * as os$1 from "node:os";
|
|
@@ -711,6 +711,8 @@ var SCAN_REQUEST_TIMEOUT_MS = 1200;
|
|
|
711
711
|
/** Wi-Fi boards drop or late-answer one multicast query: send it three times, listen to the end. */
|
|
712
712
|
var MULTICAST_RESEND_AT_MS = [1200, 2500];
|
|
713
713
|
var MULTICAST_LISTEN_MS = 4500;
|
|
714
|
+
/** One follow-up question on a link (SRV+TXT, then A): sent once, listened to briefly. */
|
|
715
|
+
var FOLLOW_UP_LISTEN_MS = 1500;
|
|
714
716
|
/** Unicast DNS-SD probes to extra subnets get one retry. */
|
|
715
717
|
var UNICAST_RESEND_AT_MS = [900];
|
|
716
718
|
var UNICAST_LISTEN_MS = 2e3;
|
|
@@ -794,22 +796,17 @@ function hubLinks(interfaces) {
|
|
|
794
796
|
function instanceLabel(instance) {
|
|
795
797
|
return instance.split("._")[0] ?? instance;
|
|
796
798
|
}
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
* query alone never found it. A bind or membership failure is a named skip and the
|
|
802
|
-
* link falls back to the QU query, which still finds same-link devices.
|
|
803
|
-
*/
|
|
804
|
-
async function exchangeOnLink(deps, link, groupQuery, fallbackQuery) {
|
|
799
|
+
async function exchangeOnLink(deps, link, groupQuery, fallbackQuery, timing = {
|
|
800
|
+
resendAtMs: MULTICAST_RESEND_AT_MS,
|
|
801
|
+
listenMs: MULTICAST_LISTEN_MS
|
|
802
|
+
}) {
|
|
805
803
|
const request = {
|
|
806
804
|
targets: [{
|
|
807
805
|
host: MDNS_GROUP,
|
|
808
806
|
port: MDNS_PORT
|
|
809
807
|
}],
|
|
810
808
|
localAddress: link.address,
|
|
811
|
-
|
|
812
|
-
listenMs: MULTICAST_LISTEN_MS
|
|
809
|
+
...timing
|
|
813
810
|
};
|
|
814
811
|
try {
|
|
815
812
|
return await deps.io.udpExchange({
|
|
@@ -854,21 +851,92 @@ async function runMdns(deps, entries, subnets, c) {
|
|
|
854
851
|
listenMs: UNICAST_LISTEN_MS
|
|
855
852
|
}));
|
|
856
853
|
}
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
854
|
+
const records = emptyMdnsRecords();
|
|
855
|
+
for (const reply of dedupeReplies(replies)) mergeMdnsRecords(records, parseMdnsRecords(reply.data));
|
|
856
|
+
const wanted = wantedInstances(entries, records);
|
|
857
|
+
await followUp(deps, links, records, wanted, "srv", c);
|
|
858
|
+
await followUp(deps, links, records, wanted, "a", c);
|
|
859
|
+
const unresolved = /* @__PURE__ */ new Map();
|
|
860
|
+
for (const { ptr, label, entry } of wanted) {
|
|
861
|
+
const service = records.srv.get(ptr.instance.toLowerCase());
|
|
862
|
+
if (service === void 0) {
|
|
863
|
+
unresolved.set(ptr.instance, "srv-unresolved");
|
|
864
|
+
continue;
|
|
865
|
+
}
|
|
866
|
+
const host = records.addresses.get(service.target.toLowerCase());
|
|
867
|
+
if (host === void 0) {
|
|
868
|
+
unresolved.set(ptr.instance, "a-unresolved");
|
|
869
|
+
continue;
|
|
870
|
+
}
|
|
861
871
|
emit(c, entry, {
|
|
862
|
-
host
|
|
872
|
+
host,
|
|
863
873
|
port: service.port,
|
|
864
874
|
mdns: {
|
|
865
875
|
instance: label,
|
|
866
|
-
host: service.
|
|
876
|
+
host: service.target,
|
|
867
877
|
port: service.port,
|
|
868
|
-
txt:
|
|
878
|
+
txt: records.txt.get(ptr.instance.toLowerCase()) ?? {}
|
|
869
879
|
}
|
|
870
880
|
});
|
|
871
881
|
}
|
|
882
|
+
for (const [instance, reason] of unresolved) {
|
|
883
|
+
c.mdnsUnresolved += 1;
|
|
884
|
+
deps.logger.info("local-network: mdns instance not resolved, left out of the hits", { meta: {
|
|
885
|
+
instance: instanceLabel(instance),
|
|
886
|
+
reason
|
|
887
|
+
} });
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
/** The PTR answers some request asked for: its type and its instance pattern both match. */
|
|
891
|
+
function wantedInstances(entries, records) {
|
|
892
|
+
const out = [];
|
|
893
|
+
for (const ptr of records.ptrs) for (const entry of entries) {
|
|
894
|
+
if (normalizeServiceType(entry.mode.serviceType) !== normalizeServiceType(ptr.serviceType)) continue;
|
|
895
|
+
const label = instanceLabel(ptr.instance);
|
|
896
|
+
if (entry.mode.instancePattern !== void 0 && !matches(entry.mode.instancePattern, label)) continue;
|
|
897
|
+
out.push({
|
|
898
|
+
ptr,
|
|
899
|
+
label,
|
|
900
|
+
entry
|
|
901
|
+
});
|
|
902
|
+
}
|
|
903
|
+
return out;
|
|
904
|
+
}
|
|
905
|
+
/**
|
|
906
|
+
* One follow-up question per link for what the PTR answer left out: SRV+TXT of the
|
|
907
|
+
* instances without an SRV, or the A record of the SRV targets without an address.
|
|
908
|
+
* The answers are folded in whichever packet carries them.
|
|
909
|
+
*/
|
|
910
|
+
async function followUp(deps, links, records, wanted, stage, c) {
|
|
911
|
+
const questions = /* @__PURE__ */ new Map();
|
|
912
|
+
for (const { ptr } of wanted) {
|
|
913
|
+
const service = records.srv.get(ptr.instance.toLowerCase());
|
|
914
|
+
if (stage === "srv" && service === void 0) {
|
|
915
|
+
questions.set(`SRV ${ptr.instance}`, {
|
|
916
|
+
name: ptr.instance,
|
|
917
|
+
type: "SRV"
|
|
918
|
+
});
|
|
919
|
+
questions.set(`TXT ${ptr.instance}`, {
|
|
920
|
+
name: ptr.instance,
|
|
921
|
+
type: "TXT"
|
|
922
|
+
});
|
|
923
|
+
} else if (stage === "a" && service !== void 0 && !records.addresses.has(service.target.toLowerCase())) questions.set(`A ${service.target}`, {
|
|
924
|
+
name: service.target,
|
|
925
|
+
type: "A"
|
|
926
|
+
});
|
|
927
|
+
}
|
|
928
|
+
if (questions.size === 0) return;
|
|
929
|
+
const list = [...questions.values()];
|
|
930
|
+
const groupQuery = buildRecordQuery(list);
|
|
931
|
+
const fallbackQuery = buildRecordQuery(list, { unicastResponse: true });
|
|
932
|
+
for (const link of links) {
|
|
933
|
+
bucket(c, "mdns").probed += 1;
|
|
934
|
+
const replies = await exchangeOnLink(deps, link, groupQuery, fallbackQuery, {
|
|
935
|
+
resendAtMs: [],
|
|
936
|
+
listenMs: FOLLOW_UP_LISTEN_MS
|
|
937
|
+
});
|
|
938
|
+
for (const reply of replies) mergeMdnsRecords(records, parseMdnsRecords(reply.data));
|
|
939
|
+
}
|
|
872
940
|
}
|
|
873
941
|
function matches(pattern, text) {
|
|
874
942
|
try {
|
|
@@ -1111,7 +1179,8 @@ async function runScan(deps, input) {
|
|
|
1111
1179
|
const c = {
|
|
1112
1180
|
hits: [],
|
|
1113
1181
|
errors: [],
|
|
1114
|
-
stats: /* @__PURE__ */ new Map()
|
|
1182
|
+
stats: /* @__PURE__ */ new Map(),
|
|
1183
|
+
mdnsUnresolved: 0
|
|
1115
1184
|
};
|
|
1116
1185
|
await Promise.all([
|
|
1117
1186
|
guarded(c, "mdns", () => runMdns(deps, entriesOf(input.requests, "mdns"), subnets, c)),
|
|
@@ -1133,6 +1202,7 @@ async function runScan(deps, input) {
|
|
|
1133
1202
|
hostsProbed: stats.hostsProbed,
|
|
1134
1203
|
hits: stats.hits,
|
|
1135
1204
|
timeouts: stats.timeouts,
|
|
1205
|
+
mdnsUnresolved: c.mdnsUnresolved,
|
|
1136
1206
|
errors: c.errors.length,
|
|
1137
1207
|
byMode,
|
|
1138
1208
|
hitsBySubnet: hitsBySubnet(subnets, c.hits),
|
|
@@ -17,5 +17,34 @@ export interface PtrQueryOptions {
|
|
|
17
17
|
}
|
|
18
18
|
/** One PTR question per service type, with the unicast-reply bit unless `unicastResponse` is false. */
|
|
19
19
|
export declare function buildPtrQuery(serviceTypes: readonly string[], options?: PtrQueryOptions): Buffer;
|
|
20
|
+
export type RecordQuestionType = "SRV" | "TXT" | "A";
|
|
21
|
+
export interface RecordQuestion {
|
|
22
|
+
/** Full DNS name, e.g. `VELUX_KLF_LAN_C527._http._tcp.local` or `velux.local`. */
|
|
23
|
+
readonly name: string;
|
|
24
|
+
readonly type: RecordQuestionType;
|
|
25
|
+
}
|
|
26
|
+
/** A QM (or QU when `unicastResponse`) question per record, for the follow-up that resolves an instance. */
|
|
27
|
+
export declare function buildRecordQuery(questions: readonly RecordQuestion[], options?: {
|
|
28
|
+
readonly unicastResponse?: boolean;
|
|
29
|
+
}): Buffer;
|
|
30
|
+
export interface MdnsRecords {
|
|
31
|
+
readonly ptrs: {
|
|
32
|
+
readonly serviceType: string;
|
|
33
|
+
readonly instance: string;
|
|
34
|
+
}[];
|
|
35
|
+
/** Keyed by lower-cased instance name. */
|
|
36
|
+
readonly srv: Map<string, {
|
|
37
|
+
readonly target: string;
|
|
38
|
+
readonly port: number;
|
|
39
|
+
}>;
|
|
40
|
+
readonly txt: Map<string, Record<string, string>>;
|
|
41
|
+
/** Keyed by lower-cased host name. */
|
|
42
|
+
readonly addresses: Map<string, string>;
|
|
43
|
+
}
|
|
44
|
+
export declare function emptyMdnsRecords(): MdnsRecords;
|
|
45
|
+
/** Fold the records of one message into `into`: an answer may arrive in any packet (a reflector forwards them). */
|
|
46
|
+
export declare function mergeMdnsRecords(into: MdnsRecords, from: MdnsRecords): void;
|
|
47
|
+
/** Every PTR/SRV/TXT/A record of one mDNS message; a malformed packet yields none. */
|
|
48
|
+
export declare function parseMdnsRecords(buf: Buffer): MdnsRecords;
|
|
20
49
|
/** The services advertised on one mDNS message; a malformed packet yields none. */
|
|
21
50
|
export declare function parseMdnsMessage(buf: Buffer): readonly MdnsService[];
|
|
@@ -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-DDl6NKUe.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 { Xr as logDestinationCapability, do as BaseAddon } from "../../dist-
|
|
1
|
+
import { Xr as logDestinationCapability, do as BaseAddon } from "../../dist-SXRVvbkS.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-DDl6NKUe.js");
|
|
7
7
|
let node_fs_promises = require("node:fs/promises");
|
|
8
8
|
let node_util = require("node:util");
|
|
9
9
|
let node_os = require("node:os");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Js as EventCategory, Mi as reducePoints, Nt as ROOT_BUCKET_KEY, Qt as UNATTRIBUTED_BUCKET_KEY, Ri as resolveBucketMs, br as foldSnapshotByFunction, do as BaseAddon, ii as metricsProviderCapability, qs as errMsg, ts as createEvent } from "../../dist-SXRVvbkS.mjs";
|
|
2
2
|
import { access, readFile, readdir } from "node:fs/promises";
|
|
3
3
|
import { promisify } from "node:util";
|
|
4
4
|
import * as os$1 from "node:os";
|
|
@@ -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-DDl6NKUe.js");
|
|
7
7
|
const require_coral_accelerators = require("../../coral-accelerators-BSVsBVzt.js");
|
|
8
8
|
let node_path = require("node:path");
|
|
9
9
|
node_path = require_chunk.__toESM(node_path);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as __toESM, r as __exportAll } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { $i as scoreRuntimes, Ci as platformProbeCapability,
|
|
2
|
+
import { $i as scoreRuntimes, Ci as platformProbeCapability, Js as EventCategory, do as BaseAddon, or as enumerateInferenceDevices, os as emitReadiness, qs as errMsg, vi as parseAcceleratorFactsJson } from "../../dist-SXRVvbkS.mjs";
|
|
3
3
|
import { n as detectCoralAccelerator, r as nodeCoralFs } from "../../coral-accelerators-DBlgWB8k.mjs";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
5
5
|
import { promisify } from "node:util";
|
|
@@ -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-DDl6NKUe.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 { Ai as recordEntriesCapability, Cs as mapSecretLeaves,
|
|
1
|
+
import { Ai as recordEntriesCapability, Cs as mapSecretLeaves, Ms as recordSecretRef, Uo as UnknownRecordKindError, do as BaseAddon, xo as InvalidRecordError } from "../../dist-SXRVvbkS.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-DDl6NKUe.js");
|
|
7
7
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
8
8
|
/**
|
|
9
9
|
* Reconcile the durable `enabledProviders` set against authoritative
|
package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Js as EventCategory, do as BaseAddon } from "../../dist-SXRVvbkS.mjs";
|
|
2
2
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
3
3
|
/**
|
|
4
4
|
* Reconcile the durable `enabledProviders` set against authoritative
|
|
@@ -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-DDl6NKUe.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 { Js as EventCategory, Ks as DeviceType, Ts as nodePin, Ws as DeviceFeature, Xn as deriveBatteryPresence, do as BaseAddon, h as BatteryStatusSchema, ha as streamQualityLabel, hn as batteryCapability, mn as bareAddonId, ni as memoizePinnedFfmpeg, qs as errMsg, sa as snapshotCapability } from "../../dist-SXRVvbkS.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-DDl6NKUe.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
let node_fs_promises = require("node:fs/promises");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { do as BaseAddon, pa as storageProviderCapability, yr as filesystemBrowseCapability } from "../../dist-
|
|
1
|
+
import { do as BaseAddon, pa as storageProviderCapability, yr as filesystemBrowseCapability } from "../../dist-SXRVvbkS.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { mkdir, readdir, realpath, statfs } from "node:fs/promises";
|
|
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-BaPMwUtL.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-CgHJ7XTw.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,9 +3,9 @@ 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-DDl6NKUe.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-BaPMwUtL.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
11
|
let zod = require("zod");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $o as collectSecretMarkerRefs,
|
|
1
|
+
import { $o as collectSecretMarkerRefs, Ds as normalizeSecretOwner, En as catalogueIssues, Gn as databaseSnapshotCapability, Js as EventCategory, M as DATABASE_SNAPSHOT_SUFFIX, N as DATABASE_SNAPSHOT_TIMEOUT_MS, Oo as RECORD_SWEEP_INTERVAL_MS, P as DATA_STORE_DATABASES, Po as RecordKindDeclarationSchema, So as NoCallerError, Tt as MigrationMetaSchema, Uo as UnknownRecordKindError, Vo as TransactRefusedError, Wn as dataStoreProviderCapability, _i as orderMigrations, _o as DeclarationRefusedError, ai as migrationsCapability, do as BaseAddon, j as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, ji as recordsCapability, jo as RUNTIME_DEFAULTS, ka as vectorStoreCapability, la as storageAdminCapability, mn as bareAddonId, ns as customAction, qs as errMsg$1, rs as defineCustomActions, xo as InvalidRecordError } from "../../dist-SXRVvbkS.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-CgHJ7XTw.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
6
|
import { createRequire } from "node:module";
|
|
@@ -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-DDl6NKUe.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");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $r as mayReadLocation,
|
|
1
|
+
import { $r as mayReadLocation, Cr as gbToBytes, Es as normalizeNodeId, Gt as StorageCleanupJobSchema, Hi as resolveLocationMode, Ir as isLocationEnabled, Is as secretTreeFromPaths, Js as EventCategory, Jt as StorageMigrationJobSchema, Kt as StorageLocationModeSchema, Ma as withLocationMode, Os as parseJsonObject, Ps as resolveSecretMarkers, Ur as legacyModeOf, Vs as transformSecretWrite, Zo as collectSecretConfigKeys, da as storageMigrationCapability, do as BaseAddon, dr as evictionPolicyOfLocation, ea as settingsStoreCapability, ei as mayWriteToLocation, is as defineRecordKinds, ko as REDACTED_SECRET, oi as modeMayWrite, qt as StorageLocationTypeSchema, ua as storageCapability, ys as isSecretMarker, yt as LegacyStorageLocationDefaultSchema } from "../../dist-SXRVvbkS.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
@@ -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-
|
|
6
|
+
const require_dist = require("../../dist-DDl6NKUe.js");
|
|
7
7
|
const require_safe_buffer$1 = require("../../safe-buffer-D3aoa-7X.js");
|
|
8
8
|
const require_x509_es = require("../../x509.es-WtnRNyYS.js");
|
|
9
|
-
const require_agent_https = require("../../agent-https-
|
|
10
|
-
const require_constants$8 = require("../../constants-
|
|
9
|
+
const require_agent_https = require("../../agent-https-DEmi-YQ_.js");
|
|
10
|
+
const require_constants$8 = require("../../constants-CavIW3ee.js");
|
|
11
11
|
const require_src$1 = require("../../src-CnAqG6EF.js");
|
|
12
12
|
let zod = require("zod");
|
|
13
13
|
let node_crypto = require("node:crypto");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Ut as ServerNameSchema, do as BaseAddon, fs as hydrateSchema, ia as shortHostname, ns as customAction, qs as errMsg, rs as defineCustomActions } from "../../dist-SXRVvbkS.mjs";
|
|
3
3
|
import { t as require_safe_buffer } from "../../safe-buffer-B1OjL1I9.mjs";
|
|
4
4
|
import { C as backdatedNotBefore, S as withUtcTimeEncoding, a as KeyUsageFlags, c as Pkcs10CertificateRequest, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, l as Pkcs10CertificateRequestGenerator, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension } from "../../x509.es-BRiJgOvu.mjs";
|
|
5
|
-
import { B as setProcessAgentHttpsNames, I as AGENT_HTTPS_NAMES_COLLECTION, L as AGENT_HTTPS_NAMES_COLUMNS, M as isLocalOnlyHostname, R as AgentHttpsNames, V as systemConfigRecordKinds, u as isPrivateAddress, z as getProcessAgentHttpsNames } from "../../agent-https-
|
|
6
|
-
import { a as MESH_CA_KEY_REF, c as SERVER_AUTH_OID, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY, r as MESH_CA_COMMON_NAME, s as MESH_CA_VALIDITY_DAYS, t as CLIENT_AUTH_OID } from "../../constants-
|
|
5
|
+
import { B as setProcessAgentHttpsNames, I as AGENT_HTTPS_NAMES_COLLECTION, L as AGENT_HTTPS_NAMES_COLUMNS, M as isLocalOnlyHostname, R as AgentHttpsNames, V as systemConfigRecordKinds, u as isPrivateAddress, z as getProcessAgentHttpsNames } from "../../agent-https-DGp4gFzH.mjs";
|
|
6
|
+
import { a as MESH_CA_KEY_REF, c as SERVER_AUTH_OID, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY, r as MESH_CA_COMMON_NAME, s as MESH_CA_VALIDITY_DAYS, t as CLIENT_AUTH_OID } from "../../constants-C8fjD4YU.mjs";
|
|
7
7
|
import { t as require_src } from "../../src-hG4grMU4.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { X509Certificate, createHash, createPrivateKey, randomBytes, randomInt, sign, timingSafeEqual, verify, webcrypto } 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-DDl6NKUe.js");
|
|
7
7
|
const require_formatter = require("../../formatter-xbxeV4GD.js");
|
|
8
8
|
const require_log_file_read_protocol = require("../../log-file-read-protocol-D0WcLbIV.js");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Xr as logDestinationCapability, do as BaseAddon } from "../../dist-
|
|
1
|
+
import { Xr as logDestinationCapability, do as BaseAddon } from "../../dist-SXRVvbkS.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-DkYZ4LXp.mjs";
|
|
3
3
|
import { a as LogFileIndexStore, i as serveRead, n as isFromReader, t as CancelBook } from "../../log-file-read-protocol-B7M3X3bT.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ja as compositionSourceKey,
|
|
1
|
+
import { Ja as compositionSourceKey, qs as errMsg } from "./dist-SXRVvbkS.mjs";
|
|
2
2
|
//#region src/builtins/shared/device-state-changed.ts
|
|
3
3
|
/** Structural narrowing helper for untrusted bus payloads. */
|
|
4
4
|
function isRecord(value) {
|