@camstack/server 1.2.748 → 1.2.750
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/{agent-https-XIAiPgNs.mjs → agent-https-DoGV9jKg.mjs} +1 -1
- package/system/dist/{agent-https-DsAdFC8n.js → agent-https-Oc0Go3Gs.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 +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 +258 -2
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +258 -2
- package/system/dist/builtins/core-blocks/migrations/helper-to-customize.d.ts +35 -0
- package/system/dist/builtins/core-blocks/migrations/index.d.ts +1 -0
- 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 +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 +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 +2 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -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.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 +284 -284
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{composition-sources-DUF2KY-Q.js → composition-sources-Bxahhz4f.js} +1 -1
- package/system/dist/{composition-sources-DKJiErim.mjs → composition-sources-CzRiSzCV.mjs} +1 -1
- package/system/dist/{constants-Smr-sgQk.js → constants-0rC5QY6i.js} +1 -1
- package/system/dist/{constants-D3cOCDWZ.mjs → constants-uI6uXyjP.mjs} +1 -1
- package/system/dist/{device-ca-qPLV2_YM.js → device-ca-CL_Arugd.js} +1 -1
- package/system/dist/{device-ca-Bjql3lRF.mjs → device-ca-D7TyMlsS.mjs} +1 -1
- package/system/dist/{dist-CrwALoYk.js → dist-CYnRCUzN.js} +262 -2
- package/system/dist/{dist-BFiMX6mZ.mjs → dist-Iq3vrBOE.mjs} +251 -3
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-DBYj4N_8.js → hub-mdns-ciao-CNLYSVyJ.js} +2 -2
- package/system/dist/{hub-mdns-ciao-B6JK5wYQ.mjs → hub-mdns-ciao-CvMKderb.mjs} +2 -2
- package/system/dist/index.js +7 -7
- package/system/dist/index.mjs +7 -7
- package/system/dist/{restore-archive-DKZiYRbs.js → restore-archive-Dw04PiG5.js} +1 -1
- package/system/dist/{restore-archive-HEmBtC17.mjs → restore-archive-vzWYLf6p.mjs} +82 -82
- package/system/dist/{retention-CDhx9ofQ.mjs → retention-C-lijsmN.mjs} +1 -1
- package/system/dist/{retention-DUTatu4f.js → retention-WjI-Op7G.js} +1 -1
- package/system/dist/{wal-maintenance-C59YCSjx.mjs → wal-maintenance-BzTHorT2.mjs} +0 -0
- package/system/dist/{wal-maintenance-BlfNMW7r.js → wal-maintenance-DQXiTaph.js} +0 -0
- package/system/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as EMPTY_REMOTE_CONFIG, $
|
|
1
|
+
import { $ as EMPTY_REMOTE_CONFIG, $t as TemplateKindSchema, Bi as remoteCapability, Bn as coreBlockComposition, Br as isInternalActionId, Bt as RunningStateStatusSchema, C as CORE_BLOCK_ADDON_PREFIX, Ci as occurrenceOn, Cs as hydrateSchema, Ct as MediaPlayerStatusSchema, D as ConditionMirror, Da as timedRunCapability, Ea as templateCapability, Fn as compileScalarOverride, Gr as kebabToCamel, Hi as replacedFieldKeys, Hn as coreBlockSourceKind, I as DEFAULT_HOLD_OVERRIDE, K as DeclaredDevices, Ki as resolveCoreBlockEntry, Kn as customKeyOfRole, Ks as resolveSecretMarkers, Mi as powerSourceLinkOfComposition, Mt as QuantityUnitError, Na as validateSchedulerInput, Nn as collectWhenMirrorSources, Ns as isSecretRefOwnedBy, O as ControlStatusSchema, Oa as timedRunLimitOf, On as capUnitResolver, Ot as PowerSourceInfoSchema, Pi as problemsBlockSave, Pt as REMOTE_MEDIA_COMMANDS, Q as EMPTY_REMOTE_ASSUMED_STATE, Qa as composedDeviceRef, Qt as SwitchStatusSchema, Ra as vocabActionIdFor, Rn as compositionSourceRefs, Rt as RemoteAssumedStateSchema, S as CORE_BLOCKS_ADDON_ID, Ua as CompositionSchema, Ui as resolveActionVariables, Un as coreBlocksCapability, Ut as SchedulerError, Va as zoneOnlySite, Vi as remoteLayoutComponentsCapability, Vn as coreBlockIdFromAddonId, Wt as SchedulerSchema, Ys as secretTreeFromSchema, Z as EMPTY_AUTOMATION_STATE, Zr as localDateOf, _i as normalizeCapStep, ac as DeviceType$1, an as actionsCapability, bn as buildActionSteps, bo as BaseAddon, c as ActionStepSchema, co as helperMembers, cs as collectSecretMarkerRefs, ea as resolveStepArgs, ec as transformSecretWrite, et as FAN_CAPTURE_FIELDS, f as AutomationStateDocSchema, fs as defineAddonMigrations, gi as normalizeActionUnits, hi as nextOccurrence, hs as defineRecordKinds, ia as schedulersCapability, in as actionSourceCapability, it as FanPresetSchema, ja as validateComposition, ji as powerSourceCapability, jn as checkTemplatePayload, jr as internalActionId, js as isSecretMarker, k as CoreBlockSchema, ka as timedRunSeconds, ki as planComposition, l as ActionTargetResolver, mr as evaluateWhenTree, mt as INTERNAL_ACTION_PREFIX, na as runSteps, nt as FanControlStatusSchema, o as ALL_CAPABILITY_DEFINITIONS, oc as errMsg$1, on as addonIdOfActionId, p as BUILTIN_REMOTE_COMPONENTS, pa as siteFor, pn as appendTrace, pt as IDLE_ACTION_STATUS, qi as resolveCoreBlockFiles, qn as customRole, rn as actionEffect, ro as compositionSourceKey, s as ActionError, sc as EventCategory$1, t as ACTION_TARGET_INVALIDATION_EVENTS, ti as lockDoorLinkOfComposition, tr as describeComposableCaps, u as ActionVariableSchema, vi as normalizeCoreBlockWrite, x as COMPOSER_RUNNER_ID, xn as buildCapabilityLookup, xr as fanPresetsCapability, yi as normalizeStepTargets, za as weekdayOfLocalDate, zn as coreBlockAddonId, zt as RemoteConfigSchema } from "../../dist-Iq3vrBOE.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
|
-
import { i as parseDeviceStateChanged, t as describeCompositionSources } from "../../composition-sources-
|
|
3
|
+
import { i as parseDeviceStateChanged, t as describeCompositionSources } from "../../composition-sources-CzRiSzCV.mjs";
|
|
4
4
|
import { t as prefixRange } from "../../prefix-range-Dl0znowN.mjs";
|
|
5
5
|
import { n as unwrapStoredValue, t as loadPrefixed } from "../../prefix-walk-DAOBSyH1.mjs";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
@@ -1860,6 +1860,247 @@ var CoreBlockStore = class CoreBlockStore {
|
|
|
1860
1860
|
}
|
|
1861
1861
|
};
|
|
1862
1862
|
//#endregion
|
|
1863
|
+
//#region src/builtins/core-blocks/migrations/helper-to-customize.ts
|
|
1864
|
+
/**
|
|
1865
|
+
* The appliance and heater helper compositions become plain Customize
|
|
1866
|
+
* compositions (D1004, planning#402 phase 4).
|
|
1867
|
+
*
|
|
1868
|
+
* A washer, dryer, dishwasher or heater built from the old template stores a
|
|
1869
|
+
* compiled composition PLUS the `helper` spec the editor reads. D1004 retires
|
|
1870
|
+
* those templates: running, power and the power source are Customize
|
|
1871
|
+
* extensions of a plain composed device. This rewrites each stored block so
|
|
1872
|
+
* the same device keeps working with no helper:
|
|
1873
|
+
*
|
|
1874
|
+
* - `running-state` is recompiled in the Customize catalog format
|
|
1875
|
+
* (`compileScalarOverride`, target `running`) with the SAME threshold and
|
|
1876
|
+
* start and stop dwells, reading the SAME meter;
|
|
1877
|
+
* - `power-meter` is recompiled the same way (target `power`) from the meter;
|
|
1878
|
+
* - an appliance's `power-source` is recompiled (target `switch`) from the SAME
|
|
1879
|
+
* plug, keeping its `offSeconds`;
|
|
1880
|
+
* - a heater's `switch` feature, the read of the plug and the forward of
|
|
1881
|
+
* `setState` to it, is kept exactly as it is;
|
|
1882
|
+
* - a heater with no meter runs while its plug is on (the plug as a `switch`
|
|
1883
|
+
* source, identity): it never used the threshold, so none is stored;
|
|
1884
|
+
* - the `helper` key leaves the composition.
|
|
1885
|
+
*
|
|
1886
|
+
* The block id, and with it the composed device stableId and the deviceId
|
|
1887
|
+
* the device registry holds, never moves, so the history stays attached. Only
|
|
1888
|
+
* a `new`-target block with an appliance or heater `helper` is touched; an
|
|
1889
|
+
* aggregator helper, a free composition, a customization of an existing device
|
|
1890
|
+
* and a block already rewritten (no `helper`) are left as they are, so a rerun
|
|
1891
|
+
* edits nothing. A block that IS an appliance or heater helper but cannot be
|
|
1892
|
+
* rewritten (it does not parse, or does not compile) THROWS: the migration
|
|
1893
|
+
* refuses rather than guess, and the owner does not start.
|
|
1894
|
+
*/
|
|
1895
|
+
var HELPER_TO_CUSTOMIZE_ID = "core-blocks/2026-11-03-helper-to-customize";
|
|
1896
|
+
/** The raw shape of a helper block, enough to refuse one the schema cannot read. */
|
|
1897
|
+
var RawHelperBlockSchema = z.object({ source: z.object({ composition: z.object({ helper: z.object({ kind: z.enum(["appliance", "heater"]) }) }) }) });
|
|
1898
|
+
function refuse$1(blockId, why) {
|
|
1899
|
+
throw new Error(`helper-to-customize: block ${blockId} is not rewritten: ${why}`);
|
|
1900
|
+
}
|
|
1901
|
+
function compileOrRefuse(blockId, input) {
|
|
1902
|
+
const out = compileScalarOverride(input);
|
|
1903
|
+
if (!out.ok) return refuse$1(blockId, `${input.draft.cap}.${input.draft.targetId}: ${out.reason}`);
|
|
1904
|
+
return out.value;
|
|
1905
|
+
}
|
|
1906
|
+
function powerMeterFeature(input) {
|
|
1907
|
+
return compileOrRefuse(input.blockId, {
|
|
1908
|
+
draft: {
|
|
1909
|
+
kind: "scalar",
|
|
1910
|
+
cap: "power-meter",
|
|
1911
|
+
targetId: "power",
|
|
1912
|
+
source: sourceOf(input.meter),
|
|
1913
|
+
transform: { kind: "identity" }
|
|
1914
|
+
},
|
|
1915
|
+
device: input.device,
|
|
1916
|
+
apply: "add",
|
|
1917
|
+
sourceValueKind: "number",
|
|
1918
|
+
changedAtField: null,
|
|
1919
|
+
sourceUnit: "W"
|
|
1920
|
+
});
|
|
1921
|
+
}
|
|
1922
|
+
function sourceOf(member) {
|
|
1923
|
+
return {
|
|
1924
|
+
addonId: member.source.addonId,
|
|
1925
|
+
stableId: member.source.stableId,
|
|
1926
|
+
cap: member.cap,
|
|
1927
|
+
fieldPath: member.fieldPath
|
|
1928
|
+
};
|
|
1929
|
+
}
|
|
1930
|
+
function thresholdRunning(input) {
|
|
1931
|
+
return compileOrRefuse(input.blockId, {
|
|
1932
|
+
draft: {
|
|
1933
|
+
kind: "scalar",
|
|
1934
|
+
cap: "running-state",
|
|
1935
|
+
targetId: "running",
|
|
1936
|
+
source: sourceOf(input.meter),
|
|
1937
|
+
transform: {
|
|
1938
|
+
kind: "threshold",
|
|
1939
|
+
comparison: "gte",
|
|
1940
|
+
threshold: input.thresholdWatts,
|
|
1941
|
+
startDwellMs: input.startDwellMs,
|
|
1942
|
+
stopDwellMs: input.stopDwellMs
|
|
1943
|
+
}
|
|
1944
|
+
},
|
|
1945
|
+
device: input.device,
|
|
1946
|
+
apply: "add",
|
|
1947
|
+
sourceValueKind: "number",
|
|
1948
|
+
changedAtField: null,
|
|
1949
|
+
sourceUnit: "W"
|
|
1950
|
+
});
|
|
1951
|
+
}
|
|
1952
|
+
function plugRunning(blockId, device, plug) {
|
|
1953
|
+
return compileOrRefuse(blockId, {
|
|
1954
|
+
draft: {
|
|
1955
|
+
kind: "scalar",
|
|
1956
|
+
cap: "running-state",
|
|
1957
|
+
targetId: "running",
|
|
1958
|
+
source: sourceOf(plug),
|
|
1959
|
+
transform: { kind: "identity" }
|
|
1960
|
+
},
|
|
1961
|
+
device,
|
|
1962
|
+
apply: "add",
|
|
1963
|
+
sourceValueKind: "boolean",
|
|
1964
|
+
changedAtField: "lastChangedAt",
|
|
1965
|
+
sourceUnit: null
|
|
1966
|
+
});
|
|
1967
|
+
}
|
|
1968
|
+
function powerSourceFeature(blockId, device, plug, original) {
|
|
1969
|
+
const compiled = compileOrRefuse(blockId, {
|
|
1970
|
+
draft: {
|
|
1971
|
+
kind: "scalar",
|
|
1972
|
+
cap: "power-source",
|
|
1973
|
+
targetId: "switch",
|
|
1974
|
+
source: sourceOf(plug),
|
|
1975
|
+
transform: { kind: "identity" }
|
|
1976
|
+
},
|
|
1977
|
+
device,
|
|
1978
|
+
apply: "add",
|
|
1979
|
+
sourceValueKind: "boolean",
|
|
1980
|
+
changedAtField: null,
|
|
1981
|
+
sourceUnit: null
|
|
1982
|
+
});
|
|
1983
|
+
const offSeconds = original.fields["offSeconds"];
|
|
1984
|
+
if (offSeconds === void 0) return refuse$1(blockId, "its power-source has no offSeconds");
|
|
1985
|
+
return {
|
|
1986
|
+
...compiled,
|
|
1987
|
+
fields: {
|
|
1988
|
+
...compiled.fields,
|
|
1989
|
+
offSeconds
|
|
1990
|
+
}
|
|
1991
|
+
};
|
|
1992
|
+
}
|
|
1993
|
+
function replacementsOf(blockId, composition, helper) {
|
|
1994
|
+
const device = composedDeviceRef(blockId);
|
|
1995
|
+
if (helper.kind === "appliance") {
|
|
1996
|
+
const base = {
|
|
1997
|
+
"running-state": thresholdRunning({
|
|
1998
|
+
blockId,
|
|
1999
|
+
device,
|
|
2000
|
+
meter: helper.member,
|
|
2001
|
+
thresholdWatts: helper.thresholdWatts,
|
|
2002
|
+
startDwellMs: helper.startDwellMs,
|
|
2003
|
+
stopDwellMs: helper.stopDwellMs
|
|
2004
|
+
}),
|
|
2005
|
+
"power-meter": powerMeterFeature({
|
|
2006
|
+
blockId,
|
|
2007
|
+
device,
|
|
2008
|
+
meter: helper.member
|
|
2009
|
+
})
|
|
2010
|
+
};
|
|
2011
|
+
if (helper.powerSwitch === void 0) return base;
|
|
2012
|
+
const original = composition.features.find((f) => f.cap === "power-source");
|
|
2013
|
+
if (original === void 0 || original.kind !== "fields") return refuse$1(blockId, "the helper names a power plug but no power-source feature is stored");
|
|
2014
|
+
return {
|
|
2015
|
+
...base,
|
|
2016
|
+
"power-source": powerSourceFeature(blockId, device, helper.powerSwitch, original)
|
|
2017
|
+
};
|
|
2018
|
+
}
|
|
2019
|
+
const meter = helper.meter;
|
|
2020
|
+
if (meter === void 0) return { "running-state": plugRunning(blockId, device, helper.plug) };
|
|
2021
|
+
return {
|
|
2022
|
+
"running-state": thresholdRunning({
|
|
2023
|
+
blockId,
|
|
2024
|
+
device,
|
|
2025
|
+
meter,
|
|
2026
|
+
thresholdWatts: helper.thresholdWatts,
|
|
2027
|
+
startDwellMs: helper.startDwellMs,
|
|
2028
|
+
stopDwellMs: helper.stopDwellMs
|
|
2029
|
+
}),
|
|
2030
|
+
"power-meter": powerMeterFeature({
|
|
2031
|
+
blockId,
|
|
2032
|
+
device,
|
|
2033
|
+
meter
|
|
2034
|
+
})
|
|
2035
|
+
};
|
|
2036
|
+
}
|
|
2037
|
+
function rewriteComposition(blockId, composition) {
|
|
2038
|
+
const helper = composition.helper;
|
|
2039
|
+
if (helper === void 0 || helper.kind !== "appliance" && helper.kind !== "heater") return null;
|
|
2040
|
+
if (composition.target.kind !== "new") return refuse$1(blockId, "a helper that targets an existing device");
|
|
2041
|
+
const replacements = replacementsOf(blockId, composition, helper);
|
|
2042
|
+
const seen = /* @__PURE__ */ new Set();
|
|
2043
|
+
const features = composition.features.map((feature) => {
|
|
2044
|
+
const replacement = replacements[feature.cap];
|
|
2045
|
+
if (replacement === void 0) return feature;
|
|
2046
|
+
seen.add(feature.cap);
|
|
2047
|
+
return replacement;
|
|
2048
|
+
});
|
|
2049
|
+
const missing = Object.keys(replacements).filter((cap) => !seen.has(cap));
|
|
2050
|
+
if (missing.length > 0) return refuse$1(blockId, `no stored ${missing.join(", ")} feature to rewrite`);
|
|
2051
|
+
const { helper: _helper, ...rest } = composition;
|
|
2052
|
+
const parsed = CompositionSchema.safeParse({
|
|
2053
|
+
...rest,
|
|
2054
|
+
features
|
|
2055
|
+
});
|
|
2056
|
+
if (!parsed.success) return refuse$1(blockId, `the rewritten composition is invalid: ${parsed.error.message}`);
|
|
2057
|
+
return parsed.data;
|
|
2058
|
+
}
|
|
2059
|
+
function rewriteOf$1(row, ports) {
|
|
2060
|
+
const parsed = CoreBlockSchema.safeParse(row.data.block);
|
|
2061
|
+
if (!parsed.success) {
|
|
2062
|
+
if (RawHelperBlockSchema.safeParse(row.data.block).success) return refuse$1(row.id, `the stored block does not parse: ${parsed.error.message}`);
|
|
2063
|
+
return null;
|
|
2064
|
+
}
|
|
2065
|
+
const block = parsed.data;
|
|
2066
|
+
if (block.source === void 0 || block.source.kind !== "composition") return null;
|
|
2067
|
+
const composition = rewriteComposition(row.id, block.source.composition);
|
|
2068
|
+
if (composition === null) return null;
|
|
2069
|
+
const updatedAt = Math.max(block.updatedAt + 1, ports.now());
|
|
2070
|
+
const next = CoreBlockSchema.safeParse({
|
|
2071
|
+
...block,
|
|
2072
|
+
source: {
|
|
2073
|
+
kind: "composition",
|
|
2074
|
+
composition
|
|
2075
|
+
},
|
|
2076
|
+
updatedAt
|
|
2077
|
+
});
|
|
2078
|
+
if (!next.success) return refuse$1(row.id, `the rewritten block is invalid: ${next.error.message}`);
|
|
2079
|
+
return {
|
|
2080
|
+
row,
|
|
2081
|
+
data: {
|
|
2082
|
+
...row.data,
|
|
2083
|
+
updatedAt,
|
|
2084
|
+
block: next.data
|
|
2085
|
+
}
|
|
2086
|
+
};
|
|
2087
|
+
}
|
|
2088
|
+
async function rewriteHelpersToCustomize(ports) {
|
|
2089
|
+
const rewrites = (await ports.listBlockRows()).flatMap((row) => {
|
|
2090
|
+
const rewrite = rewriteOf$1(row, ports);
|
|
2091
|
+
return rewrite === null ? [] : [rewrite];
|
|
2092
|
+
});
|
|
2093
|
+
if (rewrites.length === 0) return {
|
|
2094
|
+
outcome: "already-done",
|
|
2095
|
+
summary: { blocks: 0 }
|
|
2096
|
+
};
|
|
2097
|
+
for (const { row, data } of rewrites) await ports.replaceBlockRow(row.id, data, row.rev);
|
|
2098
|
+
return {
|
|
2099
|
+
outcome: "done",
|
|
2100
|
+
summary: { blocks: rewrites.length }
|
|
2101
|
+
};
|
|
2102
|
+
}
|
|
2103
|
+
//#endregion
|
|
1863
2104
|
//#region src/builtins/core-blocks/migrations/pump-cycle-split.ts
|
|
1864
2105
|
/**
|
|
1865
2106
|
* The pump duty cycle leaves the `pet-fountain` feature of a stored composition
|
|
@@ -2047,6 +2288,21 @@ var ADDON_MIGRATIONS = [{
|
|
|
2047
2288
|
fixtureMark: "the block createdBy and name, which the migration does not know"
|
|
2048
2289
|
},
|
|
2049
2290
|
procedure: splitPumpCycleFromFountain
|
|
2291
|
+
}, {
|
|
2292
|
+
meta: {
|
|
2293
|
+
id: HELPER_TO_CUSTOMIZE_ID,
|
|
2294
|
+
owner: "core-blocks",
|
|
2295
|
+
level: "addon-state",
|
|
2296
|
+
seq: 2,
|
|
2297
|
+
dependsOn: [],
|
|
2298
|
+
store: "settings",
|
|
2299
|
+
scope: "cluster",
|
|
2300
|
+
onFailure: "block-owner",
|
|
2301
|
+
bodyKind: "procedure",
|
|
2302
|
+
description: "Rewrite each stored appliance and heater helper composition into plain Customize features (running-state, power-meter, power-source) with the same threshold, dwells and plugs, and drop the helper spec",
|
|
2303
|
+
fixtureMark: "the marked threshold, start and stop dwell, plug and offSeconds of each helper"
|
|
2304
|
+
},
|
|
2305
|
+
procedure: rewriteHelpersToCustomize
|
|
2050
2306
|
}];
|
|
2051
2307
|
//#endregion
|
|
2052
2308
|
//#region src/builtins/core-blocks/runs-ledger.ts
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The appliance and heater helper compositions become plain Customize
|
|
3
|
+
* compositions (D1004, planning#402 phase 4).
|
|
4
|
+
*
|
|
5
|
+
* A washer, dryer, dishwasher or heater built from the old template stores a
|
|
6
|
+
* compiled composition PLUS the `helper` spec the editor reads. D1004 retires
|
|
7
|
+
* those templates: running, power and the power source are Customize
|
|
8
|
+
* extensions of a plain composed device. This rewrites each stored block so
|
|
9
|
+
* the same device keeps working with no helper:
|
|
10
|
+
*
|
|
11
|
+
* - `running-state` is recompiled in the Customize catalog format
|
|
12
|
+
* (`compileScalarOverride`, target `running`) with the SAME threshold and
|
|
13
|
+
* start and stop dwells, reading the SAME meter;
|
|
14
|
+
* - `power-meter` is recompiled the same way (target `power`) from the meter;
|
|
15
|
+
* - an appliance's `power-source` is recompiled (target `switch`) from the SAME
|
|
16
|
+
* plug, keeping its `offSeconds`;
|
|
17
|
+
* - a heater's `switch` feature, the read of the plug and the forward of
|
|
18
|
+
* `setState` to it, is kept exactly as it is;
|
|
19
|
+
* - a heater with no meter runs while its plug is on (the plug as a `switch`
|
|
20
|
+
* source, identity): it never used the threshold, so none is stored;
|
|
21
|
+
* - the `helper` key leaves the composition.
|
|
22
|
+
*
|
|
23
|
+
* The block id, and with it the composed device stableId and the deviceId
|
|
24
|
+
* the device registry holds, never moves, so the history stays attached. Only
|
|
25
|
+
* a `new`-target block with an appliance or heater `helper` is touched; an
|
|
26
|
+
* aggregator helper, a free composition, a customization of an existing device
|
|
27
|
+
* and a block already rewritten (no `helper`) are left as they are, so a rerun
|
|
28
|
+
* edits nothing. A block that IS an appliance or heater helper but cannot be
|
|
29
|
+
* rewritten (it does not parse, or does not compile) THROWS: the migration
|
|
30
|
+
* refuses rather than guess, and the owner does not start.
|
|
31
|
+
*/
|
|
32
|
+
import { type MigrationProcedureResult } from "@camstack/types";
|
|
33
|
+
import type { CoreBlocksMigrationPorts } from "./pump-cycle-split.js";
|
|
34
|
+
export declare const HELPER_TO_CUSTOMIZE_ID = "core-blocks/2026-11-03-helper-to-customize";
|
|
35
|
+
export declare function rewriteHelpersToCustomize(ports: CoreBlocksMigrationPorts): Promise<MigrationProcedureResult>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AddonMigration } from "@camstack/types";
|
|
2
2
|
import { type CoreBlocksMigrationPorts } from "./pump-cycle-split.js";
|
|
3
|
+
export { HELPER_TO_CUSTOMIZE_ID } from "./helper-to-customize.js";
|
|
3
4
|
export { coreBlocksMigrationPorts, PUMP_CYCLE_SPLIT_ID, type CoreBlocksMigrationPorts, type StoredBlockRow } from "./pump-cycle-split.js";
|
|
4
5
|
/** The `core-blocks` catalogue (D987): offered to the engine when the hub-resident addon initialises. */
|
|
5
6
|
export declare const ADDON_MIGRATIONS: readonly AddonMigration<CoreBlocksMigrationPorts>[];
|
|
@@ -3,8 +3,8 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
7
|
-
const require_retention = require("../../retention-
|
|
6
|
+
const require_dist = require("../../dist-CYnRCUzN.js");
|
|
7
|
+
const require_retention = require("../../retention-WjI-Op7G.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
//#region src/builtins/device-history/capture/point-writer.ts
|
|
10
10
|
var FLUSH_INTERVAL_MS = 1e4;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { S as subjectIdOf, _ as readUnit, a as FIVE_MINUTES_MS, b as SeriesRegistry, c as bucketEndOf, d as CAP_KEY_PREFIX, f as CaptureEngine, g as readPath, h as catalogMetrics, i as DAY_MS, l as bucketStartOf, m as capSeriesKey, n as RetentionJob, o as HOUR_MS, p as capItemSeriesKey, r as DepartureTracker, s as ROLLUP_GRACE_MS, t as DEFAULT_RETENTION, u as floorTo, v as DeviceDirectory, x as identityOf, y as isRealDeviceType } from "../../retention-
|
|
1
|
+
import { Os as isReadingQuantity, Ss as historyUnitFor, _s as emitReadiness, ac as DeviceType, bo as BaseAddon, ct as HISTORY_CATALOG, hs as defineRecordKinds, ir as deviceHistoryCapability, lt as HISTORY_ITEM_CATALOG, mn as armRemovalReconcile, or as deviceRemovalHookCapability, q as DeviceRunSchema, sc as EventCategory, sr as deviceRunsCapability, yo as wattMillisecondsToKwh, z as DEVICE_HISTORY_ENERGY_KEY } from "../../dist-Iq3vrBOE.mjs";
|
|
2
|
+
import { S as subjectIdOf, _ as readUnit, a as FIVE_MINUTES_MS, b as SeriesRegistry, c as bucketEndOf, d as CAP_KEY_PREFIX, f as CaptureEngine, g as readPath, h as catalogMetrics, i as DAY_MS, l as bucketStartOf, m as capSeriesKey, n as RetentionJob, o as HOUR_MS, p as capItemSeriesKey, r as DepartureTracker, s as ROLLUP_GRACE_MS, t as DEFAULT_RETENTION, u as floorTo, v as DeviceDirectory, x as identityOf, y as isRealDeviceType } from "../../retention-C-lijsmN.mjs";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
//#region src/builtins/device-history/capture/point-writer.ts
|
|
5
5
|
var FLUSH_INTERVAL_MS = 1e4;
|
|
@@ -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-CYnRCUzN.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 { $
|
|
1
|
+
import { $n as defineExtensionSlotProvider, $o as WELL_KNOWN_TAB_MAP, $r as locationIconKey, $s as toSecretFieldView, Di as parseStreamParamsFormPatch, Dn as canonicalIconKey, Ds as isKeychainStoredField, Er as formatMinutes, F as DAY_NAMES, Gn as createDeviceExtensionProvider, Ht as STREAM_PROFILE_META, J as DeviceStatusSchema, Jo as SECRET_CLEAR, Jr as legacyAutoLinkIds, Js as secretTreeFromPaths, Ks as resolveSecretMarkers, Ms as isSecretMarkerLike, Ts as isDeviceConfigCap, X as DiscoveryProposalBodySchema, Y as DeviceTombstoneSchema, Zs as sleep$1, ac as DeviceType, ar as deviceManagerCapability, at as FieldClaimModeSchema, bi as normalizeUnit, bo as BaseAddon, cr as deviceStateCapability, dr as enumerateItemArrayFields, ec as transformSecretWrite, fr as enumerateSchemaFields, g as CAMERA_SWITCH_ORDER, gr as expandContainer, hs as defineRecordKinds, ic as DeviceRole, js as isSecretMarker, ks as isSecretClear, lr as deviceStatusCapability, ls as collectZodSecretPaths, ma as siteZoneKey, o as ALL_CAPABILITY_DEFINITIONS, oc as errMsg, ot as FieldClaimSchema, ra as runtimeStatePolicyFor, rc as DeviceFeature, rr as deviceExtensionCapability, sc as EventCategory, tc as userError, v as CAP_NAMES_WITH_STATUS, wn as buildStreamParamsConfigSchema, xt as MINUTES_PER_DAY } from "../../dist-Iq3vrBOE.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-CYnRCUzN.js");
|
|
7
7
|
const require_formatter = require("../../formatter-xbxeV4GD.js");
|
|
8
8
|
//#region src/builtins/hub-forwarder/hub-forwarder-destination.ts
|
|
9
9
|
var DEFAULT_OUTBOUND_BUFFER_SIZE = 500;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bo as BaseAddon, ni as logDestinationCapability } from "../../dist-Iq3vrBOE.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,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-
|
|
7
|
-
const require_device_ca = require("../../device-ca-
|
|
6
|
+
const require_dist = require("../../dist-CYnRCUzN.js");
|
|
7
|
+
const require_device_ca = require("../../device-ca-CL_Arugd.js");
|
|
8
8
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
9
|
-
const require_constants = require("../../constants-
|
|
9
|
+
const require_constants = require("../../constants-0rC5QY6i.js");
|
|
10
10
|
const require_platform_key_source = require("../../platform-key-source-Di7HrlGR.js");
|
|
11
11
|
let node_crypto = require("node:crypto");
|
|
12
12
|
let _camstack_types_node = require("@camstack/types/node");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-
|
|
1
|
+
import { Hs as parseSecretRef, Kr as keychainAdminCapability, _t as KeychainResetRecordSchema, bo as BaseAddon, gt as KeychainAuditEntrySchema, hs as defineRecordKinds, ht as KEYCHAIN_RESET_TRIGGER_ACTOR, qr as keychainCapability, sc as EventCategory, ys as formatSecretScope, zs as normalizeSecretOwner } from "../../dist-Iq3vrBOE.mjs";
|
|
2
|
+
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-D7TyMlsS.mjs";
|
|
3
3
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
4
|
-
import { a as MESH_CA_KEY_REF } from "../../constants-
|
|
4
|
+
import { a as MESH_CA_KEY_REF } from "../../constants-uI6uXyjP.mjs";
|
|
5
5
|
import { n as getPlatformKeychainKey } from "../../platform-key-source-BWlq0jjn.mjs";
|
|
6
6
|
import { createCipheriv, createDecipheriv, createHmac, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
7
7
|
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-CYnRCUzN.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 { Lt as RecordingStatusSchema, Nt as RECORDING_SOURCE_CAMSTACK_ADDON,
|
|
1
|
+
import { Lt as RecordingStatusSchema, Nt as RECORDING_SOURCE_CAMSTACK_ADDON, bo as BaseAddon, oc as errMsg, oi as mayWriteToLocation, sc as EventCategory, us as createEvent } from "../../dist-Iq3vrBOE.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-CYnRCUzN.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-CL_Arugd.js");
|
|
10
10
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
11
11
|
let zod = require("zod");
|
|
12
12
|
let node_crypto = require("node:crypto");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as __require, o as __toESM, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { A as CredentialTokenClaimsSchema, Aa as userManagementCapability, At as PreferenceNamespaceSchema, Cn as buildDeviceSignatureMessage, Dt as PREFERENCES_MAX_VALUE_BYTES, Gt as ScopedTokenSchema, Ps as makeSecretMarker, R as DEVICE_ENROLLMENT_TTL_MS, Rr as isCredentialTokenPayload, Sn as buildDeviceEnrollmentLink, Tr as formatDeviceRevoker, V as DEVICE_NONCE_TTL_MS, bo as BaseAddon, en as TokenScopeSchema, hn as authProviderCapability, hs as defineRecordKinds, js as isSecretMarker, jt as PreferenceValueSchema, kt as PreferenceDeviceIdSchema, nn as UserRecordSchema, nr as deviceCredentialsCapability, qt as SsoBridgeClaimsSchema, tc as userError, w as CREDENTIAL_TOKEN_AUDIENCE } from "../../dist-Iq3vrBOE.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-D7TyMlsS.mjs";
|
|
6
6
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import * as crypto$1 from "node:crypto";
|
|
@@ -1,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-CYnRCUzN.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-CNLYSVyJ.js");
|
|
6
6
|
let zod = require("zod");
|
|
7
7
|
let node_net = require("node:net");
|
|
8
8
|
let node_os = require("node:os");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { An as checkRoleAddress,
|
|
1
|
+
import { An as checkRoleAddress, Et as NetworkTunnelStartedDataSchema, Fr as isAppLinkBase, Ji as resolveHubAddressRoles, Ma as validateCustomAddress, Ni as preconditionOf, Oi as pickAppLinkHub, Qi as resolveNotificationTapAddress, Qr as localNetworkCapability, Wi as resolveAppConnections, _ as CAMSTACK_APP_LINK_ORIGIN, bo as BaseAddon, dt as HUB_MDNS_TXT_KEYS, fa as shortHostname, fs as defineAddonMigrations, oc as errMsg, sc as EventCategory, ut as HUB_MDNS_SERVICE_TYPE, zr as isDefaultAppConnectionEndpoint } from "../../dist-Iq3vrBOE.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-CvMKderb.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { isIP } from "node:net";
|
|
6
6
|
import * as os$1 from "node:os";
|
|
@@ -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-CYnRCUzN.js");
|
|
7
7
|
const require_log_read_filter = require("../../log-read-filter-Bi066jwU.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
//#region src/builtins/loki-logging/loki-payload.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ar as integrationInstancesCapability, As as isSecretFieldView, It as RecordIntegrationInstances, Ni as preconditionOf, Ur as isSameAddonId, _n as bareAddonId, bo as BaseAddon, fs as defineAddonMigrations, js as isSecretMarker, ms as defineEntryKind, ni as logDestinationCapability, qo as RevConflictError } from "../../dist-Iq3vrBOE.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-CYnRCUzN.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 { Ft as ROOT_BUCKET_KEY, Gi as resolveBucketMs, bo as BaseAddon, di as metricsProviderCapability, oc as errMsg, sc as EventCategory, tn as UNATTRIBUTED_BUCKET_KEY, us as createEvent, wr as foldSnapshotByFunction, zi as reducePoints } from "../../dist-Iq3vrBOE.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-CYnRCUzN.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 {
|
|
2
|
+
import { Ai as platformProbeCapability, Ti as parseAcceleratorFactsJson, _s as emitReadiness, bo as BaseAddon, oc as errMsg, sa as scoreRuntimes, sc as EventCategory, ur as enumerateInferenceDevices } from "../../dist-Iq3vrBOE.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-CYnRCUzN.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
//#region src/builtins/record-entries/entries-service.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ao as InvalidRecordError, Li as recordEntriesCapability, Qo as UnknownRecordKindError, Xs as secretViewsOf, bo as BaseAddon } from "../../dist-Iq3vrBOE.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-CYnRCUzN.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 { bo as BaseAddon, sc as EventCategory } from "../../dist-Iq3vrBOE.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-CYnRCUzN.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 { Ca as streamQualityLabel, Ls as nodePin, _n as bareAddonId, ac as DeviceType, bo as BaseAddon, er as deriveBatteryPresence, h as BatteryStatusSchema, ha as snapshotCapability, li as memoizePinnedFfmpeg, oc as errMsg, rc as DeviceFeature, sc as EventCategory, vn as batteryCapability } from "../../dist-Iq3vrBOE.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";
|