@camstack/types 1.2.403 → 1.2.404

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.
Files changed (33) hide show
  1. package/dist/addon.js +2 -2
  2. package/dist/addon.mjs +2 -2
  3. package/dist/capabilities/index.d.ts +2 -2
  4. package/dist/capabilities/pipeline-analytics.cap.d.ts +3 -0
  5. package/dist/capabilities/pipeline-executor.cap.d.ts +0 -64
  6. package/dist/capabilities/pipeline-orchestrator.cap.d.ts +32 -124
  7. package/dist/capabilities/training.cap.d.ts +91 -71
  8. package/dist/client.js +2 -8
  9. package/dist/client.mjs +2 -8
  10. package/dist/enums/event-category.d.ts +2 -3
  11. package/dist/enums.js +1 -1
  12. package/dist/enums.mjs +1 -1
  13. package/dist/{event-category-7AwNbPjm.js → event-category-CXrwjC3e.js} +2 -3
  14. package/dist/{event-category-BfJwUd2S.mjs → event-category-fDPduoeC.mjs} +2 -3
  15. package/dist/generated/addon-api.d.ts +14 -56
  16. package/dist/generated/device-proxy.d.ts +1 -1
  17. package/dist/generated/method-access-map.d.ts +1 -1
  18. package/dist/generated/method-device-selectors.d.ts +2 -2
  19. package/dist/generated/system-proxy.d.ts +3 -3
  20. package/dist/index.d.ts +2 -1
  21. package/dist/index.js +135 -276
  22. package/dist/index.mjs +131 -275
  23. package/dist/interfaces/birth-decision-ledger.d.ts +3 -0
  24. package/dist/interfaces/pipeline-executor-capability.d.ts +2 -8
  25. package/dist/pipeline/auto-tune/plan-schemas.d.ts +8 -80
  26. package/dist/pipeline/step-settings-layers.d.ts +7 -8
  27. package/dist/{sleep-Ch67uumJ.js → sleep-BKS4OPMo.js} +1 -4
  28. package/dist/{sleep-6AqUnQIT.mjs → sleep-CHIEEJkY.mjs} +1 -4
  29. package/dist/types/agent-pipeline-settings.d.ts +37 -70
  30. package/dist/types/camera-pipeline.d.ts +2 -2
  31. package/dist/types/detection.d.ts +15 -5
  32. package/dist/types/pipeline-step.d.ts +0 -16
  33. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-Ch67uumJ.js");
3
- const require_event_category = require("./event-category-7AwNbPjm.js");
2
+ const require_sleep = require("./sleep-BKS4OPMo.js");
3
+ const require_event_category = require("./event-category-CXrwjC3e.js");
4
4
  const require_err_msg = require("./err-msg-BhVbr0NX.js");
5
5
  //#region src/generated/cap-input-defaults.ts
