@camstack/types 1.2.608 → 1.2.609

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 CHANGED
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.2.609] - 2026-11-20
11
+
12
+ ### Added
13
+
14
+ - Migration edits for records and devices: recordUpsertEdit, recordDeleteEdit, rekeyDeviceEdit, tombstoneDeviceEdit.
15
+
16
+ ### Changed
17
+
18
+ - Schema-free per-capability state-field presence fact for addons
19
+ - Auto tune knows an NVIDIA GPU (CUDA) column: an estimate for a mid-range card, replaced by a real benchmark
20
+
10
21
  ## [1.2.608] - 2026-11-20
11
22
 
12
23
  ### 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-DCRxheYq.js");
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, $a as classifySecretWrite, $i as RECORD_SETTINGS_MAX_ROWS, $n as assertTransactScope, $r as readErrorI18n, $t as createDebugEmitter, A as DEVICE_SCOPED_CAPS, Aa as recordsErrorFromMessage, Ar as defineRecordKinds, Bi as secretArrayPrefixes, Bt as MODEL_FORMATS, Ca as RecordUniqueViolationError, Cr as RecordIndexSchema, Ct as MIGRATION_API_VERSION, D as parseJsonUnknown, Da as UnindexedFilterError, Dr as StoredRecordKindDeclarationSchema, Dt as adminUiCapability, Ea as TransactRefusedError, Er as RecordRetentionSchema, Et as DEVICE_CHILDREN_BATCH_MAX, F as createEventBusSliceSource, Fi as mapSecretLeaves, Gi as RECORD_DEFAULT_MAX_DATA_BYTES, Gt as scopeKey, Ha as emitReadiness, Hi as RECORD_BATCH_MAX_BYTES, Ht as ReadinessTimeoutError, Ii as parseSecretPath, Ji as RECORD_MAX_DATA_BYTES, Jn as OnBehalfSourceSchema, Ki as RECORD_DELETE_BATCH, Kn as CommandOriginClaimSchema, Li as recordArrayItemPath, M as createDeviceProxy, Mi as secretViewsOf, Mr as collectZodSecretPaths, Ni as REMOVE_LEAF, Nr as isZodSecret, O as hfModelUrl, Oa as UnknownRecordKindError, Or as assertValidDeclaration, P as addonSliceHandleApi, Pi as collectSecretLeaves, Qa as SECRET_CLEAR, Qi as RECORD_SECRET_COLLECTION_PREFIX, Qn as createRecordsAccess, Ri as recordSecretCollection, S as asJsonObject, Sa as RecordTooLargeError, Sr as RecordFieldPathSchema, St as PipelineStepInputSchema, Ta as RevConflictError, To as findMigrationsBlocked, Tr as RecordKindNameSchema, Tt as deviceOpsCapability, Ui as RECORD_CLASSES, Va as createEvent, Vi as RECORD_BATCH_MAX, Vr as expandCapMethods, Vt as ReadinessRegistry, W as isCommand, Wi as RECORD_DATABASES, Xi as RECORD_MAX_INDEX_FIELDS, Xn as ruleFireOfClaim, Xr as ErrorI18nPayloadSchema, Yi as RECORD_MAX_INDEXES, Yn as RuleFireOriginSchema, Z as HF_REPO, Zi as RECORD_QUERY_MAX, Zn as makeInMemoryRecords, _a as NoCallerError, _i as resolvedValues, aa as globalSecretScope, ao as toSecretFieldView, ar as forgetKnownSecret, at as CALLER_STAMPED_CAPABILITIES, ba as RecordNotFoundError, bi as isInstanceSwitchesUnreadError, br as entryBody, bt as switchRefusesSetState, ca as parseSecretRef, cr as scrubKnownSecrets, ct as defineCustomActions, dr as PEER_BYTES_MAX_OUTSTANDING, ea as RECORD_SWEEP_INTERVAL_MS, eo as isSecretClear, er as resolveSecretViewsIn, et as CAP_METHOD_TIMEOUTS_MS, fa as BatchTooLargeError, fr as PEER_BYTES_STALL_MS, ga as InvalidRecordError, gi as resolveDeviceSettings, gr as DATAPLANE_SECRET_HEADER, gt as readNodePin, ha as ForeignSecretMarkerError, hi as nodeIdOfScopedKey, hr as CALLER_USERNAME_HEADER, ht as readCommandOrigin, ia as formatSecretScope, ii as normalizeAddonInitResult, io as makeSecretMarker, ir as clearKnownSecrets, it as isCapMethodAbsent, j as isDeviceScopedCap, k as BOOT_RECOVERY_BACKOFF_MS, ka as asRecordsError, kr as declarationsOf, kt as addonPagesSourceCapability, lr as shortSecretRefHash, lt as describeCustomActions, ma as FilterRequiredError, mi as SCOPED_SETTINGS_SCOPES, mt as nodePin, n as describeNvidia, na as arrayItemFieldPath, no as isSecretMarker, nr as createSecretsAccess, nt as CAP_STATE_LEAVES, oa as isSecretRef, or as knownSecretCount, ot as withoutCallerStamp, pa as DeclarationRefusedError, pr as PEER_BYTES_TICKET_TTL_MS, pt as commandOrigin, q as DEVICE_RESTORE_RETRY_DELAYS_MS, qi as RECORD_ID_MAX_LENGTH, qn as OnBehalfSchema, ra as buildSecretRef, ro as isSecretMarkerLike, rr as MIN_SCRUBBED_LENGTH, rt as CAP_METHOD_NOT_IMPLEMENTED, sa as normalizeSecretOwner, sr as registerKnownSecret, st as customAction, ta as SECRET_REF_SCHEME, ti as BaseAddon, to as isSecretFieldView, tr as REVALIDATE_AFTER_MS, u as sleep, ur as PEER_BYTES_CHUNK_BYTES, va as PlaintextSecretError, vr as DisposerChain, vt as viewerUiCapability, w as asString, wa as RecordsError, wo as AddonMigrationsBlockedError, wr as RecordKindDeclarationSchema, xa as RecordSecretUnavailableError, xr as EntryDescriptorSchema, xt as PipelineRunResultBridge, y as maskUrlCredentials, ya as RECORDS_ERROR_CODES, yr as defineEntryKind, yt as SWITCH_SETTABLE_GATE, zi as recordSecretRef } from "./runtime-capabilities-C0PIVXwH.mjs";
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 };
@@ -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
- value: z.ZodUnknown;
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>>>>;
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';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_runtime_capabilities = require("./runtime-capabilities-DCRxheYq.js");
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
  const require_implemented_methods = require("./implemented-methods-BHN-Utsb.js");
