@camstack/types 1.2.608 → 1.2.610
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 +17 -0
- package/dist/addon.d.ts +1 -1
- package/dist/addon.js +3 -1
- package/dist/addon.mjs +2 -2
- package/dist/capabilities/heat-pump-status.cap.d.ts +9 -0
- package/dist/capabilities/migrations.cap.d.ts +15 -1
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +12 -0
- package/dist/generated/addon-cap-facts.d.ts +6 -0
- package/dist/generated/customize-catalog.d.ts +54 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +210 -3
- package/dist/index.mjs +205 -4
- package/dist/migrations/api/migration-api.v1.schema.d.ts +15 -1
- package/dist/migrations/migration-record-edits.d.ts +57 -0
- package/dist/migrations/migration.d.ts +45 -3
- package/dist/pipeline/auto-tune/plan-schemas.d.ts +28 -0
- package/dist/records/records-access.d.ts +8 -0
- package/dist/{runtime-capabilities-DCRxheYq.js → runtime-capabilities-1FIC5jNX.js} +678 -4
- package/dist/{runtime-capabilities-C0PIVXwH.mjs → runtime-capabilities-CK6y0W5U.mjs} +667 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.610] - 2026-11-20
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- A heat pump's electrical power and energy can be read from a device you pick in Customize
|
|
15
|
+
|
|
16
|
+
## [1.2.609] - 2026-11-20
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- Migration edits for records and devices: recordUpsertEdit, recordDeleteEdit, rekeyDeviceEdit, tombstoneDeviceEdit.
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- Schema-free per-capability state-field presence fact for addons
|
|
25
|
+
- Auto tune knows an NVIDIA GPU (CUDA) column: an estimate for a mid-range card, replaced by a real benchmark
|
|
26
|
+
|
|
10
27
|
## [1.2.608] - 2026-11-20
|
|
11
28
|
|
|
12
29
|
### Added
|
package/dist/addon.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export type * from './interfaces/addon-peer-bytes.js';
|
|
|
55
55
|
export { EventCategory } from './enums/event-category.js';
|
|
56
56
|
export { CAP_INPUT_DEFAULTS, withCapInputDefaults } from './generated/cap-input-defaults.js';
|
|
57
57
|
export { COLLECTION_ARRAY_METHODS, PROVIDER_OPTIONAL_METHODS, isCollectionArrayMethodName, isProviderOptionalMethodName, } from './generated/collection-array-methods.js';
|
|
58
|
-
export { CAP_ADVANCE_FIELDS, CAP_METHOD_TIMEOUTS_MS, CAP_STATE_LEAVES, } from './generated/addon-cap-facts.js';
|
|
58
|
+
export { CAP_ADVANCE_FIELDS, CAP_METHOD_TIMEOUTS_MS, CAP_STATE_FIELD_PRESENCE, CAP_STATE_LEAVES, } from './generated/addon-cap-facts.js';
|
|
59
59
|
export type { CapStateLeaf } from './generated/addon-cap-facts.js';
|
|
60
60
|
export { createDeviceProxy } from './generated/device-proxy.js';
|
|
61
61
|
export { createEventBusSliceSource } from './device/device-state-handle.js';
|
package/dist/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_runtime_capabilities = require("./runtime-capabilities-
|
|
2
|
+
const require_runtime_capabilities = require("./runtime-capabilities-1FIC5jNX.js");
|
|
3
3
|
const require_event_category = require("./event-category-CMA0-jGW.js");
|
|
4
4
|
const require_composed_stable_id = require("./composed-stable-id-DkF5-kuf.js");
|
|
5
5
|
//#region src/generated/cap-input-defaults.ts
|
|
@@ -564,6 +564,7 @@ exports.CAP_ADVANCE_FIELDS = require_runtime_capabilities.CAP_ADVANCE_FIELDS;
|
|
|
564
564
|
exports.CAP_INPUT_DEFAULTS = CAP_INPUT_DEFAULTS;
|
|
565
565
|
exports.CAP_METHOD_NOT_IMPLEMENTED = require_runtime_capabilities.CAP_METHOD_NOT_IMPLEMENTED;
|
|
566
566
|
exports.CAP_METHOD_TIMEOUTS_MS = require_runtime_capabilities.CAP_METHOD_TIMEOUTS_MS;
|
|
567
|
+
exports.CAP_STATE_FIELD_PRESENCE = require_runtime_capabilities.CAP_STATE_FIELD_PRESENCE;
|
|
567
568
|
exports.CAP_STATE_LEAVES = require_runtime_capabilities.CAP_STATE_LEAVES;
|
|
568
569
|
exports.COLLECTION_ARRAY_METHODS = COLLECTION_ARRAY_METHODS;
|
|
569
570
|
exports.COMPOSED_DEVICE_STABLE_ID_PREFIX = require_composed_stable_id.COMPOSED_DEVICE_STABLE_ID_PREFIX;
|
|
@@ -695,6 +696,7 @@ exports.nodePin = require_runtime_capabilities.nodePin;
|
|
|
695
696
|
exports.normalizeAddonInitResult = require_runtime_capabilities.normalizeAddonInitResult;
|
|
696
697
|
exports.normalizeSecretOwner = require_runtime_capabilities.normalizeSecretOwner;
|
|
697
698
|
exports.parseJsonUnknown = require_runtime_capabilities.parseJsonUnknown;
|
|
699
|
+
exports.parseRecordBody = require_runtime_capabilities.parseRecordBody;
|
|
698
700
|
exports.parseSecretPath = require_runtime_capabilities.parseSecretPath;
|
|
699
701
|
exports.parseSecretRef = require_runtime_capabilities.parseSecretRef;
|
|
700
702
|
exports.readCommandOrigin = require_runtime_capabilities.readCommandOrigin;
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as CAP_ADVANCE_FIELDS, $
|
|
1
|
+
import { $ as CAP_ADVANCE_FIELDS, $i as RECORD_QUERY_MAX, $n as createRecordsAccess, A as DEVICE_SCOPED_CAPS, Aa as UnknownRecordKindError, Ar as assertValidDeclaration, At as addonPagesSourceCapability, Bi as recordSecretCollection, Ca as RecordSecretUnavailableError, Cr as EntryDescriptorSchema, Ct as PipelineStepInputSchema, D as parseJsonUnknown, Da as RevConflictError, Do as findMigrationsBlocked, Dr as RecordKindNameSchema, Dt as DEVICE_CHILDREN_BATCH_MAX, Ea as RecordsError, Eo as AddonMigrationsBlockedError, Er as RecordKindDeclarationSchema, Et as deviceOpsCapability, F as createEventBusSliceSource, Fi as REMOVE_LEAF, Fr as isZodSecret, Gi as RECORD_CLASSES, Hi as secretArrayPrefixes, Ht as ReadinessRegistry, Ii as collectSecretLeaves, Ji as RECORD_DELETE_BATCH, Jn as OnBehalfSchema, Ki as RECORD_DATABASES, Kt as scopeKey, Li as mapSecretLeaves, M as createDeviceProxy, Ma as recordsErrorFromMessage, Mr as defineRecordKinds, O as hfModelUrl, Oa as TransactRefusedError, Or as RecordRetentionSchema, Ot as adminUiCapability, P as addonSliceHandleApi, Pi as secretViewsOf, Pr as collectZodSecretPaths, Qi as RECORD_MAX_INDEX_FIELDS, Qn as makeInMemoryRecords, Qr as ErrorI18nPayloadSchema, Ri as parseSecretPath, S as asJsonObject, Sa as RecordNotFoundError, Si as isInstanceSwitchesUnreadError, Sr as entryBody, St as PipelineRunResultBridge, Ta as RecordUniqueViolationError, Tr as RecordIndexSchema, Ua as createEvent, Ui as RECORD_BATCH_MAX, Ur as expandCapMethods, Ut as ReadinessTimeoutError, Vi as recordSecretRef, Vt as MODEL_FORMATS, W as isCommand, Wa as emitReadiness, Wi as RECORD_BATCH_MAX_BYTES, Xi as RECORD_MAX_DATA_BYTES, Xn as RuleFireOriginSchema, Yi as RECORD_ID_MAX_LENGTH, Yn as OnBehalfSourceSchema, Z as HF_REPO, Zi as RECORD_MAX_INDEXES, Zn as ruleFireOfClaim, _a as ForeignSecretMarkerError, _i as nodeIdOfScopedKey, _r as CALLER_USERNAME_HEADER, _t as readNodePin, aa as buildSecretRef, ao as isSecretMarkerLike, ar as MIN_SCRUBBED_LENGTH, at as isCapMethodAbsent, ba as PlaintextSecretError, br as DisposerChain, bt as SWITCH_SETTABLE_GATE, ca as isSecretRef, cr as knownSecretCount, ct as customAction, dr as shortSecretRefHash, ea as RECORD_SECRET_COLLECTION_PREFIX, en as createDebugEmitter, eo as SECRET_CLEAR, er as parseRecordBody, et as CAP_METHOD_TIMEOUTS_MS, fr as PEER_BYTES_CHUNK_BYTES, ga as FilterRequiredError, gi as SCOPED_SETTINGS_SCOPES, gt as readCommandOrigin, ha as DeclarationRefusedError, hr as PEER_BYTES_TICKET_TTL_MS, ht as nodePin, ia as arrayItemFieldPath, io as isSecretMarker, ir as createSecretsAccess, it as CAP_METHOD_NOT_IMPLEMENTED, j as isDeviceScopedCap, ja as asRecordsError, jr as declarationsOf, k as BOOT_RECOVERY_BACKOFF_MS, ka as UnindexedFilterError, kr as StoredRecordKindDeclarationSchema, la as normalizeSecretOwner, lr as registerKnownSecret, lt as defineCustomActions, ma as BatchTooLargeError, mr as PEER_BYTES_STALL_MS, mt as commandOrigin, n as describeNvidia, na as RECORD_SWEEP_INTERVAL_MS, no as isSecretClear, nr as resolveSecretViewsIn, nt as CAP_STATE_FIELD_PRESENCE, oa as formatSecretScope, oi as normalizeAddonInitResult, oo as makeSecretMarker, or as clearKnownSecrets, ot as CALLER_STAMPED_CAPABILITIES, pr as PEER_BYTES_MAX_OUTSTANDING, q as DEVICE_RESTORE_RETRY_DELAYS_MS, qi as RECORD_DEFAULT_MAX_DATA_BYTES, qn as CommandOriginClaimSchema, ra as SECRET_REF_SCHEME, ri as BaseAddon, ro as isSecretFieldView, rr as REVALIDATE_AFTER_MS, rt as CAP_STATE_LEAVES, sa as globalSecretScope, so as toSecretFieldView, sr as forgetKnownSecret, st as withoutCallerStamp, ta as RECORD_SETTINGS_MAX_ROWS, ti as readErrorI18n, to as classifySecretWrite, tr as assertTransactScope, u as sleep, ua as parseSecretRef, ur as scrubKnownSecrets, ut as describeCustomActions, va as InvalidRecordError, vi as resolveDeviceSettings, vr as DATAPLANE_SECRET_HEADER, w as asString, wa as RecordTooLargeError, wr as RecordFieldPathSchema, wt as MIGRATION_API_VERSION, xa as RECORDS_ERROR_CODES, xr as defineEntryKind, xt as switchRefusesSetState, y as maskUrlCredentials, ya as NoCallerError, yi as resolvedValues, yt as viewerUiCapability, zi as recordArrayItemPath } from "./runtime-capabilities-CK6y0W5U.mjs";
|
|
2
2
|
import { t as EventCategory } from "./event-category-7P4A3bYA.mjs";
|
|
3
3
|
import { a as DeviceType, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-DIeNz933.mjs";
|
|
4
4
|
//#region src/generated/cap-input-defaults.ts
|
|
@@ -553,4 +553,4 @@ function isProviderOptionalMethodName(capName, method) {
|
|
|
553
553
|
return methods !== void 0 && methods.includes(method);
|
|
554
554
|
}
|
|
555
555
|
//#endregion
|
|
556
|
-
export { AddonMigrationsBlockedError, BOOT_RECOVERY_BACKOFF_MS, BaseAddon, BatchTooLargeError, CALLER_STAMPED_CAPABILITIES, CALLER_USERNAME_HEADER, CAP_ADVANCE_FIELDS, CAP_INPUT_DEFAULTS, CAP_METHOD_NOT_IMPLEMENTED, CAP_METHOD_TIMEOUTS_MS, CAP_STATE_LEAVES, COLLECTION_ARRAY_METHODS, COMPOSED_DEVICE_STABLE_ID_PREFIX, CommandOriginClaimSchema, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DEVICE_RESTORE_RETRY_DELAYS_MS, DEVICE_SCOPED_CAPS, DeclarationRefusedError, DeviceType, DisposerChain, EntryDescriptorSchema, ErrorI18nPayloadSchema, EventCategory, FilterRequiredError, ForeignSecretMarkerError, HF_REPO, InvalidRecordError, MIGRATION_API_VERSION, MIN_SCRUBBED_LENGTH, MODEL_FORMATS, NoCallerError, OnBehalfSchema, OnBehalfSourceSchema, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, PROVIDER_OPTIONAL_METHODS, PipelineRunResultBridge, PipelineStepInputSchema, PlaintextSecretError, RECORDS_ERROR_CODES, RECORD_BATCH_MAX, RECORD_BATCH_MAX_BYTES, RECORD_CLASSES, RECORD_DATABASES, RECORD_DEFAULT_MAX_DATA_BYTES, RECORD_DELETE_BATCH, RECORD_ID_MAX_LENGTH, RECORD_MAX_DATA_BYTES, RECORD_MAX_INDEXES, RECORD_MAX_INDEX_FIELDS, RECORD_QUERY_MAX, RECORD_SECRET_COLLECTION_PREFIX, RECORD_SETTINGS_MAX_ROWS, RECORD_SWEEP_INTERVAL_MS, REMOVE_LEAF, REVALIDATE_AFTER_MS, ReadinessRegistry, ReadinessTimeoutError, RecordFieldPathSchema, RecordIndexSchema, RecordKindDeclarationSchema, RecordKindNameSchema, RecordNotFoundError, RecordRetentionSchema, RecordSecretUnavailableError, RecordTooLargeError, RecordUniqueViolationError, RecordsError, RevConflictError, RuleFireOriginSchema, SCOPED_SETTINGS_SCOPES, SECRET_CLEAR, SECRET_REF_SCHEME, SWITCH_SETTABLE_GATE, StoredRecordKindDeclarationSchema, TransactRefusedError, UnindexedFilterError, UnknownRecordKindError, addonPagesSourceCapability, addonSliceHandleApi, adminUiCapability, arrayItemFieldPath, asJsonObject, asRecordsError, asString, assertTransactScope, assertValidDeclaration, buildSecretRef, classifySecretWrite, clearKnownSecrets, collectSecretLeaves, collectZodSecretPaths, commandOrigin, createDebugEmitter, createDeviceProxy, createEvent, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, customAction, declarationsOf, defineCustomActions, defineEntryKind, defineRecordKinds, describeCustomActions, describeNvidia, deviceOpsCapability, emitReadiness, entryBody, errMsg, expandCapMethods, findMigrationsBlocked, forgetKnownSecret, formatSecretScope, globalSecretScope, hfModelUrl, isCapMethodAbsent, isCollectionArrayMethodName, isCommand, isDeviceScopedCap, isInstanceSwitchesUnreadError, isProviderOptionalMethodName, isSecretClear, isSecretFieldView, isSecretMarker, isSecretMarkerLike, isSecretRef, isZodSecret, knownSecretCount, makeInMemoryRecords, makeSecretMarker, mapSecretLeaves, maskUrlCredentials, nodeIdOfScopedKey, nodePin, normalizeAddonInitResult, normalizeSecretOwner, parseJsonUnknown, parseSecretPath, parseSecretRef, readCommandOrigin, readErrorI18n, readNodePin, recordArrayItemPath, recordSecretCollection, recordSecretRef, recordsErrorFromMessage, registerKnownSecret, resolveDeviceSettings, resolveSecretViewsIn, resolvedValues, ruleFireOfClaim, scopeKey, scrubKnownSecrets, secretArrayPrefixes, secretViewsOf, shortSecretRefHash, sleep, switchRefusesSetState, toSecretFieldView, viewerUiCapability, withCapInputDefaults, withoutCallerStamp };
|
|
556
|
+
export { AddonMigrationsBlockedError, BOOT_RECOVERY_BACKOFF_MS, BaseAddon, BatchTooLargeError, CALLER_STAMPED_CAPABILITIES, CALLER_USERNAME_HEADER, CAP_ADVANCE_FIELDS, CAP_INPUT_DEFAULTS, CAP_METHOD_NOT_IMPLEMENTED, CAP_METHOD_TIMEOUTS_MS, CAP_STATE_FIELD_PRESENCE, CAP_STATE_LEAVES, COLLECTION_ARRAY_METHODS, COMPOSED_DEVICE_STABLE_ID_PREFIX, CommandOriginClaimSchema, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DEVICE_RESTORE_RETRY_DELAYS_MS, DEVICE_SCOPED_CAPS, DeclarationRefusedError, DeviceType, DisposerChain, EntryDescriptorSchema, ErrorI18nPayloadSchema, EventCategory, FilterRequiredError, ForeignSecretMarkerError, HF_REPO, InvalidRecordError, MIGRATION_API_VERSION, MIN_SCRUBBED_LENGTH, MODEL_FORMATS, NoCallerError, OnBehalfSchema, OnBehalfSourceSchema, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, PROVIDER_OPTIONAL_METHODS, PipelineRunResultBridge, PipelineStepInputSchema, PlaintextSecretError, RECORDS_ERROR_CODES, RECORD_BATCH_MAX, RECORD_BATCH_MAX_BYTES, RECORD_CLASSES, RECORD_DATABASES, RECORD_DEFAULT_MAX_DATA_BYTES, RECORD_DELETE_BATCH, RECORD_ID_MAX_LENGTH, RECORD_MAX_DATA_BYTES, RECORD_MAX_INDEXES, RECORD_MAX_INDEX_FIELDS, RECORD_QUERY_MAX, RECORD_SECRET_COLLECTION_PREFIX, RECORD_SETTINGS_MAX_ROWS, RECORD_SWEEP_INTERVAL_MS, REMOVE_LEAF, REVALIDATE_AFTER_MS, ReadinessRegistry, ReadinessTimeoutError, RecordFieldPathSchema, RecordIndexSchema, RecordKindDeclarationSchema, RecordKindNameSchema, RecordNotFoundError, RecordRetentionSchema, RecordSecretUnavailableError, RecordTooLargeError, RecordUniqueViolationError, RecordsError, RevConflictError, RuleFireOriginSchema, SCOPED_SETTINGS_SCOPES, SECRET_CLEAR, SECRET_REF_SCHEME, SWITCH_SETTABLE_GATE, StoredRecordKindDeclarationSchema, TransactRefusedError, UnindexedFilterError, UnknownRecordKindError, addonPagesSourceCapability, addonSliceHandleApi, adminUiCapability, arrayItemFieldPath, asJsonObject, asRecordsError, asString, assertTransactScope, assertValidDeclaration, buildSecretRef, classifySecretWrite, clearKnownSecrets, collectSecretLeaves, collectZodSecretPaths, commandOrigin, createDebugEmitter, createDeviceProxy, createEvent, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, customAction, declarationsOf, defineCustomActions, defineEntryKind, defineRecordKinds, describeCustomActions, describeNvidia, deviceOpsCapability, emitReadiness, entryBody, errMsg, expandCapMethods, findMigrationsBlocked, forgetKnownSecret, formatSecretScope, globalSecretScope, hfModelUrl, isCapMethodAbsent, isCollectionArrayMethodName, isCommand, isDeviceScopedCap, isInstanceSwitchesUnreadError, isProviderOptionalMethodName, isSecretClear, isSecretFieldView, isSecretMarker, isSecretMarkerLike, isSecretRef, isZodSecret, knownSecretCount, makeInMemoryRecords, makeSecretMarker, mapSecretLeaves, maskUrlCredentials, nodeIdOfScopedKey, nodePin, normalizeAddonInitResult, normalizeSecretOwner, parseJsonUnknown, parseRecordBody, parseSecretPath, parseSecretRef, readCommandOrigin, readErrorI18n, readNodePin, recordArrayItemPath, recordSecretCollection, recordSecretRef, recordsErrorFromMessage, registerKnownSecret, resolveDeviceSettings, resolveSecretViewsIn, resolvedValues, ruleFireOfClaim, scopeKey, scrubKnownSecrets, secretArrayPrefixes, secretViewsOf, shortSecretRefHash, sleep, switchRefusesSetState, toSecretFieldView, viewerUiCapability, withCapInputDefaults, withoutCallerStamp };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
import type { ScalarCustomizeTarget } from './customize-spec.js';
|
|
3
4
|
import { DeviceType } from '../device/device-type.js';
|
|
4
5
|
/**
|
|
5
6
|
* Heat pump status (D1026): the one main, READ-ONLY cap of a heat pump. Every
|
|
@@ -433,6 +434,14 @@ export declare const heatPumpStatusCapability: {
|
|
|
433
434
|
* (the series are recorded). See `RuntimeStateDurability`.
|
|
434
435
|
*/
|
|
435
436
|
readonly durability: 'session';
|
|
437
|
+
readonly customize: {
|
|
438
|
+
readonly version: 1;
|
|
439
|
+
readonly overridable: {
|
|
440
|
+
path: string;
|
|
441
|
+
by: string;
|
|
442
|
+
}[];
|
|
443
|
+
readonly targets: readonly ScalarCustomizeTarget[];
|
|
444
|
+
};
|
|
436
445
|
/**
|
|
437
446
|
* History (D850, D917): `circuits[]` is a keyed array — one series per circuit and
|
|
438
447
|
* field, named by the circuit's label. The mode is a state (D896); the energy
|
|
@@ -454,15 +454,29 @@ export declare const migrationsCapability: {
|
|
|
454
454
|
precondition: z.ZodOptional<z.ZodString>;
|
|
455
455
|
}, z.core.$strip>, z.ZodObject<{
|
|
456
456
|
op: z.ZodLiteral<"upsertRecord">;
|
|
457
|
+
owner: z.ZodString;
|
|
457
458
|
kind: z.ZodString;
|
|
458
459
|
recordKey: z.ZodString;
|
|
459
|
-
|
|
460
|
+
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
461
|
+
at: z.ZodOptional<z.ZodNumber>;
|
|
462
|
+
value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
460
463
|
precondition: z.ZodOptional<z.ZodString>;
|
|
461
464
|
}, z.core.$strip>, z.ZodObject<{
|
|
462
465
|
op: z.ZodLiteral<"deleteRecord">;
|
|
466
|
+
owner: z.ZodString;
|
|
463
467
|
kind: z.ZodString;
|
|
464
468
|
recordKey: z.ZodString;
|
|
465
469
|
precondition: z.ZodOptional<z.ZodString>;
|
|
470
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
471
|
+
op: z.ZodLiteral<"rekeyDevice">;
|
|
472
|
+
deviceId: z.ZodNumber;
|
|
473
|
+
addonId: z.ZodString;
|
|
474
|
+
stableId: z.ZodString;
|
|
475
|
+
precondition: z.ZodOptional<z.ZodString>;
|
|
476
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
477
|
+
op: z.ZodLiteral<"tombstoneDevice">;
|
|
478
|
+
deviceId: z.ZodNumber;
|
|
479
|
+
precondition: z.ZodOptional<z.ZodString>;
|
|
466
480
|
}, z.core.$strip>], "op">>;
|
|
467
481
|
}, z.core.$strip>;
|
|
468
482
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1624,6 +1624,7 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1624
1624
|
"apple-m-pro": "apple-m-pro";
|
|
1625
1625
|
"intel-core-ultra": "intel-core-ultra";
|
|
1626
1626
|
"intel-n-series": "intel-n-series";
|
|
1627
|
+
"nvidia-gpu": "nvidia-gpu";
|
|
1627
1628
|
unknown: "unknown";
|
|
1628
1629
|
}>>;
|
|
1629
1630
|
cpuModel: z.ZodNullable<z.ZodString>;
|
|
@@ -1639,6 +1640,7 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1639
1640
|
coral: "coral";
|
|
1640
1641
|
"intel-igpu": "intel-igpu";
|
|
1641
1642
|
"intel-npu": "intel-npu";
|
|
1643
|
+
"nvidia-gpu": "nvidia-gpu";
|
|
1642
1644
|
"x86-cpu": "x86-cpu";
|
|
1643
1645
|
}>>;
|
|
1644
1646
|
enabled: z.ZodBoolean;
|
|
@@ -1662,6 +1664,7 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1662
1664
|
"apple-m-pro": "apple-m-pro";
|
|
1663
1665
|
"intel-core-ultra": "intel-core-ultra";
|
|
1664
1666
|
"intel-n-series": "intel-n-series";
|
|
1667
|
+
"nvidia-gpu": "nvidia-gpu";
|
|
1665
1668
|
unknown: "unknown";
|
|
1666
1669
|
}>;
|
|
1667
1670
|
}, z.core.$strip>], "kind">>;
|
|
@@ -1671,6 +1674,7 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1671
1674
|
"apple-m-pro": "apple-m-pro";
|
|
1672
1675
|
"intel-core-ultra": "intel-core-ultra";
|
|
1673
1676
|
"intel-n-series": "intel-n-series";
|
|
1677
|
+
"nvidia-gpu": "nvidia-gpu";
|
|
1674
1678
|
unknown: "unknown";
|
|
1675
1679
|
}>>;
|
|
1676
1680
|
capacitySessions: z.ZodNumber;
|
|
@@ -1717,6 +1721,7 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1717
1721
|
"apple-m-pro": "apple-m-pro";
|
|
1718
1722
|
"intel-core-ultra": "intel-core-ultra";
|
|
1719
1723
|
"intel-n-series": "intel-n-series";
|
|
1724
|
+
"nvidia-gpu": "nvidia-gpu";
|
|
1720
1725
|
unknown: "unknown";
|
|
1721
1726
|
}>;
|
|
1722
1727
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1773,6 +1778,7 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1773
1778
|
"apple-m-pro": "apple-m-pro";
|
|
1774
1779
|
"intel-core-ultra": "intel-core-ultra";
|
|
1775
1780
|
"intel-n-series": "intel-n-series";
|
|
1781
|
+
"nvidia-gpu": "nvidia-gpu";
|
|
1776
1782
|
unknown: "unknown";
|
|
1777
1783
|
}>;
|
|
1778
1784
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1866,6 +1872,7 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1866
1872
|
"apple-m-pro": "apple-m-pro";
|
|
1867
1873
|
"intel-core-ultra": "intel-core-ultra";
|
|
1868
1874
|
"intel-n-series": "intel-n-series";
|
|
1875
|
+
"nvidia-gpu": "nvidia-gpu";
|
|
1869
1876
|
unknown: "unknown";
|
|
1870
1877
|
}>>;
|
|
1871
1878
|
cpuModel: z.ZodNullable<z.ZodString>;
|
|
@@ -1881,6 +1888,7 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1881
1888
|
coral: "coral";
|
|
1882
1889
|
"intel-igpu": "intel-igpu";
|
|
1883
1890
|
"intel-npu": "intel-npu";
|
|
1891
|
+
"nvidia-gpu": "nvidia-gpu";
|
|
1884
1892
|
"x86-cpu": "x86-cpu";
|
|
1885
1893
|
}>>;
|
|
1886
1894
|
enabled: z.ZodBoolean;
|
|
@@ -1904,6 +1912,7 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1904
1912
|
"apple-m-pro": "apple-m-pro";
|
|
1905
1913
|
"intel-core-ultra": "intel-core-ultra";
|
|
1906
1914
|
"intel-n-series": "intel-n-series";
|
|
1915
|
+
"nvidia-gpu": "nvidia-gpu";
|
|
1907
1916
|
unknown: "unknown";
|
|
1908
1917
|
}>;
|
|
1909
1918
|
}, z.core.$strip>], "kind">>;
|
|
@@ -1913,6 +1922,7 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1913
1922
|
"apple-m-pro": "apple-m-pro";
|
|
1914
1923
|
"intel-core-ultra": "intel-core-ultra";
|
|
1915
1924
|
"intel-n-series": "intel-n-series";
|
|
1925
|
+
"nvidia-gpu": "nvidia-gpu";
|
|
1916
1926
|
unknown: "unknown";
|
|
1917
1927
|
}>>;
|
|
1918
1928
|
capacitySessions: z.ZodNumber;
|
|
@@ -1959,6 +1969,7 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
1959
1969
|
"apple-m-pro": "apple-m-pro";
|
|
1960
1970
|
"intel-core-ultra": "intel-core-ultra";
|
|
1961
1971
|
"intel-n-series": "intel-n-series";
|
|
1972
|
+
"nvidia-gpu": "nvidia-gpu";
|
|
1962
1973
|
unknown: "unknown";
|
|
1963
1974
|
}>;
|
|
1964
1975
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2015,6 +2026,7 @@ export declare const pipelineOrchestratorCapability: {
|
|
|
2015
2026
|
"apple-m-pro": "apple-m-pro";
|
|
2016
2027
|
"intel-core-ultra": "intel-core-ultra";
|
|
2017
2028
|
"intel-n-series": "intel-n-series";
|
|
2029
|
+
"nvidia-gpu": "nvidia-gpu";
|
|
2018
2030
|
unknown: "unknown";
|
|
2019
2031
|
}>;
|
|
2020
2032
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -20,5 +20,11 @@ export declare const CAP_ADVANCE_FIELDS: Readonly<Record<string, string>>;
|
|
|
20
20
|
export declare const CAP_NAMES: readonly string[];
|
|
21
21
|
/** cap name -> the bindable leaves of its runtime state (absent: none). */
|
|
22
22
|
export declare const CAP_STATE_LEAVES: Readonly<Record<string, readonly CapStateLeaf[]>>;
|
|
23
|
+
/**
|
|
24
|
+
* cap name -> TOP-LEVEL runtime-state field -> whether a slice may omit it
|
|
25
|
+
* (`optional`: the schema accepts `undefined`) or must carry it. A cap with
|
|
26
|
+
* no `runtimeState` is absent.
|
|
27
|
+
*/
|
|
28
|
+
export declare const CAP_STATE_FIELD_PRESENCE: Readonly<Record<string, Readonly<Record<string, 'required' | 'optional'>>>>;
|
|
23
29
|
/** cap name -> method -> the `timeoutMs` its definition declares (absent: the transport default). */
|
|
24
30
|
export declare const CAP_METHOD_TIMEOUTS_MS: Readonly<Record<string, Readonly<Record<string, number>>>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeviceType } from '../device/device-type.js';
|
|
2
2
|
/**
|
|
3
3
|
* Customize catalog, projected from every `*.cap.ts` `customize` block.
|
|
4
|
-
*
|
|
4
|
+
* 14 caps. Field keys are `runtimeState` paths. No Zod.
|
|
5
5
|
*/
|
|
6
6
|
export declare const CAP_CUSTOMIZE_CATALOG: {
|
|
7
7
|
readonly battery: {
|
|
@@ -490,6 +490,59 @@ export declare const CAP_CUSTOMIZE_CATALOG: {
|
|
|
490
490
|
readonly advancedExpression: false;
|
|
491
491
|
}];
|
|
492
492
|
};
|
|
493
|
+
readonly 'heat-pump-status': {
|
|
494
|
+
readonly version: 1;
|
|
495
|
+
readonly targets: readonly [{
|
|
496
|
+
readonly id: 'electrical-power';
|
|
497
|
+
readonly cardinality: 'scalar';
|
|
498
|
+
readonly deviceTypes: readonly [DeviceType.HeatPump];
|
|
499
|
+
readonly apply: 'replace';
|
|
500
|
+
readonly vocabularyCap: 'heat-pump-status';
|
|
501
|
+
readonly sources: readonly [{
|
|
502
|
+
readonly kind: 'numeric';
|
|
503
|
+
readonly requiredUnit: 'W';
|
|
504
|
+
readonly transformKinds: readonly ["identity"];
|
|
505
|
+
readonly transforms: readonly [{
|
|
506
|
+
readonly kind: 'identity';
|
|
507
|
+
}];
|
|
508
|
+
}];
|
|
509
|
+
readonly sourceReport: {
|
|
510
|
+
readonly status: 'assignment-status';
|
|
511
|
+
};
|
|
512
|
+
readonly advancedExpression: false;
|
|
513
|
+
readonly path: 'power.electricalW';
|
|
514
|
+
readonly valueKind: 'number';
|
|
515
|
+
readonly nullable: true;
|
|
516
|
+
}, {
|
|
517
|
+
readonly id: 'electrical-energy';
|
|
518
|
+
readonly cardinality: 'scalar';
|
|
519
|
+
readonly deviceTypes: readonly [DeviceType.HeatPump];
|
|
520
|
+
readonly apply: 'replace';
|
|
521
|
+
readonly vocabularyCap: 'heat-pump-status';
|
|
522
|
+
readonly sources: readonly [{
|
|
523
|
+
readonly kind: 'numeric';
|
|
524
|
+
readonly requiredUnit: 'kWh';
|
|
525
|
+
readonly transformKinds: readonly ["identity"];
|
|
526
|
+
readonly transforms: readonly [{
|
|
527
|
+
readonly kind: 'identity';
|
|
528
|
+
}];
|
|
529
|
+
}];
|
|
530
|
+
readonly sourceReport: {
|
|
531
|
+
readonly status: 'assignment-status';
|
|
532
|
+
};
|
|
533
|
+
readonly advancedExpression: false;
|
|
534
|
+
readonly path: 'energy.electricalKwh';
|
|
535
|
+
readonly valueKind: 'number';
|
|
536
|
+
readonly nullable: true;
|
|
537
|
+
}];
|
|
538
|
+
readonly overridable: readonly [{
|
|
539
|
+
readonly path: 'power.electricalW';
|
|
540
|
+
readonly by: 'electrical-power';
|
|
541
|
+
}, {
|
|
542
|
+
readonly path: 'energy.electricalKwh';
|
|
543
|
+
readonly by: 'electrical-energy';
|
|
544
|
+
}];
|
|
545
|
+
};
|
|
493
546
|
readonly 'lock-control': {
|
|
494
547
|
readonly version: 1;
|
|
495
548
|
readonly targets: readonly [{
|
package/dist/index.d.ts
CHANGED
|
@@ -74,6 +74,7 @@ export * from './keychain/index.js';
|
|
|
74
74
|
export * from './records/index.js';
|
|
75
75
|
export * from './audit/device-transition.js';
|
|
76
76
|
export * from './migrations/migration.js';
|
|
77
|
+
export * from './migrations/migration-record-edits.js';
|
|
77
78
|
export * from './migrations/addon-migration.js';
|
|
78
79
|
export * from './migrations/flatten-nested-records.js';
|
|
79
80
|
export * from './migrations/integration-migration-ports.js';
|