6
6
  /**
package/dist/addon.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { $n as PEER_BYTES_TICKET_TTL_MS, $t as parseSecretPath, A as HF_REPO, An as RECORD_DEFAULT_MAX_DATA_BYTES, B as describeCustomActions, Bn as resolveSecretViewsIn, Br as isSecretFieldView, Bt as EntryDescriptorSchema, C as addonSliceHandleApi, Cn as UnknownRecordKindError, Cr as parseSecretRef, Dn as RECORD_BATCH_MAX_BYTES, Dr as emitReadiness, En as RECORD_BATCH_MAX, Er as createEvent, F as DEVICE_CHILDREN_BATCH_MAX, Fn as RECORD_MAX_INDEX_FIELDS, Ft as makeInMemoryRecords, Gn as forgetKnownSecret, Gt as RecordRetentionSchema, H as adminUiCapability, Hn as createSecretsAccess, Hr as isSecretMarkerLike, Ht as RecordIndexSchema, I as CALLER_STAMPED_CAPABILITIES, In as RECORD_QUERY_MAX, It as defineEntryKind, Jn as scrubKnownSecrets, Jt as declarationsOf, Kn as knownSecretCount, Kt as StoredRecordKindDeclarationSchema, L as withoutCallerStamp, Ln as RECORD_SECRET_COLLECTION_PREFIX, Lr as SECRET_CLEAR, Lt as entryBody, Mn as RECORD_ID_MAX_LENGTH, N as deviceOpsCapability, Nn as RECORD_MAX_DATA_BYTES, On as RECORD_CLASSES, P as viewerUiCapability, Pn as RECORD_MAX_INDEXES, Qn as PEER_BYTES_STALL_MS, Qt as mapSecretLeaves, Rn as RECORD_SETTINGS_MAX_ROWS, Rr as classifySecretWrite, Rt as createRecordsAccess, Sn as UnindexedFilterError, Sr as normalizeSecretOwner, Tn as recordsErrorFromMessage, Un as MIN_SCRUBBED_LENGTH, Ur as makeSecretMarker, Ut as RecordKindDeclarationSchema, Vn as REVALIDATE_AFTER_MS, Vr as isSecretMarker, Vt as RecordFieldPathSchema, Wn as clearKnownSecrets, Wr as toSecretFieldView, Wt as RecordKindNameSchema, X as expandCapMethods, Xn as PEER_BYTES_CHUNK_BYTES, Xt as REMOVE_LEAF, Yn as shortSecretRefHash, Yt as defineRecordKinds, Zn as PEER_BYTES_MAX_OUTSTANDING, Zt as collectSecretLeaves, _ as readErrorI18n, _n as RecordTooLargeError, _r as arrayItemFieldPath, an as collectZodSecretPaths, at as readNodePin, b as isDeviceScopedCap, bn as RevConflictError, br as globalSecretScope, c as asString, cn as DeclarationRefusedError, ct as ReadinessRegistry, d as parseJsonUnknown, dn as InvalidRecordError, en as recordArrayItemPath, f as hfModelUrl, fn as NoCallerError, ft as scopeKey, g as ErrorI18nPayloadSchema, gn as RecordSecretUnavailableError, gr as SECRET_REF_SCHEME, hn as RecordNotFoundError, ir as BaseAddon, it as nodePin, jn as RECORD_DELETE_BATCH, kn as RECORD_DATABASES, ln as FilterRequiredError, lt as ReadinessTimeoutError, mn as RECORDS_ERROR_CODES, nn as recordSecretRef, o as asJsonObject, on as isZodSecret, or as normalizeAddonInitResult, p as BOOT_RECOVERY_BACKOFF_MS, pn as PlaintextSecretError, qn as registerKnownSecret, qt as assertValidDeclaration, r as maskUrlCredentials, rn as secretArrayPrefixes, rr as DisposerChain, sn as BatchTooLargeError, st as MODEL_FORMATS, t as sleep, tn as recordSecretCollection, tr as DATAPLANE_SECRET_HEADER, un as ForeignSecretMarkerError, vn as RecordUniqueViolationError, vr as buildSecretRef, w as createEventBusSliceSource, wn as asRecordsError, x as createDeviceProxy, xn as TransactRefusedError, xr as isSecretRef, y as DEVICE_SCOPED_CAPS, yn as RecordsError, yr as formatSecretScope, zn as RECORD_SWEEP_INTERVAL_MS, zr as isSecretClear, zt as assertTransactScope } from "./sleep-6AqUnQIT.mjs";
2
- import { t as EventCategory } from "./event-category-BfJwUd2S.mjs";
1
+ import { $n as PEER_BYTES_TICKET_TTL_MS, $t as parseSecretPath, A as HF_REPO, An as RECORD_DEFAULT_MAX_DATA_BYTES, B as describeCustomActions, Bn as resolveSecretViewsIn, Br as isSecretFieldView, Bt as EntryDescriptorSchema, C as addonSliceHandleApi, Cn as UnknownRecordKindError, Cr as parseSecretRef, Dn as RECORD_BATCH_MAX_BYTES, Dr as emitReadiness, En as RECORD_BATCH_MAX, Er as createEvent, F as DEVICE_CHILDREN_BATCH_MAX, Fn as RECORD_MAX_INDEX_FIELDS, Ft as makeInMemoryRecords, Gn as forgetKnownSecret, Gt as RecordRetentionSchema, H as adminUiCapability, Hn as createSecretsAccess, Hr as isSecretMarkerLike, Ht as RecordIndexSchema, I as CALLER_STAMPED_CAPABILITIES, In as RECORD_QUERY_MAX, It as defineEntryKind, Jn as scrubKnownSecrets, Jt as declarationsOf, Kn as knownSecretCount, Kt as StoredRecordKindDeclarationSchema, L as withoutCallerStamp, Ln as RECORD_SECRET_COLLECTION_PREFIX, Lr as SECRET_CLEAR, Lt as entryBody, Mn as RECORD_ID_MAX_LENGTH, N as deviceOpsCapability, Nn as RECORD_MAX_DATA_BYTES, On as RECORD_CLASSES, P as viewerUiCapability, Pn as RECORD_MAX_INDEXES, Qn as PEER_BYTES_STALL_MS, Qt as mapSecretLeaves, Rn as RECORD_SETTINGS_MAX_ROWS, Rr as classifySecretWrite, Rt as createRecordsAccess, Sn as UnindexedFilterError, Sr as normalizeSecretOwner, Tn as recordsErrorFromMessage, Un as MIN_SCRUBBED_LENGTH, Ur as makeSecretMarker, Ut as RecordKindDeclarationSchema, Vn as REVALIDATE_AFTER_MS, Vr as isSecretMarker, Vt as RecordFieldPathSchema, Wn as clearKnownSecrets, Wr as toSecretFieldView, Wt as RecordKindNameSchema, X as expandCapMethods, Xn as PEER_BYTES_CHUNK_BYTES, Xt as REMOVE_LEAF, Yn as shortSecretRefHash, Yt as defineRecordKinds, Zn as PEER_BYTES_MAX_OUTSTANDING, Zt as collectSecretLeaves, _ as readErrorI18n, _n as RecordTooLargeError, _r as arrayItemFieldPath, an as collectZodSecretPaths, at as readNodePin, b as isDeviceScopedCap, bn as RevConflictError, br as globalSecretScope, c as asString, cn as DeclarationRefusedError, ct as ReadinessRegistry, d as parseJsonUnknown, dn as InvalidRecordError, en as recordArrayItemPath, f as hfModelUrl, fn as NoCallerError, ft as scopeKey, g as ErrorI18nPayloadSchema, gn as RecordSecretUnavailableError, gr as SECRET_REF_SCHEME, hn as RecordNotFoundError, ir as BaseAddon, it as nodePin, jn as RECORD_DELETE_BATCH, kn as RECORD_DATABASES, ln as FilterRequiredError, lt as ReadinessTimeoutError, mn as RECORDS_ERROR_CODES, nn as recordSecretRef, o as asJsonObject, on as isZodSecret, or as normalizeAddonInitResult, p as BOOT_RECOVERY_BACKOFF_MS, pn as PlaintextSecretError, qn as registerKnownSecret, qt as assertValidDeclaration, r as maskUrlCredentials, rn as secretArrayPrefixes, rr as DisposerChain, sn as BatchTooLargeError, st as MODEL_FORMATS, t as sleep, tn as recordSecretCollection, tr as DATAPLANE_SECRET_HEADER, un as ForeignSecretMarkerError, vn as RecordUniqueViolationError, vr as buildSecretRef, w as createEventBusSliceSource, wn as asRecordsError, x as createDeviceProxy, xn as TransactRefusedError, xr as isSecretRef, y as DEVICE_SCOPED_CAPS, yn as RecordsError, yr as formatSecretScope, zn as RECORD_SWEEP_INTERVAL_MS, zr as isSecretClear, zt as assertTransactScope } from "./sleep-CHIEEJkY.mjs";
2
+ import { t as EventCategory } from "./event-category-fDPduoeC.mjs";
3
3
  import { a as DeviceType, t as errMsg } from "./err-msg-BXKzRBwg.mjs";
4
4
  //#region src/generated/cap-input-defaults.ts
5
5
  /**
@@ -250,8 +250,8 @@ export { type IZoneRulesProvider, type ZoneRuleStage, ZoneRuleStageEnum, zoneRul
250
250
  export { type IZonesProvider, type PolygonPoint, PolygonPointSchema, type Zone, type ZoneKind, ZoneKindEnum, ZoneSchema, zonesCapability, } from './zones.cap.js';
251
251
  export type { ITrainingCloudProvider, ProviderJobState, ProviderJobStatus, TrainerSourceRef, TrainingCredentialCheck, TrainingGpuOption, TrainingLogLine, TrainingProviderDefaults, TrainingProviderDescriptor, TrainingProviderEntry, TrainingProviderType, TrainingProviderUpdateEntryInput, TrainingRegionOption, } from './training-provider.cap.js';
252
252
  export { ProviderJobStateSchema, ProviderJobStatusSchema, TrainerSourceRefSchema, TrainingCredentialCheckSchema, TrainingGpuOptionSchema, TrainingLogLineSchema, TrainingProviderDefaultsSchema, TrainingProviderDescriptorSchema, TrainingProviderEntrySchema, TrainingProviderTypeSchema, TrainingProviderUpdateEntryInputSchema, TrainingRegionOptionSchema, trainingProviderCapability, } from './training-provider.cap.js';
253
- export type { ITrainingOrchestrator, TrainingBaseModel, TrainingCanary, TrainingCorpusSelection, TrainingFailureReason, TrainingJob, TrainingJobPlan, TrainingJobRequest, TrainingJobState, TrainingPreset, TrainingProgressPoint, TrainingRefusalReason, TrainingSplitPlan, } from './training.cap.js';
254
- export { TrainingBaseModelSchema, TrainingCanarySchema, TrainingCorpusSelectionSchema, TrainingFailureReasonSchema, TrainingJobPlanSchema, TrainingJobRequestSchema, TrainingJobSchema, TrainingJobStateSchema, TrainingPresetSchema, TrainingProgressPointSchema, TrainingRefusalReasonSchema, TrainingSplitPlanSchema, trainingCapability, } from './training.cap.js';
253
+ export type { ITrainingOrchestrator, TrainingAcceleratorRef, TrainingBaseModel, TrainingCanary, TrainingCanaryTarget, TrainingCorpusSelection, TrainingFailureReason, TrainingJob, TrainingJobPlan, TrainingJobRequest, TrainingJobState, TrainingPreset, TrainingProgressPoint, TrainingRefusalReason, TrainingSplitPlan, } from './training.cap.js';
254
+ export { TrainingAcceleratorRefSchema, TrainingBaseModelSchema, TrainingCanarySchema, TrainingCanaryTargetSchema, TrainingCorpusSelectionSchema, TrainingFailureReasonSchema, TrainingJobPlanSchema, TrainingJobRequestSchema, TrainingJobSchema, TrainingJobStateSchema, TrainingPresetSchema, TrainingProgressPointSchema, TrainingRefusalReasonSchema, TrainingSplitPlanSchema, trainingCapability, } from './training.cap.js';
255
255
  import type { IReadinessRegistry } from '../interfaces/readiness.js';
256
256
  import type { accessoriesCapability } from './accessories.cap.js';
257
257
  import type { addonPagesCapability } from './addon-pages.cap.js';
@@ -5030,6 +5030,9 @@ export declare const pipelineAnalyticsCapability: {
5030
5030
  decidedByBirthEvidence: z.ZodBoolean;
5031
5031
  bestScore: z.ZodNullable<z.ZodNumber>;
5032
5032
  appliedMinConfidence: z.ZodNullable<z.ZodNumber>;
5033
+ detectorModelId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5034
+ detectorDeviceKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5035
+ detectorNodeId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5033
5036
  firstSeen: z.ZodNullable<z.ZodNumber>;
5034
5037
  motionOnsetAt: z.ZodNullable<z.ZodNumber>;
5035
5038
  birthLatencyMs: z.ZodNullable<z.ZodNumber>;
@@ -2,7 +2,6 @@ import { z } from 'zod';
2
2
  import type { ConfigField, ConfigUISchema } from '../interfaces/config-ui.js';
3
3
  import type { InferenceCapabilities, ModelAvailability } from '../interfaces/inference-capabilities.js';
4
4
  import type { AudioResult, FrameResult } from '../types/detection.js';
5
- import type { PipelineConfig } from '../types/pipeline.js';
6
5
  import { type InferProvider } from './capability-definition.js';
7
6
  /**
8
7
  * A root model's boxes standing in for one crop-kind step's own inference
@@ -327,7 +326,6 @@ declare const PipelineAddonSchemaSchema: z.ZodObject<{
327
326
  defaultModelId: z.ZodString;
328
327
  defaultModelIdByFormat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
329
328
  enabledByDefault: z.ZodOptional<z.ZodBoolean>;
330
- backfillIntoExistingOverrides: z.ZodOptional<z.ZodBoolean>;
331
329
  defaultConfidence: z.ZodNumber;
332
330
  group: z.ZodOptional<z.ZodString>;
333
331
  configSchema: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodCustom<ConfigField, ConfigField>>>>;
@@ -441,7 +439,6 @@ declare const PipelineSlotSchemaSchema: z.ZodObject<{
441
439
  defaultModelId: z.ZodString;
442
440
  defaultModelIdByFormat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
443
441
  enabledByDefault: z.ZodOptional<z.ZodBoolean>;
444
- backfillIntoExistingOverrides: z.ZodOptional<z.ZodBoolean>;
445
442
  defaultConfidence: z.ZodNumber;
446
443
  group: z.ZodOptional<z.ZodString>;
447
444
  configSchema: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodCustom<ConfigField, ConfigField>>>>;
@@ -591,7 +588,6 @@ declare const PipelineSchemaSchema: z.ZodObject<{
591
588
  defaultModelId: z.ZodString;
592
589
  defaultModelIdByFormat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
593
590
  enabledByDefault: z.ZodOptional<z.ZodBoolean>;
594
- backfillIntoExistingOverrides: z.ZodOptional<z.ZodBoolean>;
595
591
  defaultConfidence: z.ZodNumber;
596
592
  group: z.ZodOptional<z.ZodString>;
597
593
  configSchema: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodCustom<ConfigField, ConfigField>>>>;
@@ -717,19 +713,6 @@ export declare const pipelineExecutorCapability: {
717
713
  }>;
718
714
  device: z.ZodOptional<z.ZodString>;
719
715
  }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
720
- readonly getDefaultSteps: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
721
- runtime: z.ZodLiteral<"python">;
722
- backend: z.ZodString;
723
- format: z.ZodEnum<{
724
- coreml: "coreml";
725
- gguf: "gguf";
726
- onnx: "onnx";
727
- openvino: "openvino";
728
- pt: "pt";
729
- tflite: "tflite";
730
- }>;
731
- device: z.ZodOptional<z.ZodString>;
732
- }, z.core.$strip>, z.ZodArray<z.ZodType<PipelineDefaultStepOutput, unknown, z.core.$ZodTypeInternals<PipelineDefaultStepOutput, unknown>>>, import("./capability-definition.js").CapabilityMethodKind>;
733
716
  /**
734
717
  * Per-node detection-engine provisioning snapshot. Returns the live
735
718
  * state of the lazy runtime-provisioning machine on `nodeId`
@@ -772,50 +755,6 @@ export declare const pipelineExecutorCapability: {
772
755
  }, z.core.$strip>, z.ZodObject<{
773
756
  success: z.ZodLiteral<true>;
774
757
  }, z.core.$strip>, "mutation">;
775
- /**
776
- * Clear THIS node's executor-side PER-DEVICE settings stores (the
777
- * per-camera step overrides the object-detection root reads via
778
- * `applyDeviceOverridesToTree`). `nodeId` is the ROUTING key — the
779
- * generated cap-router strips it (default `nodeIdMode: 'routing'`) and
780
- * dispatches to that node, so the provider method runs ON the target
781
- * node and receives no `nodeId`.
782
- *
783
- * This is the slimmed executor leg of the orchestrator's
784
- * `resetNodePipelineDefaults` flow (which owns the real reset: node
785
- * addonDefaults pins + per-camera orchestrator overrides). The legacy
786
- * `resetToDefault` — which reset a persisted global step-tree seed
787
- * nothing in the live per-camera path read — was removed together with
788
- * that seed.
789
- */
790
- readonly clearDeviceOverrides: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
791
- nodeId: z.ZodString;
792
- }, z.core.$strip>, z.ZodObject<{
793
- success: z.ZodLiteral<true>;
794
- clearedDevices: z.ZodNumber;
795
- }, z.core.$strip>, "mutation">;
796
- /**
797
- * Auto tune (D745): the MODEL-BOUND thresholds (`bindsToModel` keys of
798
- * the object-detection root, and their binding keys) stored in THIS node's
799
- * per-camera detector settings — and, unless `dryRun`, remove them so the
800
- * running model's own defaults apply. Every other key of a camera's store
801
- * is kept. `nodeId` is the ROUTING key. `deviceIds` absent ⇒ every camera
802
- * with a store. A camera whose store could not be read is `refused`, never
803
- * reported as clean.
804
- */
805
- readonly clearModelBoundDeviceOverrides: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
806
- nodeId: z.ZodString;
807
- deviceIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>;
808
- dryRun: z.ZodBoolean;
809
- }, z.core.$strip>, z.ZodObject<{
810
- entries: z.ZodReadonly<z.ZodArray<z.ZodObject<{
811
- deviceId: z.ZodNumber;
812
- keys: z.ZodReadonly<z.ZodArray<z.ZodString>>;
813
- }, z.core.$strip>>>;
814
- refused: z.ZodReadonly<z.ZodArray<z.ZodObject<{
815
- deviceId: z.ZodNumber;
816
- reason: z.ZodString;
817
- }, z.core.$strip>>>;
818
- }, z.core.$strip>, "mutation">;
819
758
  /**
820
759
  * Which of THIS node's inference devices the executor currently refuses,
821
760
  * and why. `nodeId` is the ROUTING key (stripped by the generated router).
@@ -1010,15 +949,12 @@ export declare const pipelineExecutorCapability: {
1010
949
  defaultModelId: z.ZodString;
1011
950
  defaultModelIdByFormat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1012
951
  enabledByDefault: z.ZodOptional<z.ZodBoolean>;
1013
- backfillIntoExistingOverrides: z.ZodOptional<z.ZodBoolean>;
1014
952
  defaultConfidence: z.ZodNumber;
1015
953
  group: z.ZodOptional<z.ZodString>;
1016
954
  configSchema: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodCustom<ConfigField, ConfigField>>>>;
1017
955
  }, z.core.$strip>>>;
1018
956
  }, z.core.$strip>>>;
1019
957
  }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
1020
- readonly getGlobalSteps: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodNullable<z.ZodReadonly<z.ZodArray<z.ZodType<PipelineDefaultStepOutput, unknown, z.core.$ZodTypeInternals<PipelineDefaultStepOutput, unknown>>>>>, import("./capability-definition.js").CapabilityMethodKind>;
1021
- readonly getGlobalPipelineConfig: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodCustom<PipelineConfig | null, PipelineConfig | null>, import("./capability-definition.js").CapabilityMethodKind>;
1022
958
  readonly getOrchestratorConfigSchema: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodCustom<ConfigUISchema, ConfigUISchema>, import("./capability-definition.js").CapabilityMethodKind>;
1023
959
  /**
1024
960
  * Gate B (pre-init config-correctness gate). PURE COMPUTE against this
@@ -35,10 +35,6 @@ declare const CameraPipelineConfigSchema: z.ZodObject<{
35
35
  settings: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
36
36
  }, z.core.$strip>>>;
37
37
  }, z.core.$strip>;
38
- declare const CameraStepOverridePatchSchema: z.ZodObject<{
39
- modelId: z.ZodOptional<z.ZodString>;
40
- settings: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
41
- }, z.core.$strip>;
42
38
  /** The three root-detector choices a camera has (D507: at most one root). */