@@ -4172,16 +4172,32 @@ var MigrationEditSchema = zod.z.discriminatedUnion("op", [
4172
4172
  }),
4173
4173
  zod.z.object({
4174
4174
  op: zod.z.literal("upsertRecord"),
4175
+ owner: zod.z.string().min(1),
4175
4176
  kind: zod.z.string().min(1),
4176
4177
  recordKey: zod.z.string().min(1),
4177
- value: zod.z.unknown(),
4178
+ deviceId: zod.z.number().int().positive().optional(),
4179
+ at: zod.z.number().int().nonnegative().optional(),
4180
+ value: zod.z.record(zod.z.string(), zod.z.unknown()),
4178
4181
  precondition: PreconditionSchema
4179
4182
  }),
4180
4183
  zod.z.object({
4181
4184
  op: zod.z.literal("deleteRecord"),
4185
+ owner: zod.z.string().min(1),
4182
4186
  kind: zod.z.string().min(1),
4183
4187
  recordKey: zod.z.string().min(1),
4184
4188
  precondition: PreconditionSchema
4189
+ }),
4190
+ zod.z.object({
4191
+ op: zod.z.literal("rekeyDevice"),
4192
+ deviceId: zod.z.number().int().positive(),
4193
+ addonId: zod.z.string().min(1),
4194
+ stableId: zod.z.string().min(1),
4195
+ precondition: PreconditionSchema
4196
+ }),
4197
+ zod.z.object({
4198
+ op: zod.z.literal("tombstoneDevice"),
4199
+ deviceId: zod.z.number().int().positive(),
4200
+ precondition: PreconditionSchema
4185
4201
  })
