@camstack/server 1.2.774 → 1.2.776
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 +12 -0
- package/package.json +10 -9
- package/system/dist/addon-runner.js +17 -4
- package/system/dist/addon-runner.mjs +17 -4
- package/system/dist/addon-utils.mjs +1 -1
- package/system/dist/{agent-https-CEjYhgzb.mjs → agent-https-D7XFlCS4.mjs} +1 -1
- package/system/dist/{agent-https-COdYAZtp.js → agent-https-DN3SiDdO.js} +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +4 -4
- 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 +5 -5
- package/system/dist/builtins/alerts/alerts.addon.d.ts +2 -1
- package/system/dist/builtins/alerts/alerts.addon.js +6 -2
- package/system/dist/builtins/alerts/alerts.addon.mjs +6 -2
- 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 +5 -5
- 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/console-logging.addon.d.ts +2 -1
- package/system/dist/builtins/console-logging/index.js +6 -2
- package/system/dist/builtins/console-logging/index.mjs +6 -2
- 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.d.ts +2 -1
- package/system/dist/builtins/device-history/device-history.addon.js +7 -3
- package/system/dist/builtins/device-history/device-history.addon.mjs +7 -3
- package/system/dist/builtins/device-manager/device-manager.addon.js +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +5 -5
- package/system/dist/builtins/local-network/local-network.addon.d.ts +1 -0
- package/system/dist/builtins/local-network/local-network.addon.js +5 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +5 -2
- 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.d.ts +2 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +6 -2
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +15 -11
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +10 -10
- 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 +6 -2
- package/system/dist/builtins/snapshot/index.mjs +6 -2
- package/system/dist/builtins/snapshot/snapshot.addon.d.ts +2 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +20 -20
- 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 +115 -115
- 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-BT3BGiY3.mjs → capture-engine-GMG1X2TN.mjs} +1 -1
- package/system/dist/{capture-engine-DI2oXZDO.js → capture-engine-b-6U50tb.js} +1 -1
- package/system/dist/{composition-sources-BynfnyBp.js → composition-sources-B4d51O_D.js} +1 -1
- package/system/dist/{composition-sources-CJp4PlDI.mjs → composition-sources-Cn00-OEM.mjs} +1 -1
- package/system/dist/{constants-C1-vhqNF.js → constants-CQ6aJD-7.js} +1 -1
- package/system/dist/{constants-DXABL2gj.mjs → constants-nF0GL2ol.mjs} +1 -1
- package/system/dist/{coral-accelerators-DBlgWB8k.mjs → coral-accelerators-BW3OcrLD.mjs} +6 -6
- package/system/dist/{custom-action-registry-oHl1xltx.mjs → custom-action-registry-BIJZBObd.mjs} +37 -37
- package/system/dist/{device-ca-BrNT18xL.mjs → device-ca-BO_1Fnqk.mjs} +1 -1
- package/system/dist/{device-ca-DT2jrW1E.js → device-ca-DDPuTmrn.js} +1 -1
- package/system/dist/{dist-BBg37iyL.mjs → dist-C-reEuab.mjs} +128 -23
- package/system/dist/{dist-UBEXcyvP.js → dist-DyI9u0b7.js} +128 -23
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-BhXyHO14.js → hub-mdns-ciao-BnTtLjAw.js} +2 -2
- package/system/dist/{hub-mdns-ciao-Bvnuizns.mjs → hub-mdns-ciao-vybj30s5.mjs} +2 -2
- package/system/dist/index.js +25 -12
- package/system/dist/index.mjs +236 -223
- package/system/dist/kernel/moleculer/device-cap-proxy.d.ts +7 -1
- package/system/dist/{legacy-integration-rows-door-tscfL1oK.mjs → legacy-integration-rows-door-5eYHOgk7.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-BURxlJ76.js → legacy-integration-rows-door-uTtKNkuI.js} +1 -1
- package/system/dist/{restore-archive-RgMFtrh4.mjs → restore-archive-BT_VMwFC.mjs} +94 -94
- package/system/dist/{restore-archive-DUGJ5dqY.js → restore-archive-BYOloNIq.js} +1 -1
- package/system/dist/{wal-maintenance-B8Fzfc-w.js → wal-maintenance-CfBfW_kE.js} +0 -0
- package/system/dist/{wal-maintenance-CuxNjH8u.mjs → wal-maintenance-D2ztRFn-.mjs} +0 -0
- package/system/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ds as historyUnitFor, Ns as isReadingQuantity, Ss as emitReadiness, To as BaseAddon, ar as deviceHistoryCapability, bs as defineRecordKinds, cr as deviceRunsCapability, ct as HISTORY_CATALOG, fc as EventCategory, hn as armRemovalReconcile, lt as HISTORY_ITEM_CATALOG, q as DeviceRunSchema, sr as deviceRemovalHookCapability, uc as DeviceType, wo as wattMillisecondsToKwh, z as DEVICE_HISTORY_ENERGY_KEY } from "../../dist-
|
|
2
|
-
import { a as catalogMetrics, c as DeviceDirectory, d as identityOf, f as subjectIdOf, i as capSeriesKey, l as isRealDeviceType, n as CaptureEngine, o as readPath, r as capItemSeriesKey, s as readUnit, t as CAP_KEY_PREFIX, u as SeriesRegistry } from "../../capture-engine-
|
|
1
|
+
import { Ds as historyUnitFor, Ns as isReadingQuantity, Ss as emitReadiness, To as BaseAddon, ar as deviceHistoryCapability, bs as defineRecordKinds, cr as deviceRunsCapability, ct as HISTORY_CATALOG, fc as EventCategory, hn as armRemovalReconcile, lt as HISTORY_ITEM_CATALOG, q as DeviceRunSchema, sr as deviceRemovalHookCapability, uc as DeviceType, wo as wattMillisecondsToKwh, z as DEVICE_HISTORY_ENERGY_KEY } from "../../dist-C-reEuab.mjs";
|
|
2
|
+
import { a as catalogMetrics, c as DeviceDirectory, d as identityOf, f as subjectIdOf, i as capSeriesKey, l as isRealDeviceType, n as CaptureEngine, o as readPath, r as capItemSeriesKey, s as readUnit, t as CAP_KEY_PREFIX, u as SeriesRegistry } from "../../capture-engine-GMG1X2TN.mjs";
|
|
3
3
|
import { a as FIVE_MINUTES_MS, c as bucketEndOf, i as DAY_MS, l as bucketStartOf, n as RetentionJob, o as HOUR_MS, r as DepartureTracker, s as ROLLUP_GRACE_MS, t as DEFAULT_RETENTION, u as floorTo } from "../../retention-B9l9TnGE.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
//#region src/builtins/device-history/capture/point-writer.ts
|
|
@@ -3584,7 +3584,11 @@ var DeviceHistoryAddon = class extends BaseAddon {
|
|
|
3584
3584
|
this.runs = null;
|
|
3585
3585
|
this.runsProvider = null;
|
|
3586
3586
|
}
|
|
3587
|
-
|
|
3587
|
+
scopedSettingsCapabilities() {
|
|
3588
|
+
return ["device-history"];
|
|
3589
|
+
}
|
|
3590
|
+
async clusterSettingsSchema(cap) {
|
|
3591
|
+
if (cap !== "device-history") return null;
|
|
3588
3592
|
return this.schema({ sections: [{
|
|
3589
3593
|
id: "retention",
|
|
3590
3594
|
title: "Retention",
|
|
@@ -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-DyI9u0b7.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
const require_prefix_range = require("../../prefix-range-D_KueXbQ.js");
|
|
9
9
|
const require_prefix_walk = require("../../prefix-walk-Dv6MLZlM.js");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $o as SECRET_CLEAR, $s as secretTreeFromPaths, As as isDeviceConfigCap, Dr as formatMinutes, F as DAY_NAMES, Is as isSecretMarker, J as DeviceStatusSchema, Kn as createDeviceExtensionProvider, Ls as isSecretMarkerLike, Ms as isKeychainStoredField, Oi as parseStreamParamsFormPatch, On as canonicalIconKey, Ps as isSecretClear, Tn as buildStreamParamsConfigSchema, To as BaseAddon, Ut as STREAM_PROFILE_META, X as DiscoveryProposalBodySchema, Y as DeviceTombstoneSchema, Yr as legacyAutoLinkIds, Zs as resolveSecretMarkers, _a as siteZoneKey, _r as expandContainer, ac as transformSecretWrite, at as FieldClaimModeSchema, bs as defineRecordKinds, cc as DeviceFeature, dc as errMsg, ei as locationIconKey, er as defineExtensionSlotProvider, fc as EventCategory, fr as enumerateItemArrayFields, g as CAMERA_SWITCH_ORDER, ic as toSecretFieldView, ir as deviceExtensionCapability, is as WELL_KNOWN_TAB_MAP, lc as DeviceRole, lr as deviceStateCapability, ms as collectZodSecretPaths, nc as sleep$1, o as ALL_CAPABILITY_DEFINITIONS, oa as runtimeStatePolicyFor, oc as userError, or as deviceManagerCapability, ot as FieldClaimSchema, pr as enumerateSchemaFields, uc as DeviceType, ur as deviceStatusCapability, v as CAP_NAMES_WITH_STATUS, xi as normalizeUnit, xt as MINUTES_PER_DAY } from "../../dist-
|
|
1
|
+
import { $o as SECRET_CLEAR, $s as secretTreeFromPaths, As as isDeviceConfigCap, Dr as formatMinutes, F as DAY_NAMES, Is as isSecretMarker, J as DeviceStatusSchema, Kn as createDeviceExtensionProvider, Ls as isSecretMarkerLike, Ms as isKeychainStoredField, Oi as parseStreamParamsFormPatch, On as canonicalIconKey, Ps as isSecretClear, Tn as buildStreamParamsConfigSchema, To as BaseAddon, Ut as STREAM_PROFILE_META, X as DiscoveryProposalBodySchema, Y as DeviceTombstoneSchema, Yr as legacyAutoLinkIds, Zs as resolveSecretMarkers, _a as siteZoneKey, _r as expandContainer, ac as transformSecretWrite, at as FieldClaimModeSchema, bs as defineRecordKinds, cc as DeviceFeature, dc as errMsg, ei as locationIconKey, er as defineExtensionSlotProvider, fc as EventCategory, fr as enumerateItemArrayFields, g as CAMERA_SWITCH_ORDER, ic as toSecretFieldView, ir as deviceExtensionCapability, is as WELL_KNOWN_TAB_MAP, lc as DeviceRole, lr as deviceStateCapability, ms as collectZodSecretPaths, nc as sleep$1, o as ALL_CAPABILITY_DEFINITIONS, oa as runtimeStatePolicyFor, oc as userError, or as deviceManagerCapability, ot as FieldClaimSchema, pr as enumerateSchemaFields, uc as DeviceType, ur as deviceStatusCapability, v as CAP_NAMES_WITH_STATUS, xi as normalizeUnit, xt as MINUTES_PER_DAY } from "../../dist-C-reEuab.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
3
|
import { t as prefixRange } from "../../prefix-range-Dl0znowN.mjs";
|
|
4
4
|
import { t as loadPrefixed } from "../../prefix-walk-DAOBSyH1.mjs";
|
|
@@ -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-DyI9u0b7.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 { To as BaseAddon, ri as logDestinationCapability } from "../../dist-
|
|
1
|
+
import { To as BaseAddon, ri as logDestinationCapability } from "../../dist-C-reEuab.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-DyI9u0b7.js");
|
|
7
|
+
const require_device_ca = require("../../device-ca-DDPuTmrn.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-uTtKNkuI.js");
|
|
10
|
+
const require_constants = require("../../constants-CQ6aJD-7.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 { Jr as keychainCapability, To as BaseAddon, Ws as normalizeSecretOwner, _t as KeychainResetRecordSchema, bs as defineRecordKinds, fc as EventCategory, gt as KeychainAuditEntrySchema, ht as KEYCHAIN_RESET_TRIGGER_ACTOR, qr as keychainAdminCapability, qs as parseSecretRef, ws as formatSecretScope } from "../../dist-
|
|
2
|
-
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-
|
|
1
|
+
import { Jr as keychainCapability, To as BaseAddon, Ws as normalizeSecretOwner, _t as KeychainResetRecordSchema, bs as defineRecordKinds, fc as EventCategory, gt as KeychainAuditEntrySchema, ht as KEYCHAIN_RESET_TRIGGER_ACTOR, qr as keychainAdminCapability, qs as parseSecretRef, ws as formatSecretScope } from "../../dist-C-reEuab.mjs";
|
|
2
|
+
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-BO_1Fnqk.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-5eYHOgk7.mjs";
|
|
5
|
+
import { a as MESH_CA_KEY_REF } from "../../constants-nF0GL2ol.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-DyI9u0b7.js");
|
|
4
4
|
let node_fs_promises = require("node:fs/promises");
|
|
5
5
|
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
6
6
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Pt as RECORDING_SOURCE_CAMSTACK_ADDON, Rt as RecordingStatusSchema, To as BaseAddon, dc as errMsg, fc as EventCategory, hs as createEvent, si as mayWriteToLocation } from "../../dist-
|
|
1
|
+
import { Pt as RECORDING_SOURCE_CAMSTACK_ADDON, Rt as RecordingStatusSchema, To as BaseAddon, dc as errMsg, fc as EventCategory, hs as createEvent, si as mayWriteToLocation } from "../../dist-C-reEuab.mjs";
|
|
2
2
|
import * as fsp from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { constants } from "node:fs";
|
|
@@ -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-DyI9u0b7.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-DDPuTmrn.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,15 +1,15 @@
|
|
|
1
1
|
import { i as __require, o as __toESM, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { A as CredentialTokenClaimsSchema, At as PreferenceDeviceIdSchema, Cn as buildDeviceEnrollmentLink, Dt as PREFERENCES_MAX_VALUE_BYTES, Er as formatDeviceRevoker, Is as isSecretMarker, Jt as SsoBridgeClaimsSchema, Kt as ScopedTokenSchema, Mt as PreferenceValueSchema, Na as userManagementCapability, R as DEVICE_ENROLLMENT_TTL_MS, To as BaseAddon, V as DEVICE_NONCE_TTL_MS, bs as defineRecordKinds, gn as authProviderCapability, jt as PreferenceNamespaceSchema, oc as userError, rn as UserRecordSchema, rr as deviceCredentialsCapability, tn as TokenScopeSchema, w as CREDENTIAL_TOKEN_AUDIENCE, wn as buildDeviceSignatureMessage, zr as isCredentialTokenPayload, zs as makeSecretMarker } from "../../dist-
|
|
2
|
+
import { A as CredentialTokenClaimsSchema, At as PreferenceDeviceIdSchema, Cn as buildDeviceEnrollmentLink, Dt as PREFERENCES_MAX_VALUE_BYTES, Er as formatDeviceRevoker, Is as isSecretMarker, Jt as SsoBridgeClaimsSchema, Kt as ScopedTokenSchema, Mt as PreferenceValueSchema, Na as userManagementCapability, R as DEVICE_ENROLLMENT_TTL_MS, To as BaseAddon, V as DEVICE_NONCE_TTL_MS, bs as defineRecordKinds, gn as authProviderCapability, jt as PreferenceNamespaceSchema, oc as userError, rn as UserRecordSchema, rr as deviceCredentialsCapability, tn as TokenScopeSchema, w as CREDENTIAL_TOKEN_AUDIENCE, wn as buildDeviceSignatureMessage, zr as isCredentialTokenPayload, zs as makeSecretMarker } from "../../dist-C-reEuab.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-BO_1Fnqk.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";
|
|
9
9
|
import { X509Certificate, createHash, randomUUID, timingSafeEqual } from "node:crypto";
|
|
10
10
|
import nodeCrypto from "crypto";
|
|
11
11
|
import * as path$1 from "node:path";
|
|
12
|
-
import * as fs
|
|
12
|
+
import * as fs from "node:fs";
|
|
13
13
|
//#region ../../node_modules/bcryptjs/index.js
|
|
14
14
|
/**
|
|
15
15
|
* The random implementation to use as a fallback.
|
|
@@ -11912,8 +11912,8 @@ var LocalAuthAddon = class extends BaseAddon {
|
|
|
11912
11912
|
users: this.userManager,
|
|
11913
11913
|
dataDir: this.ctx.nodeDataDir,
|
|
11914
11914
|
fs: {
|
|
11915
|
-
exists: (filePath) => fs
|
|
11916
|
-
remove: (filePath) => fs
|
|
11915
|
+
exists: (filePath) => fs.existsSync(filePath),
|
|
11916
|
+
remove: (filePath) => fs.rmSync(filePath, { force: true })
|
|
11917
11917
|
},
|
|
11918
11918
|
logger: this.ctx.logger
|
|
11919
11919
|
});
|
|
@@ -150,6 +150,7 @@ export declare class LocalNetworkAddon extends BaseAddon<LocalNetworkConfig> {
|
|
|
150
150
|
*/
|
|
151
151
|
private migrateNodeFields;
|
|
152
152
|
protected onInitialize(): Promise<ProviderRegistration[]>;
|
|
153
|
+
protected override scopedSettingsCapabilities(): readonly string[];
|
|
153
154
|
protected override nodeSettingsSchema(cap: string): Promise<ConfigUISchema | null>;
|
|
154
155
|
protected override globalSettingsSchema(): ConfigUISchema;
|
|
155
156
|
/** How THIS host listens and announces itself: every field is a node setting (D986). */
|
|
@@ -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-
|
|
3
|
+
const require_dist = require("../../dist-DyI9u0b7.js");
|
|
4
4
|
const require_dns_wire = require("../../dns-wire-B1BvF9Ao.js");
|
|
5
|
-
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-
|
|
5
|
+
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-BnTtLjAw.js");
|
|
6
6
|
let zod = require("zod");
|
|
7
7
|
let node_net = require("node:net");
|
|
8
8
|
let node_os = require("node:os");
|
|
@@ -2028,6 +2028,9 @@ var LocalNetworkAddon = class extends require_dist.BaseAddon {
|
|
|
2028
2028
|
provider
|
|
2029
2029
|
}];
|
|
2030
2030
|
}
|
|
2031
|
+
scopedSettingsCapabilities() {
|
|
2032
|
+
return ["local-network"];
|
|
2033
|
+
}
|
|
2031
2034
|
async nodeSettingsSchema(cap) {
|
|
2032
2035
|
return cap === "local-network" ? this.lanSchema() : null;
|
|
2033
2036
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $r as localNetworkCapability, Br as isDefaultAppConnectionEndpoint, Et as NetworkTunnelStartedDataSchema, Fa as validateCustomAddress, Ir as isAppLinkBase, Pi as preconditionOf, To as BaseAddon, Zi as resolveHubAddressRoles, _ as CAMSTACK_APP_LINK_ORIGIN, _s as defineAddonMigrations, dc as errMsg, dt as HUB_MDNS_TXT_KEYS, fc as EventCategory, ha as shortHostname, jn as checkRoleAddress, ki as pickAppLinkHub, qi as resolveAppConnections, ta as resolveNotificationTapAddress, ut as HUB_MDNS_SERVICE_TYPE } from "../../dist-
|
|
1
|
+
import { $r as localNetworkCapability, Br as isDefaultAppConnectionEndpoint, Et as NetworkTunnelStartedDataSchema, Fa as validateCustomAddress, Ir as isAppLinkBase, Pi as preconditionOf, To as BaseAddon, Zi as resolveHubAddressRoles, _ as CAMSTACK_APP_LINK_ORIGIN, _s as defineAddonMigrations, dc as errMsg, dt as HUB_MDNS_TXT_KEYS, fc as EventCategory, ha as shortHostname, jn as checkRoleAddress, ki as pickAppLinkHub, qi as resolveAppConnections, ta as resolveNotificationTapAddress, ut as HUB_MDNS_SERVICE_TYPE } from "../../dist-C-reEuab.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 { 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 { 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-vybj30s5.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { isIP } from "node:net";
|
|
6
6
|
import * as os$1 from "node:os";
|
|
@@ -2023,6 +2023,9 @@ var LocalNetworkAddon = class extends BaseAddon {
|
|
|
2023
2023
|
provider
|
|
2024
2024
|
}];
|
|
2025
2025
|
}
|
|
2026
|
+
scopedSettingsCapabilities() {
|
|
2027
|
+
return ["local-network"];
|
|
2028
|
+
}
|
|
2026
2029
|
async nodeSettingsSchema(cap) {
|
|
2027
2030
|
return cap === "local-network" ? this.lanSchema() : null;
|
|
2028
2031
|
}
|
|
@@ -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-DyI9u0b7.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 { Fs as isSecretFieldView, Is as isSecretMarker, Lt as RecordIntegrationInstances, Pi as preconditionOf, Qo as RevConflictError, To as BaseAddon, Wr as isSameAddonId, _s as defineAddonMigrations, jr as integrationInstancesCapability, ri as logDestinationCapability, vn as bareAddonId, ys as defineEntryKind } from "../../dist-
|
|
1
|
+
import { Fs as isSecretFieldView, Is as isSecretMarker, Lt as RecordIntegrationInstances, Pi as preconditionOf, Qo as RevConflictError, To as BaseAddon, Wr as isSameAddonId, _s as defineAddonMigrations, jr as integrationInstancesCapability, ri as logDestinationCapability, vn as bareAddonId, ys as defineEntryKind } from "../../dist-C-reEuab.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
|
|
@@ -229,5 +229,6 @@ export default class NativeMetricsAddon extends BaseAddon<NativeMetricsConfig> {
|
|
|
229
229
|
* counts the cluster is actually reporting — so an operator raising the
|
|
230
230
|
* retention sees what it costs BEFORE applying it, not afterwards.
|
|
231
231
|
*/
|
|
232
|
-
protected
|
|
232
|
+
protected override scopedSettingsCapabilities(): readonly string[];
|
|
233
|
+
protected override clusterSettingsSchema(cap: string): Promise<ConfigUISchema | null>;
|
|
233
234
|
}
|
|
@@ -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-DyI9u0b7.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");
|
|
@@ -3034,7 +3034,11 @@ var NativeMetricsAddon = class NativeMetricsAddon extends require_dist.BaseAddon
|
|
|
3034
3034
|
* counts the cluster is actually reporting — so an operator raising the
|
|
3035
3035
|
* retention sees what it costs BEFORE applying it, not afterwards.
|
|
3036
3036
|
*/
|
|
3037
|
-
|
|
3037
|
+
scopedSettingsCapabilities() {
|
|
3038
|
+
return ["metrics-provider"];
|
|
3039
|
+
}
|
|
3040
|
+
async clusterSettingsSchema(cap) {
|
|
3041
|
+
if (cap !== "metrics-provider") return null;
|
|
3038
3042
|
const projection = projectLoadSeriesCost({
|
|
3039
3043
|
config: this.loadConfig,
|
|
3040
3044
|
observedProcessRows: this.observedFleetRows()
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Hi as reducePoints, It as ROOT_BUCKET_KEY, Ji as resolveBucketMs, To as BaseAddon, Tr as foldSnapshotByFunction, dc as errMsg, fc as EventCategory, fi as metricsProviderCapability, hs as createEvent, nn as UNATTRIBUTED_BUCKET_KEY } from "../../dist-
|
|
1
|
+
import { Hi as reducePoints, It as ROOT_BUCKET_KEY, Ji as resolveBucketMs, To as BaseAddon, Tr as foldSnapshotByFunction, dc as errMsg, fc as EventCategory, fi as metricsProviderCapability, hs as createEvent, nn as UNATTRIBUTED_BUCKET_KEY } from "../../dist-C-reEuab.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";
|
|
5
5
|
import { platform } from "node:os";
|
|
6
|
-
import * as fs
|
|
6
|
+
import * as fs from "node:fs";
|
|
7
7
|
import { constants, readFileSync } from "node:fs";
|
|
8
8
|
import { execFile } from "node:child_process";
|
|
9
9
|
//#region src/builtins/native-metrics/cgroup-memory.ts
|
|
@@ -1686,7 +1686,7 @@ var NativeMetricsProvider = class {
|
|
|
1686
1686
|
let swapUsedBytes = 0;
|
|
1687
1687
|
let swapTotalBytes = 0;
|
|
1688
1688
|
if (IS_LINUX) try {
|
|
1689
|
-
const meminfo = fs
|
|
1689
|
+
const meminfo = fs.readFileSync("/proc/meminfo", "utf-8");
|
|
1690
1690
|
const availKb = meminfo.match(/MemAvailable:\s+(\d+)/)?.[1];
|
|
1691
1691
|
if (availKb !== void 0) available = parseInt(availKb, 10) * 1024;
|
|
1692
1692
|
const swapTotal = parseInt(meminfo.match(/SwapTotal:\s+(\d+)/)?.[1] ?? "0", 10) * 1024;
|
|
@@ -1779,7 +1779,7 @@ async function sampleMacMemory(provider) {
|
|
|
1779
1779
|
}
|
|
1780
1780
|
function getDiskSpaceInternal(dirPath) {
|
|
1781
1781
|
return new Promise((resolve, reject) => {
|
|
1782
|
-
fs
|
|
1782
|
+
fs.statfs(dirPath, (err, stats) => {
|
|
1783
1783
|
if (err) return reject(err);
|
|
1784
1784
|
const totalBytes = stats.blocks * stats.bsize;
|
|
1785
1785
|
const availableBytes = stats.bavail * stats.bsize;
|
|
@@ -1797,7 +1797,7 @@ function getDiskSpaceInternal(dirPath) {
|
|
|
1797
1797
|
async function takeDiskIoSnapshot() {
|
|
1798
1798
|
const now = Date.now();
|
|
1799
1799
|
if (IS_LINUX) try {
|
|
1800
|
-
const data = fs
|
|
1800
|
+
const data = fs.readFileSync("/proc/diskstats", "utf-8");
|
|
1801
1801
|
let readOps = 0, readBytes = 0, writeOps = 0, writeBytes = 0;
|
|
1802
1802
|
for (const line of data.split("\n")) {
|
|
1803
1803
|
const parts = line.trim().split(/\s+/);
|
|
@@ -1828,7 +1828,7 @@ async function takeDiskIoSnapshot() {
|
|
|
1828
1828
|
async function takeNetworkIoSnapshot() {
|
|
1829
1829
|
const now = Date.now();
|
|
1830
1830
|
if (IS_LINUX) try {
|
|
1831
|
-
const data = fs
|
|
1831
|
+
const data = fs.readFileSync("/proc/net/dev", "utf-8");
|
|
1832
1832
|
let rxBytes = 0, txBytes = 0, rxPackets = 0, txPackets = 0, rxErrors = 0, txErrors = 0;
|
|
1833
1833
|
for (const line of data.split("\n")) {
|
|
1834
1834
|
const match = line.match(/^\s*(\w+):\s+(.+)$/);
|
|
@@ -1889,7 +1889,7 @@ async function takeNetworkIoSnapshot() {
|
|
|
1889
1889
|
}
|
|
1890
1890
|
async function getCpuTemperatureInternal() {
|
|
1891
1891
|
if (IS_LINUX) for (const p of ["/sys/class/thermal/thermal_zone0/temp", "/sys/class/hwmon/hwmon0/temp1_input"]) try {
|
|
1892
|
-
const raw = fs
|
|
1892
|
+
const raw = fs.readFileSync(p, "utf-8").trim();
|
|
1893
1893
|
const millideg = parseInt(raw, 10);
|
|
1894
1894
|
if (!isNaN(millideg)) return Math.round(millideg / 100) / 10;
|
|
1895
1895
|
} catch {
|
|
@@ -1940,10 +1940,10 @@ function getProcessResources() {
|
|
|
1940
1940
|
let threadCount = 0;
|
|
1941
1941
|
if (IS_LINUX) {
|
|
1942
1942
|
try {
|
|
1943
|
-
openFds = fs
|
|
1943
|
+
openFds = fs.readdirSync(`/proc/${process.pid}/fd`).length;
|
|
1944
1944
|
} catch {}
|
|
1945
1945
|
try {
|
|
1946
|
-
const match = fs
|
|
1946
|
+
const match = fs.readFileSync(`/proc/${process.pid}/status`, "utf-8").match(/Threads:\s+(\d+)/);
|
|
1947
1947
|
if (match) threadCount = parseInt(match[1], 10);
|
|
1948
1948
|
} catch {}
|
|
1949
1949
|
}
|
|
@@ -1958,7 +1958,7 @@ function getProcessResources() {
|
|
|
1958
1958
|
function getPressure(resource) {
|
|
1959
1959
|
if (!IS_LINUX) return null;
|
|
1960
1960
|
try {
|
|
1961
|
-
const data = fs
|
|
1961
|
+
const data = fs.readFileSync(`/proc/pressure/${resource}`, "utf-8");
|
|
1962
1962
|
const parseLine = (prefix) => {
|
|
1963
1963
|
const match = data.match(new RegExp(`${prefix} avg10=(\\d+\\.\\d+) avg60=(\\d+\\.\\d+) avg300=(\\d+\\.\\d+)`));
|
|
1964
1964
|
if (!match) return null;
|
|
@@ -3029,7 +3029,11 @@ var NativeMetricsAddon = class NativeMetricsAddon extends BaseAddon {
|
|
|
3029
3029
|
* counts the cluster is actually reporting — so an operator raising the
|
|
3030
3030
|
* retention sees what it costs BEFORE applying it, not afterwards.
|
|
3031
3031
|
*/
|
|
3032
|
-
|
|
3032
|
+
scopedSettingsCapabilities() {
|
|
3033
|
+
return ["metrics-provider"];
|
|
3034
|
+
}
|
|
3035
|
+
async clusterSettingsSchema(cap) {
|
|
3036
|
+
if (cap !== "metrics-provider") return null;
|
|
3033
3037
|
const projection = projectLoadSeriesCost({
|
|
3034
3038
|
config: this.loadConfig,
|
|
3035
3039
|
observedProcessRows: this.observedFleetRows()
|
|
@@ -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-DyI9u0b7.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,10 +1,10 @@
|
|
|
1
1
|
import { o as __toESM, r as __exportAll } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { Ei as parseAcceleratorFactsJson, Ss as emitReadiness, To as BaseAddon, dc as errMsg, dr as enumerateInferenceDevices, fc as EventCategory, ji as platformProbeCapability, ua as scoreRuntimes } from "../../dist-
|
|
3
|
-
import { n as detectCoralAccelerator, r as nodeCoralFs } from "../../coral-accelerators-
|
|
2
|
+
import { Ei as parseAcceleratorFactsJson, Ss as emitReadiness, To as BaseAddon, dc as errMsg, dr as enumerateInferenceDevices, fc as EventCategory, ji as platformProbeCapability, ua as scoreRuntimes } from "../../dist-C-reEuab.mjs";
|
|
3
|
+
import { n as detectCoralAccelerator, r as nodeCoralFs } from "../../coral-accelerators-BW3OcrLD.mjs";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
5
5
|
import { promisify } from "node:util";
|
|
6
6
|
import * as os$1 from "node:os";
|
|
7
|
-
import * as fs
|
|
7
|
+
import * as fs from "node:fs";
|
|
8
8
|
import { execFile } from "node:child_process";
|
|
9
9
|
//#region src/builtins/platform-probe/accelerator-reprobe.ts
|
|
10
10
|
/**
|
|
@@ -492,14 +492,14 @@ var PlatformScorer = class {
|
|
|
492
492
|
if (nvidia) gpu = nvidia;
|
|
493
493
|
const listRenderNodes = () => {
|
|
494
494
|
try {
|
|
495
|
-
return fs
|
|
495
|
+
return fs.readdirSync("/dev/dri").filter((n) => n.startsWith("renderD")).map((n) => `/dev/dri/${n}`);
|
|
496
496
|
} catch {
|
|
497
497
|
return [];
|
|
498
498
|
}
|
|
499
499
|
};
|
|
500
500
|
const readDrmAttr = (node, attr) => {
|
|
501
501
|
try {
|
|
502
|
-
return fs
|
|
502
|
+
return fs.readFileSync(`/sys/class/drm/${node.split("/").pop()}/device/${attr}`, "utf8");
|
|
503
503
|
} catch {
|
|
504
504
|
return "";
|
|
505
505
|
}
|
|
@@ -525,12 +525,12 @@ var PlatformScorer = class {
|
|
|
525
525
|
}
|
|
526
526
|
const listDir = (p) => {
|
|
527
527
|
try {
|
|
528
|
-
return fs
|
|
528
|
+
return fs.readdirSync(p);
|
|
529
529
|
} catch {
|
|
530
530
|
return [];
|
|
531
531
|
}
|
|
532
532
|
};
|
|
533
|
-
const exists = (p) => fs
|
|
533
|
+
const exists = (p) => fs.existsSync(p);
|
|
534
534
|
if (!npu) {
|
|
535
535
|
const { classifyIntelNpu } = await import("../../intel-npu-C8HKvRQF.mjs");
|
|
536
536
|
npu = classifyIntelNpu({
|
|
@@ -558,7 +558,7 @@ var PlatformScorer = class {
|
|
|
558
558
|
exists,
|
|
559
559
|
readFile: (p) => {
|
|
560
560
|
try {
|
|
561
|
-
return fs
|
|
561
|
+
return fs.readFileSync(p, "utf8");
|
|
562
562
|
} catch {
|
|
563
563
|
return "";
|
|
564
564
|
}
|
|
@@ -844,7 +844,7 @@ function jsonValue(text) {
|
|
|
844
844
|
function readPublishedAcceleratorFacts(filePath) {
|
|
845
845
|
let text;
|
|
846
846
|
try {
|
|
847
|
-
text = fs
|
|
847
|
+
text = fs.readFileSync(filePath, "utf8");
|
|
848
848
|
} catch {
|
|
849
849
|
return null;
|
|
850
850
|
}
|
|
@@ -859,7 +859,7 @@ function findAcceleratorFactsScript(dataDir, cwd = process.cwd()) {
|
|
|
859
859
|
const candidates = [];
|
|
860
860
|
if (typeof dataDir === "string" && dataDir !== "") candidates.push(path$1.join(dataDir, "addons", "@camstack", "addon-pipeline", "python", "accelerator_facts.py"));
|
|
861
861
|
candidates.push(path$1.join(cwd, "packages", "addon-pipeline", "python", "accelerator_facts.py"));
|
|
862
|
-
for (const candidate of candidates) if (fs
|
|
862
|
+
for (const candidate of candidates) if (fs.existsSync(candidate)) return candidate;
|
|
863
863
|
return null;
|
|
864
864
|
}
|
|
865
865
|
async function defaultExec(command, args, timeoutMs) {
|
|
@@ -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-DyI9u0b7.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 { Bi as recordEntriesCapability, Fo as InvalidRecordError, To as BaseAddon, rs as UnknownRecordKindError, tc as secretViewsOf } from "../../dist-
|
|
1
|
+
import { Bi as recordEntriesCapability, Fo as InvalidRecordError, To as BaseAddon, rs as UnknownRecordKindError, tc as secretViewsOf } from "../../dist-C-reEuab.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-DyI9u0b7.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 { To as BaseAddon, fc as EventCategory } from "../../dist-
|
|
1
|
+
import { To as BaseAddon, fc as EventCategory } from "../../dist-C-reEuab.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-DyI9u0b7.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");
|
|
@@ -1703,7 +1703,11 @@ var SnapshotAddon = class SnapshotAddon extends require_dist.BaseAddon {
|
|
|
1703
1703
|
async onConfigChanged() {
|
|
1704
1704
|
this.ownerCache = null;
|
|
1705
1705
|
}
|
|
1706
|
-
|
|
1706
|
+
scopedSettingsCapabilities() {
|
|
1707
|
+
return ["snapshot"];
|
|
1708
|
+
}
|
|
1709
|
+
async clusterSettingsSchema(cap) {
|
|
1710
|
+
if (cap !== "snapshot") return null;
|
|
1707
1711
|
return this.schema({ sections: [{
|
|
1708
1712
|
id: "snapshot-cache",
|
|
1709
1713
|
title: "Snapshot Cache",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ea as streamQualityLabel, Hs as nodePin, To as BaseAddon, cc as DeviceFeature, dc as errMsg, fc as EventCategory, h as BatteryStatusSchema, tr as deriveBatteryPresence, uc as DeviceType, ui as memoizePinnedFfmpeg, va as snapshotCapability, vn as bareAddonId, yn as batteryCapability } from "../../dist-
|
|
1
|
+
import { Ea as streamQualityLabel, Hs as nodePin, To as BaseAddon, cc as DeviceFeature, dc as errMsg, fc as EventCategory, h as BatteryStatusSchema, tr as deriveBatteryPresence, uc as DeviceType, ui as memoizePinnedFfmpeg, va as snapshotCapability, vn as bareAddonId, yn as batteryCapability } from "../../dist-C-reEuab.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";
|
|
@@ -1697,7 +1697,11 @@ var SnapshotAddon = class SnapshotAddon extends BaseAddon {
|
|
|
1697
1697
|
async onConfigChanged() {
|
|
1698
1698
|
this.ownerCache = null;
|
|
1699
1699
|
}
|
|
1700
|
-
|
|
1700
|
+
scopedSettingsCapabilities() {
|
|
1701
|
+
return ["snapshot"];
|
|
1702
|
+
}
|
|
1703
|
+
async clusterSettingsSchema(cap) {
|
|
1704
|
+
if (cap !== "snapshot") return null;
|
|
1701
1705
|
return this.schema({ sections: [{
|
|
1702
1706
|
id: "snapshot-cache",
|
|
1703
1707
|
title: "Snapshot Cache",
|
|
@@ -309,7 +309,8 @@ export declare class SnapshotAddon extends BaseAddon<SnapshotAddonConfig> {
|
|
|
309
309
|
* `OWNER_CACHE_TTL_MS`, whichever comes first.
|
|
310
310
|
*/
|
|
311
311
|
protected onConfigChanged(): Promise<void>;
|
|
312
|
-
protected
|
|
312
|
+
protected override scopedSettingsCapabilities(): readonly string[];
|
|
313
|
+
protected override clusterSettingsSchema(cap: string): Promise<ConfigUISchema | null>;
|
|
313
314
|
private getSnapshot;
|
|
314
315
|
/**
|
|
315
316
|
* Map a settled capture outcome onto the response, preserving the legacy
|
|
@@ -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-DyI9u0b7.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");
|