43
39
  export declare const CameraDetectionSourceSchema: z.ZodEnum<{
44
40
  none: "none";
@@ -1081,6 +1077,7 @@ export declare const pipelineOrchestratorCapability: {
1081
1077
  "node-g": "node-g";
1082
1078
  "node-h": "node-h";
1083
1079
  }>>;
1080
+ stepSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
1084
1081
  inferenceDevices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1085
1082
  enabled: z.ZodBoolean;
1086
1083
  weight: z.ZodOptional<z.ZodNumber>;
@@ -1115,6 +1112,7 @@ export declare const pipelineOrchestratorCapability: {
1115
1112
  "node-g": "node-g";
1116
1113
  "node-h": "node-h";
1117
1114
  }>>;
1115
+ stepSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
1118
1116
  inferenceDevices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1119
1117
  enabled: z.ZodBoolean;
1120
1118
  weight: z.ZodOptional<z.ZodNumber>;
@@ -1249,6 +1247,20 @@ export declare const pipelineOrchestratorCapability: {
1249
1247
  }, z.core.$strip>, z.ZodObject<{
1250
1248
  success: z.ZodLiteral<true>;
1251
1249
  }, z.core.$strip>, "mutation">;
1250
+ /**
1251
+ * Write or clear one step's NODE-wide settings (D927) — the content that
1252
+ * holds on every accelerator of the node (`agentSettings[node].stepSettings`).
1253
+ * `settings` is the whole bag for the step; `null` or `{}` clears it.
1254
+ * REFUSES a model-scoped key (a model id, a binding, a `minConfidence*`
1255
+ * floor): those are set on the accelerator (`setAgentInferenceDevices`).
1256
+ */
1257
+ readonly setNodeStepSettings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1258
+ agentNodeId: z.ZodString;
1259
+ addonId: z.ZodString;
1260
+ settings: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1261
+ }, z.core.$strip>, z.ZodObject<{
1262
+ success: z.ZodLiteral<true>;
1263
+ }, z.core.$strip>, "mutation">;
1252
1264
  /**
1253
1265
  * DEVICE-AWARE merged view of ONE node's inference accelerators. Joins each
1254
1266
  * physical device the node HAS — probed live via a node-pinned
@@ -1321,23 +1333,18 @@ export declare const pipelineOrchestratorCapability: {
1321
1333
  * (a) strips every `modelId` pin from that node's
1322
1334
  * `agentSettings.addonDefaults` (cells revert to Auto — the node
1323
1335
  * resolves its own hardware-aware format default at runtime);
1324
- * (b) clears per-camera step overrides scoped to that node
1325
- * (`stepOverridesByAgent[node]` + the wholesale
1326
- * `pipelineByAgent[node]` escape hatch);
1327
- * (c) clears the executor-side per-device settings stores on that node
1328
- * (`pipelineExecutor.clearDeviceOverrides`);
1329
- * (d) hot-reloads every camera assigned to the node.
1336
+ * (b) hot-reloads every camera assigned to the node.
1337
+ * There is no per-camera model to clear (D927).
1330
1338
  *
1331
1339
  * Returns the EFFECTIVE post-reset object-detection model for the node
1332
- * (the executor's pure hardware-aware default) so the UI can report what
1333
- * will actually run — not a value that never reaches the live path.
1340
+ * (the format default of the accelerator hosting the camera root) so the
1341
+ * UI can report what will actually run.
1334
1342
  */