4186
4202
  ]);
4187
4203
  var MigrationPlanSchema = zod.z.object({ edits: zod.z.array(MigrationEditSchema) });
@@ -4295,6 +4311,62 @@ var MigrationOwnerStepSchema = zod.z.object({
4295
4311
  state: zod.z.union([zod.z.literal("pending"), MigrationStatusSchema])
4296
4312
  });
4297
4313
  //#endregion
4314
+ //#region src/migrations/migration-record-edits.ts
4315
+ function refuseSecrets(kind) {
4316
+ if (kind.declaration.secretPaths.length > 0) throw new require_runtime_capabilities.InvalidRecordError(`${kind.name}: a kind with secret fields cannot be written by a migration plan (the keychain is outside its transaction); use a procedure`);
4317
+ }
4318
+ /** An `upsertRecord` edit whose body the kind's schema accepted. */
4319
+ function recordUpsertEdit(input) {
4320
+ refuseSecrets(input.kind);
4321
+ const value = require_runtime_capabilities.parseRecordBody(input.kind, input.id, input.data);
4322
+ return {
4323
+ op: "upsertRecord",
4324
+ owner: input.owner,
4325
+ kind: input.kind.name,
4326
+ recordKey: input.id,
4327
+ ...input.deviceId === void 0 ? {} : { deviceId: input.deviceId },
4328
+ ...input.at === void 0 ? {} : { at: input.at },
4329
+ value,
4330
+ ...input.read === void 0 ? {} : { precondition: preconditionOf(input.read) }
4331
+ };
4332
+ }
4333
+ /** A `deleteRecord` edit. */
4334
+ function recordDeleteEdit(input) {
4335
+ refuseSecrets(input.kind);
4336
+ return {
4337
+ op: "deleteRecord",
4338
+ owner: input.owner,
4339
+ kind: input.kind.name,
4340
+ recordKey: input.id,
4341
+ precondition: preconditionOf(input.read)
4342
+ };
4343
+ }
4344
+ /** The precondition of a device edit: the identity the plan read. */
4345
+ function deviceIdentityPrecondition(identity) {
4346
+ return preconditionOf({
4347
+ addonId: identity.addonId,
4348
+ stableId: identity.stableId
4349
+ });
4350
+ }
4351
+ /** A `rekeyDevice` edit: same `deviceId`, new `(addonId, stableId)`. */
4352
+ function rekeyDeviceEdit(deviceId, read, next) {
4353
+ return {
4354
+ op: "rekeyDevice",
4355
+ deviceId,
4356
+ addonId: next.addonId,
4357
+ stableId: next.stableId,
4358
+ precondition: deviceIdentityPrecondition(read)
4359
+ };
4360
+ }
4361
+ /** A `tombstoneDevice` edit (D865). */
4362
+ function tombstoneDeviceEdit(deviceId, read) {
4363
+ return {
4364
+ op: "tombstoneDevice",
4365
+ deviceId,
4366
+ precondition: deviceIdentityPrecondition(read)
4367
+ };
4368
+ }
4369
+ //#endregion
4298
4370
  //#region src/migrations/flatten-nested-records.ts
