@camstack/system 1.2.25 → 1.2.27
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/dist/addon-runner.js +1 -1
- package/dist/addon-runner.mjs +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/device-manager/device-aggregation.d.ts +18 -0
- package/dist/builtins/device-manager/device-manager.addon.js +47 -1
- package/dist/builtins/device-manager/device-manager.addon.mjs +47 -1
- package/dist/builtins/doorbell/virtual-doorbell.addon.js +1 -1
- package/dist/builtins/doorbell/virtual-doorbell.addon.mjs +1 -1
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +1 -1
- package/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
- package/dist/builtins/local-network/local-network.addon.js +1 -1
- package/dist/builtins/local-network/local-network.addon.mjs +1 -1
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +0 -19
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +143 -67
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +143 -67
- package/dist/builtins/storage-orchestrator/storage-orchestrator.service.d.ts +67 -7
- package/dist/builtins/system-config/system-config.addon.js +1 -1
- package/dist/builtins/system-config/system-config.addon.mjs +1 -1
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{dist-CIek6F9X.mjs → dist-BXmFvn3h.mjs} +174 -6
- package/dist/{dist-CS0pdC8l.js → dist-BxtIzexq.js} +174 -6
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/kernel/moleculer/readiness-context.d.ts +2 -2
- package/dist/{manifest-python-deps-julrfvyf.mjs → manifest-python-deps-BNOApgK0.mjs} +4 -4
- package/dist/{manifest-python-deps-COgal7Jy.js → manifest-python-deps-KZ00cbfP.js} +4 -4
- package/package.json +2 -2
package/dist/addon-runner.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_manifest_python_deps = require("./manifest-python-deps-
|
|
2
|
+
const require_manifest_python_deps = require("./manifest-python-deps-KZ00cbfP.js");
|
|
3
3
|
const require_custom_action_registry = require("./custom-action-registry-jY0NOZK8.js");
|
|
4
4
|
let node_fs = require("node:fs");
|
|
5
5
|
node_fs = require_chunk.__toESM(node_fs);
|
package/dist/addon-runner.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ct as resolveAddonClass, I as createUdsLoggerWithControl, L as LocalChildClient, at as setWorkerNativeCapsChangeListener, bt as installManifestNativeDeps, i as createUdsAddonContext, nt as getWorkerNativeCapProvider, rt as getWorkerNativeCapSnapshot, st as validateProviderRegistrations, t as installManifestPythonDeps } from "./manifest-python-deps-
|
|
1
|
+
import { Ct as resolveAddonClass, I as createUdsLoggerWithControl, L as LocalChildClient, at as setWorkerNativeCapsChangeListener, bt as installManifestNativeDeps, i as createUdsAddonContext, nt as getWorkerNativeCapProvider, rt as getWorkerNativeCapSnapshot, st as validateProviderRegistrations, t as installManifestPythonDeps } from "./manifest-python-deps-BNOApgK0.mjs";
|
|
2
2
|
import { t as CustomActionRegistry } from "./custom-action-registry-F__gp_VX.mjs";
|
|
3
3
|
import { register } from "node:module";
|
|
4
4
|
import * as fs from "node:fs";
|
|
@@ -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-BxtIzexq.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { at as BaseAddon, it as errMsg, jt as EventCategory, p as addonPagesCapability } from "../../dist-
|
|
1
|
+
import { at as BaseAddon, it as errMsg, jt as EventCategory, p as addonPagesCapability } from "../../dist-BXmFvn3h.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import * as fs from "node:fs";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -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-BxtIzexq.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { at as BaseAddon, h as addonWidgetsCapability, it as errMsg, jt as EventCategory } from "../../dist-
|
|
1
|
+
import { at as BaseAddon, h as addonWidgetsCapability, it as errMsg, jt as EventCategory } from "../../dist-BXmFvn3h.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import * as fs from "node:fs";
|
|
4
4
|
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-BxtIzexq.js");
|
|
7
7
|
//#region src/builtins/alerts/alerts.addon.ts
|
|
8
8
|
var CATEGORY_MAPPINGS = {
|
|
9
9
|
"addon.crashed": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { at as BaseAddon, g as alertsCapability, it as errMsg, jt as EventCategory, n as AlertSchema, vt as createEvent } from "../../dist-
|
|
1
|
+
import { at as BaseAddon, g as alertsCapability, it as errMsg, jt as EventCategory, n as AlertSchema, vt as createEvent } from "../../dist-BXmFvn3h.mjs";
|
|
2
2
|
//#region src/builtins/alerts/alerts.addon.ts
|
|
3
3
|
var CATEGORY_MAPPINGS = {
|
|
4
4
|
"addon.crashed": {
|
|
@@ -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-BxtIzexq.js");
|
|
7
7
|
let node_fs = require("node:fs");
|
|
8
8
|
let node_fs$1 = require_chunk.__toESM(node_fs, 1);
|
|
9
9
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { at as BaseAddon, jt as EventCategory, y as backupCapability } from "../../dist-
|
|
1
|
+
import { at as BaseAddon, jt as EventCategory, y as backupCapability } from "../../dist-BXmFvn3h.mjs";
|
|
2
2
|
import * as fs from "node:fs";
|
|
3
3
|
import Kt from "node:fs";
|
|
4
4
|
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-BxtIzexq.js");
|
|
7
7
|
const require_formatter = require("../../formatter-DqAKDlvN.js");
|
|
8
8
|
//#region src/builtins/console-logging/console-destination.ts
|
|
9
9
|
var LEVEL_RANK = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { at as BaseAddon, z as logDestinationCapability } from "../../dist-
|
|
1
|
+
import { at as BaseAddon, z as logDestinationCapability } from "../../dist-BXmFvn3h.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-B7qW8bPJ.mjs";
|
|
3
3
|
//#region src/builtins/console-logging/console-destination.ts
|
|
4
4
|
var LEVEL_RANK = {
|
|
@@ -107,6 +107,24 @@ export declare function getDeviceStatusAggregate(deps: AggregationDeps, input: {
|
|
|
107
107
|
readonly deviceId: number;
|
|
108
108
|
readonly caps?: readonly string[];
|
|
109
109
|
}): Promise<Record<string, unknown | null>>;
|
|
110
|
+
/**
|
|
111
|
+
* `getDeviceStatusAggregate` for a LIST of devices, in one round-trip.
|
|
112
|
+
*
|
|
113
|
+
* Each device is aggregated by the SAME function the single-device call uses —
|
|
114
|
+
* deliberately, because that function already encodes the behaviour that
|
|
115
|
+
* matters: a provider that throws or returns an invalid status yields `null`
|
|
116
|
+
* for that cap instead of poisoning the result. Re-implementing the walk here
|
|
117
|
+
* to "batch it properly" would mean two copies of that rule and one of them
|
|
118
|
+
* eventually missing it.
|
|
119
|
+
*
|
|
120
|
+
* A device whose whole aggregation fails still gets an ENTRY (all caps null)
|
|
121
|
+
* rather than being omitted: a caller that reads a missing key as "not
|
|
122
|
+
* answered yet" would keep the previous badge on screen forever.
|
|
123
|
+
*/
|
|
124
|
+
export declare function getDeviceStatusAggregateBatch(deps: AggregationDeps, input: {
|
|
125
|
+
readonly deviceIds: readonly number[];
|
|
126
|
+
readonly caps?: readonly string[];
|
|
127
|
+
}): Promise<Record<string, Record<string, unknown | null>>>;
|
|
110
128
|
/**
|
|
111
129
|
* Return the driver-specific device-settings contribution. Hub-local
|
|
112
130
|
* devices call `getSettingsUISchema()` directly; forked-worker devices
|
|
@@ -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-BxtIzexq.js");
|
|
7
7
|
let _camstack_types_node = require("@camstack/types/node");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
@@ -2050,6 +2050,51 @@ async function getDeviceStatusAggregate(deps, input) {
|
|
|
2050
2050
|
return out;
|
|
2051
2051
|
}
|
|
2052
2052
|
/**
|
|
2053
|
+
* How many devices are aggregated at once.
|
|
2054
|
+
*
|
|
2055
|
+
* The point of the batch is to collapse N round-trips into one, not to fan a
|
|
2056
|
+
* hundred provider calls at a registry that also serves the live path. Ten
|
|
2057
|
+
* devices × the status-carrying caps is already a wide call; a ten-device
|
|
2058
|
+
* window keeps the burst bounded while a ten-camera install still completes in
|
|
2059
|
+
* a single wave.
|
|
2060
|
+
*/
|
|
2061
|
+
var STATUS_BATCH_WINDOW = 10;
|
|
2062
|
+
/**
|
|
2063
|
+
* `getDeviceStatusAggregate` for a LIST of devices, in one round-trip.
|
|
2064
|
+
*
|
|
2065
|
+
* Each device is aggregated by the SAME function the single-device call uses —
|
|
2066
|
+
* deliberately, because that function already encodes the behaviour that
|
|
2067
|
+
* matters: a provider that throws or returns an invalid status yields `null`
|
|
2068
|
+
* for that cap instead of poisoning the result. Re-implementing the walk here
|
|
2069
|
+
* to "batch it properly" would mean two copies of that rule and one of them
|
|
2070
|
+
* eventually missing it.
|
|
2071
|
+
*
|
|
2072
|
+
* A device whose whole aggregation fails still gets an ENTRY (all caps null)
|
|
2073
|
+
* rather than being omitted: a caller that reads a missing key as "not
|
|
2074
|
+
* answered yet" would keep the previous badge on screen forever.
|
|
2075
|
+
*/
|
|
2076
|
+
async function getDeviceStatusAggregateBatch(deps, input) {
|
|
2077
|
+
const out = {};
|
|
2078
|
+
const ids = [...new Set(input.deviceIds)];
|
|
2079
|
+
for (let i = 0; i < ids.length; i += STATUS_BATCH_WINDOW) {
|
|
2080
|
+
const window = ids.slice(i, i + STATUS_BATCH_WINDOW);
|
|
2081
|
+
await Promise.all(window.map(async (deviceId) => {
|
|
2082
|
+
try {
|
|
2083
|
+
const single = { deviceId };
|
|
2084
|
+
if (input.caps !== void 0) single.caps = input.caps;
|
|
2085
|
+
out[String(deviceId)] = await getDeviceStatusAggregate(deps, single);
|
|
2086
|
+
} catch (err) {
|
|
2087
|
+
deps.ctx.logger.warn("getDeviceStatusAggregateBatch: device aggregation threw", {
|
|
2088
|
+
tags: { deviceId },
|
|
2089
|
+
meta: { error: require_dist.errMsg(err) }
|
|
2090
|
+
});
|
|
2091
|
+
out[String(deviceId)] = {};
|
|
2092
|
+
}
|
|
2093
|
+
}));
|
|
2094
|
+
}
|
|
2095
|
+
return out;
|
|
2096
|
+
}
|
|
2097
|
+
/**
|
|
2053
2098
|
* Return the driver-specific device-settings contribution. Hub-local
|
|
2054
2099
|
* devices call `getSettingsUISchema()` directly; forked-worker devices
|
|
2055
2100
|
* go through the `device-ops.getSettingsSchema` cap method on the
|
|
@@ -4874,6 +4919,7 @@ var DeviceManagerAddon = class extends require_dist.BaseAddon {
|
|
|
4874
4919
|
});
|
|
4875
4920
|
},
|
|
4876
4921
|
getDeviceStatusAggregate: async (input) => this.getDeviceStatusAggregate(input),
|
|
4922
|
+
getDeviceStatusAggregateBatch: async (input) => getDeviceStatusAggregateBatch(this.aggregationDeps, input),
|
|
4877
4923
|
getWireableFields: (input) => getWireableFields(this.aggregationDeps, input)
|
|
4878
4924
|
};
|
|
4879
4925
|
this.ctx.logger.info("registered device-manager capability", { meta: { liveRegistry: registry !== null } });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as sleep, C as deviceStatusCapability, Ct as isDeviceConfigCap, D as enumerateSchemaFields, E as enumerateItemArrayFields, G as parseStreamParamsFormPatch, O as evaluateLinkExpression, S as deviceStateCapability, U as normalizeUnit, Y as setByPath, _ as applyTransform, a as CAP_NAMES_WITH_STATUS, at as BaseAddon, b as buildStreamParamsConfigSchema, dt as DeviceType, it as errMsg, j as getByPath, jt as EventCategory, l as STREAM_PROFILE_META, lt as DeviceFeature, mt as WELL_KNOWN_TAB_MAP, o as DeviceStatusSchema, rt as validateExpressionSource, t as ALL_CAPABILITY_DEFINITIONS, tt as toExpressionValue, ut as DeviceRole, x as deviceManagerCapability } from "../../dist-
|
|
1
|
+
import { At as sleep, C as deviceStatusCapability, Ct as isDeviceConfigCap, D as enumerateSchemaFields, E as enumerateItemArrayFields, G as parseStreamParamsFormPatch, O as evaluateLinkExpression, S as deviceStateCapability, U as normalizeUnit, Y as setByPath, _ as applyTransform, a as CAP_NAMES_WITH_STATUS, at as BaseAddon, b as buildStreamParamsConfigSchema, dt as DeviceType, it as errMsg, j as getByPath, jt as EventCategory, l as STREAM_PROFILE_META, lt as DeviceFeature, mt as WELL_KNOWN_TAB_MAP, o as DeviceStatusSchema, rt as validateExpressionSource, t as ALL_CAPABILITY_DEFINITIONS, tt as toExpressionValue, ut as DeviceRole, x as deviceManagerCapability } from "../../dist-BXmFvn3h.mjs";
|
|
2
2
|
import { canonicalDeviceFingerprint } from "@camstack/types/node";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
@@ -2045,6 +2045,51 @@ async function getDeviceStatusAggregate(deps, input) {
|
|
|
2045
2045
|
return out;
|
|
2046
2046
|
}
|
|
2047
2047
|
/**
|
|
2048
|
+
* How many devices are aggregated at once.
|
|
2049
|
+
*
|
|
2050
|
+
* The point of the batch is to collapse N round-trips into one, not to fan a
|
|
2051
|
+
* hundred provider calls at a registry that also serves the live path. Ten
|
|
2052
|
+
* devices × the status-carrying caps is already a wide call; a ten-device
|
|
2053
|
+
* window keeps the burst bounded while a ten-camera install still completes in
|
|
2054
|
+
* a single wave.
|
|
2055
|
+
*/
|
|
2056
|
+
var STATUS_BATCH_WINDOW = 10;
|
|
2057
|
+
/**
|
|
2058
|
+
* `getDeviceStatusAggregate` for a LIST of devices, in one round-trip.
|
|
2059
|
+
*
|
|
2060
|
+
* Each device is aggregated by the SAME function the single-device call uses —
|
|
2061
|
+
* deliberately, because that function already encodes the behaviour that
|
|
2062
|
+
* matters: a provider that throws or returns an invalid status yields `null`
|
|
2063
|
+
* for that cap instead of poisoning the result. Re-implementing the walk here
|
|
2064
|
+
* to "batch it properly" would mean two copies of that rule and one of them
|
|
2065
|
+
* eventually missing it.
|
|
2066
|
+
*
|
|
2067
|
+
* A device whose whole aggregation fails still gets an ENTRY (all caps null)
|
|
2068
|
+
* rather than being omitted: a caller that reads a missing key as "not
|
|
2069
|
+
* answered yet" would keep the previous badge on screen forever.
|
|
2070
|
+
*/
|
|
2071
|
+
async function getDeviceStatusAggregateBatch(deps, input) {
|
|
2072
|
+
const out = {};
|
|
2073
|
+
const ids = [...new Set(input.deviceIds)];
|
|
2074
|
+
for (let i = 0; i < ids.length; i += STATUS_BATCH_WINDOW) {
|
|
2075
|
+
const window = ids.slice(i, i + STATUS_BATCH_WINDOW);
|
|
2076
|
+
await Promise.all(window.map(async (deviceId) => {
|
|
2077
|
+
try {
|
|
2078
|
+
const single = { deviceId };
|
|
2079
|
+
if (input.caps !== void 0) single.caps = input.caps;
|
|
2080
|
+
out[String(deviceId)] = await getDeviceStatusAggregate(deps, single);
|
|
2081
|
+
} catch (err) {
|
|
2082
|
+
deps.ctx.logger.warn("getDeviceStatusAggregateBatch: device aggregation threw", {
|
|
2083
|
+
tags: { deviceId },
|
|
2084
|
+
meta: { error: errMsg(err) }
|
|
2085
|
+
});
|
|
2086
|
+
out[String(deviceId)] = {};
|
|
2087
|
+
}
|
|
2088
|
+
}));
|
|
2089
|
+
}
|
|
2090
|
+
return out;
|
|
2091
|
+
}
|
|
2092
|
+
/**
|
|
2048
2093
|
* Return the driver-specific device-settings contribution. Hub-local
|
|
2049
2094
|
* devices call `getSettingsUISchema()` directly; forked-worker devices
|
|
2050
2095
|
* go through the `device-ops.getSettingsSchema` cap method on the
|
|
@@ -4869,6 +4914,7 @@ var DeviceManagerAddon = class extends BaseAddon {
|
|
|
4869
4914
|
});
|
|
4870
4915
|
},
|
|
4871
4916
|
getDeviceStatusAggregate: async (input) => this.getDeviceStatusAggregate(input),
|
|
4917
|
+
getDeviceStatusAggregateBatch: async (input) => getDeviceStatusAggregateBatch(this.aggregationDeps, input),
|
|
4872
4918
|
getWireableFields: (input) => getWireableFields(this.aggregationDeps, input)
|
|
4873
4919
|
};
|
|
4874
4920
|
this.ctx.logger.info("registered device-manager capability", { meta: { liveRegistry: registry !== null } });
|
|
@@ -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-BxtIzexq.js");
|
|
7
7
|
//#region src/builtins/doorbell/trigger-engine.ts
|
|
8
8
|
/**
|
|
9
9
|
* Pure trigger logic for the virtual-doorbell builtin — edge detection over
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { at as BaseAddon, dt as DeviceType, it as errMsg, jt as EventCategory, vt as createEvent, w as doorbellCapability } from "../../dist-
|
|
1
|
+
import { at as BaseAddon, dt as DeviceType, it as errMsg, jt as EventCategory, vt as createEvent, w as doorbellCapability } from "../../dist-BXmFvn3h.mjs";
|
|
2
2
|
//#region src/builtins/doorbell/trigger-engine.ts
|
|
3
3
|
/**
|
|
4
4
|
* Pure trigger logic for the virtual-doorbell builtin — edge detection over
|
|
@@ -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-BxtIzexq.js");
|
|
7
7
|
const require_formatter = require("../../formatter-DqAKDlvN.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 { at as BaseAddon, z as logDestinationCapability } from "../../dist-
|
|
1
|
+
import { at as BaseAddon, z as logDestinationCapability } from "../../dist-BXmFvn3h.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-B7qW8bPJ.mjs";
|
|
3
3
|
//#region src/builtins/hub-forwarder/hub-forwarder-destination.ts
|
|
4
4
|
var DEFAULT_OUTBOUND_BUFFER_SIZE = 500;
|
|
@@ -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-BxtIzexq.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
node_crypto = require_chunk.__toESM(node_crypto);
|
|
9
9
|
let crypto$1 = require("crypto");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as __require, o as __toESM, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { at as BaseAddon, f as UserRecordSchema, nt as userManagementCapability, r as ApiKeyRecordSchema, u as ScopedTokenSchema, v as authProviderCapability } from "../../dist-
|
|
2
|
+
import { at as BaseAddon, f as UserRecordSchema, nt as userManagementCapability, r as ApiKeyRecordSchema, u as ScopedTokenSchema, v as authProviderCapability } from "../../dist-BXmFvn3h.mjs";
|
|
3
3
|
import * as crypto$1 from "node:crypto";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import nodeCrypto from "crypto";
|
|
@@ -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-BxtIzexq.js");
|
|
4
4
|
let node_os = require("node:os");
|
|
5
5
|
node_os = require_chunk.__toESM(node_os);
|
|
6
6
|
//#region src/builtins/local-network/local-network.addon.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as localNetworkCapability, at as BaseAddon, jt as EventCategory } from "../../dist-
|
|
1
|
+
import { R as localNetworkCapability, at as BaseAddon, jt as EventCategory } from "../../dist-BXmFvn3h.mjs";
|
|
2
2
|
import * as os from "node:os";
|
|
3
3
|
//#region src/builtins/local-network/local-network.addon.ts
|
|
4
4
|
/**
|
|
@@ -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-BxtIzexq.js");
|
|
7
7
|
//#region src/builtins/loki-logging/loki-payload.ts
|
|
8
8
|
/**
|
|
9
9
|
* Loki rejects a label name that is not a valid Prometheus label
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { at as BaseAddon, z as logDestinationCapability } from "../../dist-
|
|
1
|
+
import { at as BaseAddon, z as logDestinationCapability } from "../../dist-BXmFvn3h.mjs";
|
|
2
2
|
//#region src/builtins/loki-logging/loki-payload.ts
|
|
3
3
|
/**
|
|
4
4
|
* Loki rejects a label name that is not a valid Prometheus label
|
|
@@ -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-BxtIzexq.js");
|
|
7
7
|
let node_fs = require("node:fs");
|
|
8
8
|
node_fs = require_chunk.__toESM(node_fs);
|
|
9
9
|
let node_child_process = require("node:child_process");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as metricsProviderCapability, at as BaseAddon, jt as EventCategory, vt as createEvent } from "../../dist-
|
|
1
|
+
import { H as metricsProviderCapability, at as BaseAddon, jt as EventCategory, vt as createEvent } from "../../dist-BXmFvn3h.mjs";
|
|
2
2
|
import * as fs from "node:fs";
|
|
3
3
|
import { execFile, execFileSync } from "node:child_process";
|
|
4
4
|
import { promisify } from "node:util";
|
|
@@ -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-BxtIzexq.js");
|
|
7
7
|
let node_fs = require("node:fs");
|
|
8
8
|
node_fs = require_chunk.__toESM(node_fs);
|
|
9
9
|
let node_child_process = require("node:child_process");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as __toESM } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { J as scoreRuntimes, K as platformProbeCapability, T as enumerateInferenceDevices, at as BaseAddon, bt as emitReadiness, it as errMsg, jt as EventCategory } from "../../dist-
|
|
2
|
+
import { J as scoreRuntimes, K as platformProbeCapability, T as enumerateInferenceDevices, at as BaseAddon, bt as emitReadiness, it as errMsg, jt as EventCategory } from "../../dist-BXmFvn3h.mjs";
|
|
3
3
|
import * as fs from "node:fs";
|
|
4
4
|
import { execFile } from "node:child_process";
|
|
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-BxtIzexq.js");
|
|
7
7
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
8
8
|
/**
|
|
9
9
|
* Reconcile the durable `enabledProviders` set against authoritative
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { at as BaseAddon, jt as EventCategory } from "../../dist-
|
|
1
|
+
import { at as BaseAddon, jt as EventCategory } from "../../dist-BXmFvn3h.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
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-BxtIzexq.js");
|
|
7
7
|
let node_child_process = require("node:child_process");
|
|
8
8
|
//#region src/builtins/snapshot/snapshot-coalescing.ts
|
|
9
9
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Z as snapshotCapability, at as BaseAddon, dt as DeviceType, et as streamQualityLabel, i as BatteryStatusSchema, it as errMsg, lt as DeviceFeature, wt as nodePin } from "../../dist-
|
|
1
|
+
import { Z as snapshotCapability, at as BaseAddon, dt as DeviceType, et as streamQualityLabel, i as BatteryStatusSchema, it as errMsg, lt as DeviceFeature, wt as nodePin } from "../../dist-BXmFvn3h.mjs";
|
|
2
2
|
import { execFile } from "node:child_process";
|
|
3
3
|
//#region src/builtins/snapshot/snapshot-coalescing.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-BxtIzexq.js");
|
|
7
7
|
let node_fs = require("node:fs");
|
|
8
8
|
node_fs = require_chunk.__toESM(node_fs);
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as storageProviderCapability, A as filesystemBrowseCapability, at as BaseAddon } from "../../dist-
|
|
1
|
+
import { $ as storageProviderCapability, A as filesystemBrowseCapability, at as BaseAddon } from "../../dist-BXmFvn3h.mjs";
|
|
2
2
|
import * as fs from "node:fs";
|
|
3
3
|
import * as path$1 from "node:path";
|
|
4
4
|
import { basename, dirname, join, resolve, sep } from "node:path";
|
|
@@ -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-BxtIzexq.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
let better_sqlite3 = require("better-sqlite3");
|
|
9
9
|
better_sqlite3 = require_chunk.__toESM(better_sqlite3);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as parseJsonUnknown, X as settingsStoreCapability, at as BaseAddon, c as RUNTIME_DEFAULTS, ht as asJsonObject, it as errMsg } from "../../dist-
|
|
1
|
+
import { Et as parseJsonUnknown, X as settingsStoreCapability, at as BaseAddon, c as RUNTIME_DEFAULTS, ht as asJsonObject, it as errMsg } from "../../dist-BXmFvn3h.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import Database from "better-sqlite3";
|
|
4
4
|
//#region src/builtins/sqlite-storage/sqlite-settings-backend.ts
|
|
@@ -6,16 +6,6 @@ export declare class StorageOrchestratorAddon extends BaseAddon<StorageOrchestra
|
|
|
6
6
|
private pressureManager;
|
|
7
7
|
private pressureTimer;
|
|
8
8
|
private pressureSweepInFlight;
|
|
9
|
-
/**
|
|
10
|
-
* `uploadId` → providerId. Populated on `beginUpload`, consulted on
|
|
11
|
-
* every subsequent `writeChunk` / `finalizeUpload` / `abortUpload`,
|
|
12
|
-
* cleared on terminal calls. The provider holds the actual session
|
|
13
|
-
* state (open file descriptor, buffered offsets, …) — we just
|
|
14
|
-
* remember which provider owns it.
|
|
15
|
-
*/
|
|
16
|
-
private readonly uploadOwners;
|
|
17
|
-
/** Symmetric to `uploadOwners` for download sessions. */
|
|
18
|
-
private readonly downloadOwners;
|
|
19
9
|
/**
|
|
20
10
|
* Cached `providerId → nodeLocal` snapshot (SP1). Backs the orchestrator's
|
|
21
11
|
* synchronous `NodeLocalResolver` — `getProviderInfo()` is async, so we
|
|
@@ -109,14 +99,5 @@ export declare class StorageOrchestratorAddon extends BaseAddon<StorageOrchestra
|
|
|
109
99
|
* skipped (the provider stays absent → treated as node-agnostic).
|
|
110
100
|
*/
|
|
111
101
|
private refreshNodeLocalCache;
|
|
112
|
-
private resolveByUploadId;
|
|
113
|
-
private resolveByDownloadId;
|
|
114
|
-
/**
|
|
115
|
-
* Look up a `storage-provider` by `providerId` only — used for
|
|
116
|
-
* upload / download dispatch where the original `StorageLocation` is
|
|
117
|
-
* no longer in scope. Throws if the provider has gone away (e.g.
|
|
118
|
-
* addon unloaded mid-session).
|
|
119
|
-
*/
|
|
120
|
-
private providerByProviderId;
|
|
121
102
|
}
|
|
122
103
|
export default StorageOrchestratorAddon;
|