1335
1343
  readonly resetNodePipelineDefaults: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1336
1344
  agentNodeId: z.ZodString;
1337
1345
  }, z.core.$strip>, z.ZodObject<{
1338
1346
  success: z.ZodLiteral<true>;
1339
1347
  effectiveModelId: z.ZodNullable<z.ZodString>;
1340
- clearedCameraOverrides: z.ZodNumber;
1341
1348
  }, z.core.$strip>, "mutation">;
1342
1349
  /**
1343
1350
  * Auto tune (D745, D755) — DRY RUN. Recommends ONE detector family
@@ -1346,8 +1353,8 @@ export declare const pipelineOrchestratorCapability: {
1346
1353
  * that sustains at least `minSessionsPerDevice` parallel sessions at the
1347
1354
  * camera rate with the headroom kept free (no load input), and lists every write
1348
1355
  * the apply would make: the node model pins set, the enrichment pins and
1349
- * model-bound thresholds removed (node level and per camera), and the
1350
- * per-camera detector thresholds cleared. Writes nothing. Step
1356
+ * model-bound thresholds removed — all on the accelerators, the only
1357
+ * layer that carries a model (D927). Writes nothing. Step
1351
1358
  * enablement, device enablement, pins, recording, notifications, zones and
1352
1359
  * rules are never part of it. `planHash` names exactly this diff.
1353
1360
  */