4299
4371
  function isPlain(value) {
4300
4372
  return typeof value === "object" && value !== null && !Array.isArray(value);
@@ -86808,6 +86880,7 @@ var HardwareClassIdSchema = zod.z.enum([
86808
86880
  "apple-m-base",
86809
86881
  "apple-m-pro",
86810
86882
  "amd-phoenix",
86883
+ "nvidia-gpu",
86811
86884
  "unknown"
86812
86885
  ]);
86813
86886
  var AcceleratorKindSchema = zod.z.enum([
@@ -86815,6 +86888,7 @@ var AcceleratorKindSchema = zod.z.enum([
86815
86888
  "intel-igpu",
86816
86889
  "amd-igpu",
86817
86890
  "amd-npu",
86891
+ "nvidia-gpu",
86818
86892
  "x86-cpu",
86819
86893
  "arm-cpu",
86820
86894
  "apple-ane",
@@ -89365,6 +89439,38 @@ var DETECTOR_PERF = {
89365
89439
  measured: true
89366
89440
  } }
89367
89441
  },
89442
+ "nvidia-gpu": { "nvidia-gpu": {
89443
+ "yolov9t-320": {
89444
+ p50Ms: 12,
89445
+ fps: 83,
89446
+ measured: false
89447
+ },
89448
+ "yolov9t-640": {
89449
+ p50Ms: 16,
89450
+ fps: 62,
89451
+ measured: false
89452
+ },
89453
+ "yolov9s-320": {
89454
+ p50Ms: 13,
89455
+ fps: 77,
89456
+ measured: false
89457
+ },
89458
+ "yolov9s-640": {
89459
+ p50Ms: 20,
89460
+ fps: 50,
89461
+ measured: false
89462
+ },
89463
+ "yolov9m-320": {
89464
+ p50Ms: 16,
89465
+ fps: 62,
89466
+ measured: false
89467
+ },
89468
+ "yolov9m-640": {
89469
+ p50Ms: 32,
89470
+ fps: 31,
89471
+ measured: false
89472
+ }
89473
+ } },
89368
89474
  "apple-m-pro": {
89369
89475
  "apple-ane": {
89370
89476
  "yolov9t-320": {
@@ -89680,6 +89786,13 @@ function scaleColumn(column, ratio, estimatedFrom) {
89680
89786
  function resolveLatencyColumn(input) {
89681
89787
  const perf = input.perf ?? DETECTOR_PERF;
89682
89788
  const references = input.references ?? REFERENCE_COMPUTE;
89789
+ if (input.accelerator === "nvidia-gpu") {
89790
+ const card = classColumn(perf, "nvidia-gpu", "nvidia-gpu");
89791
+ return card === void 0 ? null : {
89792
+ column: card,
89793
+ estimatedFrom: null
89794
+ };
89795
+ }
89683
89796
  const measured = classColumn(perf, input.hardwareClass, input.accelerator);
89684
89797
  if (measured !== void 0 && input.hardwareClass !== "intel-n-series") return {
89685
89798
  column: measured,
@@ -146329,6 +146442,10 @@ function classifyInferenceHardware(hw) {
146329
146442
  hardwareClass: "amd-phoenix",
146330
146443
  cpuModel
146331
146444
  };
146445
+ if (hw.nvidia?.usable === true) return {
146446
+ hardwareClass: "nvidia-gpu",
146447
+ cpuModel
146448
+ };
146332
146449
  return {
146333
146450
  hardwareClass: "unknown",
146334
146451
  cpuModel
@@ -146346,6 +146463,7 @@ function acceleratorKindOf(deviceKey, hw) {
146346
146463
  if (backend === "openvino" && device === "npu") return "intel-npu";
146347
146464
  if (backend === "openvino" && device === "gpu") return "intel-igpu";
146348
146465
  if (backend === "onnx" && device === "webgpu") return "amd-igpu";
146466
+ if (backend === "cuda" || backend === "onnx" && device === "cuda") return "nvidia-gpu";
146349
146467
  if (backend === "vitisai" && device === "npu") return "amd-npu";
146350
146468
  if (backend === "cpu" || device === "cpu") return hw.arch === "arm64" ? "arm-cpu" : "x86-cpu";
146351
146469
  return null;
@@ -154722,6 +154840,7 @@ exports.deviceExportStatusInstanceOf = statusInstanceOf;
154722
154840
  exports.deviceExtensionCapability = deviceExtensionCapability;
154723
154841
  exports.deviceHistoryCapability = deviceHistoryCapability;
154724
154842
  exports.deviceIconKey = deviceIconKey;
154843
+ exports.deviceIdentityPrecondition = deviceIdentityPrecondition;
154725
154844
  exports.deviceManagerCapability = deviceManagerCapability;
154726
154845
  exports.deviceMatchesProfile = deviceMatchesProfile;
154727
154846
  exports.deviceOffersActions = deviceOffersActions;
@@ -155330,6 +155449,7 @@ exports.parseOauthLandingFragment = parseOauthLandingFragment;
155330
155449
  exports.parseOccupancyScope = parseOccupancyScope;
155331
155450
  exports.parseProcStatus = parseProcStatus;
155332
155451
  exports.parseProfileBrokerId = require_runtime_capabilities.parseProfileBrokerId;
155452
+ exports.parseRecordBody = require_runtime_capabilities.parseRecordBody;
155333
155453
  exports.parseRetrainRevisionConflict = parseRetrainRevisionConflict;
155334
155454
  exports.parseRuleSection = parseRuleSection;
155335
155455
  exports.parseSecretPath = require_runtime_capabilities.parseSecretPath;
@@ -155456,11 +155576,13 @@ exports.reconcileBlockDevices = reconcileBlockDevices;
155456
155576
  exports.reconcileRemovedDevices = reconcileRemovedDevices;
155457
155577
  exports.reconcileReportedFeatures = reconcileReportedFeatures;
155458
155578
  exports.recordArrayItemPath = require_runtime_capabilities.recordArrayItemPath;
155579
+ exports.recordDeleteEdit = recordDeleteEdit;
155459
155580
  exports.recordEntriesCapability = recordEntriesCapability;
155460
155581
  exports.recordInstanceSwitch = require_runtime_capabilities.recordInstanceSwitch;
155461
155582
  exports.recordRegistrySwitch = require_runtime_capabilities.recordRegistrySwitch;
155462
155583
  exports.recordSecretCollection = require_runtime_capabilities.recordSecretCollection;
155463
155584
  exports.recordSecretRef = require_runtime_capabilities.recordSecretRef;
155585
+ exports.recordUpsertEdit = recordUpsertEdit;
155464
155586
  exports.recordingArchiveCapability = recordingArchiveCapability;
155465
155587
  exports.recordingCapability = recordingCapability;
155466
155588
  exports.recordingExportCapability = recordingExportCapability;
@@ -155480,6 +155602,7 @@ exports.registerPowerSwitch = registerPowerSwitch;
155480
155602
  exports.registrySwitchPortsOver = require_runtime_capabilities.registrySwitchPortsOver;
155481
155603
  exports.registrySwitchToBodyId = require_runtime_capabilities.registrySwitchToBodyId;
155482
155604
  exports.registrySwitchToBodyMigration = require_runtime_capabilities.registrySwitchToBodyMigration;
155605
+ exports.rekeyDeviceEdit = rekeyDeviceEdit;
155483
155606
  exports.remapCropDetections = remapCropDetections;
155484
155607
  exports.remoteCapability = remoteCapability;
155485
155608
  exports.remoteLayoutComponentsCapability = remoteLayoutComponentsCapability;
@@ -155830,6 +155953,7 @@ exports.toTimings = toTimings;
155830
155953
  exports.toastCapability = toastCapability;
155831
155954
  exports.toggleAudioLabel = toggleAudioLabel;
155832
155955
  exports.tokenize = require_implemented_methods.tokenize;
155956
+ exports.tombstoneDeviceEdit = tombstoneDeviceEdit;
155833
155957
  exports.trainingCapability = trainingCapability;
155834
155958
  exports.trainingProviderCapability = trainingProviderCapability;
155835
155959
  exports.transcodeBody = transcodeBody;