@camstack/types 1.2.594 → 1.2.596
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 +20 -0
- package/dist/addon.d.ts +1 -0
- package/dist/addon.js +156 -155
- package/dist/addon.mjs +3 -3
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/platform-probe.cap.d.ts +28 -0
- package/dist/capabilities/power-meter.cap.d.ts +16 -5
- package/dist/client.js +5 -1
- package/dist/client.mjs +5 -1
- package/dist/{composed-stable-id-BNTaDZEh.mjs → composed-stable-id-DIeNz933.mjs} +3 -0
- package/dist/{composed-stable-id-BdeYe5dD.js → composed-stable-id-DkF5-kuf.js} +3 -0
- package/dist/device/device-context.d.ts +5 -1
- package/dist/device/device-icon.d.ts +1 -0
- package/dist/device/device-type.d.ts +4 -1
- package/dist/device/hero/hero-look.d.ts +1 -0
- package/dist/device/hero/hero-scene.d.ts +1 -0
- package/dist/device/index.d.ts +1 -1
- package/dist/device/state-refresh.d.ts +15 -1
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/customize-catalog.d.ts +4 -4
- package/dist/{implemented-methods-Dj_2fX8-.js → implemented-methods-DnfgAfI6.js} +1 -1
- package/dist/{implemented-methods-DXeNAPAS.mjs → implemented-methods-wFScvZ40.mjs} +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +3926 -4219
- package/dist/index.mjs +81 -379
- package/dist/inference/runtime-capabilities.d.ts +13 -2
- package/dist/interfaces/addon.d.ts +9 -3
- package/dist/interfaces/platform.d.ts +32 -0
- package/dist/node.js +2 -2
- package/dist/node.mjs +2 -2
- package/dist/pipeline/second-pass/motion-crop-plan.d.ts +2 -3
- package/dist/{sleep-C9eelFbV.mjs → runtime-capabilities-Bgt5QBvO.mjs} +400 -2
- package/dist/{sleep-Bgzv_TCG.js → runtime-capabilities-wOKNm9iz.js} +495 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.596] - 2026-11-18
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- fetchDevice accepts a fresh option that bypasses the per-context binding cache
|
|
15
|
+
|
|
16
|
+
## [1.2.595] - 2026-11-18
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- An NVIDIA GPU is no longer offered as a cuda inference device unless the node's ONNX Runtime has the CUDA execution provider (it ran on the CPU before).
|
|
21
|
+
- Hardware info reports an NVIDIA GPU in its own slot (present, usable, and why not), so it no longer replaces the Intel or AMD iGPU.
|
|
22
|
+
- power-meter may be served by a Workload device (a PoE switch reports the PoE power it delivers)
|
|
23
|
+
- New device role Ups for an uninterruptible power supply
|
|
24
|
+
- power-meter gains an optional deliveredPower (power passed on to downstream loads, such as PoE) and a netPowerOf helper for the device's own draw
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- A polled device is re-read for the whole time a command is held, not only for its first 10 seconds
|
|
29
|
+
|
|
10
30
|
## [1.2.594] - 2026-11-18
|
|
11
31
|
|
|
12
32
|
### Changed
|
package/dist/addon.d.ts
CHANGED
|
@@ -74,3 +74,4 @@ export { SWITCH_SETTABLE_GATE, switchRefusesSetState } from './capabilities/swit
|
|
|
74
74
|
export * from './keychain/index.js';
|
|
75
75
|
export * from './records/index.js';
|
|
76
76
|
export { createDebugEmitter } from './logging/debug-watch.js';
|
|
77
|
+
export { describeNvidia } from './inference/runtime-capabilities.js';
|
package/dist/addon.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
2
|
+
const require_runtime_capabilities = require("./runtime-capabilities-wOKNm9iz.js");
|
|
3
3
|
const require_event_category = require("./event-category-CMA0-jGW.js");
|
|
4
|
-
const require_composed_stable_id = require("./composed-stable-id-
|
|
4
|
+
const require_composed_stable_id = require("./composed-stable-id-DkF5-kuf.js");
|
|
5
5
|
//#region src/generated/cap-input-defaults.ts
|
|
6
6
|
/**
|
|
7
7
|
* AUTO-GENERATED by scripts/generate-cap-input-defaults.ts — DO NOT EDIT.
|
|
@@ -554,166 +554,167 @@ function isProviderOptionalMethodName(capName, method) {
|
|
|
554
554
|
return methods !== void 0 && methods.includes(method);
|
|
555
555
|
}
|
|
556
556
|
//#endregion
|
|
557
|
-
exports.AddonMigrationsBlockedError =
|
|
558
|
-
exports.BOOT_RECOVERY_BACKOFF_MS =
|
|
559
|
-
exports.BaseAddon =
|
|
560
|
-
exports.BatchTooLargeError =
|
|
561
|
-
exports.CALLER_STAMPED_CAPABILITIES =
|
|
562
|
-
exports.CALLER_USERNAME_HEADER =
|
|
563
|
-
exports.CAP_ADVANCE_FIELDS =
|
|
557
|
+
exports.AddonMigrationsBlockedError = require_runtime_capabilities.AddonMigrationsBlockedError;
|
|
558
|
+
exports.BOOT_RECOVERY_BACKOFF_MS = require_runtime_capabilities.BOOT_RECOVERY_BACKOFF_MS;
|
|
559
|
+
exports.BaseAddon = require_runtime_capabilities.BaseAddon;
|
|
560
|
+
exports.BatchTooLargeError = require_runtime_capabilities.BatchTooLargeError;
|
|
561
|
+
exports.CALLER_STAMPED_CAPABILITIES = require_runtime_capabilities.CALLER_STAMPED_CAPABILITIES;
|
|
562
|
+
exports.CALLER_USERNAME_HEADER = require_runtime_capabilities.CALLER_USERNAME_HEADER;
|
|
563
|
+
exports.CAP_ADVANCE_FIELDS = require_runtime_capabilities.CAP_ADVANCE_FIELDS;
|
|
564
564
|
exports.CAP_INPUT_DEFAULTS = CAP_INPUT_DEFAULTS;
|
|
565
|
-
exports.CAP_METHOD_NOT_IMPLEMENTED =
|
|
566
|
-
exports.CAP_METHOD_TIMEOUTS_MS =
|
|
567
|
-
exports.CAP_STATE_LEAVES =
|
|
565
|
+
exports.CAP_METHOD_NOT_IMPLEMENTED = require_runtime_capabilities.CAP_METHOD_NOT_IMPLEMENTED;
|
|
566
|
+
exports.CAP_METHOD_TIMEOUTS_MS = require_runtime_capabilities.CAP_METHOD_TIMEOUTS_MS;
|
|
567
|
+
exports.CAP_STATE_LEAVES = require_runtime_capabilities.CAP_STATE_LEAVES;
|
|
568
568
|
exports.COLLECTION_ARRAY_METHODS = COLLECTION_ARRAY_METHODS;
|
|
569
569
|
exports.COMPOSED_DEVICE_STABLE_ID_PREFIX = require_composed_stable_id.COMPOSED_DEVICE_STABLE_ID_PREFIX;
|
|
570
|
-
exports.CommandOriginClaimSchema =
|
|
571
|
-
exports.DATAPLANE_SECRET_HEADER =
|
|
572
|
-
exports.DEVICE_CHILDREN_BATCH_MAX =
|
|
573
|
-
exports.DEVICE_SCOPED_CAPS =
|
|
574
|
-
exports.DeclarationRefusedError =
|
|
570
|
+
exports.CommandOriginClaimSchema = require_runtime_capabilities.CommandOriginClaimSchema;
|
|
571
|
+
exports.DATAPLANE_SECRET_HEADER = require_runtime_capabilities.DATAPLANE_SECRET_HEADER;
|
|
572
|
+
exports.DEVICE_CHILDREN_BATCH_MAX = require_runtime_capabilities.DEVICE_CHILDREN_BATCH_MAX;
|
|
573
|
+
exports.DEVICE_SCOPED_CAPS = require_runtime_capabilities.DEVICE_SCOPED_CAPS;
|
|
574
|
+
exports.DeclarationRefusedError = require_runtime_capabilities.DeclarationRefusedError;
|
|
575
575
|
exports.DeviceType = require_composed_stable_id.DeviceType;
|
|
576
|
-
exports.DisposerChain =
|
|
577
|
-
exports.EntryDescriptorSchema =
|
|
578
|
-
exports.ErrorI18nPayloadSchema =
|
|
576
|
+
exports.DisposerChain = require_runtime_capabilities.DisposerChain;
|
|
577
|
+
exports.EntryDescriptorSchema = require_runtime_capabilities.EntryDescriptorSchema;
|
|
578
|
+
exports.ErrorI18nPayloadSchema = require_runtime_capabilities.ErrorI18nPayloadSchema;
|
|
579
579
|
exports.EventCategory = require_event_category.EventCategory;
|
|
580
|
-
exports.FilterRequiredError =
|
|
581
|
-
exports.ForeignSecretMarkerError =
|
|
582
|
-
exports.HF_REPO =
|
|
583
|
-
exports.InvalidRecordError =
|
|
584
|
-
exports.MIGRATION_API_VERSION =
|
|
585
|
-
exports.MIN_SCRUBBED_LENGTH =
|
|
586
|
-
exports.MODEL_FORMATS =
|
|
587
|
-
exports.NoCallerError =
|
|
588
|
-
exports.OnBehalfSchema =
|
|
589
|
-
exports.OnBehalfSourceSchema =
|
|
590
|
-
exports.PEER_BYTES_CHUNK_BYTES =
|
|
591
|
-
exports.PEER_BYTES_MAX_OUTSTANDING =
|
|
592
|
-
exports.PEER_BYTES_STALL_MS =
|
|
593
|
-
exports.PEER_BYTES_TICKET_TTL_MS =
|
|
580
|
+
exports.FilterRequiredError = require_runtime_capabilities.FilterRequiredError;
|
|
581
|
+
exports.ForeignSecretMarkerError = require_runtime_capabilities.ForeignSecretMarkerError;
|
|
582
|
+
exports.HF_REPO = require_runtime_capabilities.HF_REPO;
|
|
583
|
+
exports.InvalidRecordError = require_runtime_capabilities.InvalidRecordError;
|
|
584
|
+
exports.MIGRATION_API_VERSION = require_runtime_capabilities.MIGRATION_API_VERSION;
|
|
585
|
+
exports.MIN_SCRUBBED_LENGTH = require_runtime_capabilities.MIN_SCRUBBED_LENGTH;
|
|
586
|
+
exports.MODEL_FORMATS = require_runtime_capabilities.MODEL_FORMATS;
|
|
587
|
+
exports.NoCallerError = require_runtime_capabilities.NoCallerError;
|
|
588
|
+
exports.OnBehalfSchema = require_runtime_capabilities.OnBehalfSchema;
|
|
589
|
+
exports.OnBehalfSourceSchema = require_runtime_capabilities.OnBehalfSourceSchema;
|
|
590
|
+
exports.PEER_BYTES_CHUNK_BYTES = require_runtime_capabilities.PEER_BYTES_CHUNK_BYTES;
|
|
591
|
+
exports.PEER_BYTES_MAX_OUTSTANDING = require_runtime_capabilities.PEER_BYTES_MAX_OUTSTANDING;
|
|
592
|
+
exports.PEER_BYTES_STALL_MS = require_runtime_capabilities.PEER_BYTES_STALL_MS;
|
|
593
|
+
exports.PEER_BYTES_TICKET_TTL_MS = require_runtime_capabilities.PEER_BYTES_TICKET_TTL_MS;
|
|
594
594
|
exports.PROVIDER_OPTIONAL_METHODS = PROVIDER_OPTIONAL_METHODS;
|
|
595
|
-
exports.PipelineRunResultBridge =
|
|
596
|
-
exports.PipelineStepInputSchema =
|
|
597
|
-
exports.PlaintextSecretError =
|
|
598
|
-
exports.RECORDS_ERROR_CODES =
|
|
599
|
-
exports.RECORD_BATCH_MAX =
|
|
600
|
-
exports.RECORD_BATCH_MAX_BYTES =
|
|
601
|
-
exports.RECORD_CLASSES =
|
|
602
|
-
exports.RECORD_DATABASES =
|
|
603
|
-
exports.RECORD_DEFAULT_MAX_DATA_BYTES =
|
|
604
|
-
exports.RECORD_DELETE_BATCH =
|
|
605
|
-
exports.RECORD_ID_MAX_LENGTH =
|
|
606
|
-
exports.RECORD_MAX_DATA_BYTES =
|
|
607
|
-
exports.RECORD_MAX_INDEXES =
|
|
608
|
-
exports.RECORD_MAX_INDEX_FIELDS =
|
|
609
|
-
exports.RECORD_QUERY_MAX =
|
|
610
|
-
exports.RECORD_SECRET_COLLECTION_PREFIX =
|
|
611
|
-
exports.RECORD_SETTINGS_MAX_ROWS =
|
|
612
|
-
exports.RECORD_SWEEP_INTERVAL_MS =
|
|
613
|
-
exports.REMOVE_LEAF =
|
|
614
|
-
exports.REVALIDATE_AFTER_MS =
|
|
615
|
-
exports.ReadinessRegistry =
|
|
616
|
-
exports.ReadinessTimeoutError =
|
|
617
|
-
exports.RecordFieldPathSchema =
|
|
618
|
-
exports.RecordIndexSchema =
|
|
619
|
-
exports.RecordKindDeclarationSchema =
|
|
620
|
-
exports.RecordKindNameSchema =
|
|
621
|
-
exports.RecordNotFoundError =
|
|
622
|
-
exports.RecordRetentionSchema =
|
|
623
|
-
exports.RecordSecretUnavailableError =
|
|
624
|
-
exports.RecordTooLargeError =
|
|
625
|
-
exports.RecordUniqueViolationError =
|
|
626
|
-
exports.RecordsError =
|
|
627
|
-
exports.RevConflictError =
|
|
628
|
-
exports.RuleFireOriginSchema =
|
|
629
|
-
exports.SCOPED_SETTINGS_SCOPES =
|
|
630
|
-
exports.SECRET_CLEAR =
|
|
631
|
-
exports.SECRET_REF_SCHEME =
|
|
632
|
-
exports.SWITCH_SETTABLE_GATE =
|
|
633
|
-
exports.StoredRecordKindDeclarationSchema =
|
|
634
|
-
exports.TransactRefusedError =
|
|
635
|
-
exports.UnindexedFilterError =
|
|
636
|
-
exports.UnknownRecordKindError =
|
|
637
|
-
exports.addonPagesSourceCapability =
|
|
638
|
-
exports.addonSliceHandleApi =
|
|
639
|
-
exports.adminUiCapability =
|
|
640
|
-
exports.arrayItemFieldPath =
|
|
641
|
-
exports.asJsonObject =
|
|
642
|
-
exports.asRecordsError =
|
|
643
|
-
exports.asString =
|
|
644
|
-
exports.assertTransactScope =
|
|
645
|
-
exports.assertValidDeclaration =
|
|
646
|
-
exports.buildSecretRef =
|
|
647
|
-
exports.classifySecretWrite =
|
|
648
|
-
exports.clearKnownSecrets =
|
|
649
|
-
exports.collectSecretLeaves =
|
|
650
|
-
exports.collectZodSecretPaths =
|
|
651
|
-
exports.commandOrigin =
|
|
652
|
-
exports.createDebugEmitter =
|
|
653
|
-
exports.createDeviceProxy =
|
|
654
|
-
exports.createEvent =
|
|
655
|
-
exports.createEventBusSliceSource =
|
|
656
|
-
exports.createRecordsAccess =
|
|
657
|
-
exports.createSecretsAccess =
|
|
658
|
-
exports.customAction =
|
|
659
|
-
exports.declarationsOf =
|
|
660
|
-
exports.defineCustomActions =
|
|
661
|
-
exports.defineEntryKind =
|
|
662
|
-
exports.defineRecordKinds =
|
|
663
|
-
exports.describeCustomActions =
|
|
664
|
-
exports.
|
|
665
|
-
exports.
|
|
666
|
-
exports.
|
|
595
|
+
exports.PipelineRunResultBridge = require_runtime_capabilities.PipelineRunResultBridge;
|
|
596
|
+
exports.PipelineStepInputSchema = require_runtime_capabilities.PipelineStepInputSchema;
|
|
597
|
+
exports.PlaintextSecretError = require_runtime_capabilities.PlaintextSecretError;
|
|
598
|
+
exports.RECORDS_ERROR_CODES = require_runtime_capabilities.RECORDS_ERROR_CODES;
|
|
599
|
+
exports.RECORD_BATCH_MAX = require_runtime_capabilities.RECORD_BATCH_MAX;
|
|
600
|
+
exports.RECORD_BATCH_MAX_BYTES = require_runtime_capabilities.RECORD_BATCH_MAX_BYTES;
|
|
601
|
+
exports.RECORD_CLASSES = require_runtime_capabilities.RECORD_CLASSES;
|
|
602
|
+
exports.RECORD_DATABASES = require_runtime_capabilities.RECORD_DATABASES;
|
|
603
|
+
exports.RECORD_DEFAULT_MAX_DATA_BYTES = require_runtime_capabilities.RECORD_DEFAULT_MAX_DATA_BYTES;
|
|
604
|
+
exports.RECORD_DELETE_BATCH = require_runtime_capabilities.RECORD_DELETE_BATCH;
|
|
605
|
+
exports.RECORD_ID_MAX_LENGTH = require_runtime_capabilities.RECORD_ID_MAX_LENGTH;
|
|
606
|
+
exports.RECORD_MAX_DATA_BYTES = require_runtime_capabilities.RECORD_MAX_DATA_BYTES;
|
|
607
|
+
exports.RECORD_MAX_INDEXES = require_runtime_capabilities.RECORD_MAX_INDEXES;
|
|
608
|
+
exports.RECORD_MAX_INDEX_FIELDS = require_runtime_capabilities.RECORD_MAX_INDEX_FIELDS;
|
|
609
|
+
exports.RECORD_QUERY_MAX = require_runtime_capabilities.RECORD_QUERY_MAX;
|
|
610
|
+
exports.RECORD_SECRET_COLLECTION_PREFIX = require_runtime_capabilities.RECORD_SECRET_COLLECTION_PREFIX;
|
|
611
|
+
exports.RECORD_SETTINGS_MAX_ROWS = require_runtime_capabilities.RECORD_SETTINGS_MAX_ROWS;
|
|
612
|
+
exports.RECORD_SWEEP_INTERVAL_MS = require_runtime_capabilities.RECORD_SWEEP_INTERVAL_MS;
|
|
613
|
+
exports.REMOVE_LEAF = require_runtime_capabilities.REMOVE_LEAF;
|
|
614
|
+
exports.REVALIDATE_AFTER_MS = require_runtime_capabilities.REVALIDATE_AFTER_MS;
|
|
615
|
+
exports.ReadinessRegistry = require_runtime_capabilities.ReadinessRegistry;
|
|
616
|
+
exports.ReadinessTimeoutError = require_runtime_capabilities.ReadinessTimeoutError;
|
|
617
|
+
exports.RecordFieldPathSchema = require_runtime_capabilities.RecordFieldPathSchema;
|
|
618
|
+
exports.RecordIndexSchema = require_runtime_capabilities.RecordIndexSchema;
|
|
619
|
+
exports.RecordKindDeclarationSchema = require_runtime_capabilities.RecordKindDeclarationSchema;
|
|
620
|
+
exports.RecordKindNameSchema = require_runtime_capabilities.RecordKindNameSchema;
|
|
621
|
+
exports.RecordNotFoundError = require_runtime_capabilities.RecordNotFoundError;
|
|
622
|
+
exports.RecordRetentionSchema = require_runtime_capabilities.RecordRetentionSchema;
|
|
623
|
+
exports.RecordSecretUnavailableError = require_runtime_capabilities.RecordSecretUnavailableError;
|
|
624
|
+
exports.RecordTooLargeError = require_runtime_capabilities.RecordTooLargeError;
|
|
625
|
+
exports.RecordUniqueViolationError = require_runtime_capabilities.RecordUniqueViolationError;
|
|
626
|
+
exports.RecordsError = require_runtime_capabilities.RecordsError;
|
|
627
|
+
exports.RevConflictError = require_runtime_capabilities.RevConflictError;
|
|
628
|
+
exports.RuleFireOriginSchema = require_runtime_capabilities.RuleFireOriginSchema;
|
|
629
|
+
exports.SCOPED_SETTINGS_SCOPES = require_runtime_capabilities.SCOPED_SETTINGS_SCOPES;
|
|
630
|
+
exports.SECRET_CLEAR = require_runtime_capabilities.SECRET_CLEAR;
|
|
631
|
+
exports.SECRET_REF_SCHEME = require_runtime_capabilities.SECRET_REF_SCHEME;
|
|
632
|
+
exports.SWITCH_SETTABLE_GATE = require_runtime_capabilities.SWITCH_SETTABLE_GATE;
|
|
633
|
+
exports.StoredRecordKindDeclarationSchema = require_runtime_capabilities.StoredRecordKindDeclarationSchema;
|
|
634
|
+
exports.TransactRefusedError = require_runtime_capabilities.TransactRefusedError;
|
|
635
|
+
exports.UnindexedFilterError = require_runtime_capabilities.UnindexedFilterError;
|
|
636
|
+
exports.UnknownRecordKindError = require_runtime_capabilities.UnknownRecordKindError;
|
|
637
|
+
exports.addonPagesSourceCapability = require_runtime_capabilities.addonPagesSourceCapability;
|
|
638
|
+
exports.addonSliceHandleApi = require_runtime_capabilities.addonSliceHandleApi;
|
|
639
|
+
exports.adminUiCapability = require_runtime_capabilities.adminUiCapability;
|
|
640
|
+
exports.arrayItemFieldPath = require_runtime_capabilities.arrayItemFieldPath;
|
|
641
|
+
exports.asJsonObject = require_runtime_capabilities.asJsonObject;
|
|
642
|
+
exports.asRecordsError = require_runtime_capabilities.asRecordsError;
|
|
643
|
+
exports.asString = require_runtime_capabilities.asString;
|
|
644
|
+
exports.assertTransactScope = require_runtime_capabilities.assertTransactScope;
|
|
645
|
+
exports.assertValidDeclaration = require_runtime_capabilities.assertValidDeclaration;
|
|
646
|
+
exports.buildSecretRef = require_runtime_capabilities.buildSecretRef;
|
|
647
|
+
exports.classifySecretWrite = require_runtime_capabilities.classifySecretWrite;
|
|
648
|
+
exports.clearKnownSecrets = require_runtime_capabilities.clearKnownSecrets;
|
|
649
|
+
exports.collectSecretLeaves = require_runtime_capabilities.collectSecretLeaves;
|
|
650
|
+
exports.collectZodSecretPaths = require_runtime_capabilities.collectZodSecretPaths;
|
|
651
|
+
exports.commandOrigin = require_runtime_capabilities.commandOrigin;
|
|
652
|
+
exports.createDebugEmitter = require_runtime_capabilities.createDebugEmitter;
|
|
653
|
+
exports.createDeviceProxy = require_runtime_capabilities.createDeviceProxy;
|
|
654
|
+
exports.createEvent = require_runtime_capabilities.createEvent;
|
|
655
|
+
exports.createEventBusSliceSource = require_runtime_capabilities.createEventBusSliceSource;
|
|
656
|
+
exports.createRecordsAccess = require_runtime_capabilities.createRecordsAccess;
|
|
657
|
+
exports.createSecretsAccess = require_runtime_capabilities.createSecretsAccess;
|
|
658
|
+
exports.customAction = require_runtime_capabilities.customAction;
|
|
659
|
+
exports.declarationsOf = require_runtime_capabilities.declarationsOf;
|
|
660
|
+
exports.defineCustomActions = require_runtime_capabilities.defineCustomActions;
|
|
661
|
+
exports.defineEntryKind = require_runtime_capabilities.defineEntryKind;
|
|
662
|
+
exports.defineRecordKinds = require_runtime_capabilities.defineRecordKinds;
|
|
663
|
+
exports.describeCustomActions = require_runtime_capabilities.describeCustomActions;
|
|
664
|
+
exports.describeNvidia = require_runtime_capabilities.describeNvidia;
|
|
665
|
+
exports.deviceOpsCapability = require_runtime_capabilities.deviceOpsCapability;
|
|
666
|
+
exports.emitReadiness = require_runtime_capabilities.emitReadiness;
|
|
667
|
+
exports.entryBody = require_runtime_capabilities.entryBody;
|
|
667
668
|
exports.errMsg = require_composed_stable_id.errMsg;
|
|
668
|
-
exports.expandCapMethods =
|
|
669
|
-
exports.findMigrationsBlocked =
|
|
670
|
-
exports.forgetKnownSecret =
|
|
671
|
-
exports.formatSecretScope =
|
|
672
|
-
exports.globalSecretScope =
|
|
673
|
-
exports.hfModelUrl =
|
|
674
|
-
exports.isCapMethodAbsent =
|
|
669
|
+
exports.expandCapMethods = require_runtime_capabilities.expandCapMethods;
|
|
670
|
+
exports.findMigrationsBlocked = require_runtime_capabilities.findMigrationsBlocked;
|
|
671
|
+
exports.forgetKnownSecret = require_runtime_capabilities.forgetKnownSecret;
|
|
672
|
+
exports.formatSecretScope = require_runtime_capabilities.formatSecretScope;
|
|
673
|
+
exports.globalSecretScope = require_runtime_capabilities.globalSecretScope;
|
|
674
|
+
exports.hfModelUrl = require_runtime_capabilities.hfModelUrl;
|
|
675
|
+
exports.isCapMethodAbsent = require_runtime_capabilities.isCapMethodAbsent;
|
|
675
676
|
exports.isCollectionArrayMethodName = isCollectionArrayMethodName;
|
|
676
|
-
exports.isCommand =
|
|
677
|
-
exports.isDeviceScopedCap =
|
|
677
|
+
exports.isCommand = require_runtime_capabilities.isCommand;
|
|
678
|
+
exports.isDeviceScopedCap = require_runtime_capabilities.isDeviceScopedCap;
|
|
678
679
|
exports.isProviderOptionalMethodName = isProviderOptionalMethodName;
|
|
679
|
-
exports.isSecretClear =
|
|
680
|
-
exports.isSecretFieldView =
|
|
681
|
-
exports.isSecretMarker =
|
|
682
|
-
exports.isSecretMarkerLike =
|
|
683
|
-
exports.isSecretRef =
|
|
684
|
-
exports.isZodSecret =
|
|
685
|
-
exports.knownSecretCount =
|
|
686
|
-
exports.makeInMemoryRecords =
|
|
687
|
-
exports.makeSecretMarker =
|
|
688
|
-
exports.mapSecretLeaves =
|
|
689
|
-
exports.maskUrlCredentials =
|
|
690
|
-
exports.nodeIdOfScopedKey =
|
|
691
|
-
exports.nodePin =
|
|
692
|
-
exports.normalizeAddonInitResult =
|
|
693
|
-
exports.normalizeSecretOwner =
|
|
694
|
-
exports.parseJsonUnknown =
|
|
695
|
-
exports.parseSecretPath =
|
|
696
|
-
exports.parseSecretRef =
|
|
697
|
-
exports.readCommandOrigin =
|
|
698
|
-
exports.readErrorI18n =
|
|
699
|
-
exports.readNodePin =
|
|
700
|
-
exports.recordArrayItemPath =
|
|
701
|
-
exports.recordSecretCollection =
|
|
702
|
-
exports.recordSecretRef =
|
|
703
|
-
exports.recordsErrorFromMessage =
|
|
704
|
-
exports.registerKnownSecret =
|
|
705
|
-
exports.resolveDeviceSettings =
|
|
706
|
-
exports.resolveSecretViewsIn =
|
|
707
|
-
exports.resolvedValues =
|
|
708
|
-
exports.ruleFireOfClaim =
|
|
709
|
-
exports.scopeKey =
|
|
710
|
-
exports.scrubKnownSecrets =
|
|
711
|
-
exports.secretArrayPrefixes =
|
|
712
|
-
exports.secretViewsOf =
|
|
713
|
-
exports.shortSecretRefHash =
|
|
714
|
-
exports.sleep =
|
|
715
|
-
exports.switchRefusesSetState =
|
|
716
|
-
exports.toSecretFieldView =
|
|
717
|
-
exports.viewerUiCapability =
|
|
680
|
+
exports.isSecretClear = require_runtime_capabilities.isSecretClear;
|
|
681
|
+
exports.isSecretFieldView = require_runtime_capabilities.isSecretFieldView;
|
|
682
|
+
exports.isSecretMarker = require_runtime_capabilities.isSecretMarker;
|
|
683
|
+
exports.isSecretMarkerLike = require_runtime_capabilities.isSecretMarkerLike;
|
|
684
|
+
exports.isSecretRef = require_runtime_capabilities.isSecretRef;
|
|
685
|
+
exports.isZodSecret = require_runtime_capabilities.isZodSecret;
|
|
686
|
+
exports.knownSecretCount = require_runtime_capabilities.knownSecretCount;
|
|
687
|
+
exports.makeInMemoryRecords = require_runtime_capabilities.makeInMemoryRecords;
|
|
688
|
+
exports.makeSecretMarker = require_runtime_capabilities.makeSecretMarker;
|
|
689
|
+
exports.mapSecretLeaves = require_runtime_capabilities.mapSecretLeaves;
|
|
690
|
+
exports.maskUrlCredentials = require_runtime_capabilities.maskUrlCredentials;
|
|
691
|
+
exports.nodeIdOfScopedKey = require_runtime_capabilities.nodeIdOfScopedKey;
|
|
692
|
+
exports.nodePin = require_runtime_capabilities.nodePin;
|
|
693
|
+
exports.normalizeAddonInitResult = require_runtime_capabilities.normalizeAddonInitResult;
|
|
694
|
+
exports.normalizeSecretOwner = require_runtime_capabilities.normalizeSecretOwner;
|
|
695
|
+
exports.parseJsonUnknown = require_runtime_capabilities.parseJsonUnknown;
|
|
696
|
+
exports.parseSecretPath = require_runtime_capabilities.parseSecretPath;
|
|
697
|
+
exports.parseSecretRef = require_runtime_capabilities.parseSecretRef;
|
|
698
|
+
exports.readCommandOrigin = require_runtime_capabilities.readCommandOrigin;
|
|
699
|
+
exports.readErrorI18n = require_runtime_capabilities.readErrorI18n;
|
|
700
|
+
exports.readNodePin = require_runtime_capabilities.readNodePin;
|
|
701
|
+
exports.recordArrayItemPath = require_runtime_capabilities.recordArrayItemPath;
|
|
702
|
+
exports.recordSecretCollection = require_runtime_capabilities.recordSecretCollection;
|
|
703
|
+
exports.recordSecretRef = require_runtime_capabilities.recordSecretRef;
|
|
704
|
+
exports.recordsErrorFromMessage = require_runtime_capabilities.recordsErrorFromMessage;
|
|
705
|
+
exports.registerKnownSecret = require_runtime_capabilities.registerKnownSecret;
|
|
706
|
+
exports.resolveDeviceSettings = require_runtime_capabilities.resolveDeviceSettings;
|
|
707
|
+
exports.resolveSecretViewsIn = require_runtime_capabilities.resolveSecretViewsIn;
|
|
708
|
+
exports.resolvedValues = require_runtime_capabilities.resolvedValues;
|
|
709
|
+
exports.ruleFireOfClaim = require_runtime_capabilities.ruleFireOfClaim;
|
|
710
|
+
exports.scopeKey = require_runtime_capabilities.scopeKey;
|
|
711
|
+
exports.scrubKnownSecrets = require_runtime_capabilities.scrubKnownSecrets;
|
|
712
|
+
exports.secretArrayPrefixes = require_runtime_capabilities.secretArrayPrefixes;
|
|
713
|
+
exports.secretViewsOf = require_runtime_capabilities.secretViewsOf;
|
|
714
|
+
exports.shortSecretRefHash = require_runtime_capabilities.shortSecretRefHash;
|
|
715
|
+
exports.sleep = require_runtime_capabilities.sleep;
|
|
716
|
+
exports.switchRefusesSetState = require_runtime_capabilities.switchRefusesSetState;
|
|
717
|
+
exports.toSecretFieldView = require_runtime_capabilities.toSecretFieldView;
|
|
718
|
+
exports.viewerUiCapability = require_runtime_capabilities.viewerUiCapability;
|
|
718
719
|
exports.withCapInputDefaults = withCapInputDefaults;
|
|
719
|
-
exports.withoutCallerStamp =
|
|
720
|
+
exports.withoutCallerStamp = require_runtime_capabilities.withoutCallerStamp;
|
package/dist/addon.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as CAP_STATE_LEAVES, $a as findMigrationsBlocked, $i as DeclarationRefusedError, $n as registerKnownSecret, A as DEVICE_SCOPED_CAPS, Ai as RECORD_DATABASES, Ba as isSecretFieldView, Bi as RECORD_SWEEP_INTERVAL_MS, Bn as OnBehalfSourceSchema, Ci as recordArrayItemPath, Ct as DEVICE_CHILDREN_BATCH_MAX, D as parseJsonUnknown, Da as emitReadiness, Di as RECORD_BATCH_MAX, Ea as createEvent, Ei as secretArrayPrefixes, Et as addonPagesSourceCapability, F as createEventBusSliceSource, Fi as RECORD_MAX_INDEXES, Gi as globalSecretScope, Gn as assertTransactScope, Gr as readErrorI18n, Ha as isSecretMarkerLike, Hi as arrayItemFieldPath, Hn as ruleFireOfClaim, Hr as ErrorI18nPayloadSchema, Ht as scopeKey, Ii as RECORD_MAX_INDEX_FIELDS, J as HF_REPO, Ji as parseSecretRef, Jn as createSecretsAccess, Ki as isSecretRef, Kn as resolveSecretViewsIn, La as SECRET_CLEAR, Li as RECORD_QUERY_MAX, Lt as MODEL_FORMATS, M as createDeviceProxy, Mi as RECORD_DELETE_BATCH, Ni as RECORD_ID_MAX_LENGTH, Nr as expandCapMethods, O as hfModelUrl, Oi as RECORD_BATCH_MAX_BYTES, P as addonSliceHandleApi, Pi as RECORD_MAX_DATA_BYTES, Qa as AddonMigrationsBlockedError, Qi as BatchTooLargeError, Qn as knownSecretCount, Ra as classifySecretWrite, Ri as RECORD_SECRET_COLLECTION_PREFIX, Rn as CommandOriginClaimSchema, Rt as ReadinessRegistry, S as asJsonObject, Si as parseSecretPath, Sr as defineRecordKinds, St as deviceOpsCapability, Ti as recordSecretRef, Tr as isZodSecret, Ua as makeSecretMarker, Ui as buildSecretRef, Un as makeInMemoryRecords, Va as isSecretMarker, Vi as SECRET_REF_SCHEME, Vn as RuleFireOriginSchema, W as isCommand, Wa as toSecretFieldView, Wi as formatSecretScope, Wn as createRecordsAccess, X as CAP_ADVANCE_FIELDS, Xn as clearKnownSecrets, Xr as normalizeAddonInitResult, Xt as createDebugEmitter, Yn as MIN_SCRUBBED_LENGTH, Z as CAP_METHOD_TIMEOUTS_MS, Zn as forgetKnownSecret, _r as RecordKindNameSchema, _t as switchRefusesSetState, aa as RECORDS_ERROR_CODES, ar as PEER_BYTES_TICKET_TTL_MS, at as defineCustomActions, bi as collectSecretLeaves, br as assertValidDeclaration, bt as MIGRATION_API_VERSION, ca as RecordTooLargeError, ci as resolveDeviceSettings, cr as DATAPLANE_SECRET_HEADER, da as RevConflictError, dr as defineEntryKind, dt as nodePin, ea as FilterRequiredError, er as scrubKnownSecrets, et as CAP_METHOD_NOT_IMPLEMENTED, fa as TransactRefusedError, fr as entryBody, ft as readCommandOrigin, ga as recordsErrorFromMessage, gr as RecordKindDeclarationSchema, gt as SWITCH_SETTABLE_GATE, ha as asRecordsError, hr as RecordIndexSchema, ht as viewerUiCapability, ia as PlaintextSecretError, ir as PEER_BYTES_STALL_MS, it as customAction, j as isDeviceScopedCap, ji as RECORD_DEFAULT_MAX_DATA_BYTES, k as BOOT_RECOVERY_BACKOFF_MS, ki as RECORD_CLASSES, la as RecordUniqueViolationError, li as resolvedValues, ma as UnknownRecordKindError, mr as RecordFieldPathSchema, n as describeNvidia, na as InvalidRecordError, nr as PEER_BYTES_CHUNK_BYTES, nt as CALLER_STAMPED_CAPABILITIES, oa as RecordNotFoundError, oi as SCOPED_SETTINGS_SCOPES, ot as describeCustomActions, pa as UnindexedFilterError, pr as EntryDescriptorSchema, pt as readNodePin, qi as normalizeSecretOwner, qn as REVALIDATE_AFTER_MS, qr as BaseAddon, ra as NoCallerError, rr as PEER_BYTES_MAX_OUTSTANDING, rt as withoutCallerStamp, sa as RecordSecretUnavailableError, si as nodeIdOfScopedKey, sr as CALLER_USERNAME_HEADER, ta as ForeignSecretMarkerError, tr as shortSecretRefHash, tt as isCapMethodAbsent, u as sleep, ua as RecordsError, ur as DisposerChain, ut as commandOrigin, vi as secretViewsOf, vr as RecordRetentionSchema, vt as PipelineRunResultBridge, w as asString, wi as recordSecretCollection, wr as collectZodSecretPaths, wt as adminUiCapability, xi as mapSecretLeaves, xr as declarationsOf, y as maskUrlCredentials, yi as REMOVE_LEAF, yr as StoredRecordKindDeclarationSchema, yt as PipelineStepInputSchema, za as isSecretClear, zi as RECORD_SETTINGS_MAX_ROWS, zn as OnBehalfSchema, zt as ReadinessTimeoutError } from "./runtime-capabilities-Bgt5QBvO.mjs";
|
|
2
2
|
import { t as EventCategory } from "./event-category-7P4A3bYA.mjs";
|
|
3
|
-
import { a as DeviceType, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-
|
|
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
|
|
5
5
|
/**
|
|
6
6
|
* AUTO-GENERATED by scripts/generate-cap-input-defaults.ts — DO NOT EDIT.
|
|
@@ -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_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, deviceOpsCapability, emitReadiness, entryBody, errMsg, expandCapMethods, findMigrationsBlocked, forgetKnownSecret, formatSecretScope, globalSecretScope, hfModelUrl, isCapMethodAbsent, isCollectionArrayMethodName, isCommand, isDeviceScopedCap, 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_LEAVES, COLLECTION_ARRAY_METHODS, COMPOSED_DEVICE_STABLE_ID_PREFIX, CommandOriginClaimSchema, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, 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, 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 };
|
|
@@ -251,7 +251,7 @@ export { type IPetFountainProvider, PET_FOUNTAIN_WATER_KEY, type PetFountainStat
|
|
|
251
251
|
export { type IPumpCycleProvider, type PumpCycleStatus, PumpCycleStatusSchema, pumpCycleCapability, } from './pump-cycle.cap.js';
|
|
252
252
|
export { type IPlateGalleryProvider, type PlateInfo, plateGalleryCapability, type Vehicle, type VehicleSampleInfo, } from './plate-gallery.cap.js';
|
|
253
253
|
export { type AcceleratorRescan, type HardwareDecodeAccels, type HardwareEncoderId, type HardwareEncoderProbe, type HardwareEncoders, type IPlatformProbeProvider, platformProbeCapability, } from './platform-probe.cap.js';
|
|
254
|
-
export { type IPowerMeterProvider, type PowerMeterStatus, PowerMeterStatusSchema, powerMeterCapability, } from './power-meter.cap.js';
|
|
254
|
+
export { type IPowerMeterProvider, type PowerMeterStatus, PowerMeterStatusSchema, netPowerOf, powerMeterCapability, } from './power-meter.cap.js';
|
|
255
255
|
export { type GpsLocation, type IPresenceProvider, type PresenceStatus, PresenceStatusSchema, presenceCapability, } from './presence.cap.js';
|
|
256
256
|
export { type IPressureSensorProvider, type PressureSensorStatus, PressureSensorStatusSchema, pressureSensorCapability, } from './pressure-sensor.cap.js';
|
|
257
257
|
export { type IPrivacyMaskProvider, type PrivacyMaskOptions, PrivacyMaskOptionsSchema, type PrivacyMaskPatch, PrivacyMaskPatchSchema, type PrivacyMaskRegion, PrivacyMaskRegionSchema, type PrivacyMaskShape, PrivacyMaskShapeSchema, type PrivacyMaskStatus, PrivacyMaskStatusSchema, privacyMaskCapability, summarisePrivacyAudio, } from './privacy-mask.cap.js';
|
|
@@ -223,6 +223,20 @@ export declare const platformProbeCapability: {
|
|
|
223
223
|
}>;
|
|
224
224
|
}, z.core.$strip>>>>;
|
|
225
225
|
}, z.core.$strip>>>;
|
|
226
|
+
nvidia: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
227
|
+
type: z.ZodLiteral<"nvidia">;
|
|
228
|
+
name: z.ZodString;
|
|
229
|
+
memoryMB: z.ZodOptional<z.ZodNumber>;
|
|
230
|
+
usable: z.ZodLiteral<true>;
|
|
231
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
232
|
+
type: z.ZodLiteral<"nvidia">;
|
|
233
|
+
name: z.ZodString;
|
|
234
|
+
memoryMB: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
usable: z.ZodLiteral<false>;
|
|
236
|
+
reason: z.ZodEnum<{
|
|
237
|
+
"no-cuda-execution-provider": "no-cuda-execution-provider";
|
|
238
|
+
}>;
|
|
239
|
+
}, z.core.$strip>], "usable">>>;
|
|
226
240
|
accelerators: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
227
241
|
deviceKey: z.ZodString;
|
|
228
242
|
fullDeviceName: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | null, string | null>>;
|
|
@@ -344,6 +358,20 @@ export declare const platformProbeCapability: {
|
|
|
344
358
|
}>;
|
|
345
359
|
}, z.core.$strip>>>>;
|
|
346
360
|
}, z.core.$strip>>>;
|
|
361
|
+
nvidia: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
362
|
+
type: z.ZodLiteral<"nvidia">;
|
|
363
|
+
name: z.ZodString;
|
|
364
|
+
memoryMB: z.ZodOptional<z.ZodNumber>;
|
|
365
|
+
usable: z.ZodLiteral<true>;
|
|
366
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
367
|
+
type: z.ZodLiteral<"nvidia">;
|
|
368
|
+
name: z.ZodString;
|
|
369
|
+
memoryMB: z.ZodOptional<z.ZodNumber>;
|
|
370
|
+
usable: z.ZodLiteral<false>;
|
|
371
|
+
reason: z.ZodEnum<{
|
|
372
|
+
"no-cuda-execution-provider": "no-cuda-execution-provider";
|
|
373
|
+
}>;
|
|
374
|
+
}, z.core.$strip>], "usable">>>;
|
|
347
375
|
accelerators: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
348
376
|
deviceKey: z.ZodString;
|
|
349
377
|
fullDeviceName: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string | null, string | null>>;
|
|
@@ -18,6 +18,7 @@ import { DeviceType } from '../device/device-type.js';
|
|
|
18
18
|
*/
|
|
19
19
|
export declare const PowerMeterStatusSchema: z.ZodObject<{
|
|
20
20
|
power: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
deliveredPower: z.ZodOptional<z.ZodNumber>;
|
|
21
22
|
energy: z.ZodOptional<z.ZodNumber>;
|
|
22
23
|
voltage: z.ZodOptional<z.ZodNumber>;
|
|
23
24
|
current: z.ZodOptional<z.ZodNumber>;
|
|
@@ -26,12 +27,20 @@ export declare const PowerMeterStatusSchema: z.ZodObject<{
|
|
|
26
27
|
lastFetchedAt: z.ZodNumber;
|
|
27
28
|
}, z.core.$strip>;
|
|
28
29
|
export type PowerMeterStatus = z.infer<typeof PowerMeterStatusSchema>;
|
|
30
|
+
/**
|
|
31
|
+
* The device's own draw: `power − deliveredPower`. Derived, never stored, and only when the total
|
|
32
|
+
* is known; with nothing delivered it is `power`. Unknown stays `undefined`, never 0 — and
|
|
33
|
+
* so does a delivered figure above the total, which is a reading out of step, not a negative
|
|
34
|
+
* draw. A consumer that adds power across devices should count this, so delivered power is not
|
|
35
|
+
* counted twice on top of the downstream devices' own meters.
|
|
36
|
+
*/
|
|
37
|
+
export declare function netPowerOf(status: Pick<PowerMeterStatus, 'power' | 'deliveredPower'>): number | undefined;
|
|
29
38
|
export declare const powerMeterCapability: {
|
|
30
39
|
readonly name: 'power-meter';
|
|
31
40
|
readonly scope: 'device';
|
|
32
41
|
readonly deviceNative: true;
|
|
33
42
|
readonly mode: 'singleton';
|
|
34
|
-
readonly deviceTypes: readonly [DeviceType.Sensor, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder];
|
|
43
|
+
readonly deviceTypes: readonly [DeviceType.Sensor, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Workload];
|
|
35
44
|
readonly deviceConfig: {
|
|
36
45
|
readonly ui: {
|
|
37
46
|
readonly kind: 'widget';
|
|
@@ -46,6 +55,7 @@ export declare const powerMeterCapability: {
|
|
|
46
55
|
readonly status: {
|
|
47
56
|
readonly schema: z.ZodObject<{
|
|
48
57
|
power: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
deliveredPower: z.ZodOptional<z.ZodNumber>;
|
|
49
59
|
energy: z.ZodOptional<z.ZodNumber>;
|
|
50
60
|
voltage: z.ZodOptional<z.ZodNumber>;
|
|
51
61
|
current: z.ZodOptional<z.ZodNumber>;
|
|
@@ -57,6 +67,7 @@ export declare const powerMeterCapability: {
|
|
|
57
67
|
};
|
|
58
68
|
readonly runtimeState: z.ZodObject<{
|
|
59
69
|
power: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
deliveredPower: z.ZodOptional<z.ZodNumber>;
|
|
60
71
|
energy: z.ZodOptional<z.ZodNumber>;
|
|
61
72
|
voltage: z.ZodOptional<z.ZodNumber>;
|
|
62
73
|
current: z.ZodOptional<z.ZodNumber>;
|
|
@@ -128,7 +139,7 @@ export declare const powerMeterCapability: {
|
|
|
128
139
|
readonly cap: 'power-meter';
|
|
129
140
|
readonly stateField: string;
|
|
130
141
|
};
|
|
131
|
-
readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Dryer)[];
|
|
142
|
+
readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Dryer | DeviceType.Workload)[];
|
|
132
143
|
readonly apply: 'add';
|
|
133
144
|
readonly path: string;
|
|
134
145
|
readonly sources: readonly [{
|
|
@@ -154,7 +165,7 @@ export declare const powerMeterCapability: {
|
|
|
154
165
|
readonly cap: 'power-meter';
|
|
155
166
|
readonly stateField: string;
|
|
156
167
|
};
|
|
157
|
-
readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Dryer)[];
|
|
168
|
+
readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Dryer | DeviceType.Workload)[];
|
|
158
169
|
readonly apply: 'add';
|
|
159
170
|
readonly path: string;
|
|
160
171
|
readonly sources: readonly [{
|
|
@@ -180,7 +191,7 @@ export declare const powerMeterCapability: {
|
|
|
180
191
|
readonly cap: 'power-meter';
|
|
181
192
|
readonly stateField: string;
|
|
182
193
|
};
|
|
183
|
-
readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Dryer)[];
|
|
194
|
+
readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Dryer | DeviceType.Workload)[];
|
|
184
195
|
readonly apply: 'add';
|
|
185
196
|
readonly path: string;
|
|
186
197
|
readonly sources: readonly [{
|
|
@@ -206,7 +217,7 @@ export declare const powerMeterCapability: {
|
|
|
206
217
|
readonly cap: 'power-meter';
|
|
207
218
|
readonly stateField: string;
|
|
208
219
|
};
|
|
209
|
-
readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Dryer)[];
|
|
220
|
+
readonly deviceTypes: (DeviceType.Light | DeviceType.Switch | DeviceType.Climate | DeviceType.Humidifier | DeviceType.WaterHeater | DeviceType.Fan | DeviceType.MediaPlayer | DeviceType.Vacuum | DeviceType.LawnMower | DeviceType.PetFeeder | DeviceType.Dishwasher | DeviceType.Washer | DeviceType.Dryer | DeviceType.Workload)[];
|
|
210
221
|
readonly apply: 'add';
|
|
211
222
|
readonly path: string;
|
|
212
223
|
readonly sources: readonly [{
|
package/dist/client.js
CHANGED
|
@@ -21434,6 +21434,9 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
21434
21434
|
/** A machine that runs workloads or is an appliance with its own OS: a
|
|
21435
21435
|
* server, a hypervisor, a gateway console, a CCU. */
|
|
21436
21436
|
DeviceRole["Host"] = "host";
|
|
21437
|
+
/** An uninterruptible power supply: battery charge, mains status and load. A
|
|
21438
|
+
* `DeviceType.Sensor` device. */
|
|
21439
|
+
DeviceRole["Ups"] = "ups";
|
|
21437
21440
|
return DeviceRole;
|
|
21438
21441
|
}({});
|
|
21439
21442
|
zod.z.enum(["new-session", "step-up"]);
|
|
@@ -27540,7 +27543,8 @@ var DEVICE_ROLE_ICON = {
|
|
|
27540
27543
|
[DeviceRole.AppContainer]: "container",
|
|
27541
27544
|
[DeviceRole.Lxc]: "box",
|
|
27542
27545
|
[DeviceRole.App]: "app-window",
|
|
27543
|
-
[DeviceRole.Host]: "server"
|
|
27546
|
+
[DeviceRole.Host]: "server",
|
|
27547
|
+
[DeviceRole.Ups]: "battery-charging"
|
|
27544
27548
|
};
|
|
27545
27549
|
var TYPE_VALUES = new Set(Object.values(DeviceType));
|
|
27546
27550
|
var ROLE_VALUES = new Set(Object.values(DeviceRole));
|
package/dist/client.mjs
CHANGED
|
@@ -21433,6 +21433,9 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
21433
21433
|
/** A machine that runs workloads or is an appliance with its own OS: a
|
|
21434
21434
|
* server, a hypervisor, a gateway console, a CCU. */
|
|
21435
21435
|
DeviceRole["Host"] = "host";
|
|
21436
|
+
/** An uninterruptible power supply: battery charge, mains status and load. A
|
|
21437
|
+
* `DeviceType.Sensor` device. */
|
|
21438
|
+
DeviceRole["Ups"] = "ups";
|
|
21436
21439
|
return DeviceRole;
|
|
21437
21440
|
}({});
|
|
21438
21441
|
z.enum(["new-session", "step-up"]);
|
|
@@ -27539,7 +27542,8 @@ var DEVICE_ROLE_ICON = {
|
|
|
27539
27542
|
[DeviceRole.AppContainer]: "container",
|
|
27540
27543
|
[DeviceRole.Lxc]: "box",
|
|
27541
27544
|
[DeviceRole.App]: "app-window",
|
|
27542
|
-
[DeviceRole.Host]: "server"
|
|
27545
|
+
[DeviceRole.Host]: "server",
|
|
27546
|
+
[DeviceRole.Ups]: "battery-charging"
|
|
27543
27547
|
};
|
|
27544
27548
|
var TYPE_VALUES = new Set(Object.values(DeviceType));
|
|
27545
27549
|
var ROLE_VALUES = new Set(Object.values(DeviceRole));
|
|
@@ -463,6 +463,9 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
463
463
|
/** A machine that runs workloads or is an appliance with its own OS: a
|
|
464
464
|
* server, a hypervisor, a gateway console, a CCU. */
|
|
465
465
|
DeviceRole["Host"] = "host";
|
|
466
|
+
/** An uninterruptible power supply: battery charge, mains status and load. A
|
|
467
|
+
* `DeviceType.Sensor` device. */
|
|
468
|
+
DeviceRole["Ups"] = "ups";
|
|
466
469
|
return DeviceRole;
|
|
467
470
|
}({});
|
|
468
471
|
//#endregion
|