@@ -1533,33 +1540,10 @@ export declare const pipelineOrchestratorCapability: {
1533
1540
  keys: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1534
1541
  }, z.core.$strip>>>;
1535
1542
  }, z.core.$strip>>>;
1536
- cameraClears: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1537
- deviceId: z.ZodNumber;
1538
- source: z.ZodEnum<{
1539
- "step-override": "step-override";
1540
- wholesale: "wholesale";
1541
- }>;
1542
- nodeId: z.ZodString;
1543
- deviceKey: z.ZodNullable<z.ZodString>;
1544
- stepId: z.ZodString;
1545
- modelIdBefore: z.ZodNullable<z.ZodString>;
1546
- keys: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1547
- }, z.core.$strip>>>;
1548
- detectorStoreClears: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1549
- deviceId: z.ZodNumber;
1550
- keys: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1551
- }, z.core.$strip>>>;
1552
1543
  warnings: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1553
- kind: z.ZodLiteral<"detector-store-cluster-wide">;
1554
- skippedNodes: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1555
- }, z.core.$strip>, z.ZodObject<{
1556
- kind: z.ZodLiteral<"detector-store-unreadable">;
1557
- error: z.ZodString;
1558
- }, z.core.$strip>, z.ZodObject<{
1559
1544
  kind: z.ZodLiteral<"custom-pin-kept">;
1560
1545
  nodeId: z.ZodString;
1561
- deviceKey: z.ZodNullable<z.ZodString>;
1562
- deviceId: z.ZodNullable<z.ZodNumber>;
1546
+ deviceKey: z.ZodString;
1563
1547
  modelId: z.ZodString;
1564
1548
  }, z.core.$strip>, z.ZodObject<{
1565
1549
  kind: z.ZodLiteral<"custom-registry-unreadable">;
@@ -1581,8 +1565,6 @@ export declare const pipelineOrchestratorCapability: {
1581
1565
  planHash: z.ZodString;
1582
1566
  phases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1583
1567
  phase: z.ZodEnum<{
1584
- "camera-overrides": "camera-overrides";
1585
- "detector-thresholds": "detector-thresholds";
1586
1568
  download: "download";
1587
1569
  "node-models": "node-models";
1588
1570
  redispatch: "redispatch";
@@ -1594,8 +1576,6 @@ export declare const pipelineOrchestratorCapability: {
1594
1576
  kind: z.ZodLiteral<"aborted">;
1595
1577
  phases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1596
1578
  phase: z.ZodEnum<{
1597
- "camera-overrides": "camera-overrides";
1598
- "detector-thresholds": "detector-thresholds";
1599
1579
  download: "download";
1600
1580
  "node-models": "node-models";
1601
1581
  redispatch: "redispatch";
@@ -1784,33 +1764,10 @@ export declare const pipelineOrchestratorCapability: {
1784
1764
  keys: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1785
1765
  }, z.core.$strip>>>;
1786
1766
  }, z.core.$strip>>>;
1787
- cameraClears: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1788
- deviceId: z.ZodNumber;
1789
- source: z.ZodEnum<{
1790
- "step-override": "step-override";
1791
- wholesale: "wholesale";
1792
- }>;
1793
- nodeId: z.ZodString;
1794
- deviceKey: z.ZodNullable<z.ZodString>;
1795
- stepId: z.ZodString;
1796
- modelIdBefore: z.ZodNullable<z.ZodString>;
1797
- keys: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1798
- }, z.core.$strip>>>;
1799
- detectorStoreClears: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1800
- deviceId: z.ZodNumber;
1801
- keys: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1802
- }, z.core.$strip>>>;
1803
1767
  warnings: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1804
- kind: z.ZodLiteral<"detector-store-cluster-wide">;
1805
- skippedNodes: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1806
- }, z.core.$strip>, z.ZodObject<{
1807
- kind: z.ZodLiteral<"detector-store-unreadable">;
1808
- error: z.ZodString;
1809
- }, z.core.$strip>, z.ZodObject<{
1810
1768
  kind: z.ZodLiteral<"custom-pin-kept">;
1811
1769
  nodeId: z.ZodString;
1812
- deviceKey: z.ZodNullable<z.ZodString>;
1813
- deviceId: z.ZodNullable<z.ZodNumber>;
1770
+ deviceKey: z.ZodString;
1814
1771
  modelId: z.ZodString;
1815
1772
  }, z.core.$strip>, z.ZodObject<{
1816
1773
  kind: z.ZodLiteral<"custom-registry-unreadable">;
@@ -2317,17 +2274,6 @@ export declare const pipelineOrchestratorCapability: {
2317
2274
  }, z.core.$strip>, z.ZodNullable<z.ZodObject<{
2318
2275
  stepToggles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
2319
2276
  stepSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
2320
- stepOverridesByDevice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
2321
- modelId: z.ZodOptional<z.ZodString>;
2322
- settings: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2323
- }, z.core.$strip>>>>>;
2324
- pipelineByAgent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2325
- steps: z.ZodReadonly<z.ZodArray<z.ZodType<import("./pipeline-executor.cap.js").PipelineStepInputOutput, unknown, z.core.$ZodTypeInternals<import("./pipeline-executor.cap.js").PipelineStepInputOutput, unknown>>>>;
2326
- audio: z.ZodNullable<z.ZodObject<{
2327
- modelId: z.ZodString;
2328
- enabled: z.ZodBoolean;
2329
- }, z.core.$strip>>;
2330
- }, z.core.$strip>>>;
2331
2277
  }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
