@camstack/server 1.2.890 → 1.2.892
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 +22 -0
- package/dist/api/trpc/generated-cap-mounts.js +2 -1
- package/dist/api/trpc/generated-cap-routers.js +212 -39
- package/dist/core/addon/addon-registry.service.js +47 -0
- package/dist/core/addon/retire-undeclared-fixed-integrations.js +57 -0
- package/package.json +31 -19
- package/system/dist/addon-runner.js +25 -9
- package/system/dist/addon-runner.mjs +25 -9
- 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/addon.d.ts +65 -41
- package/system/dist/builtins/camera-grid/grid-blocks.d.ts +51 -0
- package/system/dist/builtins/camera-grid/grid-camera-device.d.ts +4 -3
- package/system/dist/builtins/camera-grid/grid-layout-native-provider.d.ts +3 -1
- package/system/dist/builtins/camera-grid/grid-plan.d.ts +3 -3
- package/system/dist/builtins/camera-grid/index.d.ts +2 -6
- package/system/dist/builtins/camera-grid/index.js +431 -727
- package/system/dist/builtins/camera-grid/index.mjs +428 -719
- package/system/dist/builtins/composer/composed-device.d.ts +12 -2
- package/system/dist/builtins/composer/composer.addon.js +28 -10
- package/system/dist/builtins/composer/composer.addon.mjs +28 -10
- package/system/dist/builtins/composer/composition-declarations.d.ts +3 -1
- 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 +283 -51
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +284 -52
- package/system/dist/builtins/core-blocks/hero-layout-service.d.ts +19 -1
- package/system/dist/builtins/core-blocks/power-source-devices.d.ts +9 -0
- package/system/dist/builtins/core-blocks/power-source-service.d.ts +39 -2
- package/system/dist/builtins/core-blocks/tags-service.d.ts +20 -3
- package/system/dist/builtins/core-blocks/tags-wiring.d.ts +15 -2
- 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-identifiers-action.d.ts +9 -0
- package/system/dist/builtins/device-manager/device-manager.addon.js +172 -5
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +172 -5
- package/system/dist/builtins/device-manager/device-meta-types.d.ts +5 -1
- package/system/dist/builtins/device-manager/device-row-store.d.ts +3 -2
- package/system/dist/builtins/device-manager/device-state-mirror.d.ts +7 -0
- package/system/dist/builtins/device-manager/workload-transition.d.ts +23 -0
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +3 -3
- package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +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/{capture-engine-C1vdBL88.js → capture-engine-DHmlkW_d.js} +1 -1
- package/system/dist/{capture-engine-B1bMuzVX.mjs → capture-engine-sl6e9f9S.mjs} +1 -1
- package/system/dist/{composition-sources-Dj6qn5PP.mjs → composition-sources-CznD85Ri.mjs} +1 -1
- package/system/dist/{composition-sources-BfLlyKRe.js → composition-sources-PqcZfe3j.js} +1 -1
- package/system/dist/{constants-Ba51ywI4.mjs → constants-CHwj_mIM.mjs} +1 -1
- package/system/dist/{constants-DuB_xXYx.js → constants-_2SOk0By.js} +1 -1
- package/system/dist/{device-ca-CkXjf3ms.mjs → device-ca-D2H1EMUY.mjs} +1 -1
- package/system/dist/{device-ca-CVjaotgX.js → device-ca-WIEO5ZcE.js} +1 -1
- package/system/dist/{dist-BKojK6Wf.mjs → dist-DbAhCrHy.mjs} +2468 -454
- package/system/dist/{dist-BjhII4Uq.js → dist-yx2KHo3b.js} +2575 -453
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-C0qf888i.mjs → hub-identity-BcvZqT0L.mjs} +1 -1
- package/system/dist/{hub-identity-C0ehkt78.js → hub-identity-Buegac-w.js} +1 -1
- package/system/dist/{hub-mdns-ciao-BYe34S2Q.mjs → hub-mdns-ciao-B6K_dO2s.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-DJHjyjvT.js → hub-mdns-ciao-DcNPj7WJ.js} +2 -2
- package/system/dist/index.js +33 -19
- package/system/dist/index.mjs +33 -19
- package/system/dist/kernel/moleculer/child-cap-dispatch.d.ts +3 -6
- package/system/dist/kernel/moleculer/switch-toggle.d.ts +7 -2
- package/system/dist/{legacy-integration-rows-door-G6EceE_J.js → legacy-integration-rows-door-BsZyVNiR.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-BEYgXSXr.mjs → legacy-integration-rows-door-DHOJeDPG.mjs} +1 -1
- package/system/dist/{rename-composition-block-D1mO51F9.js → rename-composition-block-BXMor7MR.js} +1 -1
- package/system/dist/{rename-composition-block-D6bq3Twf.mjs → rename-composition-block-DcVS1LuC.mjs} +1 -1
- package/system/dist/{restore-archive-FXsCWq_f.mjs → restore-archive-BG8VJ8Ar.mjs} +82 -82
- package/system/dist/{restore-archive-CJvMq13C.js → restore-archive-BURufVQd.js} +1 -1
- package/system/dist/{wal-maintenance-Ci9Dl-lB.mjs → wal-maintenance-B4wGD6QR.mjs} +0 -0
- package/system/dist/{wal-maintenance-COJ_JxrD.js → wal-maintenance-CeaJyKNT.js} +0 -0
- package/system/package.json +2 -5
- package/system/dist/builtins/camera-grid/grid-camera-declarations.d.ts +0 -59
- package/system/dist/builtins/camera-grid/grid-instances.d.ts +0 -40
- package/system/dist/builtins/camera-grid/grid-record-kinds.d.ts +0 -31
- package/system/dist/builtins/camera-grid/migrations/__fixtures__/seed.d.ts +0 -13
- package/system/dist/builtins/camera-grid/migrations/camera-grids-to-records.d.ts +0 -26
- package/system/dist/builtins/camera-grid/migrations/index.d.ts +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseDevice, type CapabilityDefinition, type DeviceConstructor, type DeviceContext, type DeviceFeature, DeviceType, type GroupCommandResult, type IDevice, type ReadingQuantity } from "@camstack/types";
|
|
1
|
+
import { BaseDevice, type CapabilityDefinition, type DeviceConstructor, type DeviceContext, type DeviceStatusOwnership, type DeviceFeature, DeviceType, type GroupCommandResult, type IDevice, type ReadingQuantity } from "@camstack/types";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import type { ComposedWriteTarget, WriteOutcome } from "./composition-runtime.js";
|
|
4
4
|
import type { SlicePatch } from "./slice-assembler.js";
|
|
@@ -25,7 +25,7 @@ export declare class ComposedDevice extends BaseDevice<typeof COMPOSED_DEVICE_CO
|
|
|
25
25
|
get userNamed(): boolean;
|
|
26
26
|
get features(): readonly DeviceFeature[];
|
|
27
27
|
syncBoundFeatures(features: readonly DeviceFeature[]): void;
|
|
28
|
-
constructor(ctx: DeviceContext, type: DeviceType, caps: readonly CapabilityDefinition[]);
|
|
28
|
+
constructor(ctx: DeviceContext, type: DeviceType, caps: readonly CapabilityDefinition[], deviceStatus?: DeviceStatusOwnership);
|
|
29
29
|
/**
|
|
30
30
|
* The methods of a BUILT cap are commands (D967): each one is dispatched under
|
|
31
31
|
* its own name and the composer's forwards decide what it calls. A method the
|
|
@@ -75,6 +75,16 @@ export declare function composedDeviceClass(type: DeviceType, caps: readonly Cap
|
|
|
75
75
|
* ROW's (`deviceMeta.type`) — only ever adopted from an existing row, where the
|
|
76
76
|
* row is canonical — because there is no plan to take one from.
|
|
77
77
|
*/
|
|
78
|
+
/**
|
|
79
|
+
* The composer's device on an ENGINE-HOSTED row (Camera grid, Terminal camera —
|
|
80
|
+
* planning#580). The composer owns the row, its name and its lifetime; the
|
|
81
|
+
* engine serves every camera cap on it as a cross-addon native (D663) and is
|
|
82
|
+
* the only writer of its `device-status`. This device registers no cap and
|
|
83
|
+
* never writes availability.
|
|
84
|
+
*/
|
|
85
|
+
export declare class EngineHostedComposedDevice extends ComposedDevice {
|
|
86
|
+
constructor(ctx: DeviceContext);
|
|
87
|
+
}
|
|
78
88
|
export declare class ComposedPlaceholderDevice extends ComposedDevice {
|
|
79
89
|
constructor(ctx: DeviceContext);
|
|
80
90
|
}
|
|
@@ -3,11 +3,11 @@ 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_composition_sources = require("../../composition-sources-
|
|
8
|
-
const require_capture_engine = require("../../capture-engine-
|
|
6
|
+
const require_dist = require("../../dist-yx2KHo3b.js");
|
|
7
|
+
const require_composition_sources = require("../../composition-sources-PqcZfe3j.js");
|
|
8
|
+
const require_capture_engine = require("../../capture-engine-DHmlkW_d.js");
|
|
9
9
|
const require_retention = require("../../retention-BcOSL6b9.js");
|
|
10
|
-
const require_rename_composition_block = require("../../rename-composition-block-
|
|
10
|
+
const require_rename_composition_block = require("../../rename-composition-block-BXMor7MR.js");
|
|
11
11
|
let zod = require("zod");
|
|
12
12
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
13
13
|
/**
|
|
@@ -178,8 +178,11 @@ var ComposedDevice = class extends require_dist.BaseDevice {
|
|
|
178
178
|
this.boundFeatures = [...features];
|
|
179
179
|
this.refreshFeatures();
|
|
180
180
|
}
|
|
181
|
-
constructor(ctx, type, caps) {
|
|
182
|
-
super(ctx, COMPOSED_DEVICE_CONFIG_SCHEMA, {
|
|
181
|
+
constructor(ctx, type, caps, deviceStatus = "own") {
|
|
182
|
+
super(ctx, COMPOSED_DEVICE_CONFIG_SCHEMA, {
|
|
183
|
+
type,
|
|
184
|
+
deviceStatus
|
|
185
|
+
});
|
|
183
186
|
this.derivesWater = type === require_dist.DeviceType.PetFountain;
|
|
184
187
|
for (const cap of caps) {
|
|
185
188
|
if (cap.name === require_dist.motionCapability.name) {
|
|
@@ -443,6 +446,18 @@ function composedDeviceClass(type, caps) {
|
|
|
443
446
|
* ROW's (`deviceMeta.type`) — only ever adopted from an existing row, where the
|
|
444
447
|
* row is canonical — because there is no plan to take one from.
|
|
445
448
|
*/
|
|
449
|
+
/**
|
|
450
|
+
* The composer's device on an ENGINE-HOSTED row (Camera grid, Terminal camera —
|
|
451
|
+
* planning#580). The composer owns the row, its name and its lifetime; the
|
|
452
|
+
* engine serves every camera cap on it as a cross-addon native (D663) and is
|
|
453
|
+
* the only writer of its `device-status`. This device registers no cap and
|
|
454
|
+
* never writes availability.
|
|
455
|
+
*/
|
|
456
|
+
var EngineHostedComposedDevice = class extends ComposedDevice {
|
|
457
|
+
constructor(ctx) {
|
|
458
|
+
super(ctx, require_dist.DeviceType.Camera, [], "external");
|
|
459
|
+
}
|
|
460
|
+
};
|
|
446
461
|
var ComposedPlaceholderDevice = class extends ComposedDevice {
|
|
447
462
|
constructor(ctx) {
|
|
448
463
|
super(ctx, ctx.deviceMeta.type, []);
|
|
@@ -1680,16 +1695,17 @@ function declarationFor(input) {
|
|
|
1680
1695
|
stableId: require_dist.composedDeviceStableId(input.blockId),
|
|
1681
1696
|
name: input.name,
|
|
1682
1697
|
type: input.target.type,
|
|
1683
|
-
DeviceClass: composedDeviceClass(input.target.type, input.caps),
|
|
1698
|
+
DeviceClass: input.hosted ? EngineHostedComposedDevice : composedDeviceClass(input.target.type, input.caps),
|
|
1684
1699
|
...input.target.role === void 0 ? {} : { role: input.target.role }
|
|
1685
1700
|
};
|
|
1686
1701
|
}
|
|
1687
|
-
/** What forces a rebuild of the live device: type, role, cap set. Never the name. */
|
|
1702
|
+
/** What forces a rebuild of the live device: type, role, cap set, who hosts it. Never the name. */
|
|
1688
1703
|
function shapeOf(input) {
|
|
1689
1704
|
return JSON.stringify([
|
|
1690
1705
|
input.target.type,
|
|
1691
1706
|
input.target.role ?? null,
|
|
1692
|
-
input.caps.map((c) => c.name).toSorted()
|
|
1707
|
+
input.caps.map((c) => c.name).toSorted(),
|
|
1708
|
+
...input.hosted ? ["hosted"] : []
|
|
1693
1709
|
]);
|
|
1694
1710
|
}
|
|
1695
1711
|
/**
|
|
@@ -1843,11 +1859,13 @@ function planNew(block, target, lookupCap, rows) {
|
|
|
1843
1859
|
const def = lookupCap(f.cap);
|
|
1844
1860
|
return def === null ? [] : [def];
|
|
1845
1861
|
});
|
|
1862
|
+
const hosted = composition.helper !== void 0 && require_dist.isEngineHostedHelper(composition.helper);
|
|
1846
1863
|
const declarationInput = {
|
|
1847
1864
|
blockId: block.id,
|
|
1848
1865
|
name: block.name,
|
|
1849
1866
|
target,
|
|
1850
|
-
caps
|
|
1867
|
+
caps,
|
|
1868
|
+
hosted
|
|
1851
1869
|
};
|
|
1852
1870
|
return {
|
|
1853
1871
|
block,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-
|
|
3
|
-
import { i as capSeriesKey } from "../../capture-engine-
|
|
1
|
+
import { $o as switchCapability, $s as isEngineHostedHelper, Aa as petFountainCapability, As as HISTORY_SLOW_MS, Bs as composedDeviceStableId, Et as HvacModeSchema, Fo as sharedActuatorFeatures, Gn as brightnessCapability, Gs as createStatefulExpressionMemory, Ha as processTimeZoneOr, Hs as compositionItemFieldPath, Io as sharedActuatorMethods, Js as evaluateStatistic, Ks as disarmRoseMemory, Kt as PetFountainStatusSchema, Lo as sharedColorModes, M as ConsumableItemSchema, Na as planComposition, Ns as MINUTE_MS, Oa as parseColorInput, Ol as isReadingQuantity, Os as DEFAULT_HISTORY_RETENTION, Qs as integrateReading, Rs as cloneStatefulExpressionMemory, Tr as coverCapability, Ts as COMPOSER_ADDON_ID, Us as compositionSliceKey, Vs as compositionFeatureEnabled, Wi as kebabToCamel, Ws as compositionSourceKey, Xs as historyRetentionFromSettings, Zr as evaluateCompositionField, ac as planResetTier, bs as withDefaultRunning, bt as GroupCommandResultSchema, ca as mediaPlayerFeaturesOfRoles, cc as toExpressionValue, cr as climateControlCapability, da as methodRefusal, dr as colorCapability, du as featuresOfBoundCaps, ea as lockControlCapability, ec as isForwardInputRef, fu as EventCategory, ga as motionCapability, gr as compositionFieldKey, gt as FanDirectionSchema, ho as resolveMutate, hr as composerCapability, hs as valveCapability, i as ACTUATOR_TEMPLATE_IDS, ic as openStatistic, ja as petFountainWaterItem, jr as declaredSeriesKind, js as HOUR_MS, ks as HISTORY_FAST_MS, li as featureForwards, lu as DeviceType, nc as nextLocalMidnight, ni as expressionContainsBuiltinCall, oc as planStatisticTier, oi as fanControlCapability, qn as buildCapabilityLookup, qs as evaluateDerivative, r as ACTUATOR_METHODS, rc as openReset, s as ALL_CAPABILITY_DEFINITIONS, sa as mediaPlayerCapability, sc as statisticCadenceMs, si as fanOutTargets, sl as createEvent, tc as isHistoryHelper, tt as DeclaredDevices, uc as BaseAddon, uu as errMsg, v as BaseDevice, vi as groupCommandsCapability, w as COMPOSED_ITEM_FIXED_FIELDS, xo as runFanOut, yi as groupTemplate, yr as consumablesCapability, zs as composedDeviceRef } from "../../dist-DbAhCrHy.mjs";
|
|
2
|
+
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-CznD85Ri.mjs";
|
|
3
|
+
import { i as capSeriesKey } from "../../capture-engine-sl6e9f9S.mjs";
|
|
4
4
|
import { i as DAY_MS, t as DEFAULT_RETENTION } from "../../retention-CUOVI1p7.mjs";
|
|
5
|
-
import { n as renameCompositionBlock } from "../../rename-composition-block-
|
|
5
|
+
import { n as renameCompositionBlock } from "../../rename-composition-block-DcVS1LuC.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
8
8
|
/**
|
|
@@ -173,8 +173,11 @@ var ComposedDevice = class extends BaseDevice {
|
|
|
173
173
|
this.boundFeatures = [...features];
|
|
174
174
|
this.refreshFeatures();
|
|
175
175
|
}
|
|
176
|
-
constructor(ctx, type, caps) {
|
|
177
|
-
super(ctx, COMPOSED_DEVICE_CONFIG_SCHEMA, {
|
|
176
|
+
constructor(ctx, type, caps, deviceStatus = "own") {
|
|
177
|
+
super(ctx, COMPOSED_DEVICE_CONFIG_SCHEMA, {
|
|
178
|
+
type,
|
|
179
|
+
deviceStatus
|
|
180
|
+
});
|
|
178
181
|
this.derivesWater = type === DeviceType.PetFountain;
|
|
179
182
|
for (const cap of caps) {
|
|
180
183
|
if (cap.name === motionCapability.name) {
|
|
@@ -438,6 +441,18 @@ function composedDeviceClass(type, caps) {
|
|
|
438
441
|
* ROW's (`deviceMeta.type`) — only ever adopted from an existing row, where the
|
|
439
442
|
* row is canonical — because there is no plan to take one from.
|
|
440
443
|
*/
|
|
444
|
+
/**
|
|
445
|
+
* The composer's device on an ENGINE-HOSTED row (Camera grid, Terminal camera —
|
|
446
|
+
* planning#580). The composer owns the row, its name and its lifetime; the
|
|
447
|
+
* engine serves every camera cap on it as a cross-addon native (D663) and is
|
|
448
|
+
* the only writer of its `device-status`. This device registers no cap and
|
|
449
|
+
* never writes availability.
|
|
450
|
+
*/
|
|
451
|
+
var EngineHostedComposedDevice = class extends ComposedDevice {
|
|
452
|
+
constructor(ctx) {
|
|
453
|
+
super(ctx, DeviceType.Camera, [], "external");
|
|
454
|
+
}
|
|
455
|
+
};
|
|
441
456
|
var ComposedPlaceholderDevice = class extends ComposedDevice {
|
|
442
457
|
constructor(ctx) {
|
|
443
458
|
super(ctx, ctx.deviceMeta.type, []);
|
|
@@ -1675,16 +1690,17 @@ function declarationFor(input) {
|
|
|
1675
1690
|
stableId: composedDeviceStableId(input.blockId),
|
|
1676
1691
|
name: input.name,
|
|
1677
1692
|
type: input.target.type,
|
|
1678
|
-
DeviceClass: composedDeviceClass(input.target.type, input.caps),
|
|
1693
|
+
DeviceClass: input.hosted ? EngineHostedComposedDevice : composedDeviceClass(input.target.type, input.caps),
|
|
1679
1694
|
...input.target.role === void 0 ? {} : { role: input.target.role }
|
|
1680
1695
|
};
|
|
1681
1696
|
}
|
|
1682
|
-
/** What forces a rebuild of the live device: type, role, cap set. Never the name. */
|
|
1697
|
+
/** What forces a rebuild of the live device: type, role, cap set, who hosts it. Never the name. */
|
|
1683
1698
|
function shapeOf(input) {
|
|
1684
1699
|
return JSON.stringify([
|
|
1685
1700
|
input.target.type,
|
|
1686
1701
|
input.target.role ?? null,
|
|
1687
|
-
input.caps.map((c) => c.name).toSorted()
|
|
1702
|
+
input.caps.map((c) => c.name).toSorted(),
|
|
1703
|
+
...input.hosted ? ["hosted"] : []
|
|
1688
1704
|
]);
|
|
1689
1705
|
}
|
|
1690
1706
|
/**
|
|
@@ -1838,11 +1854,13 @@ function planNew(block, target, lookupCap, rows) {
|
|
|
1838
1854
|
const def = lookupCap(f.cap);
|
|
1839
1855
|
return def === null ? [] : [def];
|
|
1840
1856
|
});
|
|
1857
|
+
const hosted = composition.helper !== void 0 && isEngineHostedHelper(composition.helper);
|
|
1841
1858
|
const declarationInput = {
|
|
1842
1859
|
blockId: block.id,
|
|
1843
1860
|
name: block.name,
|
|
1844
1861
|
target,
|
|
1845
|
-
caps
|
|
1862
|
+
caps,
|
|
1863
|
+
hosted
|
|
1846
1864
|
};
|
|
1847
1865
|
return {
|
|
1848
1866
|
block,
|
|
@@ -15,9 +15,11 @@ export interface ComposerDeclarationInput {
|
|
|
15
15
|
readonly name: string;
|
|
16
16
|
readonly target: CompositionNewTarget;
|
|
17
17
|
readonly caps: readonly CapabilityDefinition[];
|
|
18
|
+
/** An engine serves this row's caps and status (a grid or terminal helper, planning#580). */
|
|
19
|
+
readonly hosted: boolean;
|
|
18
20
|
}
|
|
19
21
|
export declare function declarationFor(input: ComposerDeclarationInput): DeviceDeclaration;
|
|
20
|
-
/** What forces a rebuild of the live device: type, role, cap set. Never the name. */
|
|
22
|
+
/** What forces a rebuild of the live device: type, role, cap set, who hosts it. Never the name. */
|
|
21
23
|
export declare function shapeOf(input: ComposerDeclarationInput): string;
|
|
22
24
|
/**
|
|
23
25
|
* The numeric id of the live composed device behind a stableId, or null when
|
|
@@ -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-yx2KHo3b.js");
|
|
7
7
|
const require_formatter = require("../../formatter-xbxeV4GD.js");
|
|
8
8
|
//#region src/builtins/console-logging/console-destination.ts
|
|
9
9
|
var LEVEL_RANK = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { na as logDestinationCapability, uc as BaseAddon } from "../../dist-DbAhCrHy.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-DkYZ4LXp.mjs";
|
|
3
3
|
//#region src/builtins/console-logging/console-destination.ts
|
|
4
4
|
var LEVEL_RANK = {
|