2332
2278
  /** Set or clear the 3-state toggle for one (camera, addonId). Pass `enabled: null` to clear and revert to agent default. */
2333
2279
  readonly setCameraStepToggle: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
@@ -2379,38 +2325,14 @@ export declare const pipelineOrchestratorCapability: {
2379
2325
  }, z.core.$strip>, z.ZodObject<{
2380
2326
  success: z.ZodLiteral<true>;
2381
2327
  }, z.core.$strip>, "mutation">;
2382
- /** Read every per-(node,device) override map for a device. Null when device has no overrides. */
2383
- readonly getCameraStepOverrides: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
2384
- deviceId: z.ZodNumber;
2385
- }, z.core.$strip>, z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
2386
- modelId: z.ZodOptional<z.ZodString>;
2387
- settings: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2388
- }, z.core.$strip>>>>>, import("./capability-definition.js").CapabilityMethodKind>;
2389
- /**
2390
- * Write or clear the per-(camera,node,device) override for one addonId.
2391
- * `patch: null` clears the entry entirely for that (node, deviceKey, addon)
2392
- * triple (empty parents are pruned). Model/settings only — enablement is
2393
- * the per-camera `stepToggles` authority.
2394
- */
2395
- readonly setCameraStepOverride: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
2396
- deviceId: z.ZodNumber;
2397
- agentNodeId: z.ZodString;
2398
- deviceKey: z.ZodString;
2399
- addonId: z.ZodString;
2400
- patch: z.ZodNullable<z.ZodObject<{
2401
- modelId: z.ZodOptional<z.ZodString>;
2402
- settings: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2403
- }, z.core.$strip>>;
2404
- }, z.core.$strip>, z.ZodObject<{
2405
- success: z.ZodLiteral<true>;
2406
- }, z.core.$strip>, "mutation">;
2407
2328
  /**
2408
- * Write or clear one step's CAMERA-WIDE settings (D754) — the fields this
2409
- * camera overrides on every accelerator it runs on. `settings` is the
2410
- * whole field-level bag for that step (only the overridden keys; a
2411
- * model-bound field travels with its binding key); `null` or `{}` clears
2412
- * it. Merged at dispatch between the node base and the per-(node,device)
2413
- * override, key by key.
2329
+ * Write or clear one step's CAMERA-WIDE settings (D754) — the
2330
+ * camera-semantic fields this camera overrides on every accelerator it
2331
+ * runs on. `settings` is the whole field-level bag for that step (only the
2332
+ * overridden keys); `null` or `{}` clears it. Merged at dispatch over the
2333
+ * node base, key by key. REFUSES a model-scoped key — a model id, a model
2334
+ * binding or a `minConfidence*` floor (D927): those belong to the
2335
+ * accelerator that runs the model.
2414
2336
  */
2415
2337
  readonly setCameraStepSettings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
2416
2338
  deviceId: z.ZodNumber;
@@ -2419,20 +2341,6 @@ export declare const pipelineOrchestratorCapability: {
2419
2341
  }, z.core.$strip>, z.ZodObject<{
2420
2342
  success: z.ZodLiteral<true>;
2421
2343
  }, z.core.$strip>, "mutation">;
2422
- /** Write or clear the wholesale per-agent pipeline override. Pass `pipeline: null` to drop the override. */
2423
- readonly setCameraPipelineForAgent: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
2424
- deviceId: z.ZodNumber;
2425
- agentNodeId: z.ZodString;
2426
- pipeline: z.ZodNullable<z.ZodObject<{
2427
- steps: z.ZodReadonly<z.ZodArray<z.ZodType<import("./pipeline-executor.cap.js").PipelineStepInputOutput, unknown, z.core.$ZodTypeInternals<import("./pipeline-executor.cap.js").PipelineStepInputOutput, unknown>>>>;
2428
- audio: z.ZodNullable<z.ZodObject<{
2429
- modelId: z.ZodString;
2430
- enabled: z.ZodBoolean;
2431
- }, z.core.$strip>>;
2432
- }, z.core.$strip>>;
2433
- }, z.core.$strip>, z.ZodObject<{
2434
- success: z.ZodLiteral<true>;
2435
- }, z.core.$strip>, "mutation">;
2436
2344
  /** Resolve the effective pipeline for `(deviceId, agentNodeId?)` — walks the full precedence chain. Read-only preview used by the UI to show what will run. */
2437
2345
  readonly resolvePipeline: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
2438
2346
  deviceId: z.ZodNumber;
@@ -3163,4 +3071,4 @@ export type IngestOwner = z.infer<typeof IngestOwnerSchema>;
3163
3071
  export type NodeInferenceDevice = z.infer<typeof NodeInferenceDeviceSchema>;
3164
3072
  export type NodeInferenceDevices = z.infer<typeof NodeInferenceDevicesSchema>;
3165
3073
  export type InferenceDeviceExclusionReason = z.infer<typeof InferenceDeviceExclusionReasonSchema>;
3166
- export { AgentLoadSummarySchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMotionStatusSchema, CameraPipelineConfigSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusDegradationReasonSchema, CameraStatusDegradationSchema, CameraStatusSchema, CameraStatusStageSchema, CameraStepOverridePatchSchema, CapabilityBindingsSchema, DiskReconcileJobSchema, GlobalMetricsSchema, INFERENCE_DEVICE_EXCLUSION_REASONS, InferenceDeviceExclusionReasonSchema, IngestOwnerSchema, PipelineAssignmentSchema, };
3074
+ export { AgentLoadSummarySchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMotionStatusSchema, CameraPipelineConfigSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusDegradationReasonSchema, CameraStatusDegradationSchema, CameraStatusSchema, CameraStatusStageSchema, CapabilityBindingsSchema, DiskReconcileJobSchema, GlobalMetricsSchema, INFERENCE_DEVICE_EXCLUSION_REASONS, InferenceDeviceExclusionReasonSchema, IngestOwnerSchema, PipelineAssignmentSchema, };